Page 1 of 1

[SP] 300 Spartans Resurrected

Posted: May 23rd, 2021, 3:24 pm
by 3nemy_
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.

Re: [SP] 300 Spartans Resurrected

Posted: September 3rd, 2021, 7:00 am
by nuzamacuxe

Code: Select all

    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: Select all

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: Select all

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