HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Preventing Game Saves

01-10-2008, 05:26 AM#1
GosuSheep
Is there any way to prevent people from saving the game or to figure out WHO saved the game?

Replies are greatly appreciated
01-10-2008, 05:33 AM#2
xombie
I'm sorry but I don't think there is any way to detect who saves a game or any means of preventing players from clicking the Save Game button.
01-10-2008, 03:42 PM#3
Alevice
You can prevent a "proper" loading of such savegame, however, by setting some flags as to when is it valid to save, and when a game is loaded, check if such flags were set.

King Klear more or less did that on his survival horror map.
01-10-2008, 04:47 PM#4
Strilanc
Quote:
Originally Posted by Alevice
You can prevent a "proper" loading of such savegame, however, by setting some flags as to when is it valid to save, and when a game is loaded, check if such flags were set.

King Klear more or less did that on his survival horror map.

How do you know when the game is loaded?
01-10-2008, 05:20 PM#5
xombie
GosuSheep, I assume that you're trying to detect when people save on BNet, and in which case, I don't think its possible to load a game when you're still in a BNet game, so you wouldn't be able to recover the flags.
01-10-2008, 06:03 PM#6
cohadar
Something tells me he is trying to prevent people gathering evidence about his cheating....
01-10-2008, 07:29 PM#7
SuperLoser
The long duration only occurs the first time it's ever done as I understand, but players can waste time in a multi-player game by saving it. It doesn't occur often, and the wait is only frustrating the first time around, but it's still annoying. So I don't know if covering up cheating is the only application for preventing saves, but it could be nice for preventing the waits resulting from saving.
01-10-2008, 07:39 PM#8
xombie
Think about it, in order to prevent a game from saving, you would either need to disable the "Save Game" button which is impossible, or cancel the saving process once it has begun. Since there is no way to cancel the saving process, then it cannot be done.
01-10-2008, 09:33 PM#9
burningice95
It would be nice, some assholes like to save the game during the middle of a bnet game (creates lag + pauses game for a bit)
01-10-2008, 09:36 PM#10
DioD
just add permanent terrain deformation somewhere it will crush game onload.
01-10-2008, 10:09 PM#11
Ammorth
...or you could use the on load event and end the game.

The problem is the saving, and not the loading.

I don't believe there is any way to prevent the map from being saved. Maybe, you can try save the game through triggers at the beginning of the map. The game may count that as a player save and not allow players to save another.
01-10-2008, 10:15 PM#12
xombie
Quote:
Originally Posted by DioD
just add permanent terrain deformation somewhere it will crush game onload.

Mother of God...
01-11-2008, 10:04 AM#13
Troll-Brain
Quote:
Originally Posted by Ammorth
Maybe, you can try save the game through triggers at the beginning of the map.

and how you do that ?
01-11-2008, 02:33 PM#14
Ammorth
Quote:
Originally Posted by Troll-Brain
and how you do that ?
native SaveGame takes string saveFileName returns nothing
01-11-2008, 02:49 PM#15
Vexorian
Want to make people unable to save games?

Collapse JASS:
globals
integer arrays somearray
endglobals

function aar takes nothing returns nothing
    set somearray[8191]=2
endfunction

enjoy.