OutOfBoundsException on zoomed out 40x50 map

Tech support for PC & Mac. Please post your OS and version number when reporting bugs.

Moderators: Slitherine Core, FoG PC Moderator, NewRoSoft

Post Reply
Ironwulf
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Wed Feb 23, 2011 11:13 am

OutOfBoundsException on zoomed out 40x50 map

Post by Ironwulf »

I recently designed a late republic ear scenario covering a battle from the roman civil wars. Its on a 40x50 map but it seems to crash when I try to play it.

I'm running into an error where if I zoom way out or scroll off the side of the map (with the view zoomed way out) that the game errors out during the Free Deployment phase. The screen will suddenly just show the map with no units in a maxxed zoom-out view. At that point the game is just frozen. This will happen too if I just scroll out to the max view.

Here is the error:

OutOfBoundsException
1.5.6 2011 05 19 win
{}
{0}
uiplayer.terrain.HexSideLayer.DrawPerimeter o uiplayer.terrain.HexSideLayer o uiplayer.gl.IGraphics A1o uiplayer.terrain.PerimeterHex
uiplayer.terrain.TiledMapBackground.Draw o uiplayer.terrain.TiledMapBackground o uiplayer.gl.IGraphics t uiplayer.GridRectangle
uiplayer.htk.TMapImp.Event Draw o uiplayer.htk.TMapImp o uiplayer.gl.IGraphics
uiplayer.htk.AbstractControl.DrawNow o uiplayer.htk.AbstractControl o uiplayer.gl.IGraphics
uiplayer.htk.AbstractControl.DrawNow o uiplayer.htk.AbstractControl o uiplayer.gl.IGraphics
uiplayer.htk.TWindowImp.RedrawNow o uiplayer.htk.TWindowImp o uiplayer.gl.IGraphics
uiplayer.htk.GraphicsArea.Paint o uiplayer.htk.GraphicsArea o uiplayer.gl.IGraphics
uiplayer.gl.DrawingArea.Event Render b o uiplayer.gl.DrawingArea
Delegate.IM Invoke
uiplayer.htk.RefreshThread.Event Run o uiplayer.htk.RefreshThread


I've never run into this before until I started testing a new scenario.

I had the map setup, forces in place, then realized that the sides were starting on the wrong sides of the map during Free Placement. Also units would rout in the wrong direction. I could have removed all the units and redone them assigning them to the other team, but I wanted to find an easier way to tell the game that I wanted Red to start on the north side, and blue on the south side.

So i went into the XML scenario file and found the bit that says: "side 1 starts on this side of the board and side 2 starts on this side of the board. Each side of a map has a number from 1-4. The top is 1, bottom is 3. Side 1 usually starts on side 3, or the bottom edge. But I wanted to flip that around.

hexsideterrains
map cols="40" rows="50" oddcolsstarthigher="1" oddcolsendlower="0" side1edge="3" side2edge="1" deployzonesize1="5" deployzonesize2="5" tileset="green"



I altered the values so that Side 1 would start on the north edge and 2 would start on the south during Free Deployment (and probably the rout phase as well).

Thats when I noticed the error during testing - it could be due to my edit of the XML or it may not have anything to do with it.

Anyone have any ideas? I'd hate to rebuild this large scenario from the ground up again but may have to. :?:
keithmartinsmith
Field of Glory Moderator
Field of Glory Moderator
Posts: 1557
Joined: Mon Mar 30, 2009 1:26 pm

Post by keithmartinsmith »

Can you email the scenario files to keith@hexwar.com and we can see if its an error in the file before we go bug hunting the code. Thanks Keith
Ironwulf
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Wed Feb 23, 2011 11:13 am

Post by Ironwulf »

keithmartinsmith wrote:Can you email the scenario files to keith@hexwar.com and we can see if its an error in the file before we go bug hunting the code. Thanks Keith
Whoops I deleted the bad one after I remade the map! Sorry bout that - I would have sent you a copy.

It does seem to work problem free now though.

(I'm updating the scenario too and will send it along when its done. Some minor things like bolt throwers are missing because I think those come in another expansion. )
Post Reply

Return to “Field of Glory : Tech Support”