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

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
Tonari
Craftsman
Posts: 146
Joined: Sun Jul 23, 2006 1:32 pm
Location: Japan

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

Post 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.
Please forgive poor English.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post 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)?
Tonari
Craftsman
Posts: 146
Joined: Sun Jul 23, 2006 1:32 pm
Location: Japan

Post 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.
Please forgive poor English.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Fixed for V0.46
Post Reply