Basically I need to figure out somehow when the player loads a savegame of my map, so I can do stuff like restart the music since it stops.
Can it be done??
🤙🏾
This is actually an interesting question. As far as I'm aware there isn't any way to detect the players loading the game even by EUDs. The saving is designed to resume the game as if the play through had been completely continuous. Essentially- No.
None.
An artist's depiction of an Extended Unit Death
As far as I'm aware there isn't any way to detect the players loading the game even by EUDs.
There has to be changes in memory for saved games. At the victory/defeat for saved games it disables the "Save Replay," meaning it detects that the game was resumed from a save at some point. I would imagine that it could be done using extended players.
Today's my birthday...
Deaths("Player 12", "ID:22297", Exactly, 1702257011);
or
Memory(267575, Exactly, 1702257011);
Both do the same thing. They detect when the current map you are playing is in the saved folder. I detected the string "save" in the current file path of the map which is "C:\Program_Files\Starcraft\maps\save".
Happy B-day Roy!
Post has been edited 1 time(s), last time on Jul 13 2009, 2:53 pm by Morphling.
None.
What if the save file is in a different file path?
None.
Where would it go? When you save a map it goes there.
None.
You can move the savefile manually.
None.
You could detect the "mlx" at the end of the file name, however the address would vary because the length of the previous part of the path.
None.
When you load a game, every
wait action that was in progress at the moment of saving will be set to 0.
You might want to try using this somehow.
If you only need to detect loading for the purpose you mentioned, you should just play the music loop and put the appropriate wait after it, instead of using a death counter.
Post has been edited 1 time(s), last time on Jul 13 2009, 8:18 pm by Psionic_Storm.
None.
About the EUD solution, I can't get it to compile in SCMDraft, says it expects a unit and I think the "ID:22297" part is the problem.
And the Wait solution, I could probably do that, can Wait handle a 5:18 song though?
Thanks for the replies so far.
🤙🏾
The ID:#### isn't compatable with the text editor. The memory condition does work correctly with it, however you need to download the attached file below which is the updated trigedit(text editor). Go to the location you saved scmdraft, open up the folder plugins, delete the current trigedit.sdp and replace it with the new one you just downloaded. Now, the memory condition should work.
Note, it you're using the condition, "Deaths" Scmdraft will change it to memory if the player is 13 or above(current player). To prevent this change the unit first then the player, since it has to be Terran Marine to change to, "Memory" in addition to the high player number.
Edit: Removed attachment.
Post has been edited 1 time(s), last time on Jul 14 2009, 2:48 pm by Morphling.
None.
I just did that but the trigger doesn't seem to run on load, I'm using the Memory condition now.
🤙🏾
What do you mean, "doesn't run on load"? Do you mean, when you start the map it doesn't work?
None.
I mean I start the map, then save, then load the save but the Memory trigger that should reset the music doesn't run.
🤙🏾
Could you possibly post the map?
None.
I'd really rather not
Here's a snapshot of the relevant triggers from classic trigedit at least, the normal music reset trigger and the EUD one.
And the EUD trigger in text
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Memory(267575, Exactly, 1702257011);
Actions:
Set Deaths("Player 1", "Ursadon (Ice World)", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "detect");
}
//-----------------------------------------------------------------//
🤙🏾
I must have givin you the wrong trigedit file or you didn't replace the old one because it should say memory in classic editor and not have an unknown. Here is the one in my plugins folder. So it should work.
Attachments:
None.
It's wierd, I definitely have that updated .sdp or it wouldn't let me compile with a Memory instruction in there (it didn't before)
Could i be missing another file?
🤙🏾
Download this and replace the old scmdraft.
http://www.stormcoast-fortress.net/temp/Scmdraft2-setup.rarI'm not sure if this updated Scmdraft comes with the newest trigedit so you might have to replace it again.
None.