Ticket #81 (closed bug: fixed)
Game crashes during saving after building a derrick
| Reported by: | Tycho451 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Campaign | Version: | git/master |
| Keywords: | crash save savegame tagfile | Cc: | Per |
| Blocked By: | Blocking: | ||
| Operating System: | All/Non-Specific |
Description
When you start a campaign start bulding a derrick. After the first ingame video try to save and the game will crash.
It seems this bug was introduced with revision 6081.
The output hints toward a problem with the tagfile.
I have attached the relevant part of the debug=all output and the warzone2100.gdmp.
Attachments
Change History
comment:1 Changed 3 years ago by Tycho451
6077 is the last working Version savegame-wise.
When validating the savegame the game reads an invalid tagtype:
map |000000049588: [mapLoadTagged] * Texture[27]: 78 error |000000049588: [tf_error] Invalid value type in buffer
The invalid Tagtype value is different every time and can be as high as 134, so it's definitly no tagtype (I first hoped this was a simple oversight of including all tagtypes in the switch construct). I guess "readsize = PHYSFS_read(handle, &tag_type, 1, 1);" reads the tagtype but since I can't find where it's writen I'm stuck.
Since I lack any deeper understanding of the way the code works and am unfamiliar with C in general I might be talking nonsense.
comment:2 follow-up: ↓ 3 Changed 3 years ago by anonymous
The code producing the fault has been reverted.
comment:3 in reply to: ↑ 2 Changed 3 years ago by Giel
- Cc Per added
- Milestone set to 2.2
Replying to anonymous:
The code producing the fault has been reverted.
Was that you per? If so, can you close this report (need to be logged in for that) marking it fixed?
Also what revision fixed it?
