Ticket #45603

Stop saving "game.hardcoded_counters"

오픈 날짜: 2022-09-08 01:21 마지막 업데이트: 2022-09-27 21:05

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

Counters are no longer hardcoded, so we should not save "game.hardcoded_counters" any more and especially not as TRUE!

The "unused entry" warning should be silenced from dev savegames (in "< 3019300" block of compat_load_dev() )

Ticket History (3/17 Histories)

2022-09-08 01:21 Updated by: cazfi
  • New Ticket "Stop saving "game.hardcoded_counters"" created
2022-09-24 21:02 Updated by: lachu
댓글 올리기

@cazfi

0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch(1KB)
I hope this address problem you're asking to solve
2022-09-24 21:08 Updated by: cazfi
댓글 올리기

- Remove also the loading part.
- The compat change should be one to silence "unused entry" -warning (try to run with --warnings) when the loading part is removed from the savegame3.c: likely just "(void) secfile_entry_lookup(...)"

2022-09-25 01:17 Updated by: lachu
댓글 올리기

Reply To cazfi

- Remove also the loading part.
- The compat change should be one to silence "unused entry" -warning (try to run with --warnings) when the loading part is removed from the savegame3.c: likely just "(void) secfile_entry_lookup(...)"

Hi. I am nowhere. I cannot found if there is a still loading part. I search for hardcoded counters in savegame3.c.

2022-09-25 01:20 Updated by: cazfi
댓글 올리기

Reply To lachu

I am nowhere. I cannot found if there is a still loading part. I search for hardcoded counters in savegame3.c.

Right, There wasn't. That actually was how I encountered the problem - I got the "unused entry" warning as the entry is never loaded. So; we need to stop saving the field to new savegames (your patch already did that) and to silence the warning with secfile_entry_lookup() while loading those savegames where it was saved to.

2022-09-25 01:41 Updated by: lachu
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10387) is attached
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10386) is attached
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10383) is attached
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10385) is attached
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10384) is attached
2022-09-25 01:41 Updated by: lachu
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10387) is deleted
2022-09-25 01:41 Updated by: lachu
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10386) is deleted
2022-09-25 01:41 Updated by: lachu
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10385) is deleted
2022-09-25 01:41 Updated by: lachu
  • File 0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10384) is deleted
2022-09-25 01:42 Updated by: lachu
댓글 올리기

Reply To cazfi

Reply To lachu

I am nowhere. I cannot found if there is a still loading part. I search for hardcoded counters in savegame3.c.

Right, There wasn't. That actually was how I encountered the problem - I got the "unused entry" warning as the entry is never loaded. So; we need to stop saving the field to new savegames (your patch already did that) and to silence the warning with secfile_entry_lookup() while loading those savegames where it was saved to.

0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch(1KB)
Change from secfile_load_bool into secfile_load_entry

This should work as expected.

2022-09-25 03:28 Updated by: cazfi
댓글 올리기

Looks good, but does not apply to master HEAD.

2022-09-25 18:48 Updated by: lachu
댓글 올리기

Reply To cazfi

Looks good, but does not apply to master HEAD.

0001-OSDN-45603-S-awomir-Lach-slawek-lach.art.pl.patch(1KB)
It should apply
2022-09-25 20:01 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-09-27 21:05 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Attachment File List

Edit

Please login to add comment to this ticket » Login