-Resolved- How do I place my background map in the editor?

User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: How do I place my background map in the editor?

Post by BenganJ » October 25th, 2020, 1:40 pm

@bartofer

Thank you!

EDIT: I have now your background loaded into the Editor together with the map data
you have created in v2.0 of Bartoland map mod. Your problem is that you use capital
letter B in some places, but not all, it is essential. As you use Bartoland.mbd and start
the editor by -edit Bartoland, it is needed in /def/editor_data.sii that you also use
bcg_map_name: "/map/Bartoland.mbd" there. You don't need to change anything with
bcg_material: "/material/editor/bartoland.mat" if that's the name you use. Good Luck
now and if it still doesn't work I have a Map Editor Background mod ready for you here.
A very good rule is to ONLY use lowercase letters in EVERY file name references in the
game, but now you already have the capital ones here and there.
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: How do I place my background map in the editor?

Post by BenganJ » October 25th, 2020, 2:06 pm

@bartofer

BTW, if the sizes you specified was 200km and that is correct, then you should
change both size specifications in editor_data.sii to 200000 NOT 210000 for the
BG to be in 1:1 scale!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
bartofer
Modder
Posts: 147
Joined: September 19th, 2020, 4:01 pm
Location: Vendée - France
Contact:

Re: How do I place my background map in the editor?

Post by bartofer » October 26th, 2020, 4:36 pm

I filled in with a capital letter, but that doesn't change anything ...
bcg_map_name: "/map/Bartoland.mbd"
bcg_material: "/material/editor/bartoland.mat"
bcg_size_x: 200000
bcg_size_y: 200000
bcg_offset_x: 18000
bcg_offset_y: -3000
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: How do I place my background map in the editor?

Post by BenganJ » October 26th, 2020, 4:42 pm

@bartofer

Earlier the parameters below was like this and those values are what I used.

Code: Select all

	bcg_map_name[]: "/map/Bartoland.mbd"
	bcg_material[]: "/material/editor/bartoland.mat"
	bcg_size_x[]: 200000
	bcg_size_y[]: 200000
	bcg_offset_x[]: 0
	bcg_offset_y[]: 0
Your values will shift the BG. Is that why you can't see it?
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
bartofer
Modder
Posts: 147
Joined: September 19th, 2020, 4:01 pm
Location: Vendée - France
Contact:

Re: How do I place my background map in the editor?

Post by bartofer » October 26th, 2020, 5:29 pm

it does not change anything..
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: How do I place my background map in the editor?

Post by BenganJ » October 26th, 2020, 5:34 pm

Well, I had NO problems with those values and with the naming of files
you have in v2.0 of the map! Check all file references so that they do
correspond regarding spelling with/without capital B. And always try
to hit A a couple of times when getting into the Editor, but you know
that already!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
bartofer
Modder
Posts: 147
Joined: September 19th, 2020, 4:01 pm
Location: Vendée - France
Contact:

Re: How do I place my background map in the editor?

Post by bartofer » October 26th, 2020, 5:50 pm

I just changed all my Bartoland to bartoland (lowercase),
deleted the files in base_map and saved with lowercase,
compilation, and .... nothing .....
User avatar
bartofer
Modder
Posts: 147
Joined: September 19th, 2020, 4:01 pm
Location: Vendée - France
Contact:

Re: How do I place my background map in the editor?

Post by bartofer » October 26th, 2020, 6:03 pm

Oh. I found the problem ... a link in my .mat file was not good ...
I now have my map in the background, but not in the right place ...
more than a calibration to do .. ..
Thank you
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: How do I place my background map in the editor?

Post by BenganJ » October 26th, 2020, 6:04 pm

@bartofer

Ah, good to know. Maybe the other OFFSET values are more correct now then!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
Post Reply