collapse

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Modding Maps  (Read 462 times)

Offline comedianww

  • Fledgling
  • *
  • Posts: 5
  • Reputation: +0/-0
Modding Maps
« on: June 15, 2020, 06:07:31 pm »
Sorry if there is already a post for this. I'm looking to see if it's possible to swap out some of the duplicate NPCs walking around the city hub maps. For example, I'd like to replace some of the male and female bums with other models (perhaps a female gangrel reskin or something). However, when I try to just change the .mdl that is referenced in the .bsp files, the game crashes when that map is loaded. Does anyone have any tips?

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1790
  • Reputation: +392/-13
Re: Modding Maps
« Reply #1 on: June 16, 2020, 02:56:02 pm »
To make this kind of map editing you need tools, just editing the map file doesn't work.
You can either use VPKtools to directly edit a single map or you can use VTMBedit. That allows to extract the entity lists for all maps. Then you can do the changes in a texteditor and then reimport them.
So VPK is better if you only want to edit a few maps, VTMBE if you have more maps you want to change.
Both programs are included in the SDK, so you can get them by installing the patch extras. Or I believe both are separately downloadable here in the files section.
Just remember to start a new game after editing any map and don't worry about the AI disabled message you get on the first load of an edited map. That is because the game has to recalculate the nodegraphs.
Co Author of Camarilla Edition Mod

Offline comedianww

  • Fledgling
  • *
  • Posts: 5
  • Reputation: +0/-0
Re: Modding Maps
« Reply #2 on: June 19, 2020, 02:52:29 pm »
Thank you so much for the thorough feedback. This sounds like a large endeavor. Maybe I'll start small, like get rid of duplicate NPCs in Vesuvius. Again, I truly appreciate the help!

Offline comedianww

  • Fledgling
  • *
  • Posts: 5
  • Reputation: +0/-0
Re: Modding Maps
« Reply #3 on: June 20, 2020, 09:11:40 am »
It's not working for me for some reason. I open the BSP using the Map Tools from VPKTool, swap out a .mdl for a different one, Write New Data, and then nothing changes in game. If I reopen the BSP, it has saved my changes, and if I use BSP Decompiler and then open it up in Hammer Editor, it DOES show my changes to the .mdl (meaning I can see the model I chose instead of the one originally there).  It's odd I can see the different model there, but not in game when I open it up.

It's frustrating, because I feel like if I figure this out, I can easily swap out a bunch of characters on different maps so that no duplicates appear. Right now, I'm testing it out by trying to change the receptionist in Vesuvius.

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6768
  • Reputation: +888/-28
  • Unofficial Patcher
Re: Modding Maps
« Reply #4 on: June 20, 2020, 09:53:30 am »
Maybe you are not changing the maps in the patch folder, but the original game folder? Make sure the path in VPKTool is correct!

Offline comedianww

  • Fledgling
  • *
  • Posts: 5
  • Reputation: +0/-0
Re: Modding Maps
« Reply #5 on: June 20, 2020, 05:08:29 pm »
It seems that I'm saving them to the correct place, because when I go to open the BSP file again on the Map Tools I can see my edits. Is it possible that changes won't take place when loading from a saved game?

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1790
  • Reputation: +392/-13
Re: Modding Maps
« Reply #6 on: June 21, 2020, 07:59:22 am »
I told you in my first post here: You have to start a new game after editing maps. So, yes that's probably the reason. Try using the console command map mapname to get your character directly on the edited map for testing.
Co Author of Camarilla Edition Mod

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6768
  • Reputation: +888/-28
  • Unofficial Patcher
Re: Modding Maps
« Reply #7 on: June 21, 2020, 11:19:05 am »
You don't need to start a new game, but you must load the map new from the console as Malkav wrote. Old saves don't work! I always console jump between a small map and the map I edit back and forth...

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal