Tremulous Forum

Media => Mapping Center => Topic started by: rotacak on October 30, 2011, 09:30:45 pm

Title: Change layout in existing map
Post by: rotacak on October 30, 2011, 09:30:45 pm
Hi,

it is possible to change default layout in some map without .map file? If yes, how? (without decompiling)
Title: Re: Change layout in existing map
Post by: /dev/humancontroller on October 30, 2011, 09:51:30 pm
either edit the spawn string in the .bsp file by hand (you may have to preserve the length), or save a layout and use g_layoutAuto 1.
Title: Re: Change layout in existing map
Post by: Undeference on October 30, 2011, 10:00:04 pm
You can update the entities section in the compiled bsp (http://betaserv.tk/hacks/updateentities) with the changes you want, but that is really inconvenient to do by hand, so use the script that was used to insert location entities in the stock maps (http://tremulous.net/forum/index.php?topic=15365.msg219582#msg219582) to be safe (first link—it will extract the entities section for you to more safely modify and update the bsp for you).
Title: Re: Change layout in existing map
Post by: rotacak on October 31, 2011, 11:36:02 pm
Undeference: I tried your program, but I can't make it work. If I will export entities from ATCS and import them back without changes, bsp have different size than original and server will crash on map change  :'(
Title: Re: Change layout in existing map
Post by: Undeference on November 01, 2011, 02:03:53 am
Works for me. What did you try updating the entities section to?
Title: Re: Change layout in existing map
Post by: rotacak on November 01, 2011, 08:44:05 am
I want to add buildings.

When you export and import original layout, bsp size is same or different than original?
Title: Re: Change layout in existing map
Post by: Undeference on November 01, 2011, 11:02:37 am
The bsp may very well have a different size, but that doesn't matter. What does matter I don't know since you haven't told me anything useful. Post the new entities section and/or attach the bsp and maybe I can tell you what went wrong.
Title: Re: Change layout in existing map
Post by: rotacak on November 01, 2011, 06:49:24 pm
Original 1.1 ATCS map with exported and imported entities (not changed anything, it will crash server): pk3 (http://rotaxmame.cz/soubory/ruzne/bb.pk3)
Original exported entities: original (http://rotaxmame.cz/soubory/ruzne/layoutorg)
My new entities: changed (http://rotaxmame.cz/soubory/ruzne/layoutnew)

I have newly installed 64bit Perl on windows 7.
Title: Re: Change layout in existing map
Post by: Undeference on November 02, 2011, 04:13:18 am
http://betaserv.tk/hacks/updateentities was updated and should work properly on Windows now
Title: Re: Change layout in existing map
Post by: rotacak on November 02, 2011, 10:35:22 pm
Thanx, now it is ok.