http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=738

Ralph Versteegen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Ralph Versteegen <[email protected]>  ---
(In reply to comment #3)
> I've finally encountered something related to this.  My game Tales II went a
> long time without being touched (as in, since the NPC definition limit was
> lifted to 99), but when I loaded it with the latest nightly there was a 
> strange
> pattern:
> 
> 1. On a few maps, formerly 'undefined' npcs (picture, palette, type, etc all
> zero) had picture 1 and palette 7 chosen.  There would only be one of these 
> per
> map, and it only happened on like 4 out of 15 maps.
> 
> 2. On more maps than scenario 1, npc 35 was given picture 36, although the
> palette was still 0.
> 
> I did not resize any maps.

I tried downloading the version of Tale II on CP and SS (last modified Jan
2008) and looked at the NPCs. On one map (map 4) I found an NPC with picture 1
and palette 7. Was that not meant to be there?

Do you still have that corrupted file: do you think the corrupted happened as
you browsed it, or was the NPC data corrupted sometime in the distant past?
Could I see the game? 



I just noticed something: NPC definitions are stored on the stack, and since
'st' is the first defined local, they are in fact at the very top of the
mapmaker stack frame (recall that the stack grows downwards). Also, Dark
Blubber reported "Sometimes when I do a lot of tilemap work and then push Enter
to show the full tileset and pick a new tile, one random tile from the tileset
is duplicated in the wrong place.". Sure enough, when I checked the source as
it was at the time this was reported, the tile picker tile map was also
allocated on the stack, immediately after the npc definitions and npc instances
(which totalled about 18000 bytes). So I'd guess that NPC instance data is also
being corrupted, but nobody has noticed yet because most fields of NPCInst are
not saved, or silently corrected in Game, and are not visible unless the NPC
exists anyway.

-- 
Configure bugmail: 
http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to