Author Topic: Change layout in existing map  (Read 8661 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
Change layout in existing map
« 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)

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Change layout in existing map
« Reply #1 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.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Change layout in existing map
« Reply #2 on: October 30, 2011, 10:00:04 pm »
You can update the entities section in the compiled bsp 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 to be safe (first link—it will extract the entities section for you to more safely modify and update the bsp for you).
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Change layout in existing map
« Reply #3 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  :'(

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Change layout in existing map
« Reply #4 on: November 01, 2011, 02:03:53 am »
Works for me. What did you try updating the entities section to?
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Change layout in existing map
« Reply #5 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?

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Change layout in existing map
« Reply #6 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Change layout in existing map
« Reply #7 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
Original exported entities: original
My new entities: changed

I have newly installed 64bit Perl on windows 7.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Change layout in existing map
« Reply #8 on: November 02, 2011, 04:13:18 am »
http://betaserv.tk/hacks/updateentities was updated and should work properly on Windows now
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Re: Change layout in existing map
« Reply #9 on: November 02, 2011, 10:35:22 pm »
Thanx, now it is ok.