• 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.

[JASS] Help! ^^

Status
Not open for further replies.
Level 10
Joined
Jun 21, 2007
Messages
643
It happened on one not so stormy or rainy night that I had a brainwave.

Most wc3 RPG's with save load systems suffer the dreaded server crash at unexpected times. Leading to horrendous loos of chars and progress,. however, what if one was able to change the server disconnected message to a save code?

So I thought about it, you would need a trigger to update the save code variable that ran before the server crashed, then you would need to set the game interface value to that save code.

So I wenta bout my jolly way and I found that the data for custom game interface data is stored in war3mapSkin.txt and that this links to war3map.wts as a variable, what if you were able to modify any of the above files so that you could reference a global variable and change the message during runtime?

I don't really know JASS so if anyone knows of a way, it would help everyone methinks.

Regards,
MadCD
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
umm as I know "change the server disconnected message to a save code?" is really imposible
 
Level 11
Joined
Aug 25, 2006
Messages
971
Its not possible. This is because it won't let you reference a variable in the custom interface data.
However I think (Not sure, never tested) that the game has a method of detecting a server crash.
  • Events
    • Game - State Divine Intervention becomes Equal to 1
Perhaps that runs a split second before it tells you about the server disconnection?

Theres also
  • Events
    • Game - State Disconnected becomes Equal to 1
If that doesn't work maybe this one does !?
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
Well, what I did to counter the disconnection problems, is a (local) leaderboard for each player which would display their save codes. It would also update itself each 5 minutes. So if you disconnect, you can still see the leaderboard :p
 
Status
Not open for further replies.
Top