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:
Level 5
Joined
Jun 7, 2012
Messages
66
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

  • LandGen(v.0.01).w3x
    73.9 KB · Views: 41
Last edited:
Status
Not open for further replies.
Top