Page 1 of 1

[Fixed for V0.38] Crash clicking on triggers as ghost

Posted: Fri Apr 14, 2006 1:51 am
by KlausM
There's an Access violation exception when clicking a fountain without any character in party.

Do following to reproduce:

Editor:
- make a new dungeon and set the level bigger.
- place the Testcharacter into a mirror so that you begin without character.
- build a fountain
- build a WALLITEM_ACTION with Action ACTION_BOOST_CHARACTER_BYOBJECT and Object 1 is for example FLASK_POTION_VI. (Object 2 is NULL)
- make the fountain be a trigger, operated by Mouse, that is activating the WALLITEM_ACTION.


Ingame:
- Click on the fountain, but without any character.

I think it should only be possible to use mirrors if you have no character.

Re: Access violation exception when click on fountain...

Posted: Fri Apr 14, 2006 4:46 am
by Sophia
KlausM wrote:I think it should only be possible to use mirrors if you have no character.
Ideally, yes.

In practice, there are all kinds of things that you can do before you've picked a character that you probably shouldn't-- play with torch sconces, too.

You're best off doing what DM did: block off most of the dungeon to players without a champion.

Posted: Fri Apr 14, 2006 9:31 am
by beowuuf
I'm doing an Inn HoC, so yes, i'd like some ghost protection on certain items, but also I don't want to cmpletely make the ghost a dead innecffective charatcer - I want it to activate items if they are clicked clicked and activate floor pads too, becuase sometimes you want the 'ghost' from a playing point of view to actually be someone, not just a mechanic to be able the select champions.
Perhaps disable the non-champion mouse pointer from selecting things as suggested, but have a new 'opby_ghost' for wall items (and have obby_all still work for ghost)

Posted: Fri Apr 21, 2006 11:25 am
by George Gilbert
The crash is actually being caused by another problem which I've now fixed for V0.38.

The general point though that beowuuf makes (ghosts activating things should be allowed) I agree with though so I havn't blocked it even though some combinations won't make sense (for example, picking up objects or creating new ones in the partys hands). Which brings this neatly round to Sophias general point (be very careful with putting anything in the dungeon that the ghost can reach).