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

Trick for stopping game from being saved

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

What is the trick from stopping a player from loading a saved game?

A few maps I've played let you save the game. But if you try to load it, the loading bar will never finish or it will crash during loading. How is that accomplished?
 
Level 15
Joined
Aug 7, 2013
Messages
1,342
Nestharus that prevents one from saving the game at all. But what is the method of simply stopping any saved games from loading?

E.g. I save the game, no problem.

I then load it, and sit in the waiting screen. But the loading bar never finishes, or it crashes on the loading screen. How is that accomplished?

I would want the most subtle protection. People will think "oh it let me save" versus the method outlined in that will make it very obvious the mapmaker is trying to prevent a save. They just then get the war3map.j and remove the section of code that pops up a dialog box when a player saves a game. And since the library is public, it won't be too hard to find it in the war3map.j.
 
See WaterKnight's post

There are game events for saving/loading. You can end the game on loading or better yet prevent saving by display a dialog on the save event.

On EVENT_GAME_LOAD

Also end game when people load just for safety (boot them to main menu instantly). Do not crash them intentionally as that is poor map design.

you can call EndGame(false)
 
Status
Not open for further replies.
Top