wc3edit.net
https://forum.wc3edit.net/

[SP] 300 Spartans Resurrected
https://forum.wc3edit.net/fulfilled-requests-f75/300-spartans-resurrected-t37952.html
Page 1 of 1

Author:  3nemy_ [ May 23rd, 2021, 3:24 pm ]
Post subject:  [SP] 300 Spartans Resurrected

Problem: Map won't let you save game, "Gamestatus offline" message appears if you start the map in singleplayer, but the map is playable otherwise.

I tried editing some triggers, deleting test game trigger, gamestatus trigger, editing save/load trigger but it all breaks the map.

If it's possible I'd like you to post things you changed or deleted or PM me so I know in the future what to do in such cases.

Edit: Found out it's using Codeless Save System if it's of any help.

Author:  nuzamacuxe [ September 3rd, 2021, 7:00 am ]
Post subject:  Re: [SP] 300 Spartans Resurrected

Code:
    if ( Trig_GameStatus_Func011C() ) then
        if ( ReloadGameCachesFromDisk() ) then
        set udg_GameStatus=udg_GAME_STATUS_OFFLINE
        else
        set udg_GameStatus=udg_GAME_STATUS_REPLAY
        endif
    else
        set udg_GameStatus=udg_GAME_STATUS_ONLINE
    endif


Just change the if condition to false like so:

Code:
function Trig_GameStatus_Func011C takes nothing returns boolean
    if ( not ( IsUnitSelected(GetLastCreatedUnit(), udg_GameStatus_TempPlayer) == true ) ) then
        return false
    endif
    return false
endfunction


Change the udg_Repry variable to 2:

Code:
        if ( Trig_Set_Variables_Func001Func001C() ) then
            set udg_Repry = 2
        else
        endif

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/