Editing Puzzle Creator maps with Hammer (never uesed Hammer)

Avatar
CompC
11 Posts
Posted May 11, 2012
I posted this in the puzzle creator help section, but I think it fits here too...

So, I've never used Hammer before. All I want to do is add autosaving and change the music for my test chambers... How would I go about doing this? Doesn't seem like it'd be that complicated...

Maybe later I'll look into how to do more complex things with Hammer, but for now this is all I really want to do with it.

Advertisement
Registered users don’t see ads! Register now!
Avatar
The Irate Pirate
236 Posts
Posted May 11, 2012
Replied 25 minutes later
For the autosave

1) Use W, A, D and S and mousescroll to control the camera
2) Go to the block tool and create a brush where you want the autosave point to be
3) Texture the four sides with the texture "tool trigger" which makes it a uniform orange colour
4) While clicked on it, press Ctrl+T (to tie the brush to an entity) and find trigger_autosave from the drop down list
5) It should now work, there are other variables that you could change if you wanted to

For the music

1) Go to the entities list
2) Find ambient_generic
3) Put it somewhere in the map and choose a song from the ingame file browser
4) Change the flags to play everywhere etc.
5) If you want it to start playing at a certain point, you have to get involved with the Hammer's fairly complicated logic system. You have to have a trigger_once block which when touched plays the song.

Avatar
CompC
11 Posts
Posted May 11, 2012
Replied 1 minutes later
Wow, thanks!

Will changing the music allow me to choose from the music in-game, or do I have to choose a specific file?

EDIT: Okay so I tried to do this... it's really confusing. Can anyone give me some simple directions? Or should I just look up a whole tutorial on this stuff or something?

Avatar
The Irate Pirate
236 Posts
Posted May 12, 2012
Replied 16 hours later

CompC wrote:
Wow, thanks!

Will changing the music allow me to choose from the music in-game, or do I have to choose a specific file?

EDIT: Okay so I tried to do this... it's really confusing. Can anyone give me some simple directions? Or should I just look up a whole tutorial on this stuff or something?

That's the problem, it's confusing. Somebody else might be able to make it simpler, but you'd be better off following Youtube tutorials. And changing the music means finding the sound file that you want (you can preview it I think), yes, you have to pick the individual sound file.

It's not something that takes 5 minutes, hence why so few people bother to go through the aggravation of learning to use Hammer.

Avatar
BenVlodgi
633 Posts
Posted May 13, 2012
Replied 13 hours later
This was something I was afraid of....people use the easy map maker, and then think it would be simple to add things like autosaves and music.... and while it is super easy for us who use hammer normally, it will be incredibly difficult for new users, because they are trying to jump to medium/advanced stuff without knowing the basics
Avatar
ChickenMobile
2,460 Posts
Posted May 13, 2012
Replied 36 minutes later
I suggest someone adds an instance (hack the editor) in so we can remove these workshop nubs from mapping help and discussion (or Hammer and Modding tis called now).
Avatar
FelixGriffin
2,680 Posts
Posted May 13, 2012
Replied 7 hours later
Is it possible to add your own instances to the editor? It would be nice to put in some of the custom test elements from this site (such as the Bumbleball and the ?rial Faith Cube).
Avatar
Vordwann
767 Posts
Posted May 13, 2012
Replied 1 hour later

chickenmobile wrote:
I suggest someone adds an instance (hack the editor) in so we can remove these workshop nubs from mapping help and discussion (or Hammer and Modding tis called now).

That is quite possible. I might try to put together an instance with all the different music so people can send triggers into it/disable and enable looping and stuff like that.

Avatar
Lpfreaky90
2,842 Posts
Posted May 13, 2012
Replied 7 minutes later
would replacing one of the useless instances (companion cube for example) just work?
Avatar
HMW
806 Posts
Posted May 13, 2012
Replied 5 hours later
It is possible to add simple custom instances. I already got an info_placement_helper (that you can rotate to turn your portal upside down :lol:) and a more-or-less working sendificator in there. A save trigger shouldn't be super hard to do, as long as you don't need it to be bigger than one grid cell.

However, at this stage I'm VERY uncomfortable with telling someone else to go and edit script files in their Portal installation, while I barely have a handle on how all this works myself. As soon as I have some documentation that is more than a bunch of random scribblings, I'll post that in the editor hacking thread.

(Could take a while because my first Sendificate map needs to be in the workshop ASAP, but other people besides me are looking at this, so perhaps someone else can come up with something useful earlier.)

Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted May 14, 2012
Replied 10 hours later
Put the info in the hacks and tips thread, that already has "fuck up at your own risk" written all over it.