• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Preload in 1.27

Status
Not open for further replies.
Level 5
Joined
Jun 7, 2012
Messages
66
I have lots of similar files imported in my map, which I then Preloader() in process of game, but it seems to be broken in 1.27b. Did something change?
JavaScript:
function PreloadFiles takes nothing returns nothing
call SetPlayerTechMaxAllowed(Player(15),103507,147364072)
call SetPlayerTechMaxAllowed(Player(15),103508,8424588)
call SetPlayerTechMaxAllowed(Player(15),103509,134793416)
call SetPlayerTechMaxAllowed(Player(15),103510,25460865)
call SetPlayerTechMaxAllowed(Player(15),103511,138942600)
call SetPlayerTechMaxAllowed(Player(15),103512,8424576)
call SetPlayerTechMaxAllowed(Player(15),103513,134546885)
call SetPlayerTechMaxAllowed(Player(15),103514,75792768)
call SetPlayerTechMaxAllowed(Player(15),103515,134760648)
call SetPlayerTechMaxAllowed(Player(15),103516,25201800)
call SetPlayerTechMaxAllowed(Player(15),103517,138954776)
call SetPlayerTechMaxAllowed(Player(15),103518,8488064)
call SetPlayerTechMaxAllowed(Player(15),103519,138946584)
...more lines
endfunction
 
Last edited:
Added JNPG map example. When I type -test1 in 1.26 everything works fine but in 1.27 nothing happens, because Preloader is not executing SetPlayerTechMaxAllowed()
Edit: Transerring this code to map script is not possible, because I use similar files for save/load in rpg map.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top