Hammer Tutorial - Advanced Workshop integration for Portal 2

Avatar
Motanum
248 Posts
Posted May 07, 2012
So, I made another tutorial. This is an advanced tutorial, but its kinda easier to implement on most maps. This one should give players a lot more freedom with their hammer maps when they uploaded them to the workshop.

This video will also be easier for the people who want to upload their hammer maps, as it involves less modifying the map for hammer.

NWw-iisHVj8

Hope this helps you guys!

Advertisement
Registered users don’t see ads! Register now!
Avatar
Brainstone
401 Posts
Posted May 08, 2012
Replied 22 hours later
More helpful than the last one for me :smile:. A few questions:

A. If I want to decide by myself what the lightboard shows(for example, I want 25 chambers with enlarging numbers from 1 to 25), where do I do that? Is it still sp_lightboard_icons.txt?

B. Do I really need the pti_global_ents in every map?

C. Wouldn't it be theoratically possible to play Cave Johnson lines via ambient_generics?

Avatar
Motanum
248 Posts
Posted May 08, 2012
Replied 2 hours later

Brainstone wrote:
More helpful than the last one for me :smile:. A few questions:

A. If I want to decide by myself what the lightboard shows(for example, I want 25 chambers with enlarging numbers from 1 to 25), where do I do that? Is it still sp_lightboard_icons.txt?

B. Do I really need the pti_global_ents in every map?

C. Wouldn't it be theoratically possible to play Cave Johnson lines via ambient_generics?

A, I dont think so. You would have to make your own like you would without the editor.

B, yes, or it won't accept the map when you try to upload it.

C, yes it is, but it wont change or depend on the player's progress.

Avatar
Jepp
134 Posts
Posted May 08, 2012
Replied 52 minutes later
Great tutorial!
(Probably a stupid) Question: Does the workshop accept coop maps? :smile:
Avatar
Motanum
248 Posts
Posted May 08, 2012
Replied 1 hour later

Jepp wrote:
Great tutorial!
(Probably a stupid) Question: Does the workshop accept coop maps? :smile:

No, it will tell you no co-op maps.

Avatar
DaMaGepy
361 Posts
Posted May 08, 2012
Replied 2 hours later
On the workshop page, there is no option to add a map or to delete.
And the p2map_publish.exe is broken since the beginning of the beta, always gives error: "Steam Cloud does not appear to be available!", so can't upload any custom map (the map is valid, insterted the new instance etc)
Avatar
El Farmerino
393 Posts
Posted May 08, 2012
Replied 37 minutes later
Right... basically none of this works for me. I made an exit as per your first tutorial, but the door doesn't open on my trigger (despite it showing as blue in the Outputs tab), and even if I no clip into the exit tunnel part absolutely nothing happens (doesn't transition to the exit elevator either). Ditto for the Cave Jonhson lines - all of my outputs seem correct (showing blue, exactly as per your video) but nothing. Any ideas what might be the problem? Does none of it show up until you actually publish the map?
Avatar
Motanum
248 Posts
Posted May 09, 2012
Replied 1 hour later

El Farmerino wrote:
Right... basically none of this works for me. I made an exit as per your first tutorial, but the door doesn't open on my trigger (despite it showing as blue in the Outputs tab), and even if I no clip into the exit tunnel part absolutely nothing happens (doesn't transition to the exit elevator either). Ditto for the Cave Jonhson lines - all of my outputs seem correct (showing blue, exactly as per your video) but nothing. Any ideas what might be the problem? Does none of it show up until you actually publish the map?

Post your vmf and I can take a look at it tomorrow.

The Cave johnson line will fire if you launch it FROM the queue.

Avatar
Motanum
248 Posts
Posted May 09, 2012
Replied 1 minutes later

DaMaGepy wrote:
On the workshop page, there is no option to add a map or to delete.
And the p2map_publish.exe is broken since the beginning of the beta, always gives error: "Steam Cloud does not appear to be available!", so can't upload any custom map (the map is valid, insterted the new instance etc)

Nothing I can do to help you. Other people have that problem and Valve is investigating it.

The one thing you can try is to go to portal 2 properties > Updates and make sure you have steam cloud enabled.

Avatar
El Farmerino
393 Posts
Posted May 09, 2012
Replied 2 hours later

Motanum wrote:
Post your vmf and I can take a look at it tomorrow.

Here you go:

sp_ef_doublebillwrkshp.zip Thanks for that! > ***Quote:*** > The Cave johnson line will fire if you launch it FROM the queue. As in, the queue in-game?
Attachments
sp_ef_doublebillwrkshp.zip
0.10 MB 75 downloads
Avatar
Wanderer2021
90 Posts
Posted May 09, 2012
Replied 4 hours later
Is it possible to get maps that have custom content, such as instances, sounds, textures, etc, into the workshop, and if so, how would we go about that?
Avatar
ChickenMobile
2,460 Posts
Posted May 09, 2012
Replied 13 minutes later

Wanderer2021 wrote:
Is it possible to get maps that have custom content, such as instances, sounds, textures, etc, into the workshop, and if so, how would we go about that?

That is shown in this tutorial (if not this one then it was one of the previous ones)
Go to your bin folder and look for p2map_publish.exe

Avatar
Motanum
248 Posts
Posted May 09, 2012
Replied 4 hours later

Wanderer2021 wrote:
Is it possible to get maps that have custom content, such as instances, sounds, textures, etc, into the workshop, and if so, how would we go about that?

Yes, use a packing tool to pack textures, sounds, models. I use packbsp or pakrat depending on the occasion.

Avatar
Wanderer2021
90 Posts
Posted May 09, 2012
Replied 5 hours later
Thank you very much for your hard work.
Avatar
RustyDios
154 Posts
Posted May 10, 2012
Replied 1 day later
I think this thread should get a sticky.. my first sticky suggestion for TWP!

Reason: Many older mappers returning to TWP will want to know this information first and foremost to adapt their previous/existing/upcoming Hammer maps to be able to upload them to the workshop. Rather then go searching for a thread, or posting a new thread/question, this should be at the top ready to greet them....

And btw, thankyou for this tutorial, very helpful indeed!

Avatar
al anselmo
8 Posts
Posted May 15, 2012
Replied 4 days later
Indeed a great tutorial!
Thanks a lot for sharing it.
Avatar
marKiu
238 Posts
Posted May 18, 2012
Replied 2 days later
The p2map_publish.exe is not working for me :sad:
I followed your tut and it worked once... Then I did the final render and tried to upload again. Now I always get the error "Failed to publish file."
Is there any known file limitation or something like that? The size is 30mb..

EDIT: Nevermind, I spammed the button like a fag for about 1h and it worked.... -.-

Advertisement
Registered users don’t see ads! Register now!
Avatar
Sleter
29 Posts
Posted May 26, 2012
Replied 8 days later

RustyDios wrote:
I think this thread should get a sticky.. my first sticky suggestion for TWP!

Reason: Many older mappers returning to TWP will want to know this information first and foremost to adapt their previous/existing/upcoming Hammer maps to be able to upload them to the workshop. Rather then go searching for a thread, or posting a new thread/question, this should be at the top ready to greet them....

And btw, thankyou for this tutorial, very helpful indeed!

I agree, this topic should be highlighted.
Thank's Motanum !