OldUnreal / UnrealTournamentPatches

Other
941 stars 27 forks source link

[469d RC2] Dynamic fonts should not be referenced in package saving #1446

Open OjitroC opened 8 months ago

OjitroC commented 8 months ago

When trying to run a Saved game (in default UT and when using OldSkool) I get this error

Log: Failed import: Font Font Editor.DynamicFont1 (file ../System/Editor.u) Warning: Failed to load save1.usa: Can't find Font in file Font Editor.DynamicFont1.. Warning: Failed to load "Level None.MyLevel": Can't find Font in file Font Editor.DynamicFont1..

See https://ut99.org/viewtopic.php?t=16066 for more info.

SeriousBuggie commented 3 months ago

Can you reproduce this issue in next steps?

  1. Start UT.
  2. Run start MH-XV-KingJoshCity2v1
  3. Start game.
  4. Run savegame 4
  5. Close UT.
  6. Start UT again.
  7. Run start ..\Save\Save4.usa

I can't reproduce on our internal test builds for 469e. 469d Release work fine as well.

Maybe it something related to MacOS builds? Can you try it outside MacOS or ask someone for check it?

Also possible this fixed in 469d Release. Please check it.

SeriousBuggie commented 3 months ago

After set gui and font scaling able reproduce issue: img

Log: Failed import: Font Font Editor.DynamicFont4 (file ../System/Editor.u)
Warning: Failed to load ..\Save\Save4.usa: Can't find Font in file Font Editor.DynamicFont4..
Warning: Failed to load "Level None.MyLevel": Can't find Font in file Font Editor.DynamicFont4..

So workaround is turn off gui scale before save I guess,

SeriousBuggie commented 3 months ago

What Font scaling you use? If override not enable - enable it and set lover level from you see, until issue not gone.

SeriousBuggie commented 3 months ago

Issue can be caused too big fonts. It take too much memory, so some allocations can fail and this can produce memory corruption on save game.