| 07-12-2007, 02:38 AM | #2 |
as far as im aware, this kinda stuff doesnt work in Multiplayer... game caches dont work, im im pretty sure save games wont work with multiple players whatsoever. Edit: If this is Single Player, then are u sure that all buttons are set, load your functions tto the brim with debug messeges |
| 07-12-2007, 12:47 PM | #3 |
This is singleplayer. And no the cancel button isn't set but i just want it it do nothing so i didn't think i have to trigger it. But i think they are set here the trigger : SaveMenu=Dialog variable SaveMenu_yes=Dialog button variable SaveMenu_cancel=Dialog button variable Trigger: Save0095,0096,0097 are save spot they are unit. Trigger: Trigger: Is there anything wrong? |
| 07-12-2007, 01:27 PM | #4 | |
Callahan, you didn't set the save button to the variable, also you don't need any variable for the cancel button, just leave it blank. Also i'm pretty sure you don't have to hide the dialog afterwards, because it will be automatically hidden when a button is clicked. (At least when i click a button) |
| 07-12-2007, 01:44 PM | #5 |
Okaaaaay |
| 07-12-2007, 01:53 PM | #6 |
Wouldn't you be able to do this pretty easily in GUI? |
| 07-12-2007, 02:02 PM | #7 |
Most likely, but why use GUI when you know JASS? (though that jass trigger makes me dizzy) |
| 07-12-2007, 03:23 PM | #8 |
GUI is fine where performance is no issue, just so long as it doesn't leak excessively or repeatedly. |
| 07-12-2007, 04:41 PM | #9 |
I have another minor issue :the folder.It save at Save/Profile#/CustomSaves/MapName/ so you cannot load your save from the F10 menu in game unless you change the folder of the .w3z I can trigger to load the map but it would be annoying since you have to start a new game before load your saved file. I just want to know if it's possible to specifie the folder in jass trigger like JASS:call SaveGame("C:/Program files/Warcraft3/Save/WoGAutosave.w3z") |
| 07-12-2007, 04:43 PM | #10 |
errr.... youd probably have to make a native that does SaveGame but adds a directory because the directory is hardcoded (to my knowledge) in the function. |
| 07-13-2007, 09:37 AM | #11 |
Any i've fixed with another custom load system.And it appear at the begining before starting the game there is a dialog wich ask if you want to start a new game or load game so that they can load they're map. But i've encounter another problem,The save can work only once unless you reload the map.Is there a way to fix that? |
| 07-13-2007, 01:09 PM | #12 |
Make a handler map, with the code Trigger: Game - Load Saved Game <saved game> |
| 07-13-2007, 06:43 PM | #13 |
The load work properly. The problem is that you can save only once during the game.If you try to resave during the same game it won't work.You have to reload your saved game to enable the save again. |
