Author Topic: Bug report: SAY #-1  (Read 784 times)

Offline Baronius

  • Planewalker
  • *****
  • Posts: 112
  • Gender: Male
    • The Black Wyrm modding & gaming community
Bug report: SAY #-1
« on: August 25, 2006, 05:23:30 PM »
Hi all,

I haven't searched too much for previous threads, is it known that SAY <offset> #-1 doesn't work properly? It adds incorrect values to files.
It seems as if WeiDU interpreted -1 in 31 bit* (11111......11 -- 31 times), then adds the strRef to the file as a 32-bit int. It obviously ends in incorrect value (as in 32 bit, the original value  becomes 011111.....11). No probs, BNOT 0x0 is perfect for setting "blank" strRefs, but I thought I would mention this bug.

*Funny coincidence that the example text for BNOT in the WeiDU readme also shows a 31-bit int instead of 32.
« Last Edit: August 25, 2006, 05:26:02 PM by Baronius »
The Black Wyrm modding & gaming community: www.blackwyrmlair.net

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Bug report: SAY #-1
« Reply #1 on: August 25, 2006, 05:47:02 PM »
Standard integers in Ocaml are 31 byte (ho ho ho). Probably something somewhere in the code is still using int rather than int32.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: