Multiple BSP copy locations possible? Created 15 years ago2008-05-20 21:06:43 UTC by srry srry

Created 15 years ago2008-05-20 21:06:43 UTC by srry srry

Posted 15 years ago2008-05-20 21:06:43 UTC Post #250207
Well, I hate manually backing stuff up onto separate hard drives and such all the time, so the idea struck me: Is there any way Hammer or some other front end compiler could be set up to copy the BSP to more than one location after the compile is finished? It'd sure make things easier. In the Build Programs tab of the options menu in Hammer, there's obviously only one location that can be set up for this, but is there any sort of compile parameter I could use to do the same thing?
Posted 15 years ago2008-05-20 21:27:27 UTC Post #250208
Y'know, i'd love that too. I could backup and copy my maps to other mod directories (when I compile in official games but test them in mods of mine) at the same time.
Strider StriderTuned to a dead channel.
Posted 15 years ago2008-05-20 22:47:03 UTC Post #250209
What if you made a batch file that copied the BSP from your maps directory to some other folder, and then instead of having Hammer or whatever launch Half-Life's executable, you launched the batch file instead? Maybe you could even set the batch file up to launch Half-Life as well, so you could still play the map directly afterward.

I don't personally have any idea how to make or work with batch files, but I assume it can't be too hard.
Posted 15 years ago2008-05-20 22:58:05 UTC Post #250210
if u run a batch file you could tell it to copy the map more than once with a line like this i believe...

copy mapname.bsp "C:\Steam\SteamApps\EMAIL\counter-strike\cstrike\maps"
pause
copy mapname.bsp "f:\counter-strike\backups"
pause
"C:\Steam\Steam.exe" -applaunch 10 -dev +map mapname

im not sure if u need the first pause or not. this should allow u to copy to your normal maps directory, plus a backup directory, and then launch the game.
Posted 15 years ago2008-05-21 00:30:10 UTC Post #250211
I guess I must just suck at DOS stuff, but I simply cannot get any of my commands to work.

Edit:
Never mind, I got my batch to work... that code above is totally wrong though. Now just to see if it'll copy from one computer to another over my network.

Edit 2:
Got it all set up, and it works great. I can now copy the BSP wherever I need, as well as launch the game. Thanks for pointing me in the right direction, klobb
Posted 15 years ago2008-05-21 03:13:23 UTC Post #250212
Why not just add another command to your Hammer compile menu that copies your map to somewhere else? You can use full path-names there, you're not limited to those $path variables only.

A few days ago I hung two batch files under the Hammer compile menu, where the first STARTs the second, that does the real compile work. Since the first batch process returns almost immediately, Hammer doesn't stall during the compile. I'm still looking into automatically embedding files using Map Analyst or, if possible, Pakrat. That's where GUI programs generally fail to be usefull, in automated toolchains. :|
Posted 15 years ago2008-05-21 08:59:59 UTC Post #250213
Well, I hate manually backing stuff up onto separate hard drives and such all the time, so the idea struck me: Is there any way Hammer or some other front end compiler could be set up to copy the BSP to more than one location after the compile is finished? It'd sure make things easier. In the Build Programs tab of the options menu in Hammer, there's obviously only one location that can be set up for this, but is there any sort of compile parameter I could use to do the same thing?
I can easily add a feature like that into The Compilator. You can either backup the bsp file, or the rmf/vmf file, or both.

Should i add it in?
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-05-21 09:01:40 UTC Post #250214
why not? sounds like it could be useful.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-05-21 09:03:51 UTC Post #250215
Yep, I agree.
Strider StriderTuned to a dead channel.
Posted 15 years ago2008-06-06 14:23:49 UTC Post #250218
Alright then.

*Goes to wrork.

Edit:

Added, tested, approved, done. :)
The Mad Carrot The Mad CarrotMad Carrot
You must be logged in to post a response.