Bug: "Selection to Area" saving on big maps

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
kurt751
Posts: 256
Joined: June 4th, 2016, 11:17 pm

Bug: "Selection to Area" saving on big maps

Post by kurt751 »

Confirmed in 1.16 and 1.18: I have a big map (200x200), and am trying to divide it in 3 time areas.
After selecting those areas and clicking on "save to (respective) area", I check them by toggling through those areas to see if the editor got it all right.
Everything looks peachy, so I save the scenario, quit the game, restart it, reload the editor and the saved scenario file.

Surprise, while the 3rd area is still correct, the first two have changed to "everything selected"... :shock:
Tried this several times, on Linux (1.16) and on Windows (1.18), each time with the same result, the first two areas always turn to "all selected", just the third is correct.

Since this doesn't happen in smaller maps, I guess it might have something to do with the sheer size of the map (200x200 as I said) and the areas (about one third of the map each). Some variable choking during save?


Here is what the faulty scenario file's time areas look like after being saved:

Code: Select all

		[time_area]
			current_time=0
			id="Outside"
			x="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201"
			y="0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201"
		[/time_area]
		[time_area]
			current_time=0
			id="LavaArea"
			x="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201"
			y="0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201,0-201"
		[/time_area]
		[time_area]
			current_time=0
			id="EvilDungeon"
			x="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,198,199,200,201"
			y="86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-201,87-201,86-95,97-201,87-201,86-201,87-201"
		[/time_area]
The last area selection is as saved (easiest one too, pretty much a rectangular block of the last third of the map), the first two are nonsense. :(
For the record, it also happens if I just try to save the first area, the other two being empty. Unlike the third, the first and second areas are pretty complicated, following terrain and all. The third area is just a big edge-to-edge rectangle, which is probably why the editor manages to save it all right.

---- Edited to add:

Amount of area data issue confirmed. Instead of 3 areas, I divided the map in 4 areas, each one a little smaller, and lo and behold, this time the editor saves those areas all right.
(If somebody looks into this, could you please, pretty pretty please, also remove the compulsory scroll each time you toggle an area? The intention is good, of those hell is paved with, because inevitably scrolling at 4 pixels/minute each time and not wanting to stop it till scrolling is done is a major pain in the neck, and serves no purpose except preventing you from comparing transitions (is this hex here or there?)... :mrgreen:)
User avatar
bssarkar
Developer
Posts: 129
Joined: April 2nd, 2020, 9:34 am
Location: India
Contact:

Re: Bug: "Selection to Area" saving on big maps

Post by bssarkar »

Reported in Github: https://github.com/wesnoth/wesnoth/issues/11362 for better tracking.
kurt751
Posts: 256
Joined: June 4th, 2016, 11:17 pm

Re: Bug: "Selection to Area" saving on big maps

Post by kurt751 »

Thanks!
Post Reply