Auto-mapping--is this a bug?
dwn
05 Feb 2013, 00:42Maybe 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.
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:56Yes 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:05Here'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:47I 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:29Alex
06 Feb 2013, 15:21OK 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.
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:26Alex 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.