View Full Version : replacing embed texture in .bsp
ghzero
03-24-2009, 12:13 PM
hello,
any tool to replace an embed texture in .bsp-mapfile ?!
reason: in germany the nazi-flag is not allowed, but some maps with embed nazi-flags are cute mapped - so I want to remove the not allowed signs from map to make it possible to play the map (without law conflicts).
noddy
03-24-2009, 12:46 PM
take a look at bspedit I'm sure someone posted a link on this site somewhere.
diamond-optic
03-24-2009, 01:42 PM
take a look at bspedit I'm sure someone posted a link on this site somewhere.
thats for editing entities in a bsp, not textures...
not sure if theres a way to do this or not, tho there probably is
ghzero
03-24-2009, 02:19 PM
take a look at bspedit I'm sure someone posted a link on this site somewhere.
google found bspedit v1.70 for me and I tried.
it is an good program to edit the entities of an map - nice for editing entities that will be larger than original so you can not use an hex-editor for modifications like this - instead you can easy use the bspedit coz it will paste the entites with update of offsets to bsp. that is an good solution! but do not forget the filesize of .bsp will change too and I very recomed to change the filename by do changes that the filesize changes.
note that if you only change real entities without changing the size of .bsp you can still use the same .bsp on client(player-computer) if you put the .bsp with the changes .bsp only on the server - because the server will control and ,,shooting,, the entities to the clients.
another program that I often use to check maps and find out new origins for spawns is bspviewer. bspviewer can export the bitmaps of the embed textures - but only export...
an possible nooby-solution can be to made an bitmap-wise replace of unwanted textures in .bsp by byte-search and replace with hex-editor but that's only the last and worst solution...
noddy
03-24-2009, 02:25 PM
If you can't change the texture, you might be able to cover the flag with something using bspedit, like a banner.
Do you have the name of a map that you need changing ?
diamond-optic
03-24-2009, 02:29 PM
note that if you only change real entities without changing the size of .bsp you can still use the same .bsp on client(player-computer) if you put the .bsp with the changes .bsp only on the server - because the server will control and ,,shooting,, the entities to the clients.
the file size can be different and it will still work...
the only problem is some entities are loaded client side and if the client doesnt have the modified bsp they wont have the changes (like particle entities, or weather, or removing/changing models from the map)
like the original dod_avalanche is 3.59mb
the one i run on my server is 3.61mb, and it works fine with clients that have the original
dodsynthetic
03-24-2009, 08:05 PM
I can suggest two options. First, try the bsp decompiler I put up under the tools section then make your changes in VHE. If the map is extensive, you may have to rebuild some parts of it as the program is not perfect but is usable. The second option would more trouble than it's worth and is basically manually editing the file with a hex editor. As much as I love hexing, I personally wouldn't take this route. The time involved learning the BSP structure and the possibility of having to make some custom tools to make the necessary changes (compression, etc.) would be time consuming.
ghzero
03-24-2009, 08:19 PM
allright the rules by your feedback shall be:
-if changes are not entity-models/sprites based the filesize of .bsp can differ from client to server.
?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.