Author Topic: New worldmap and wordmap editor  (Read 5089 times)

New worldmap and wordmap editor
« on: April 13, 2015, 10:20:59 am »
Hi there,

Sorry if the question was already asked ( i have searched on forum before ) is there a way to change worldmap image with the worldmap tool
on 2238 sdk?

Thanks

 
« Last Edit: April 13, 2015, 05:37:39 pm by doon »

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: New worldmap and wordmap editor
« Reply #1 on: April 13, 2015, 06:04:02 pm »
Yes, change graphics\worldmap.png into your own png to change it in the editor. Note that the scale should be the same.

If you mean the actual game. This is done via client ini files and WM files. Look at art\intrface\faction*.ini files extracted from the client data files.

Code: [Select]
GmapTilesPic=wmbig\wrldmp%02d.png
GmapTilesX=5
GmapTilesY=6
GmapReliefMask=wmbig.msk
Is where you define how many parts the WM should consist of, and the relief file which needs to be created for terrain calculations to work.

https://github.com/rotators/fo2238/blob/master/Server/maps/wm.png is the mask file used by fo2238 and it's placed in maps dir so it can be used by the server.

Code: [Select]
art\intrface\wmbig contains the graphical tiles themselves.

I'm sure I've forgotten some things.
« Last Edit: April 13, 2015, 06:11:55 pm by Ghosthack »

Re: New worldmap and wordmap editor
« Reply #2 on: April 13, 2015, 08:47:36 pm »
Thanks it work !!!! :)

Re: New worldmap and wordmap editor
« Reply #3 on: April 14, 2015, 09:13:10 am »
Is there a way to delete all the location on worldmap (worldmap tool) without getting a bunch of error when starting the server? ( it keep trying to load old maps)

I have a script error and a fail to start server.




Aw , i guess i have to delete all scripts related to each location/map one by one?



« Last Edit: April 14, 2015, 12:49:05 pm by doon »

JovankaB

  • Guest
Re: New worldmap and wordmap editor
« Reply #4 on: April 14, 2015, 07:45:17 pm »
Try to remove train and caravan routes. I never did it but I think it should be possible in the world editor.

It's possible that there will be other errors if some scripts rely on existence of a particular location.
You would have to identify those scripts (by reading the log) and disable them.
« Last Edit: April 14, 2015, 07:50:10 pm by JovankaB »

Re: New worldmap and wordmap editor
« Reply #5 on: April 14, 2015, 10:30:16 pm »


I have a scriptlist in worldmap editor, is there a comand to disable  them?

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: New worldmap and wordmap editor
« Reply #6 on: April 14, 2015, 10:55:19 pm »
I have a scriptlist in worldmap editor, is there a comand to disable  them?

Unfortunately not, you have to edit https://github.com/rotators/fo2238/blob/master/Server/scripts/scripts.cfg and remove all the '@' on scripts you want to disable.

Re: New worldmap and wordmap editor
« Reply #7 on: April 15, 2015, 08:20:09 am »
I deleted cathedral location on worldmap editor , in script.cfg cathedral guard script and all cathedral stuff related in script folder but it keep some
error, this is strange, how the server can bind a module that i deleted?




EDIT: Everytime i try to disable a script, another error spawn... i think i dont use the good way.
I was hoping of another method (safe and without a bunch of error ) to delete locations on worldmap.
« Last Edit: April 15, 2015, 04:41:09 pm by doon »

Re: New worldmap and wordmap editor
« Reply #8 on: April 16, 2015, 01:29:12 pm »
For now i have set location on 'not visible'

Another problem: I have created a new map and location.









But when i run server:





What did i missed? Pid of the map is not used by another and when i use another map ( of 2238 ) for this location, it work :(

EDIT : now it work but in game i cant see the location, its already on visible.
« Last Edit: April 16, 2015, 02:04:56 pm by doon »

Offline wladimiiir

  • Rotator
  • Independent FOnline developer
Re: New worldmap and wordmap editor
« Reply #9 on: April 16, 2015, 03:29:52 pm »
Did you add your location to GenerateWorld.cfg?
Code: [Select]
#
# World generate
#

@  1   154  359 # Vault 112
@  3   327  163 # Junkyard

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: New worldmap and wordmap editor
« Reply #10 on: April 16, 2015, 07:52:31 pm »
WE should add the entry for you.
Did you remove your save? GenerateWorld.cfg is only executed once on world creation.

Re: New worldmap and wordmap editor
« Reply #11 on: April 17, 2015, 12:17:40 am »
It work now, i just changed the entire number for entrance spawn in mapper. I don't know what is it?
For the location it was just a problem about my worldmap size , location was out of the worldmap.... sorry and thanks for help !
« Last Edit: April 17, 2015, 12:19:51 am by doon »