Page 2 of 2

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 1:23 am
by Brent Easton
DONT DO THAT. What a nightmare to maintain and asking for performance issues.

There are several options before doing that:
1. Break the Map into Boards.
2. Don't use a Zoned grid, just create the hex grid directly under the main map board.
3. Create the Zone by entering the co-ordinates directly instead of dragging a rectangle 0,0 15713,0 15713,10300 0,10300

The fact that the Zone Editor is crashing has no impact on how the module will run, as long as the Map tiles, you should be ok.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 1:47 am
by Cundiff
Unfortunately the hex map is only part of the full map panel. There are several zones for things like Time Record Track, Holding Spaces for Units Building (x3), Units Dead (x3), etc. The actual Hex Grid is also irregular. It's not a rectangle or square. There's also a ring of hexes sort of like Perimeter Zones in an Area Movement Game, that are NOT the same size as the regular hex map hexes, and they are Not directly attached to the regular hex grid, and each hex in the perimeter is individual in size and location. It's a real nightmare map. Looks deceptively simple ... until.

The other fun part of this is that this is a playtest map, subject to change and there WILL be changes. The vast majority of my builds are for playtest purposes. The professional Guru's build the final product in most cases. I get the fun of beating my head against a wall first.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 1:56 am
by Brent Easton
If you want to get somewhere quickly, I would strongly suggest cutting the map into 4 pieces. That should resolve the memory issue. It's a bit more one-off setup work for you, but the users see no difference.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 2:14 am
by Cundiff
How would I make a single reporting hex grid that covers all 4 maps?

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 2:25 am
by Brent Easton
You're not making 4 maps, you're making 4 boards that fit together to make 1 map.

In your [Map Window] component, you have [Map Boards]. You create your 4 separate boards under there and give each it's own independent zones, hex grid and grid numbering.

If you the double click on the [map boards] component, there is a 'Select Default Board Setup' button that allows you specify how the 4 boards fit together to make the map. This will be used automatically when you start a new game.

From then on, you can generally ignore the fact that your Map is made up of 4 Boards

Each board reports it's portion of the grid independently. The trick is you have to tweak the grid numbering on each board to report the correct co-ords.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 2:34 am
by Cundiff
you can generally ignore the fact that your Map is made up of 4 Boards

Under what conditions does, generally, not apply?

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 2:58 am
by Brent Easton
I use multiple boards all the time and have no problems at all. But I can imagine if you have Zones with the same name on more than one board and try and use Send To Location to the Zone name, you will run into problems. Stuff like that.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 3:07 am
by Cundiff
Well, I'll try. It's late here, so it will have to be tomorrow. I can see I'm going to have big problems with a reporting hex grid when half a hex is on one board and the other on the next board. And I don't understand how a counter can snap to the center of a hex that is split. This will all be foreign to me. Like I said, I've never built a multi-board module. I see only ongoing headaches ahead of me.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 5th, 2020, 3:11 am
by Brent Easton
As I said in an earlier post, don't split the maps through hex centers. There is no need to and no need for the 4 pieces to be the same size. Run the splits halfway between the hex centers and the hex edges and every hex will always be one map or the other with neat snapping. I've been through it all before.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 9th, 2020, 9:34 am
by Cundiff
I've tried this week to make your ideas work. Couldn't do it. Since the design is for a playtest mod, I'm just going to leave the map without a grid.

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 9th, 2020, 10:15 am
by jrwatts
Did you consider simply reducing the image resolution on the map?

Re: Error Exceeding Heap Size .... But ....

PostPosted: August 9th, 2020, 11:53 pm
by Cundiff
I thought about it, but then I'd have to resize the counters to meet the map. That's just extra work. For a playtest module it just isn't necessary to have a reporting grid.