Page 1 of 1

Editor issues 4.1.4

Posted: Sun Aug 20, 2017 10:43 am
by Erik2
Map cropping

I have a 64x86 map and want to remove the bottom 36 hexes.
As far as I know the command #crop 64 50 0 -36 should work, but the game just hangs and I have to restart it.

If I use #crop 64 86 0 -36, the bottom map is cropped correctly (but 50 hexes are added to the top of the map).

So either I'm doing something wrong or a small bug cropped up :roll:

Re: Editor issues 4.1.4

Posted: Sun Aug 20, 2017 11:15 am
by bebro
I haven't tried this yet - but maybe try to crop in two steps removing less hexes in each? Maybe it gets confused when it has to remove big chunks in one go...other than that if it turns out to be a serious issue I'm afraid the more tech-savy guys have to help you on that...

Re: Editor issues 4.1.4

Posted: Fri Sep 15, 2017 2:04 pm
by bebro
FWIW I had a simlar prob recently trying to crop a larger map. It did work in 2 steps then (each removing ca. 10 hexes in one direction only).

So this may serve as workaround for now...

Re: Editor issues 4.1.4

Posted: Fri Sep 15, 2017 3:29 pm
by terminator
It looks like it is impossible to add one or several columns to the left and all the locations have disappeared.

Re: Editor issues 4.1.4

Posted: Fri Sep 15, 2017 4:04 pm
by bebro
After you cropped go to the _crop folder (in your my games/scenario folder of OOB WWII).

In there you'll find the text_english.txt file for the map you cropped most recently. Copy this into the folder of the newly saved (cropped) map - it should have the names. Works fine for me.

Be aware that this txt gets overwritten if you crop again and again. So crop once, copy the txt over. Only then crop again (or another scn) if needed and copy the new txt again.

In general, keep a backup of the original scn before cropping.



Haven't checked yet to add one column, but never had a problem with adding more - might be a problem of finding the right offset.

Re: Editor issues 4.1.4

Posted: Fri Sep 15, 2017 4:46 pm
by terminator
Here is an example :
The base map :
map0.jpg
map0.jpg (153.67 KiB) Viewed 2651 times
We want to add a column to the right :
map1.jpg
map1.jpg (105.2 KiB) Viewed 2651 times
:arrow: We want to add a column to the left (doesn't work :!: ) :
map2.jpg
map2.jpg (174.47 KiB) Viewed 2651 times

Re: Editor issues 4.1.4

Posted: Fri Sep 15, 2017 4:47 pm
by terminator
We want to add a line at the top :
map3.jpg
map3.jpg (176.69 KiB) Viewed 2651 times
We want to add a line below :
map4.jpg
map4.jpg (177.16 KiB) Viewed 2651 times

Re: Editor issues 4.1.4

Posted: Sat Sep 16, 2017 7:03 am
by terminator
bebro wrote:In there you'll find the text_english.txt file for the map you cropped most recently. Copy this into the folder of the newly saved (cropped) map - it should have the names. Works fine for me.
Hi bebro,
I was a little bit sceptical on this matter. It seemed too simple and I have some basic notions in programming (the computing is one of my passions).
Each HexName have an indexation.

In my scenario Petsamo 1939, the town Svanvik has the indexation hex_35 :
HexNames.JPG
HexNames.JPG (25.99 KiB) Viewed 2639 times
On the map, it looks like this :
HexName(1).jpg
HexName(1).jpg (136.86 KiB) Viewed 2639 times
If you add a column to the right, it works fine.

But if you add a lign to the top or below , it changes the indexation of the map.
In this example, I add a lign below, it doesn't work, The name of the city is moved below :
HexName(2).jpg
HexName(2).jpg (160.41 KiB) Viewed 2639 times

Re: Editor issues 4.1.4

Posted: Sat Sep 16, 2017 7:51 am
by terminator
How works the indexation ? (Maybe that it interests anybody?)

The indexation is made in the bottom at the top(1) and from left to right(2) from the hex at the very bottom and to the left :
Indexation.jpg
Indexation.jpg (89 KiB) Viewed 2632 times

Re: Editor issues 4.1.4

Posted: Sun Sep 17, 2017 2:04 pm
by bebro
terminator wrote:
bebro wrote:In there you'll find the text_english.txt file for the map you cropped most recently. Copy this into the folder of the newly saved (cropped) map - it should have the names. Works fine for me.
Hi bebro,
I was a little bit sceptical on this matter. It seemed too simple and I have some basic notions in programming (the computing is one of my passions)
Then you kow more about programming than me :)

I can help you with design/editor-usage matters, but coding/tech related stuff Ad can answer much better :)