Create account / Log in

Error Exceeding Heap Size .... But ....

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

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

Postby Brent Easton » August 5th, 2020, 1:23 am

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.
User avatar
Brent Easton
 
Posts: 3206
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

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

Postby Cundiff » August 5th, 2020, 1:47 am

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.
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

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

Postby Brent Easton » August 5th, 2020, 1:56 am

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.
User avatar
Brent Easton
 
Posts: 3206
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

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

Postby Cundiff » August 5th, 2020, 2:14 am

How would I make a single reporting hex grid that covers all 4 maps?
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

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

Postby Brent Easton » August 5th, 2020, 2:25 am

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.
User avatar
Brent Easton
 
Posts: 3206
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

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

Postby Cundiff » August 5th, 2020, 2:34 am

you can generally ignore the fact that your Map is made up of 4 Boards

Under what conditions does, generally, not apply?
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

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

Postby Brent Easton » August 5th, 2020, 2:58 am

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.
User avatar
Brent Easton
 
Posts: 3206
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

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

Postby Cundiff » August 5th, 2020, 3:07 am

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.
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

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

Postby Brent Easton » August 5th, 2020, 3:11 am

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.
User avatar
Brent Easton
 
Posts: 3206
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

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

Postby Cundiff » August 9th, 2020, 9:34 am

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.
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

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

Postby jrwatts » August 9th, 2020, 10:15 am

Did you consider simply reducing the image resolution on the map?
jrwatts
 
Posts: 105
Joined: April 29th, 2020, 10:30 pm

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

Postby Cundiff » August 9th, 2020, 11:53 pm

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.
Cundiff
 
Posts: 171
Joined: January 3rd, 2017, 8:51 am

Previous

Return to Module Design

Who is online

Users browsing this forum: Google [Bot], mckain and 2 guests