Guide to Portal Hammer Configuration Part 01
ChaosDreamer wrote:
So, I take it the only way to get this to work is if you actually have HL2. I only have portal, and I'm A)broke and B) not going to play much HL2. so I guess I'm stuck waiting on the portal SDK.
I wouldn't be so sure of that. I believe it should be possible to just extract that stuff into your Portal directory (/portal/portal), then manually create a game configuration for it. I made a Portal configuration, but it was originally in the HL2 deathmatch folder. Or something. idk, it's wierd. Have a look at my game config file.
It seems the SDK will launch now. your idea worked.
Edit: lol I was too late.
a window pops up and says: the configuration information for the game your trying to edit is invalid or missing
and if i hit run anyway
"gameinfo.txt" doesn't exist in D:\games...\portal\portal"
even though there is a gameinfo.txt in there.
Gah, sorry about that. It would be replacing a file if you do it correctly.
FATAL ERROR
"MountFileSystem( 427 ) failed: SteamMountFileSystem(2604,427,0x1324fc74=,0x1324fd74) failed with error 5: No Steam Content Servers are available"
You might want to add a quick blurb at the end for us complete Hammer noobs about how to run your map in the game, I had to do a little Googling to figure out the only way to do it right now is through the console, and the proper command.
Grudge wrote:
FYI Guys thats "map mapnamehere" in console. Minus the quotes.
You can also right click on Portal and go to properties, and set launch options to add "+map mapnamehere" (without the quotes) so that it will automatically go to your map straight from boot. Useful if you're loading the same map over and over after making revisions
(Instructions in italics may not be exactly the right name for things. I'm in Chemistry right now and can't look at my steam window.)
Ralph wrote:
As well as the materials and models folders, you will also need lights.rad from portal content.gcf for the lights to work right. I discovered this trying to replicate the lighting around the edge of the floor.
Nice! Mind posting the full lights.rad so everyone has it? Text is fine, no need for attachment.
Here is the file I extracted from the gcf, it needs to be called lights.rad in the root of your mod directory.
eg: c:\steam\SteamApps\SourceMods\Portal
As far as I can tell the second block of 4 lines are the only additions above the HL2DM one
Quote:
lights/fluorescentcool001a 189 231 232 350
lights/fluorescentcool001b 236 255 182 350
lights/fluorescentcool002a 189 231 232 400
lights/fluorescentcool002b 236 255 182 400
lights/fluorescentcool003a 189 231 232 300
lights/fluorescentwarm001a 239 216 193 350
lights/fluorescentwarm002a 239 216 193 400
lights/fluorescentwhite001a 245 245 245 350
lights/fluorescentwhite002a 245 245 245 400lights/light_recessedcool001 239 239 239 200
lights/light_recessedcool002 149 180 200 350 149 180 200 200
lights/light_green001 175 255 233 100
lights/light_orange001 218 76 26 25 218 76 26 15lights/hazzardred001a 228 37 0 300
lights/hazzardyellow001a 250 215 74 300lights/HIDcool001a 145 222 172 650
lights/HIDcool001b 205 232 255 650
lights/HIDwarm001a 255 201 116 650lights/white001 250 240 205 100
lights/white002 189 233 247 425
lights/white003 232 246 190 350
lights/white004 170 228 247 425
lights/white005 234 235 220 375
lights/white006 234 235 220 100lights/white001_nochop 250 240 205 100
lights/white002_nochop 189 233 247 425
lights/white003_nochop 232 246 190 350
lights/white004_nochop 170 228 247 425
lights/white005_nochop 234 235 220 375
lights/white006_nochop 234 235 220 100lights/incandescentcool001a 235 235 235 300
lights/incandescentwarm001a 250 226 129 300glass/glassscreen001a 172 192 161 225
glass/glasspipe001f 214 72 44 200
glass/glassscreen001c 172 192 161 225
glass/glassscreen001d 211 187 134 225
glass/glassblock001a 70 194 209 200
composite/citadelfloor001a 103 143 203 200
props/tvscreen006a 196 0 0 200
shadertest/gooinglass 149 49 15 50glass/glasswindow002e 189 233 247 425
glass/glasswindow035a 145 222 172 100dev/DEV_INTERIORLIGHT02B 151 176 204 225
plaster/plasterwall029h 189 223 227 125
building_template/Building_Trainstation_Template001d 230 230 200 65
building_template/Building_Trainstation_Template001e 230 230 200 150
building_template/Building_Trainstation_window002d 230 230 200 300
building_template/Building_Trainstation_window002e 230 230 200 300lights/physgunlight 189 231 232 20
NullSoldier wrote:
File you Need:
[list]- GCFscape, use this to extract files from GCF files. Very handy tool. Link: http://nemesis.thewavelength.net/index.php?p=26
The Link is broken for me =(