• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Easiest way for PRELOAD ("xyz") without desync

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
If you mean that you want to preload a file from a string, that's very possible, I don't think that it causes deysnc.. ._.
  • Game - Preload 's'
JASS:
call Preload( udg_s )

no at all, i talk about save empty string to if GetLocalPlayer()==TrigerPlayer or something because in orpg not nice if u save ur char and code appear on everyone pc
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
You can also have the Preload calls inside the local block. Might only desync the string table which has yet to be proven to be hurtful (in case you are creating strings there).

so this work?

JASS:
  if GetLocalPlayer() == GetTrigerPlayer() then
                call PreloadGenClear()
                call PreloadGenStart()
                call Preload("\r\n\t\t\t\tHero: " + GetUnitName(u) + "\r\n\t\t\t\t" + "Level: " + I2S(LEVEL) + "\t\t\r\n\t\t\t\t" + "Code: -Load " + OUTPUT + "\r\n\n\t\t    ")
                call PreloadGenEnd("SaveLoadTestForORPG\\" + GetUnitName(u) + " - " + I2S(LEVEL) + ".txt")
 endif
 
Status
Not open for further replies.
Top