Auto-mapping--is this a bug?

dwn
05 Feb 2013, 00:42
Maybe someone can help here...

Theere's an error message I keep getting during test play, I suspect it has something to do with auto-mapping because it goes away when auto-maps not enabled, but it is unclear how to fix it?

*** gameplay ***

You are in a Main Street.
You can go northwest, east, north or south.

> south

You are in an Edge of Town.
You can go north or in.

> in
Error running script: Error compiling expression 'room.grid_x - room.grid_parent_offset_x': ArithmeticElement: Operation 'Subtract' is not defined for types 'Object' and 'Double'

You are in a Horse Buggy.
You can see a bell.
You can go out.

Pertex
05 Feb 2013, 07:56
Yes this seems to be a problem with automapping. Could you append your game file here or post a link to your online game?

dwn
05 Feb 2013, 23:05
Here's a copy of the game file, as I said when auto-mapping's enabled it returns the error and messes up the map display. I think it's because the automap's trying to draw a room direction over another room with an in/out exit situation...

Alex
06 Feb 2013, 10:47
I can't open that file to reproduce the bug because it needs ConvLib.aslx - is that something that has been posted here at some point?

Pertex
06 Feb 2013, 13:29
Alex, you will find this lib in the wiki :lol:
http://quest5.net/wiki/Dynamic_Menus_for_Conversations

Alex
06 Feb 2013, 15:21
OK I have now reproduced and fixed this.

I have updated CoreGrid.aslx: http://quest.codeplex.com/SourceControl ... be4ea88678

It's not obvious where an "in" or "out" exit should be rendered on the map, so it will default to the same location. I recommend using an exit offset so the room will be drawn somewhere that's not directly on top of where the player came from.

dwn
07 Feb 2013, 02:26
Alex wrote:OK I have now reproduced and fixed this.

I have updated CoreGrid.aslx: http://quest.codeplex.com/SourceControl ... be4ea88678

It's not obvious where an "in" or "out" exit should be rendered on the map, so it will default to the same location. I recommend using an exit offset so the room will be drawn somewhere that's not directly on top of where the player came from.


Thanks, I'll watch that.