OpenJK icon indicating copy to clipboard operation
OpenJK copied to clipboard

crashes on trying to load a checkpoint save

Open silviucc opened this issue 8 years ago • 16 comments

ERROR: EvaluateFields(): variable-sized chunk 'GCLI' without handler!

I've archived the save files and uploaded them here:

https://dl.dropboxusercontent.com/u/3371527/openjk_saves.tar.bz2

Always crashes when opting to load the checkpoint. I'm using the latest build published on 18/08/2015. The same thing happens with a self built binary.

silviucc avatar Aug 24 '15 18:08 silviucc

New saves or before the a specific build?

Architecture?

ensiform avatar Aug 24 '15 19:08 ensiform

Using the 64bit build. All the save files were created with the build I mentioned above. No older save files.

silviucc avatar Aug 24 '15 19:08 silviucc

Where you using custom mods for different player model mods for more Jaden skins?

lockgo avatar Sep 21 '15 19:09 lockgo

No. All vanilla content.

silviucc avatar Sep 21 '15 21:09 silviucc

Where you using cheat codes to get different Jaden skins, like the hoth set?

lockgo avatar Sep 21 '15 21:09 lockgo

No cheat codes either.

silviucc avatar Sep 21 '15 21:09 silviucc

Inside of sv_savegame.cpp

    // Find length of chunk and make sure it matches the requested length...
    //
    if( iLength )   // .. but only if there was one specified
    {
        if(iLength != (int)uiLoadedLength)
        {
            if (!qbSGReadIsTestOnly)
            {
                Com_Error(ERR_DROP, "Loaded chunk (%s) has different length than requested", SG_GetChidText(chid));//This spot here
            }
            return 0;
        }
    }
    iLength = uiLoadedLength;   // for retval

your file is giving a giSaveGameVersion of 1252, while the game is expecting 1496.

I have no idea why.

lockgo avatar Sep 21 '15 21:09 lockgo

I have this problem with 2015-11-09 build too. No plugins/mods etc.

mraron avatar Nov 20 '15 19:11 mraron

Saves are not yet cross-architecture; i.e. 64 bit saves are incompatible with 32 bit builds and vice-versa.

mrwonko avatar Nov 20 '15 21:11 mrwonko

If we are going for backwards compatibility they may never be either. Or have you begun looking at the files?

ensiform avatar Nov 21 '15 01:11 ensiform

Not yet, but I'm certain we can be backwards compatible with old 32 bit windows saves across architectures/operating systems; it's just a matter of rewriting the loading/saving. Should I prioritize that?

mrwonko avatar Nov 21 '15 10:11 mrwonko

I think the priority is to just get it working with jasp/josp saves & 32 for sure.

ensiform avatar Nov 21 '15 16:11 ensiform

As in the 32 bit windows build should still support legacy saves? Doesn't it already do that?

mrwonko avatar Nov 22 '15 00:11 mrwonko

Its not confirmed as to whether saves are compliant. The JK2 saves are definitely derped.

ensiform avatar Nov 22 '15 01:11 ensiform

See also #739.

mrwonko avatar Nov 22 '15 21:11 mrwonko

This should be fixed in bb0b2f0a541117aba77fc7b59ee51defda99a5b6. However any saves created with openjk may not necessarily be compatible all the way through anymore because base of both games should now be compatible save game wise.

Note: there's no up to date Windows builds currently to test so you'd need to make your own build from the source to confirm currently.

ensiform avatar Oct 20 '16 20:10 ensiform