Jump to content


Photo

GAME V2.0 Game variables: script name value overlapping offset


3 replies to this topic

#1 lynx

lynx
  • Modders
  • 3031 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 22 October 2016 - 10:29 AM

https://gibberlings3...ts/gam_v2.0.htm

0x002c     8 (double)     Double value
0x0030     32 (char array)     Script name value

2c + 8 = 34 != 30.

 

I know the different types there are a bit iffy, but either the size for double should be halved or the offset increased to match.

 


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#2 argent77

argent77
  • Modders
  • 733 posts
  • Gender:Male

Posted 22 October 2016 - 11:15 AM

"Script name value" starts at offset 0x34. (Adding the total size in bytes to each structure definition in IESDP would probably help a lot.)
 



#3 lynx

lynx
  • Modders
  • 3031 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 22 October 2016 - 12:40 PM

Cool, thanks. I was thinking of computing them from their sizes, but since the formats likely won't change anymore, I'm not sure it's worth the effort.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#4 Calhavintas

Calhavintas

    Chaotic Good Mage

  • Members
  • 19 posts
  • Gender:Male
  • Location:Northern Germany

Posted 11 August 2017 - 02:06 AM

Fixed and created a pull request





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users