Page 1 of 1

[Fixed for V0.46] Crash when item without a bitmap picked up

Posted: Thu Apr 19, 2007 8:05 pm
by Tonari
This has the possibility that is not the bug. In that case, please hear it as a proposal.
When the item where the player doesn't have graphic is picked up, the game causes the crash.

Code: Select all

Error:
  an access violation exception.

Stack Dump:
  RTC.PickUpStdObject(char 19, char 14, char 2, char 3);
  RTC.MouseLButtonDownInDungeon();
  RTC.OnLMouseButtonDownEx(int 123, int 357);
  RTC.OnLMouseButtonDown(int 123, int 357);
  RTC.WinMain();
I use a transparent item as some mechanics.
It disappears after the fixed time because the item is used to manage other items and mechanics' lifetime.
However, a transparent item might come in succession on another item visible by chance.
For that case, it crashes when the item is picked up.
I think that it is the best to make a transparent item cannot picked up.
Besides, it doesn't care even so if there is a good method of settlement.

Posted: Thu Apr 19, 2007 9:42 pm
by George Gilbert
Hmmm - what exactly do you mean by "transparent"?

The engine doesn't care at all what the graphics for an object are whether they be in glorious technicolour or all pink (transparent) and so I can't see how this would cause a crash...

...however, instead, do you mean that the object has *no* graphics (i.e. you havn't specified a bitmap for the object)?

Posted: Thu Apr 19, 2007 11:32 pm
by Tonari
..however, instead, do you mean that the object has *no* graphics (i.e. you havn't specified a bitmap for the object)?
YES. Graphic are all NULL.
When the action is impossible, it thinks pink is used.
However, the party will grip the item of the mystery in that case.
The bug at the mechanic level occurs if the party carries the item to another place.
Therefore, it is the best for me to not enable grip to items of all graphic NULL.

Posted: Fri Apr 20, 2007 7:12 pm
by George Gilbert
Fixed for V0.46