Half-Life 2: Portal

So you’ve played through Portal and loved every minute as much as we did. Maybe you’ve even gone through the advanced maps and tried out some of the challenges? So what comes next?
How about the ability to play through Half-Life 2, HL2 Episodes, or other Source-powered games with the portal gun in-hand? We’ve been doing that very thing for the past few days now, and after hours spent experimenting with various techniques and tricks, we’re here to show you how.
To start, check out this video we cut together to show you “Half-Life 2: Portal” in action.
Now, follow our instructions below to the letter and you’ll be firing your gravity gun through portals at unsuspecting Combine in no time.
- First off, backup up your entire Portal directory in a safe place. It’s the folder marked “portal” in ..\Steam\steamapps\(your_steam_id)\. We, nor Valve, take any responsibility in the unlikely event of you hosing your game files. Worse comes to worse though, you could always just redownload from STEAM.
- Next, download and install, if you haven’t already, GCFScape. This handy program will allow you to access the cached game files for any Source-powered game, in addition to several other Steam games you may have downloaded.
- Once that’s done, browse to the directory ..\Steam\steamapps\. There, you’ll see all the available GCF archives. We’ll start with Half-Life 2.
- Open the GCF marked “half-life 2 content.gcf” You’ll see a directory tree in the left pane. Click the box to the left of the folder marked “hl2″ to see the directory listing contained within it. Then, right-click “maps,” select ‘Extract’ and extract the entire folder into the directory \Steam\steamapps\(your_steam_id)\portal\portal. This will merge it with the existing Portal map folder.
- Do the same with the ’scenes’ folder
- Fire up Steam and run Portal. When it’s done doing its thing, open up the developer console with ‘~’ (you may need to enable it under your keyboard options).
- At the console, type “maps” to list all the available maps. Now that you’ve imported the Half-Life 2 maps, this will be a fairly lengthy list and some of the names, like citadel and canals, should seem familiar.
- Type “map” and then the map name to open that map. For instance, “map d1_canals_01″
- When the map is done loading, pull up the console again and enable cheats by entering “sv_cheats 1″
- To give yourself all weapons, including the portal gun, enter “impulse 101″
- Depending on how far you got in Portal, you may need to upgrade the portal gun to fire both portals. Enter “upgrade_portalgun” to do so
- Go lay waste to some alien scum with the power of portals!

Here are some more thoughts on our experiences:
- Follow the same steps if you’d like to try it out with Half-Life 2: Deatmatch or Episodes 1 and 2.
- We actually highly recommend starting with the HL2: DM maps to give you a feel of how things operate and allow you to experiment with various techniques. You can spawn an enemy by first looking where you would like him to be placed and then entering, say, “npc_create_equipment weapon_shotgun; wait; npc_create npc_combine_s” to create a Combine soldier with a shotgun. (Visit this HL2 Filefront page for more details)
- Sorry, but we’ve racked our brains and can’t figure out a simple way to get multiple people into a game of HL2: DM this way. We’re sure some enterprising group of modders will come up with something in the coming weeks, though.
- We did not attempt to do this with Team Fortress 2, Counter-Strike: Source, or Day of Defeat: Source. As fun as it might sound in theory, we would like to dissuade you from trying it as well, as it probably won’t yield any real satisfactory results.
- All the same basic concepts of Portal apply here, including realistic momentum and gravity. You’ll also automatically regain health very quickly as in Portal. We’ll try to find a fix for this and post it soon.
- It may take some time to figure out which surfaces work and which don’t, since obviously this is no longer clearly indicated by the textures. Generally speaking, shoot only for flat walls, floors, and ceilings and not objects like rocks or boxes.
- Sadly, NPC’s and enemies cannot pass through portals. However, almost all ammunition, from bullets shot to grenades tossed to objects flung with the gravity gun, can and will make their way through smoothly.
- You’ll also probably notice a weird, floating colored cloud that follows you around (it appears a few times in the video above). We couldn’t figure out a way to disable this, but thankfully it’s only a minor annoyance.
- As in Portal, the player’s health will regenerate very quickly. A savvy reader by the name of Adam Brock has posted in the comments a way to ‘disable’ regenerative health by setting ’sv_regeneration_wait_time’ to a very high number. You can do so, for example, by entering “sv_regeneration_wait_time 7200″ at the console (after applying “sv_cheats 1″) to postpone any health regeneration for two hours.

We encourage you to post any questions or comments below, or share your own screens and videos.
We’ll continue to update this page whenever we figure out fixes or cool tweaks and things to try out, so keep checking back over the next week or so.
Until then, keep thinking with portals!

Valve, the Valve logo, the Half-Life logo, the Lambda logo, the Portal logo and all associated images and sounds are trademarks and/or registered trademarks and/or copyright of Valve Corporation.
There is no such product called Half-Life 2: Portal. It’s a catchy nickname we came up with while working on this.
Dear Gabe and Doug: Please don’t be mad at us for doing this. <3
Related Stories
Comments
1,263 Responses to “Half-Life 2: Portal”


That is very nice
Nice job
This is a great little make over but heres something I did so I didn’t fudge up the portal dir directory ..Steam\steamapps\(your_steam_id)\portal\portal copy the second portal dir and paste it into ..Steam\steamapps\SourceMods if you restart steam you will see it under the 3rd party mods area and just follow the directions provided to add the files with the GCFScape prog but now you just put it under SourceMods\portal this way every thing is split up.
Just one thing I would like to know do you guys know how to move over the audio files from hl2 into that dir?
Yes, indeed!
This could be something very nice
Looks great, I’ll try this later!
Can you make portal gun in Dark Messiah? ))))
My console sez that there’s no BSP file for that map when infact there is and the maps show up on the console list, could you please help me? Also, if you wanted to do this for episode 2 then you would need to extract the materials and models as well. Write back soon, OR ILL PLUCK OUT UR EYES!!! HAHAHAHA!
And HL2: Deathmatch?
The messege that comes up is: CModelLoader::Map_IsValid: ‘maps/d1_trainstation_01.bsp’ is not a valid BSP file
map load failed: d1_trainstation_01 not found or invalid
“Sorry, but we’ve racked our brains and can’t figure out a simple way to get multiple people into a game of HL2: DM this way. We’re sure some enterprising group of modders will come up with something in the coming weeks, though.”
Uhh….. guess you guys missed the whole exite mod.. from MONTHS before portal
http://www.exitemod.com/
Multiplayer + Portals = WIN
i tried it with half-life source but it didn’t work
could someone try it with hls?
ps: it’s very funny with hl2
This is awesome but can it be done on the 360, and if so how can I do it?
Good !!
Poe on October 20th, 2007 5:28 am
Can you make portal gun in Dark Messiah? ))))– HAHAHAHA =)))
Wow, nice, you have to see http://www.playeruno.cl !
lol LAVGUNNER. On the 360. Console gamers are so silly. It’s a mod silly, can’t really mod games on a console unless you first mod the console. What kind of silly moron buys HL2 for the console anyways. Console shooters are a waste. I pity you and your foolishness.
Great freakin’ mod though. Really fun to play with in HL2.
lol LAVGUNNER. On the 360. Console gamers are so silly. It’s a mod silly, can’t really mod games on a console unless you first mod the console. What kind of silly moron buys HL2 for the console anyways. Console shooters are a waste. I pity you and your foolishness.
Great freakin’ mod though. Really fun to play with in HL2.
Great guide, works, but:
Could someone email me about how to get hl2 sounds in it, and how you pass the part with Gordon getting into his suit if you already have the suit on?
My email is the_spriter@yahoo.com
Thanx.
[...] your Half-Life 2! We all probably thought about how fun portal would be in hl2. Check out http://www.primotechnology.com/2007/…life-2-portal/ Cake is included this time [...]
Please someone figure out how to get sound!
I cant seem to get this to work. i followed the directions exactally but when i boot up portal i cant load the hl2 maps. i have portal running indipendant of steam but hl2 is in steam should that matter?
Jan, I tried to tell you earlier but my comp fricked up. That probably does matter, as I used the Orange Box all on Steam for mine. Once you get it working you might try to help us get sound?
Jan, I had the problem earlier…I used GCFScape and extracted Source Models.gcf and Source Materials.gcf and it worked (AI doesnt work well though)
The messege that comes up is: CModelLoader::Map_IsValid: ‘maps/d1_trainstation_01.bsp’ is not a valid BSP file
map load failed: d1_trainstation_01 not found or invalid
recieving that msg when i try to load a map
This thing looks great, theres just 1 problem, can you get Portal without buying the Orange Box…? Because i have all the Half Life 2 games, except Portal, Episode 2 and the other one, the 1 with the Demo Man in it, so do i need to buy the orange box…? because if i do, what will i do with all the other games?! so can some one please please please answer this, because i REALLY want Portal, as well as the ability to make portals in Half Life 2, so PLEASE, can someone help me, because i don’t really want to buy the Orange Box…
Is anyone going to answer my question…? or are you all rejecting me?
i got this working for counter strike source. im posting a video on youtube now of it, with a link to here and thanks in the vid :).
wasnt too hard, and its fun to mess with.
Well, I’ve been fooling around with the various sound files for half-life 2, and managed to find the ones we need. Unfortunately, it still didn’t load them when I extracted them and placed them in various folders. I think the problem lies in the fact that we’re loading up only the maps. Or maybe I’m way off, I dunno. Also, Freeman, this isn’t the place for that question, but you could download it on steam for $20. Though, I don’t know why you’d do that, when you NEED to play ep. 2 if you’ve played the others, and TF 2 is amazing.
Hey Tim, which ones are those files? could you give me the folder(s)/names? Then I may be able to figure it out with various console commands. Please post back.
Thanx.
There’s a reason NPC sounds and the like don’t work properly: It’s because the game cannot find them. To remedy this, you may as well extract the entire Half-Life 2 sounds, voiceovers folder and the like. The map content is in the ‘base’ gcf, Portal-exclusive stuff is in it’s own gcf, as is Half-Life 2 Episode One and Episode Two’s stuff.
A bit space-munching, but I think you’d get the more Portal experience by being able to hear everything in the environments.
Kitsu, so you would extract the entire hl2 sounds folder to which folder?
That’s totally awesome, I’m going to try it out soon. The possibilities…
Hey when you guys figure out how to get the sound working let me know Woodrow90033@hotmail.com. Also when i tried to use the portal i would sometime get stuck while going through it. Email me when u get sound figured out
hi. i tried to get the portal gun into Hl2 ep 2 with no luck. i followed instructions exactly, but for some reason i cannot get the console to open up in portal. even when i bind the key to a different key. can anyone help ?
I’m sorry but is this still do able w/o portal installed?
I don’t have portal at all
but I want the portal gun in my HL2 game can you please help me?
I feel it worth mentioning that you are not putting the Portal into HL2. You are instead running HL2 in the portal executable.
Shouldn’t it be possible to do this by simply editing the import files for portal without having to extract anything anywhere?
Nate Jones, keep in mind, these are hl2 levels on portal, not the gun on hl2.
And ya, css maps work good, just some problems with floors next to walls (you kinda sink into them if they rise and fall, like dust2).
[...] Screenshots and video included, to give you an idea of what you’re getting yourself into.read more | digg [...]
Another tip: Don’t try and shoot yourself through a portal. Instant game crash.
http://megashara.com/item.php?tid=38820&page=1
Orange Box.
Free.
Register -> Download U-Torrent -> Click -> Download
if it shows in red, wait a few days (technical problems with the tracker)
Insanely buggy. Not worth trying at all right now. So many glitches that it makes it almost unplayable. Sound disappears constantly, you get stuck in random places and tons of game crashes. Take my advise, do NOT try this.
i wanna know if ur able to play wit css lan multiplayer i already did hl2 its insane i love it
those of you having problems with invalid BSP files while loading the maps, make sure you update your half-life 2 via steam before extracting it with gcfscape
This is a great mod! Thank you so much. Perhaps someone could list the different types of surfaces that are able to be shot with the portal gun? Also, this opens up the doors for a wide variety of new custom maps!
If there are two people with portal guns in a server and they shoot 4 prtals wtf will happen? it would be amazing to play with other people on lan servers because it would open new possibilities in portal technology. surf would be awesome. if this weapon could make it to the internet on css its hard to imagine the possabilities. oh yea i tried hl2 on portal and it kicked @$$ i still need to try putting bots into endless loops
lol
great job.
gr8 work guys!!!
fantastic stuff - just wondering if it works successfully for half life source?
exported maps folder fine
couldn’t find scenes folder
map loads fine but no textures just grid
any help u can give would be awes
cheers
dEaThWiSh
Natejones, that’s a no. You must have either each separate or the Orange box to do this.
And jake, the only thing that doesn’t work for me is the sound.
Okay I’m sorry but I’m having trouble understanding this can someone please Explain how to put this into HL2 for me sorry I’m a noob, Keeping in mind that I don’t have portal at least until my Birthday on November 9th
could someone help me pls
i want to play half-life source with the portal gun. is it possible to extract all the datas of the portal gun into half-life source? if it’s possible, could someone post it?
)
by the way, to activate tho console, you have to add ” -dev -console” to the path of the linking of the game
(sorry for the bad english
if you mean half-life source, you’re right. but not in all. first, the captured the atmosphere and second there is a graphic pack that half-life source let looks better. also half-life is a great game and i want to play it with the portalgun
sorry, i mean (not AT all
)
so any one know why portal doesnt seem to want to run my HL2 map files, all scenes copied over (unless they dont go int the portal root directory) all maps copied over, yet if i try to run a map it tells me that the map is not a valid BSP file
The voiceover files are in source sounds.gcf but they won’t work even when extracted to the portal directory as you do with the map files. Maybe it’s looking for the speech files in portal content.gcf or source 2007 shared sounds.gcf?
when nobody give an answer, nobody know what to do. if you did it exactly like the “manual” it say i can’t help you. i did it so and it works
This looks incredible. this might sound like a silly question however is this for the pc only or can i apply to my xbox 360?
Nate Jones. You need Portal for this to work, no exceptions.
BTW, the color annoyance is due to the sun. disable the lighting from the sun, disable the problem.
I’m from Russia =) cool =)
hi how do I get the portel gun for my 360 version 360
HOW TO MAKE SOUNDS WORKING:
1) open “source engine.gcf” in GCFScape
.
2) go to “hl2″ folder
3) extract “scripts” folder to your portal folder (”..\Steam\SteamApps\[your_name]\portal\portal\” or if you have a copy of portal in SourceMods folder: “..Steam\SteamApps\SourceMods\portal\”)
4) sounds from original HL2 are working now, but portal gun sounds are missing
You can modified “game_sounds_weapons.txt” file in your “portal\scripts” folder - add lines from “portal content.gcf >> portal\scripts\game_sounds_weapons.txt” on end of file. Or use this one:
http://rapidshare.com/files/64200794/game_sounds_weapons.txt
And you can fix the background images, maps, titles … by use modified files from HL2 (folders resource, scripts…).
how do i gain accses to the file it wont let me
is this for the 360
you must shut down Steam before opening *.gcf files.
how do i unlock the disk it is saying that i need to get promission from the owner or administrator so how do i unlock it
PLEASE help me
I only have the orange box for the xbox 360 i cant get it to open on my computer it says its locked how do i unlock it
Mike: can you make screenshot of error?
how do i send it to you
i´ve tried it with Half-Life 2:Episode 2 and it works perfekt!!!!
p.s:thats funny^^
1337
and when you give that error? when you are loading a gfc file in GFCScape ??
dos it work for the 360
what do i typ for open file
dos it only work for the computer
baso88 let me IM you or you can just IM me but I rilly need to get it to work my IM is season3digimon@aol.com
Thanks, baso88 - that works a treat (although I was still missing some files, mainly the pistol didn’t make any sound).
To qrter: try copy sound folder from “source sounds.gcf” to portal folder …but everything works fine for me….
to baso88: I rily need your help please IM me
do you have ICQ?
What?
just click on IM and typ my IM that i posed, season3digimon@aol.com
i dont have aol IM …. just tell me where is that error message showing…
it is when i go to search for source engine.gcf on the GCFScape
what is your OS? Vista, XP? and is Steam shuted down?
search for “source engine.gcf” in Explorer then select GCFScape to open that file…
i only have it for the 360 not the computer do i need to take the 360 disk out it dosnt do any thing will it work for the 360 disk or no
sorry i thought you have problem with PC version:) I realy dont know how to modify files for 360
thankx iv wasted my hol day
Here is my package fixing New game menu, sounds, titles, name and icon of game (mod) in Steam…
http://rapidshare.com/files/64224087/HL2_Portal.rar
Just copy your “portal” subfolder from “..Steam\SteamApps\[your_name]\portal\” to “Steam\SteamApps\Source Mods\”. Extract “maps” and “scenes” from gcf filesto new portal folder. Finally unrar package and owerride original files …
PS: Only PC version
how do you get this working for Episode 2 ?? Can someone please give me instructions, as the ones on this website are vague. They mention a “scenes” folder, but there isn’t one in Hl2 Episode 2 gcf’s.. Confused !! Help
when i tried this in ep 2 i actually got the portal gun to be enabled, however all the textures we’re missing and replaced by purple!
baso88, do you unrar the files to the new portal folder, or the old one?
Wait! It works! I love you man! Baso88 is the “God of Mod”!
Boo-yah baby! w00t!
[...] the Portal gun in HL2. Half-Life 2: Portal : Primotech Watch the vid. Haven’t tried this out myself, but this could have huge impact the next time I play [...]
Baso88 nice going. I was working all day trying to puzzle this out. There are still a few issues though. Enemy weapons are disabled, health automatically regenerates, and crouching is disabled. I can understand the health and weapon issues because health regeneration was in Portal and the weapons of HL2 weren’t in Portal, but no crouching? Weird.
[...] #94 (permalink) of 94 So to follow up on that video I posted, it seems that there are instructions online for playing with Portals in Half Life 2. Enjoy… Half-Life 2: Portal : Primotech [...]
I feel sorry for all the poor 360 owners that have found their way here. lol
To all the people that are coming here asking about the 360, you cannot mod a console with this kind of thing unless you are an uber coder and mod your console. If you are not an uber coder i wouldn’t even look into it.
[...] to have more Maps, well so just use the original HL 2 maps! Great idea! Watch this video here. This Link tells how you can do [...]
[...] The Portal Gun in Half-Life 2? Sure! [...]
[...] "portal" gun in standard HL2 + addons if anyone wants to try it, info can be found h __________________ DAOC:inactive D&D Online: Devourer CoH/V: Protector (US) WoW: [...]
[...] si pensáis que es corto, siempre podéis ir a ESTA página, seguir los pasos y dar por culo a los Combines con el arma de portales en HL2. De [...]
Does this work for mods like metastasis? i’m currently playing episode 1-4 and i kinda want the portal gun there XD
hehe um i did this but i acidently erased the 1 and 2key by putting a diff key there but when i put keys back in order the 1 and 2 keys for weps didnt work and since they were a hl2 thing it won work if i go to options. so i cant use pistols or speial weps i tried redownloading portal and hl2 but it didnt work so i wanted to know how to fix that plaz answer me when u see this
What about HL2:DM? Does this working online?
[...] aan en tada zie de onderstaande screenshots en filmpje. De hele handleiding en meer screens kan je hier [...]
[...] Ta några djupa andetag och följ punkterna till punkt och pricka genom att klicka er till vägledningen. Skrivet av [...]
And CS:SourcePortal =)
Hi, I have been working on some strange stuff with ps by importing the models files to the ps folder from EP2 and playing ep1 maps the models are EP2 in game… I am still looking for the particle files to import next. soon I will have EP1 and EP2 running like they where in the org. game. There are parts I’m looking for to make it play right, I almost have the sound files playing too.
[...] is a hack to integrate the Portal gun in to Half-Life 2 game play that I am looking forward to trying out because it’ll add a whole new dimension to the game [...]
РУЛЕЗЗ))) ниипаццо кагкруто)
Confirmed, this works and is safe. A few glitches (enemy bodies and some items won’t fall through, some ammo won’t shoot through), but its great!
[...] этот досадный недочёт, авторы пошли дальше и совместили «портал» с любой игрой на базе технологии Source. [...]
[...] этот досадный недочёт, авторы пошли дальше и совместили «портал» с любой игрой на базе технологии Source. [...]
[...] been wanting the Portal Gun in Gordon Freeman’s possession. Now, courtesy of a modification instructed by Primotech, you can edit your games too. Just be sure to follow the instructions carefully when [...]
[...] этот досадный недочёт, авторы пошли дальше и совместили «портал» с любой игрой на базе технологии Source. [...]
[...] этот досадный недочёт, авторы пошли дальше и совместили «портал» с любой игрой на базе технологии Source. [...]
Working still on some game glich, i hav so far imported sprite effects from EP2 into the maps of EP1… still your not really gorden and alex real doesnt talk to any one but him.. lol by copying ep2 materals into the portal file its added there effect to the maps when there called for. useing model files from ep2 is fun the vortagons get a make over in hl2 and ep1. for sure if you want to add more to the game then the maps materals and models are a sure thing to work.
[...] in ur HL2 being a Portal Atradu pie Woozera, pardon, nē - Pufaikā. Portal stroķis iekš [...]
The only think i wished worked on this was voice overs. It kinda feels empty without them that and the game is using all of the episode 2 assets which kinda busts the game up some when you try to load certain maps. Your Jeep and Buggy will be missing from game and so on because its not in Episode 2s content.
[...] Ko gero daugelis svajojo ir laukė to. Primotech pavyko perkelti Portal ginklą ne tik į originalųjį Half-Life 2, bet ir į Episode 1 bei Episode 2. Netikite? Pažiūrėkite šį video bei persiskaitykite instrukcijas Primotech svetainėje. [...]
How could you get the portal gun into Garrys mod? Is there someway to load it using the console?
I know there is the mod for gmod but that is buggy and doesn’t really work right.
Awesome! I was able to shoot myself in the back when I set up the portals for “chase yourself” mode. :¬)
Too bad no MP yet… that’s what I’m looking forward to most!
thanks
Instead of impulse 101 type this in console:
———————
sv_cheats 1
give Weapon_Portalgun
upgrade_portalgun
sv_cheats 0
———————
Or even easier, type this in console (you only have to do this 1 time, it well be set each next time you start the game):
————————————————————————
bind - “sv_cheats 1;give Weapon_Portalgun;upgrade_portalgun;sv_cheats 0″
————————————————————————
Now each time you start the game, just push the “-” button to get the portal gun. now you can play the game just like normal but with the portal gun and without all the other guns.
I think someone should update this site, don’t you think?
I mean, there’s about a hundred comments asking for the 360 verison of this (a disclaimer saying that this is a PC-only mod would be great), then, someone figured out how to implement sounds and get rid of that annoying halo flashing about you…
really, those are serious additions to the mod, especially the sound, SOMEONE should update the site….
and now once and for all:
THIS WON’T WORK ON 360, OR HL2:DM EITHER, and could you please stop quoting various sites referring to the mod?! annoyance…
and I thought you can’t shoot yourself… now, does it crash if you do or does it not? I want to know that…
am i the only one, who’s game crashes at d1_canals_01, when you’re about to get a jolt from the vortigaunt thing, and also d1_canals_02 and d1_canals_03 goes crash, isnt fun playing hl2 with portal, if you cant play it 100% from the beginning, also i noticed that none of the actor npc’s talk, like gman, breen, not even alyx, could be because no npc in portal has any scene to talk with, anyways, played fine untill d1_canals_01 when i go inside that container thing
If I install this under Steam Mods/, is there a way to launch it by command line without going through the Steam launcher?
hi,
this is a really cool idea! i tried it with my german version, but the NPCs wont talk and the Combines dont react on my char (maybe because i passed the “Bucket”-Punishmend?). we’ll, i try the english version (swichtig thinks to english) in the hope that it works!
ah, i’ll try this with the good old “half life:Source”, that’s a good idea, tough.
ah, maybe you can change your playermodel to gordon with setmodel XXXX (XXXX = name), i played as barney (only the model!!) as well
ah, maybe you can drop me an email, why my npcs didnt react on me?
Dang no love for 360 owners…wish i could use the portal gun in Half Life
Ok i have the orange box….
and have won the Portal game / very fun game
but im wondering…..I will NOT lose any games if I start messing whit the files
that are showed here above
[...] Play Half Life 2 With Portal I found instructions on how to enable the Portal gun in Half Life 2. Enjoy * First off, backup up your entire Portal directory in a safe place. It
Hey HL2 with the portal if very funny! Just a question. In portal u can , i f u set the portals right u can see the protagonist in the game. So in HL2 if u use the portal do u see gordon?
donno
but i one question :
that : ’scenes’ folder
it’ says: Do the same with the ’scenes’ folder
do i need to extract the folder to /portal/portal ……again ? or what !
????????????????????????????????????????????????????????????????
I cant get the console up
????????????????????????????????????????????????????????????????
There is a way to play MP in portal but the portal’s will crash you if you get too close or try to use them….
Also. Merge Scenes to fix the no talking npcs if you have it.
а по русски никто не может выложить как че делать то а?
или на мыло aleks_t@land.ru буду очень признателен
Please, help me my console in portal-HL2 not working,
This was a triumph. I’m making a note here: HUGE SUCCESS.
I would love to play this. Alas, I am a console gamer. Don’t resent me for that. I still led Gordon to the end of his missions.
The developer community that surrounds Valve is truly amazing to me.
Я тоже прошу народ разобравшийся в этом деле подсказать как все-таки это “вытворяется”.
Сбросьте мне на мыло плз =) zighvart@rambler.ru
I REALLY LIKE THE CAKE !!!!!!!!!!!!!!!!
[...] Portal-Gun in HL2 [...]
How do you merge Scenes? An explanation please.
just wondering… someone said to get rid of the stupid glare thing that you had to disable shadow or something… how can i do that?
also does it make everything dark if i do this?
p.s. if i were to uber mod my 360 how would i go about doing this?it would be so much less laggy on 360 but if its to hard i guess ill have to deal. (with an awesome gun in hl2 your not suposed to have untill episode 3…)
:Dlawl:D
we do what we must because we can
for the good of all of us except for the ones who are dead
the portal ending made me cry. not cause the song, but because they wasted a perfectly good cake! =P
There is no Portal gun in episode 3, The Borealis weapon is something altogether different, I don’t think the Portal Gun would be “dangerous”. We’ll have to wait to see.
Now someone mentioned having to merge the scenes folder to get the NPC’s talking again but didn’t say HOW to do it, tried google and google just points back to this page. So if anyone can come forth with some helpful information please do. Otherwise this trick is useless. Just like the black hole device in Episode 1.
[...] - Half-Life 2: Portal http://www.primotechnology.com/2007/10/17/…; [...]
no clue, the portal gun is local telport system and well making door ways to combine bases would help them get there guns and people to backup a base thats under attack.. wishes for more portal fun..
Hey i did this today, but how do i get the sound working? if anyone knows could u please email me the answer to this problem? sr71blackbird25@yahoo.com
thanks
[...] read more [...]
хуй вам
Why dont someone just put all of this crap into one fucking folder and put it on the internet? So every1 can download and put in their /sourcemod folder? I know its not that much work for me to do this.. But i really aint the mood for extracting, finding, searching and editing all day… Just wanna play some portal:D
SO PLEASE: Put the whole thing on filefront.com or something!
Yeah, people who have a 360: THIS GUIDE ISN’T FOR YOU. Anyway
I also had to extract other folders to get it to work, no problem there. Thing is, when I load it up - everything works but there is a big line of white text that says “AI DISABLED”. I tried ‘ai disable/enable’ in the console - nothing. Does anyone know what I have to do to get the AI back? It’s not worth playing cause it’s like a creepy ghost town; no one moves or does anything at all.
Thanks!
My game crashes evertime I try to load a map… Any ideas?
I can’t get Steam to recognize the game when I copy the Portal folder from steamapps\(user_name)\portal\portal to steamapps\SourceMods\ I’ve tried copying the second portal folder or the first portal folder. When I restart Steam I see nothing new. I also tried the files baso88 posted with the same results.
where file with instruction?
на руском
Haha, the best trick in the book is to use a console command which allows you to shoot portals on ANY surface, as long as it is not moving and you have enough space.
sv_portal_placement_never_fail 1
but what happens with the sound there is no sound at all!! =\
hi.
i’ve got a problem. i was able to get the portal working in Half-life 2, but i won’t get the sound working right. well, i can hear the shooting sound and the walking, but all the voices are missing. doas anybody know how to fix this ?
btw. sorry for my bad english…
thx
[...] Meanwhile a search of Moddb reveals that no Portal modding projects have yet been announced. Tsk, get a move on Modders. (Yes, that’s your cue to link to a Portal mod, readers.) I guess in the meantime we’ll just have to play through all of Half-Life 2 with the portal gun.” [...]
I’m having the same problem as llama.
I try and get to a new map and the game crashes.
baso88: I’m having the same problem as effbee. I’m not sure how to integrate the mod with my steam menu.
haha, I played through a little bit, but it crashed a few times with effects like electricity being rendered so many times in an infinite loop.
all the half life 2 maps were fuched up, they said ERROR every where. i dont know what i did wrong!!!
I’dont want to mess up my portals and half-life 2 games, so can i set this mod appart from the half-life 2 and portals games.
so that i can play portals, half-life 2 and this mod appart.
Ps: sorry for my bad english
There seems to be many people complaining they can’t get this to work but just to make you people at Primotech happy I thought I’d leave a message saying I have! Followed your guide then followed baso88s guide for sound and it is working almost perfectly. Occasionally I can’t move when I’m near a portal but by firing the gun again it works. Some of the chapters (but not all) still have their portal pictures when you start a new game but overall very well done and thanks very much. Please let me know if you work on any other things to do with portal, e.g. maps, a new portal-like game or *fingers crossed* portal gun in deathmatch :D. Good luck and thanks again.
!!!да конечно весело, но всёже это говно…. чё в падлу по старинке зайти в здание и вломить ломом по хрепту???? понапридумывали всяких хреней чтобы легко и не парясь можно пройти было бы игру….. а нормальные пацаны рубят ломом по темечку и в хуй не дуют!
Guys I need help I installed portal and can’t even run portal it says I need direct 8 or higher, but I have directx 9c. I know this is not about hl2 portal but maybe someone allready solved the problem so please help I really want to play hl 2 portal
P.S my portal is nonsteam
[...] you’re done with the game, go download the Hl2: Portal hack, and take on Half-Life 2 with the portal gun. It’s a whole new playing [...]
Reading these comments makes my brain sad.
Will this work on my toaster?
If I have a GameCube and a really old TV, can I make colored sparkly unicorns come through the portal?
Please explain your explanation in excruciating detail, while bearing in mind that I’ve never seen Portal or Half-Life or Zork or Visicalc. I’m only 4 years old and my parents won’t let me play this game until I’m 16. Also we have no electricity. Or inside plumbing. But my daddy has an iPhone. Can I make this work on my daddy’s iPhone? He’s not my real daddy though. I don’t want him to punch me anymore, so please give me instructions on how not to be punched. Except through the portal, cause that would be cool, even if it hurt.
ok i downloaded all the right stuff i downloaded portal-(torrent) i have hl2(torrent) i put both of them in the right places the way you told me how to…it loads tha background when i play but i cant load any of the portal lvl’s or use the portal gun……every time i try a lvl it says ‘map is version 20 expecting 19′ and with the gun it says attempted giving unknown entity type ‘weapon_portalgun’
NULL ent GivenamedItem
Help me please!!
[...] might also have to check out this Half-Life 2 hack that allows you to play HL2, HL2:1 and HL2:2 with aide of the handy dandy portal gun. Take that [...]
sultan
bit of a dink there =)
BUT…. you’re spot on
woa, looks great. i cant wait to try it out!
how about: Half Life 2: Reality Decay for a name?
great mod but u need a vid 2 explain it simpler
can you put portals in css?
how about importing the portal game files into the hl2 folder? would that solve the problem of speech and other sounds when putting hl2 files in the portal folder? would that work?
Hahahahhaa I have tried it in Half-Life 1 and Opposing Force. It works a bit slow, but it works

It goes with all games that includes bsp files.
I doesn’t work with Doom III
Half-Life I
Opposing Force
Blue-Shift
Counter-Strike
Half-Life II
Counter-Strike Source
Half-Life II : Episode One (which includes also a hidden weapon)
In the console first type:
“hopwire_vortex 1″
After that type in:
“give weapon_hopwire”
Now use this!!
Half-Life II : Episode Two
It all goes
You can put all the weapons from Half-Life II into Portal
Sounds like we all have to play it again, but now with the new weapons
Have a great time
The_System
Would be nice if the SMOD Mod Team take a look at the portal gun to “integrate” it better than a normal man can do. Would be a nice additon to their huge arsenal of weapons…
o yea, its also helpful, if you go to ‘run’ and then paste this:
C:\Program Files\Steam\
o yea, how the hell do you get the sound? it doesn’t have sound. that is a very important part of play.
like, I can do the portals, but there is no sound, what kind of sick fuck are you?
@The_System:
How do you play hl1 with the portal gun (and the other games)?
Please explain it!
agreed, sultan, buying fps for consoles is gay, you cant add mods, cant add maps, you cant do anything, since theres no OS. just get portal and hl2 for PC if you guys wanna do this.
sounds great at any rate, but this is a really obvious thing to do, i learned how to add maps to a game months ago, when i got hl2.
sry, theres no edit post here.
to play hl1 like this, extract teh maps the same way, unless the format is old, i wouldnt wanna play hl1 no matter wat anyway, but do that. same steps.
again, no edit post here.
hello-iam retarded, you have to extract the sounds from portal too, hl2 doesnt have those sounds. duh??
i hate not being able to edit my posts…
seth, thats a great idea, SMOD ccould use that, and dont forget HMOD, its better then SMOD, lots more weapons, with almost all the SMOD weapons!! total weapons in HMOD: about 60.
this sux, no edit!!
MaKeNzY on October 31st, 2007 6:56 am
P.S my portal is nonsteam
well, thats ur problem. get the retail version, its not expensive, just buy it legal. or get the orange box, or if you dont want all those, get the black box.
cant help but ask, im lazy.
wikinobu on October 26th, 2007 5:48 am
also does it make everything dark if i do this?
p.s. if i were to uber mod my 360 how would i go about doing this?it would be so much less laggy on 360 but if its to hard i guess ill have to deal. (with an awesome gun in hl2 your not suposed to have untill episode 3…)
what gun would that be?
Круто! Только я ничего не понял, но всё равно круто!
Кто знает русский? Переведите мне, что нужно делать
Hi, i really love Orange Box. and i beat Hl2 and Portal (including advanced levels).
This Mod is SWEET i wish i could use it. . .. becuz i have 360 verison
If anyone has a link or nos away you could get this mod on the console version PLZ! Email is followed (replie to me with email cuz i probly won’t go to this again)
Thanks for reading
Okey so you probably have tried getting the portal gun into multiplayer games.. But what about instead of having the portal gun as an standalone gun, you put the effects of the portal gun into the grenade trower of a veapon or something?
OK i’m stupid (get that out the way). I’ve done the whole portal gun in hl2, but i have no background music and the characters say nothing, also i cannot complete the game when i get to the citadel as when the weapons are taken away and you’re left with the gravity gun, the grav gun is not “up-graded”, Can anyone help me with this please :’(
Well everything seems to be working properly except for the fact that I can’t shoot. That is the left mouse button does not work in-game at all, the right mouse button does tho. The flashlight doesn’t work either. I read most of the comments and no one else seems to share this problem. Any help would be appreciated.
when i extract the hl1 maps into the portal\portal\maps folder and then enter e.g. map c1a0 in the console, the console says unfalid bsp file, or something like that
Hello. is this for half life 2: portal on Xbox 360? or can this be done on the Regular Xbox with the regular Half Life. If so, can someone please let me know where I can get portal files
thanks! :]
i also share the same problem as ffff, the flash light doesn’t work. everything else does
@Mystievel
This is for hl2 orange box on the PC, and no you can not get portal files to half life 1 because it is a different engine.
@Gstreng
From the steam portal forums it seems the problem is not getting the portal gun into multi player but that it crashes when a player tries to go through a portal.
Has any one else who has played the coastal level NOT got the buggy. The women says “hop in and i’ll lower you down” but alas there is no buggy to hop in to. Any one know how to fix this ? please
hey, i was wondering if this will work on half life the original or on counter strike or any other games.. portal was awsome and ide love to use it in other games
[...] and safe keeping here, someone figured out a way to let you use the portal gun in Halflife 2. Here are the directions! I really want to try it haha. I wonder if you can do stuff like make portals under enemies feet [...]
It’s cool but it gets a little glitchy and the sound and mouth movements dont work lol
What files do i extract to get HL2EP2 to work and also HL2EP1
Я перевел эти инструкции на русский, выложил у себя в ЖЖ. Тамже пара моих скриншотов.
Ссылка должна быть в заголовке этого поста.
There are several requests for Russian translation of these instructions, so I made it.
[...] if all that dreaming enough, a new guide from PrimoTech lets you bring the Portal Gun into Half-Life 2, which leads for a completely new level of [...]
OK guys, here’s the deal on the sound. You can locate where all the HL2 sound files are, and where the Portal sound files are via GCFScape. You can even extract all the folders within the portal content.gcf file, overwrite it’s sound files with the extracted HL2 sound fles from the source sounds.gcf file, create a shell folder named portal content.gcf, then turn it into a gcf file with this tool:
http://www.fileplanet.com/148080/140000/fileinfo/Half-Life-2—GCF-Editing-Suit
However, even though that theoretically should create a gcf that adds the HL2 sound files in with the Portal sound files, Valve monitors changes within gcf files so even if you thoroughly udate before editing and launch in offline mode, you’ll get a “Portal is not ready to be played in offline mode” error.
Furthermore the gcf file you just created is automatically deleted! You will see in the readme of the version of GCFScape in the above link that the creators of GCFScape have not yet found a way to nor do they recommended creating or changing .gcf files because of Valve’s monitoring of them.
Even if someone does find a way to circumvent the HLLib.dll file that reads the gcf files, you may risk losing your Steam account doing so. The HLLib.dll file cannot be found in the game files, but you WILL see it in GCFScape files. This may mean that Valve uses such a file (or something similar) server side to read your gcf files when updating your game.
Thus I will likely play through this a bit without sound then try the Portal Gun addon to Garry’s Mod, which uses the Gravity Gun as the Portal Gun.
“…create a shell folder named portal content.gcf,…”
Oops, I meant a shell folder named portal content, MakePakGUI adds the .gcf when it converts it. It’s all moot anyway due to Valve’s gcf checking. Steam definitely restricts modding potential.
How it might be without steam? Sorry for my bad English
Hello, i just installed this, and it works GREAT.
You have menstiond how the portal gun intends to give a glow around you.
I have not fully tested this idee yet, BUT i think i found a good way to deal to that problem.
It happens when you give yourself the portal gun, so simply, save the game wen you already have the portal gun, and load your saved game
It works great, I did everything this forum said and it workds f@#$$ fantastic.
Oh, BTW. It is preferable to use a second machine with the stuff installed on it. The first machine can be for your online CTF or DM so those files are protected and you get to keep your account. The second machine is the mod machine that will not be used to play online DM or CTF and stuff.
download and play half-life
[...] lay waste to some alien scum with the power of portals! YouTube - Half-Life 2: Portal source: Half-Life 2: Portal : Primotech edit: A little more info Here are some more thoughts on our experiences: * Follow the same [...]
I love the idea of having portals in HL2 but i have incountered a problem. When I open the file where the HL2 content.gif is supposed to be, it is not there. I have the portals content.gif but not the HL2. Is there something that I did not do to HL2 that I was supposed to in order to access the files. I do have the HL2 music, icons, characters, etc. I just cannot not find the maps or scenes. Please help a die-hard Half life fan.
cant get it to work… all i get is a message that says the maps are “pending”
ex) when i type maps * to get the list i get a column on the left hand side saying pending with an “fs” before every map listing.
when i try to load a map i get prompted with the word “pending” in console before the map name i just typed in like: “pending map d1_canals_01″
cool idea though. help? i cant believe im the only one having trouble with this :[
is there cake in this if u put a portal in the sky?
I know it has been said before, but I feel the admin should inlude a line in the article above along the lines of “No console boy! This does not work on the 360 and NO you cannot do this if you dont have portal!” No more bloody stupid questions! Please.
Some one asked for a compiled version of this so I made one. Not quite finished, uses a suggested name “Reality Decay” and script by baso88. Check it out soon!
nice…
ok so i did this and i started playing there is like no sound and i keep fallling through the world or i get stuck mid port or some other glitching like that is there a way to fix?
I successfully got the portal gun to work in HL2, But for some reason now the combine won’t attack me. Any Ideas?
is it possible to reverse engineer the process to move the portal gun from Portal to HL2 instead of moving maps and scences from HL2 to Portal?
i would pay US$10.00 to buy this as downloadable content on my PS3
[...] по Deathmatch-картам из Half-Life 2, а уже сегодня это можно сделать в любой игре на движке Source. Итак, что нужно сделать [...]
This is pretty awsome. I’ve been wondering if there was a way to get the Portal Gun into Half-Life 2
It is awesome, but is there a way to put in HL2 audio?
also, NPCs can go through portals. I had one on the wall, and the combine walked into it (he was just strafing to avoid bullets or something.
Is it possible to play half life 2 when you have only installed portal? I know most of the stuff is there (possibly all of it). So is it possible?
is there any way of importing the portal gun weapon file into hl2 ?
this is probably A dumb questiob but can you do this with half-life 1
and opposing force and blu-shift?
I know where the coulerd cloud cums from if u look closly in 1 of the apeture sience blah test the orange portal make a cloud for a short while
Not sure if it has been said before, but in Portal, type impulse 101 in the console to get the HL:2 guns
I’ve extracted all the map files and scene files into the Portal maps and scene folders respectively. In the console, after I type:
maps *
the console lists off all the maps (including a “[pending]“) beside each map. When I request to load d1_canals_01, it begins to load the map, fails, closes the program, and displays a message that it crashed.
Is there any suggestions as to what I could do to properly load the half-life 2 files into Portal?
Do you have to have portal for it to work?Would it work in half-life 2 demo?
I have a problem with Video (Out of Date..Rebuild) and Sounds. I think that I must try to extact the Material, Sounds and Models
I think that will work
Hey, i dont have about 90% of the HL2 Textures showing up? Ive followed the directions, and thought i should ask if anyone knew what i screwed up.
Thanks
DMC BDA
WOW! i try put hl2 map to hl1 map LOL XD ! ! ! !
[...] how to get the Portal gun into all of the HL2 levels, and he posted a Youtube video along with the blog post. This is the coolest looking game mod that I’ve seen in a while; the only downside is that [...]
i cant get this thing to work!Now it wont strart even portal.The portal goes in windowed and then:ERROR!What i needed to do??
[...] Half-Life 2: Portal » Use the Portal gun in Half-Life 2 and it’s episodes [...]
бля а по-русски кто-нить понимает?
It’s all cool and dandy, if there woulden’t be a slite litele problem: after 5-10 min of plaing IT AUTOMATICLY CLOSES WHIT OUT ANY ERROR REPORT OR ENITHING, JUST IF I CLOSE IT TREW TASKMANAGER !!!!!!!!
p.s. if you whrite in console sv_portal_placement_never_fail 1, you an open portals anywhere
hi all
does anyone know how to get the half life source maps working in half life portal
I age 23 & my own computer Window Vista
I want play portal gun on Half Life 2 PC games I can’t understand too much info hard for me. Must download exe - easy set up.
There no screen shot for copy folder & moving floder - easy for me.
I bored i want play portal on Half life2 fun enemy fall down & boxes fall hit enemy.
i wanna play half life,please
I get the same msg…
CModelLoader::Map_IsValid: ‘maps/d1_trainstation_01.bsp’ is not a valid BSP file
map load failed: d1_trainstation_01 not found or invalid
Explanation?
If anyone knows how to do this if you only have:
Portal and Half Life 2: Deathmatch
are you ament to be invinsible?????
Sweet! I hope this will be a Downloadable content for the Xbox 360! Not many of us have high-speed computers, unfortunally.
Классно, кто сделал такую фишку ообще Бог
I did everything u said but it doesnt work when i type “map” in the console for some dumb reason. T.T
DAMN! finally got this working. It was neglected to mention that you need to change the name of the folder you put in the sourcemod folder. if you leave it as “portal” then the gameinfo.txt will look in that same folder for all the files it needs from the ORIGINAL “portal” folder, hence not finding an executable or anything. hope this helps. now to try this out!
Works great! i just wish i knew how i could put on the hazard suit, or if i even can, as the female portal character
HELP!! I cant get it to work
i only have ep. 1 and do have content :O
sorry DONT have a content file…
would it be safe to put the portal content into the half life 2 ep. 1 area and just use impulse 101?
Is it just me, or can you not get shot? i can’t hear enemy gunfire, nor can i get hurt. not like i would get hit much, thanks to portals, but it bugs me.
Hello! I have a question we all (almost all) need help on. The question is “How To Get The Sound Working With Both Portal gun and Half-life 2 sounds (Effects, background music Voices, etc..)” I do not understand The one that was posted for how to apply the sound. i would like the person explaining it To put it in easy steps like Copy this to here, Exact this to here, and so on and so fourth.
Thanx alot.
Can you do this on the 360 version?
you can’t mod dvd, especially a dvd with a hidden encrypted partition
so no, 360 is out of the question. also, for the previous poster, someone posted a zip file that contains all the files you need, you just need to copy them over. the only gripe i have about this now is that enemy weapons fire sounds are not heard (probably just the combine soldiers anyways). if you want me to repost the file, with instructions, let me know here, or email me and i can send it
to quote from baso88, for ppl too lazy to scroll up or search:
“Here is my package fixing New game menu, sounds, titles, name and icon of game (mod) in Steam…
http://rapidshare.com/files/64224087/HL2_Portal.rar
Just copy your “portal” subfolder from “..Steam\SteamApps\[your_name]\portal\” to “Steam\SteamApps\Source Mods\”. Extract “maps” and “scenes” from gcf filesto new portal folder. Finally unrar package and owerride original files …
PS: Only PC version :)”
How download this mod? Prompt please, very wont play!
Guys, do you know how to make npcs go through portals?
plz, HELP!!!!
just mofe the sound files into portal retards
i need help with one thing, this thing with portal and opening developer console doesent work for me. ive enabled it but it still doesent work. please help me?
Hey, I got a question. How come I don’t get any sound when I play? It’s not a big deal just a little annoying walking around with no sound. I’ve tried extracting some files but doesn’t seem to work. If anyone could help me on this it would be great!
Salenkov, you FAIL. that question has already been addressed several time. READ UP TO ONE OF MY PREVIOUS POSTS!!
you’d do best to search the page for occurences of “baso88″ since he provided the full solution!
plise translite on the russian language
Thanks… Someone is in a bad mood. Though for your seemingly hating post about lazy people I would still like to thank you. Oh and have a nice day
the trailer dont work anymore, can i find him anywhere else?
Ronny Mueller
Just wanted to add one thing… I’m terrible sorry to been bothering you. Yes I should had and I’m sorry. I know it must be annoying seeing people do the same mistakes over and over again so just wanted to say sorry and you do a good job letting people know how to actually work their way around this eh… Hack?
How could I enable AI?
But I also tried to copy and merge the whole hl2 folder into portal.
The mod works, but the AI doesn’t work at all!
I tried all commands, like ai_disable 0, ai_resume etc. but it keeps do nothing. Which file contains the AI, because I think the scenes and maps folder doesn’t contain it…
I think there would be another way to do the modding: if we could copy the portal gun into the HL2… But which is the necessary files?
this will work on any source powered game so when a new source game comes out you can put the portal gun in that
how cool is that in like 10 years you can use portal gun in the best selling game ever or somthing and make it even better!
anybody figure out how to make it work in sin episodes yet? im pretty sure i got everything right, except it wont load the background files for the starting menu…and YES ive tried extracting all the content from all the sin episodes gcf files (models, scenes, sounds, everything…). could someone please confirm whether it does work with sin episodes? it should, that would be soooo sweet.
does it work on garrrysmod
And will u kind, and share the guide with me?
Could sy figure out, how to get the AI work?
Or how to copy the portal gun into the HL2?
The mod works, I can merge Portal with HL2, but there are no AI…
Mention it I got originally extracted versions of both games, so I needn’t mess with gcf files, just drag&drop.
um do i have to buy portal or can i download the parts i need for this
i’ve got the portal gun with full sounds and everything inside fakefactory’s cinemetic mod 4 (texture and sound overhauls for half-life 2 IT ROCKS!). minor things here and there, enemy’s gun sounds aren’t heard, a small bit of animation is missing (teleporter rings in kleiner’s lab) and it seems the titles for weapons and chapters need tweaking. otherwise, this is awesome and works great. wish i could figure out where i can stop portal from auto regenerating health. It’s probably located inside some config file that’s still inside one of the portal gcf files. I’m sure we’ll hack it though
hey people can someone writhe instruction in lithuanian language or a little better instruction for other countries peoples who do cant good read in english and understand that instruction.. please write in mail or post here
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Half-Life best game! ;D
when i play i get retarded ai they don’t even shoot also where can i get the first map on there
Sure you can put hl2dm Maps into Hl2, But what about the other way around? Can you put hl2 maps into hl2dm?
[...] 17:13 Eh eh..tahukah klo Portal Gun bisa dipake di Half-Life 2 : Episode 2.. Cek di sini caranya. Screenshots : Keep [...]
Hey please help me out here!! i installed it and i worked and all but now i wanna remove it again!! i have tryed to delete the whole folder and uninstall it but then when i redownload it’s still with HL2!!!
Please help!!!
Hi I can’t get this working on my timex sinclair.
It just says “syntax error”.
Any suggestions?
Well nvm i got it fix’ed..
And i moved it to Steam\SteamApps\Source Mods\ but were do i launch the game now?
how do u go on Steam\SteamApps\(your_steam_id)plz tell me
To “cant get this to work” Just open op my computer go in your hard drive go to your local disk go to programs or program files go to valve then steam the steamapps and then you name on steam
it will only show up as a mod if it has a different name than “portal”. if you put it in the sourcemods folder, make sure to rename it to something else, like hl2-portal, since the gameinfo.txt already looks for the portal folder, and you have this one named portal, it finds this one first, which is incorrect. just rename it.
Hey, while im in portal the console wont open up, help??
Hey, while im in portal the console wont open up, help??
I’m pretty sure that it said it at the top, but you have to go into the Options > Keyboard Settings > Advanced (Button) > [click] Enable Developer Console. Or something loosley like that, merry christmas and happy portaling.
ty pete u rock
do u need o have portal to do this if this is a stupid question call me an r-tard.
[...] Aquí te explican cómo y más abajo el video que te muestra qué puedes hacer con él. [...]
I was looking at the level where you 1st meet dog. (Black Mesa East) What would happen if you placed a portal where the gunship fires it rockets into and one directly under where it hovers. Will it destroy itself? HAHA
for me, it almost totally works for half life 2 except for a few bugs like when Chell gets stuck sometimes. Maybe its because the texture a put on non-surface object (or something like that says the consol).
I also can crouch, hear all the dialogues, sounds (thx for fix), scripts, the weird orange-blue halo doesn’t show up etc.. BUT the enemies weapon’s don’t make any sound and don’t inflict any damage whatsoever nor to me nor to other human NPC (like in the canal stage) and i aotogenerate health like in portal. If i could fix these 3 problems it would be the PERFECT GAME.
On my version it just keeps saying “needs directX 8.0c or higher to run.
i have 9.0
can someone help? my graphics card is a VIA/S3g UniChrome Pro IGP
thanx for confirming all that, picos
kudos.
Ive been looking into all kinds of config and resource files in half-life AND portal, but have yet to come up with anything for the regeneration fix (maybe its hard coded?) also, i cant seem to get past the vortigaunt you meet with the man in the red train car near the beginning (where theres water, after the trainyard). did you glitch there too?
… first , my english is bad … however … I try to find my answer in these hundreds of posts but I dont ( … or Im blind
… !? ) … ! My answer is : can I have the portal gun in the normal HL2 ? I wont to play and complete the game with the normal guns and the portal gun … it will be very funny
! I want that cause in the portal u can only play only one of the maps and can get trough the story of HL2 … so IF I can play normaln HL2 BUT with the portal gun it will be VERY very cool
! So Please answer me …
… or write to my e-mail : sweetbenji@gmail.com … BUT it will be better here cuz I will forget to check my e-mail
… ^________^ !!
Sweet! if only my portal would stop crashing
this would work so much better! i got it, it works, but there is no sound
well nobody’s computer is perfect
What the hell are you talking about on the first thing to do?
There is no folder for STEAM on my comp….and I have no idea how to create and backup files if I create one.
Nevermind.
I found it after a shitload of searching.
… will someone answer me …
pleeease !
i am one proplem when i play that laggin so much and i need those sound too is very hard play whit out sound dont know whatta hell need do
i have *
… was that ” i have * ” for me ? If it was … where’s the answer
… I checked my e-mail but there wasn’t any new message …
l’ve been experiencing alot of lag whenever l try this, lag l don’t experience with hl2 or portal. also, for some reason l am unable to hear weapons fired.
other than that, very, very well done.
that laggin so much
that i have was for my message repair
i am i write wrong then i send new and write i have for reapaired that what i write wrong
to Ronny Mueller
I fixed the glitch you say in the red train, To fix it you have to ectract the HL2 particle file to the particle file of PORTAL and reconfigurate the “particle manifest.txt” (or something like that). you have to al least copy:
particles_manifest
{
“file” “particles/error.pcf”
“file” “particles/antlion_blood.pcf”
“file” “particles/blood_impact.pcf”
“file” “particles/water_impact.pcf”
“file” “particles/fire_01.pcf”
“file” “particles/burning_fx.pcf”
“file” “particles/combineball.pcf”
“file” “particles/vortigaunt_fx.pcf”
“file” “particles/rocket_fx.pcf”
}
into the PORTAL particle manifest. txt archive or simply erase the original file (always backup) and install the hl2 file (but in this case you won’t have the Portal Gun particle effect). Play whith it, it has a certain logic. Now it would be sweet to know what file to modify to get the game truly working.
this guide is suck i lost my all GAME !!!!!!!!!!!!!!! now i need instal those again dont use if you dont wanna lose you games i lose every singel game i was 10 game installed now i have nothing
I cant get the flashlight to work in regular Hl2 on the Pc, help me?
[...] GAMES: 20 anos de Megaman GAMES: Command & Conquer de graça! GAMES: Gundam em 180°? GAMES: Half-Life 2: Portal : Primotech GAMES: IGN Top 100 games of all time GAMES: Portal The Flash Version GAMES: Project Valkyrie [...]
I want to see if it is possible to roll Portal and HL2 together into a stand alone directory and leave my original portal directory alone. I have tried a few things with no success. I don’t think this is the right place to discuss this though. Is there a forum some place that is dedicated to discussing this hack?
To Random_326
always back up your files you moron, especially the save files. Duh, when you mod you do it at your own risk. If your are too stupid do that, well just don´t mod or just get the hell away from here.
hey guys how do you download half life 2 portal
Ummmmmm…I can’t get it to work on my computer. It doesn’t show any of the maps.
Ok, so I’ve gotten most everything working, including sound thanks to Baso88 and the vortigaunt particle thanks to picos. I’ve been trying to uncover the problem with NPC weapons making no sound and not doing any damage, but I haven’t found anything that worked yet. The strange part is the sprites are still in place and the empty shells make sound when they hit the ground, and the player guns all make noise too. Anyone else had any luck?
Just to clarify what picos said, to get the particles to work, you need to add the those lines that he posted into the particles_manifest.txt, which needs to be placed in the SourceMods\hl2-portal\particles folder that needs to be created (or if you didn’t make it a mod SteamApps\(your steam id)\portal\portal\particles). Those lines are buried in the particles_manifest.txt in the source 2007 shared materials.gcf package in case anyone was wondering.
As for the regenerating health, I’m thinking that properties like that are hard-coded into the models themselves, which is why there doesn’t seem to be any easy text file we can edit.
The mod is really cool, it just is lame that enemies can’t fire on you.
Ugh, to clarify what I just said, to get particles working, find the particles_manifest.txt from the PORTAL CONTENT.gcf (portal\particles) and extract it to the folders I was talking about, then modify the file with the lines picos posted. The reason you have to do that is because you can’t modify anything in the .gcf packages.
Oh snap, This is so damn cool I nearly cant find a word
I love this, I realy do!
Thank you so mutch ;D
[...] of them all. After I got through the regular way…. the first thing I’ll do is apply the portal gun hack to HL2. (video here ) Somebody let me know when you can do this in HL2:deathmatch… that’ll add [...]
“I’ve been trying to uncover the problem with NPC weapons making no sound and not doing any damage, but I haven’t found anything that worked yet. The strange part is the sprites are still in place and the empty shells make sound when they hit the ground, and the player guns all make noise too. Anyone else had any luck?”
No, but that’s the only thing that’s stopping me from really liking this. I beat portal and HL2 and I wanted more mileage out of both.
I don’t get the halo effect, and I can live w/o the flashlight. I have audio and textures and models fine. I have a Sourcemods/HL portal folder and all. This shooting thing is bugging me tho. I’ve seen 3 or so people ask, and I’m racking my brain about it. What are bullets implemented as? Not models, checking point? This should be doable; after all, turrets can shoot. If this thing doesn’t notify with responses, you can get me at paleobrat@comcast.net if you figure this out.
Omg when i load up the map it just shuts down
Picos,
Many thanx for the tip. I’m trying to get this to work, but i CAN’T for the life of me find that particles file…neither by search for specific content or in any of the half-life 2 gcf files. there doesn’t even appear to be once already existing inside the portal mod. I may just give in and “skip” past that part (noclip maybe?), but I’m thinking, unless this is fixed there’ll be other problems in the future regarding lost particles.
If you could just elaborate on which gcf file i can find this in, it would be very helpful.
PS: I did find a “particle” folder in the source materials gcf file, but it doesn’t contain the same files you list…
gah!! i wish i’d read wiplash’s post in more detail
sorry both!
Picos, wiplash, thank you!!! This worked great
Now, i’m thinking the gun sounds may be a scripting issue as well, since we only have turrets in portal, the guns probably aren’t scripted in. I found something once in a script in a file some where, calling for ar(something) sound files…i tried extracting them, but it didn’t work, probably have to modify another script, but i smell a success soon
Also, do you guys have problems of things like chapter names and weapon names only showing up with placeholder text (ie #hl2_chapter_01, and #portal_gun, etc.)? I’m wondering if, baso88 didn’t realize that this doesn’t work correctly, or if i’m missing a file… please advise.
PS: All those who think i was mad, i wasn’t. I don’t get mad at the trivial. I’m just enjoying this whole “modding” experience, and would like to think that people read an entire thread when it comes to nitty gritty details. great work, folks!
Also, do you guys have problems of things like chapter names and weapon names only showing up with placeholder text (ie #hl2_chapter_01, and #portal_gun, etc.)? I’m wondering if, baso88 didn’t realize that this doesn’t work correctly, or if i’m missing a file… please advise.
Thats a matter of editing the text… in scripts/titles.txt and all the weapons in that folder like weapon_357.txt if you don’t have those, you need them I would think, it looks like this is a big help
http://rapidshare.com/files/64224087/HL2_Portal.rar
I would set up as a sourcemods/HL-portal folder. dump all the HL2 files you can find there, and use that rar
Well, I don’t know what I did, but I have flashlight and zoom and dash, but my ai is disabling now. If I can get the ai back, I could post my folder for you guys.
Ok last triple post, but `ai_disable fixed that issue, but the NPC pistol has no sound and all ai guns don’t fire bullets. How do we fix this?
I am following this thread and trying to make the recommended changes, however I lack the conceptual understanding of everything that I am doing. Could someone give me a general explanation of how all of these files work so I can have the basic knowledge to do some experimenting myself? I would really like to get this thing working nicely.
For example, that rar file Naes just posted puts files in the “cfg” “resource” and “scripts” folders, what exactly do those do? I know that in general computer science terms a “script” is a list of commands, but the scripts folder seems to have everything in it. While folders/files contain the AI or map triggers?
I realize these are pretty newbie questions, but I am a smart guy and I can figure stuff out if you guys give me just a basic explanation to get me started.
Nice one! I WILL be having fun!
well i am trying every thing to get the NPC sound to work ….
lol i have extracted half life 2 episode 2 files and now every thing screwed up
good thing i backed it up….l
i tryed it once again and no dice
i suggest every one keeps trying
THIS MOD IS GREAT!
I CAN HAVE ALL MY EPISODES IN ONE NOW
with a portal gun
every one keep striving! i know we can do it!
i mean nothing is unhackable
well right now i am trying to combine all the half life 2 episodes including the very first one so i dont have to skip and i can spawn hunters on the first half life but i am still having issues
i know this topic is on portal but i am trying every thing i can and its hard lol
o well it will take a lot of time to figure out
if any one can tell me how i put all the half life episodes together plz tell me
Has anyone got the portal gun into HL2 itself? and not HL2 into Portal?
like have it so the portalgun replaces a weapon in HL2.. say the crowbar or something,..
thats where you have to extract portal files and some corruption happens but we can do it but…. i think we can
ill try
i am wondering…
are the any achievements that you can do in hl2 with the portal gun like you can in portal
i know this seems sort of unrelated to portal but i know how to make your gravity gun the super one with out all that changing level stuff and there was a code but it never worked so i worked around the console and i figured out a fast code to make your gravity gun on half life 2 to a super one
type this
physcannon_mega_enabled 1
and thats it
thats what i did and it just turned it in to one if you already knew this then damn lol
The HL2 Torch in Portal?
Is this possible?
If so, How?
is it possible to use hl2 weapons in portal?? not that it will be useful but im just wondering, it may be fun
im not sure but portal is hard to combine with hl2
what i am trying to do is get all the half life 2’s together
lost coast
half life 2
episode 1
episode 2
all together but i cant seem to edit gcf
if some one knows how plz tell me
i’m a mongo!
i dunno =D
Mongo =)=)
I tried to do this multiple times, and each time, the game was extremely glitchy, or it would crap out completely (fatal error and all that jazz). When playing Half life maps, there was no speech from the characters, and combine would shoot at me non stop without inflicting damage. When I first read this, I was under the impression that there was a file for the portal gun itself, and that one had to copy that file(s) into the half life op folder. Obviously not, and it doesn’t reallly work as it should. Perhaps i am missing something?
yourbestfriend,
Yes, it is possible to use half-life 2 weapons in portal after installing this mod…its kinda funny to see them have no effect on the security cameras though (but i have shot myself in the back through a portal, thats always fun :P)
Naes Draw,
Ive already modded everything up with that rar file
i also know what things i have to change in the files to get the weapon names properly, i just thought the person who made the compilation of those files had rigged it so that the # texts are variables or something. No really biggy to change them manually though. Will do that
Thanx again to all who have contributed so far!
If and when everything is basically working, perhaps i will compile a new file like baso88 did, with everything set up as it should, with clear instructions on anything you need to extract additionally (script files will be included, of course)…
or….
I will make a rar file of my entire portal mod folder and just upload that ;P
will this erase my saved games? i dont wana have to start over
Just downloading the Portal: First Slice through steam (available to all those that use GeForce video cards!)
Just wondering whether all the stuff in this article could be applied to the demo?? I’m thinking it TECHNICALLY could be done, but not sure…
I did it to a friends version of portals and its so much fun! I noticed Antlions can be blasted through a portal, but wanst able to test it on the Combine
~Braydie
[...] Half-Life 2: Portal : Primotech Half life 2 portal [...]
what other games does this work for besides half life 2? like half life 1 ( yeah i know it was a dumb example)
it’s not a dumb example…it does work with half-life 1
just wish it would work easily with sin
but the engine for that was changed i guess, and the interface and stuff is different, i’m sure that’s why i haven’t gotten it working yet.
Oh, man. As soon as we get our Steam account password recovered (it was stolen or something. And we are now VERY ticked off) I am SO trying this. This could just be better than sliced canned bread that was sliced by Chuck Norris.
Has anyone tried doing this with Deathmatch classic maps?
Has anyone figured out how to make the npc’s actually fire bullets? or has anyone figured out how to import the portal gun into hl2 instead of hl2 into portal?
BTW I love the concept here, pimp to the max… i just wish the npcs could shoot you to make it a little more challenging…
i removed the portalgu fom gmod so i i find yo with 1 i’ll ban u from the gme. i removed it because it’s a debugging nightmare! g 2 the update page for more info
what file do u extract it 2? plz tell NOW
i’m impatient so i need it quick ASAP
yourbestfriend, yes u can get the hl2 weps in portal. just type impulse 101 in the console
[...] Click here for instructions [...]
Im a bit of a noob to the whole modding thing but i think ive figgured out why hl2 npcs wont shoot but the turrets on portal will: its because of the kind of bullets they fire. (plz this is just a theory so if this is more hinderance than help disregard it)
Youll notice the shots fired by the turrets have a blue halo and those shot by the hl2 npcs have a yellow/orange hue thats because they are two differnt kinds of bullets, npcs that shoot similar kinds of bullects such as the helicopter that chases you on d1_cannals_9 are still able to shoot. Therefore there must be some kind of projectile file that is missing (this doesn’t explain how you can still shoot though…)
I have no clue where these ‘bullet’ files are located (that is a mystery for the more talented individuals out there to solve) but if they could be found it could as simple a job as coppying the files over or changing npcs weapons to fire that kind of bullet.
plz solve this problem asap as this mod will be awsome once its finished
[...] cool. it is a little glitchy cause it was not made for it duh. but u can can do some cool stuff Half-Life 2: Portal : Primotech [...]
I found the solution for the regeneration issue.
1. Go into the console.
2. Type “sv_cheats 1″ if you haven’t already
3. Type “sv_regeneration_wait_time 7200″
The value after sv_regeneration_wait_time is how many seconds you must not get hit before you regenerate. 7200 seconds is two hours. So unless you play for over 2 hours straight and don’t get hit a single time, you’ll never regenerate. Of course you could just put “999999999999999999″ but I don’t know the limit and I’m not willing to sit for hours testing it.
You’re welcome.
~Badamrock
what file do i extract it in? plz help me
is there any way to have the music from halflife2 work with this? you can extract the scenes and maps to a folder in portal… where would you extract the music to?
wait, hold on… i haven’t played this yet, but…
none of the enemies besides helicopters can actually shoot at you?
damn
what about what PRIME083 said?
can someone plz help. i have got portal for the pc and i have installed it fully, but when i try to play it, it says i need directx 8 to play, but i have directx 9, i heard you have to force it to play in directx 9 mode, but dont know how to do that, can someone tell me plz (also i am running on windows xp with all the latest service packs)
Add this to launch properties: -dxlevel 81
Or -dxlevel 80
i found this in game informer, this is a pretty cool hack. im going to go inf-loop a combine with portals =)
can u guys get the portal gun on halo 3 though?
hello…i,m from indonesia…thx for game half-life2 portal…this game really fun…hahaha….i,m a big fans a game half-life portal….half-life 2 and half-life 2 ep 1-2 too…thx very much
“GMODPWNZORZ on January 16th, 2008 11:03 pm
i found this in game informer, this is a pretty cool hack. im going to go inf-loop a combine with portals =)”
Dude you cant port ai
No voices work for me… Is that normal?
~MUSIC~
yes, unless you could add voices and musicinto game,im not quite sure how tho, so yes no voices
music into*
That’s what I’m asking how to do.
Also, enemies aren’t able to shoot me at all… Why is that?
And the flashlight doesn’t work. I mean, it has the meter, it’s just… there’s no light at all.
What ABOUT Garry’s Mod that would be sweet someone tell me if they know how to or if they know someone who does know THANKS
Like the portal gun on garry’s mod
[...] tried it but maybe have a go at using the portal gun in the HL2 SP game!!! looks like a blast
Half-Life 2: Portal : Primotech __________________ 64×2 4600+ @2.4GHz Asus M2N-E Kingston 2×1 GB 667 Corsair HX520 Seagate 250GB [...]
Can I do this on the xbox 360? You know, have the portal gun in half life 2….
Is it possible to have gorden use the portal gun instead of that girl?
I have hardly any sound. NPCs don’t talk. Dont hear train sounds. etc.
can it work on the x-box 360’s orange box????
ian and every other 360 owner–
no, it will not work on the 360 unless you mod your 360 which would void the warantee
for those of you who don’t know what modding it is, it means to open the 360 and soder on a special chip which would allow your 360 to run ‘backup’ games (idk if you can softmod a 360 which means to install special software that replaces the os of the 360 with one that can read ‘backup’ games)
Can you get the portalgun in X-Box 360 on Orange Box???
Can you get the gun in HL2 without have the Orange Box on the Computer???
Can you get it without the Orange Box on the Computer???
Aaron-
uh… no
ok… maybe i jumped the gun a little bit…
you dont need the whole orange box, just portal and whatever game’s maps (in this case, hl2)
so you need portal, hl2, and a computer
ps- there is a chance it could work on a MODDED xbox 360 but not a regular 360 for damn sure
Uh. How can I get sound to work? I’ve extracted all the files (Scenes and Maps) I run the maps. There’s no sound from the NPCs and the HL2 sounds.
Help?
sam-
extract the ’scripts’ folder from ’source engine’
Awesome hack guys will u b trying 2 find more?
Okay. I’ve been reading through the comments and would like to address something.
THIS WILL ONLY WORK ON GAMES THAT RUN ON THE SOURCE ENGINE.
This means no Halo 3, no Half Life 1 or any of the expansions (though Half Life Source will work) etc.
And for you 360 owners out there, you can’t do this. Ever.
Tough shit. That’s what you get for playing FPSes on a fucking console.
Enemies can’t damage me at all. Ever. Why is that? Is there a way to fix that?
” extract the ’scripts’ folder from ’source engine’ ”
But where should it be extracted to?
music-
extract the ’scripts’ folder to the same place you extracted everything else…
or just get this and copy it into where you installed everything else
http://rapidshare.com/files/64224087/HL2_Portal.rar
is there a way to get it to work for the xbox 360 version?
Alright, thanks. Works great.
But why can’t enemies damage me? People have told me that enemies can’t damage them through portals, but they said that enemies can damage them regularly… Enemies won’t do that to me. Why? Is there any way to fix that?
And I don’t suppose there’s any way to get npc’s and bullets through portals?
-kyzar
no, not really…
-music
ive tried everything to give npcs bullets but they just arent scripted to be able to shoot… they can melee though…
Well, damn… There’s no point going through the game if enemies can’t kill you…
I’ll wait a bit to see if anybody can find anything.
Oh, and… I don’t suppose you’ve tried figuring out how to use the flashlight?
If I installed windows onto my Xbox via Linux then could I do it? Oh, damn, I’d need to buy windows (mac ftw) *sad face*
Still, is it possible?
i extracted the hl2 maps and scenes, but when i got to the developer console, there were no maps or scenes listed
pfhortipghy-
in THEORY it would be possible in a way…
a) you would have to buy the windows version of portal and everything else
b) you would have to have enough hdd space to install them
c) you would probably lose the ability to play 360 games…
kurt-
does it only show the regular portal maps when you type ‘maps *’ into the console? (testchamber_1 or w/e)
How about that flashlight? <_<
music-
i dont think portal is scripted to enable the flashlight…
January 23rd, 2008… No, it still isn’t an Xbox 360 mod.
Do you get the feeling many of the Xbox 360 owners just can’t be bothered to read the text where people keep saying this is not for the Xbox 360?
You fucking XBOXers, how do you fucking mod the 360?? YOU CAN’T!!!!!!!!
This is for PC because in PC we have something that you maybe don’t know… AN OPERATING SYSTEM!! And it let’s you manage the files on the games and other things!! It’s fucking magic!! So stop asking if this mod is for the fuckling XBOX 360 because IT IS NOT.
Bye-bye fuck fucking 360 fuckers…
xplorer-
love the enthusiasm… i dont mean any disrespect but there is a way to mod the 360…
you open it up and soder on a mod chip which would allow the 360 to play burnt games… i think you ment to say there isnt a way to mod a game on the 360 which is true, but modding the 360 itself is doable
I’ve followed the instructions above word for word, however I encounter a problem.
When I start portal via steam I do not get a list of maps other than the ones from portal . So how do I remedy this?
Anyone figure out the NPC shooting yet?
PS Please E-mail if you do. I have a almost perfect HL-Portal folder, and if this is fixed, I’ll post it.
paleobrat@comcast.net
when i load a map i get this error:
] map d3_citadel_01
CModelLoader::Map_IsValid: ‘maps/d3_citadel_01.bsp’ is not a valid BSP file
map load failed: d3_citadel_01 not found or invalid
oh and i also only have half life 2 demo and portal first slice.
Will it still work??
and one final thing i have the problem of… *looks around for anyone eavesdropping*
Vista.
I heard that, he said he has Vista >:c KILL!!!!!!!
lulz
ultradude-
i dont think its do-able with portal first slice… at least i tried and it wouldnt work for me but worked flawlessly when i bought orange box…
Yeah, i was wondering, can you get this working for counter strike source so i could play against my friend like this, in online ?
is there any way u can do the same on the 360 version
[...] Using the Portal Gun in Half-Life 2 and friends [...]
[...] Hay que editar un par de archivos, escribir un par de líneas en la consola, y listo! Ya estarás viajando a través del tiempo y el espacio. Las instrucciones las puedes ver aquí. [...]
hey guys, i dont know if i’m a TOTAL NOOB or not…butt…i followed every one of those instructions exactly. I extracted both the maps and scenes folders into the portal place. now i run portal like it says, and i cant get the little prompt thing up to type my commands for the maps! i keep hitting fucking ` and it just makes the little sound that means it cant do it. ive changed the key for the developer prompt thing and none of them work. what is the simple mistake i made? please.
ALL of you guys are losers and havent seen a vagina in years, Why dont you stop playing video games for ten seconds and go outside? I stumbled onto this site and found sad loney hoplessness. You guys are beging for codes and source engines and format info and shit like it was crack, Games are fun but so is leaving your moms basement once and a while, oh and if your laughing saying “he said codes and source engines and format info instead of the technical terms” You need to get laid and a life that makes you the real sad douchbag in this sinerio. But do what u want live in a basement and masterbate everynight using your own tears as lubrication. Sorry if i was harsh on u guys i just want you to not have to live like that i smoked crack for 17 years and it was terrible so dont start shooting up your fucking videogghames!!!!!!
macssuck1992 go into “Keyboard” and then to “Advanced” and tick the box that says “Enable Developer console”
@Drunk Asshole -
You really are a drunken asshole.
thanks lyall!
o, and drunken assole. congratulations. guess your the only cool guy here among hundreds. ur right dude, we all live in our mom’s basement. and infact i JUST GOT DONE masterbating with my tears. r u like spying on me? damn man!
how about just combining the weapons folders in portal and half life2 episode 2.will that do anything?
technicly, this could be done on consoles via downloadable content or modding your console then moddifying the game and burning it
Hey lads me agin, ive decided not to mod anything until its working 100%. ive just read over the forum and from the looks of things (correct me if im worng) but the following issues have been solved:
regenerating health (Adam Brock on January 16th, 2008 10:31 am )
Scene files (has been solve multiple times)
sound (KitsuFox on October 20th, 2007 8:36 pm )
The only things that are remaining are just bullets (essentual) for the npcs and the flashlisght (pretty important but not absolutly essentual).
You blokes are making real progress, keep up the good work
PS. sorry all you people with a xbox360 but unless you were some sort of uber god console modder you couldn’t mod this on a xbox and so plz stop posting in this thread as these cleaver folks have enough work cut out without explaining this to you all the time
PPs. @Drunk Asshole birds gotta swim fish gotta fly (maybe i got that round the wrong way…) and nerds even those like me (im still in denial) have gotta play video games
Hi guys. Great progress has been made, I just want to say a few things; to clarify.
@XBox users: In order to use this mod, you need Windoze, and hence, a PC. It could be done on an XBox, but would require heavy modding. The reason for this is, correct me if I’m wrong, that the XBox only reads the files off of the DVD. In Windoze, the files are put on your HDD, which you can write as well as read to, allowing you to mod game files. On the XBox, the files are presumably a different type.
@most people: As PRIME083 said, several issues have been solved. If you read the posts that he mentioned, you can fix the sound problems, scenes, and regenerating health. The only problem left as of now is the fact that handgun bullets don’t fire.
Please stop telling people to E-Mail you. People aren’t compiling a list of people to E-Mail with fixes. Just stop. I agree that the page needs to be updated, but maybe Primo just forgot.
i got vista and i dont no wot to do becouse vista is difrent from windose if you no how to do it on vista plez contect me at
rickeyleee@hotmail.com
why do midgets laugh when theyrun? ……………………………………………………………………………………………………………………………………………………………………………………..because the grass tickles their nuts!
alex im not sure what you mean, true vista is slightly differnt from xp but you realy dont need to deal with features that are dramatically differnt, the basic process should be the same, just read the instructions and posts carefully and you should be fine.
I said this in a earlyer post (that was a long time ago) but id just like to get an update see if anyone had figured out if the absence of handgun bullets for npcs related to the absence of some kind of ‘bullet’ file (weather it be a scrit, part of the models themselves or otherwise). also could someone check for me if npcs are able to fire the pulse rifle as i think this fires the same bullet type as the helicopter on the canals (if this works it means that it is very likly that our problem is related to bullet files because im almost certain these are the same bullets as shot by the android turrets on portal)
Finally id like to say i agree with cc666, plz stop telling people to email you with fixes as its not too likly to happen, follow the instructions, read some posts and if you have a SPECIFIC issue then plz post it.
Were getting real close to having a perfect, functioning mod lads keep up the good work and you have this mod finished in no time. all we need is a breakthrough for the npc handgun bullets
My particles broke… I had them fixed. Working on fixing them back.
alex,
Whether you use Vista or XP makes no difference. The OS that you have has no bearing on the application itself. Steam is a separate application than Windows, the two have virtually no bearing on how the other one works, as long as each does it’s separate jobs correctly.
AND FOR GODS SAKE… TAKE SOME TIME AND “PLZ TIPE CRECTLY!!!”
(PLEASE TYPE CORRECTLY)
If you are using Firefox, it has a spellcheck feature built in. You can always take the time to correct your post, and also you can use http://spellcheckplus.com/ to check your grammar if you don’t have very good grammar.
I don’t mean perfect spelling, a post like PRIME083’s last one is OK, but alex’s is just laziness. My apologies if you don’t speak English natively, but most of you do.
Oh… Don’t get your hopes too up, but this might fix the NPC shooting. Hold on a bit and let me look at it.
would it work this way… as i was experimenting with smod and portal
i looked into smod at a weapon (umd launcher) did a search in the smod folder for everything with UMD in it. And it found ALOT.
Would it work if you went into portal found everything called “portalgun”. and copied them all into hl2(into the proper directorys), or any mod you want.
I tried to do this in smod as it had alot of weapons anyway…
one more wouldnt hurt. lol. Anyway got it almost done, but i couldnt even load a map. came up with this error “DT class CenvDetailController”
Now smod wont even work.
Can someone try this, see if it works for them..
There is some bullet info here. Might put us the right way.
http://developer.valvesoftware.com/wiki/Special:Search?search=ammotype&go=Go
Ah, this is where bullets are, but bable is a bit fuzzy on it.
Good luck understanding it.
http://world.altavista.com/babelfish/trurl_pagecontent?lp=de_en&url=http%3A%2F%2Fdeveloper.valvesoftware.com%2Fwiki%2FAdding_New_Ammotypes%3Ade
Ok, I did the mod, and I read above, but I couldn’t find the answer to my question.
Has anybody found a solution to being able to get sounds into the game? Without the sound, the game seems sorta dead.
(KitsuFox on October 20th, 2007 8:36 pm )
Look at that post.
[...] how about using the Portal Gun in a Half Life Episode? Sounds to good to be true?! Jump over to Primotech and check out how you can make your Portal dreams come [...]
Ok so now we have the bullet files (thats very good news) the only question that remains is how to use them, anyone out there have any ideas because they seem a little beyond my understanding.
If one of you fellows can figure this out then we will have done it, we’ll have a fully functioning mod except no flashligh…. i dont think its too essentual though (either way we’ll get it soon enough)
sucess is in our grasp we’ll soon have our final solution, keep up the good work and were gonna be playing hl2: portal (with no issues) in no time
Ps. What was with the last post?…
Hey all
I can’t get the cheats to work
It doesn’t recognise sv_cheats 1
Or impulse 101
Whats wrong?
A ad for this from another site. I still don’t get the bullets tho.
It wasn’t an ad, it was some other site that linked here, a.k.a did a feature on HL2:Portal.
If only this worked with HL: Source…
Spidyfingers is your console enabled?
Hi,
I would like to try to do it but i have got the orange box and i haven’t got to dowload it from steam so i haven’t got the same directory … and for example i can’t find the file “half-life 2 content.gcf” !!
Can you help me ?
I tried to find what the map somewhere else but there is only the file “portal content.gcf” which has got files for maps and for hl2 there are only materials models or sounds …
Thank you for your help…
Sorry, i found the problem : when i installed portal, half life 2 was uninstalled …
EPA
plyzzz
anyone else had a problem with what was described as ” just annoying yelloe and blue circles”. I have found that they aren’t just annoying but can accually get you stuck in hallways. there like a forcefield like bubble you cant get through. Is there anyway around this?
Thanks
I don’t know much about programing, however this page might draw up some insight to the bullet problem.
http://developer.valvesoftware.com/wiki/Simulated_Bullets
And I’m still looking for a fix for the game crashes when loading canals_02, _03, and more as I figure out which maps will crash.
BTW, when I open my developer window, there are a lot of lines in red refering to textures and such. It may be that the maps in question crash because there are too many texture errors on this setup of hl2-portal.
I encurage anyone that has figured out if a map crashes to list that map on this board. This list is for crashes while LOADING a map, not errors within a map.
The Current list:
d1_canals_02
d1_canals_03
@WubbaArmy: Copy the same files from HL: Source (Maps, Sound, Scenes) to the Portal directory.
@Tom: Those maps load for me without a hitch.
I crash, and I don’t know why. If you don’t, then there must be something we did differently from eachother.
Clear your Portal folder and start from scratch.
Now you’re thinking with portals!
My computer’s video card won’t let me run Portal but it will let me run Half-Life 2 (as there’s about a 3-year gap between them). I tried to console myself by getting Narbacular Drop and Portal: The Flash Version but really, that’s only made things worse. So… Is there any way to get Half-Life 2 to run Portal’s gun rather than getting Portal to run Half-Life 2’s maps? Cheers.
Not so far, what graphics card you running?
I’m using an old AGP 5900XT and I can run portal with no probs whatsoever
you could pick this card up at ebay for like £10?
So instead of asking the entire mod communit to change their entire thought processes from how to fix one or two bugs, get a better VGA card!
The reason I’m still AGP is so when I do spend my hard earned cash I can get a better system for it, maybe penryn
XBOX 360, LOL, its for little girls!
I have a 9550 Pro
1.5 Ghz P4 (soon to be 3 Ghz P4 Extreme)
512 Mb RAM (soon to be 2 Gb)
I can run HL2 and Portal on medium, E1/E2/Garrys Mod on low. the latter 3 run at about 15-25 FPS.
i tried copying the hl2 directory into the portal directory to get the sound working.. it worked. only on the npc sounds.. for example the citizens talking to you in the maps, but not alyx, barney or well the main npc’s.. any suggestions?
okay so enemies can’t go through portals right… wrong!
here’s my video of live headcrabs going through portals
http://www.youtube.com/watch?v=tyX_NDZ29Ow
i think that the problem is the ai doesn’t recognize the portal, and so won’t make the enemies start falling when they run over it, not that they don’t have the proper code to go through portals. in order to make this really work you’d have to make the ai have a code that recognized the portal as an open space, instead of just recognizing the floor or wall behind it, also it would require an entirely new code for the enemies to flip back onto thier feet or fall and get up or something
I don’t know if this will help, but add this to your gameinfo.txt
Starting from SearchPaths. Try setting up as a mod first.
Yes, it’s a mess, but copy pasta and it’s ok.
SearchPaths
{
Game |gameinfo_path|.
Game hl2
Game Portal
Game |all_source_engine_paths|hl2
Well, it doesn’t fix the bullets. Any more ideas?
It was ok but extremely buggy here and there mostly because Half-life 2 is old and makes these problems 1. Some Npc’s comands are corrupt to Portal and can and WILL make the game crash. 2. The only way you can die is if you are found by a turret or get bugged in water (that can be fixed) 3. Most npc’s lines are messed up and you hear “hey” or something like that and nothing else. That’s all I found while I was playing anyway.
is it normal that the music from half life 2 dosnt play and that if a npc shoots there shots cant be heard?
Will it work on PS3?
I was done with Half Life 2, I just finished up the Advance Portal and ended up finding this site. I copied over the maps. But I can’t every see the maps when I type in “maps *” I need the wildcard char now? But I only see the protal maps. But I see all the half life maps in the portal/maps. What am I doing wrong? I guess there has been an update to all of this? Does it matter how you start portal? Do you have to actually be in a level for it to work or is the main menu good enough? Any ideas would be great! Details would also help!
@justin: READ THE FUCKING POSTS ABOVE. I’m tired of people just asking and not doing their part.
@draco42: Why would it work on PS3 if it doesn’t on 360?
@Max: Copy the maps [u]and[/u] scenes folders. And sounds.
Hey lads me agin, ive decided not to mod anything until its working 100%. ive just read over the forum and from the looks of things (correct me if im worng) but the following issues have been solved:
regenerating health (Adam Brock on January 16th, 2008 10:31 am )
Scene files (has been solve multiple times)
sound (KitsuFox on October 20th, 2007 8:36 pm )
The only things that are remaining are just bullets (essentual) for the npcs and the flashlisght (pretty important but not absolutly essentual).
You blokes are making real progress, keep up the good work
PS. sorry all you people with a xbox360 but unless you were some sort of uber god console modder you couldn’t mod this on a xbox and so plz stop posting in this thread as these cleaver folks have enough work cut out without explaining this to you all the time
PPs. @Drunk Asshole birds gotta swim fish gotta fly (maybe i got that round the wrong way…) and nerds even those like me (im still in denial) have gotta play video games
jooooo, is this compatible with portal first slice? please say yes and help me out =)
do you kno how to do this on the xbox 360. please let me kno at fangmast3r@yahoo.com
when i do all the things and load the map my screen will see up like this: http://hot.ee/andukas1992/steam.bmp
@Ernie: From what I’ve read, no one has figured out how to do it with P:FS. Try doing the steps and copying to your FS folder.
@Johnny: You are a fucktard. You did not read any of the posts. If you want an answer, R.E.A.D.
@andukas: You are missing some textures. Possibly you have mods installed wrong? Do you have HL2 or the demo? Delete your HL2 and Portal folders, run Portal once (you don’t need to reinstall) and try the steps again.
Can you do this with halo ce?
After looking at some of the comment I think that the NPC’s shooting problem is either in the NPC or NPC gun script. Also another possible problem is the charachter model used in portal. It may be configured to react differently with bullets.(like with jumping and health regen) I will look through the coding and such when i can.
After looking around a bit I found that if you open the background04.manifest files with notepad, you can see all the links to the sounds used in HL2. I think the problem is found in one of those files. The links to the NPC speech and physics are located there as well. Here is a key example:
“sound\physics\flesh\flesh_impact_bullet1.wav”
“sound\physics\flesh\flesh_impact_bullet2.wav”
“sound\physics\flesh\flesh_impact_bullet3.wav”
“sound\physics\flesh\flesh_impact_bullet4.wav”
“sound\physics\flesh\flesh_impact_bullet5.wav”
In this case its just sound however somewhere i bet there is anouther file with real physics in it.
I am close to coming up with a solution to some of the problems however I need a appliction that can edit the GCF files and not just extract them. If anyone knows one, post it in these forums.
i just saw that there is a male portal player under portal content.gcf/root/portal/scripts/global_actors.txt
There is also several HL2 charachters as well
I got the idea to replace an HL2 weapon like pistol or crowbar with the portal gun however its turning out to be complicated.
Heres a webpage with a similar idea.
http://developer.valvesoftware.com/wiki/Replacing_the_Crowbar_with_the_Stunstick
Before i try this i will have to get all the rendering and scripts from portal so it may take me awhile.
Also sry if i kinda over commented.
I think i found the physics configuration for the portals themselves.
portal content.gcf/root/portal/scripts/vehicles/choreo_vehicle_portal_flythru
I found it interesting it was filed under vehicles however if we somehow apply that script to enemies in Half life 2 it may cause them to be able to use the portals.
I am going to use this forum to document what i do to get this to work. I guess i have a personal vendetta with this coding however brillant it may be. AGAIN SRY ABOUT FLOODING THE COMMENTS
So far i figure it would be easier to insert the portal gun into the Half Life 2 game. I haven’t tested anything so it may not work.
My comment about switching crowbar and stunstick wont work sue to the fact the crowbar and stungun is so simular that only the models were switched around. The portal gun is so complex in its nature that you would have to manully change the weapons list and scripting in HL2 to add it.
First the location to the portal gun and its rendering.
portal content.gcf/root/portal/models/weapons –all
portal content.gcf/root/portal/models/portals –all
Now the Materials.
root\portal\materials\models\portals
root\portal\materials\models\weapons
Now the particles.
portal content.gcf/root/portal/models/particles –certain files:
particles_manifest.txt
portal_projectile.pcf
portal_projectile_dx80.pcf
portalgun.pcf
portalgun_dx80.pcf
portals.pcf
portals_dx80.pcf
other files that may be connected to particles
blood_impact.pcf
fire_01.pcf
fire_01_dx80.pcf
red_blast.pcf
Now the Portal Gun’s sound and the players interaction with the portal:
portal content.gcf/root/portal/sound/weapons/portalgun
portal content.gcf/root/portal/sound/player
Now the effects:
root\portal\materials\effects –certain files:
portal_1_particle.vmt
portal_1_particle.vtf
portal_2_particle.vmt
portal_2_particle.vtf
portal_cleanser.vmt
portal_cleanser.vtf
portal_create_warp_dudv.vmt
portal_create_warp_dudv.vtf
portal_create_warp_dudv_dx60.vmt
portal_create_warp_dx70.vtf
portal_create_warp_normal.vtf
Now the sprites on the gun: –certain files
root\portal\materials\sprites\hud
root\portal\materials\sprites\portalgun_effects.vmt
root\portal\materials\sprites\portalgun_effects.vtf
!i cant tell if there is more sprites in the gun, some may be missing!
I leave off here because i am running out of time tonight.
Wow sef… what your doing looks like it might actually work and if it does you’ll have practically finished our work on HL2:PORTAL, i still think its a little odd that primotech wouldn’t of thaugh of this and instead tried to put the portal gun… oh well.
If your method works be sure to post a full set of instructions in a single post for easy reference
Keep up the brilliant work every 1 and good to see people reading posts and only posting specific un-dealt with problms
PS. @ the n00bs who keep making stupid posts without reading the multitude of posts that say you cannot nor shall you every be able to do this on a PS3, 360 or any other console: the next time one of you does this i will personally leap through your modem, rip your arms off and beat you to death with them. READ THE DAM POSTS!!!1!
I was thinking about some of the problems we may have with what i am trying, here is a list:
The enemies (other than sentries and headcrabs) all seem to be directly connected to the ground. That could be the reason you can’t make a portal under them normally. Ant lions you may be able to do this to because they can fly.
Getting enemies to go through the portals may involve adding that vehicle coding to them, however i will wait to try that later. Hard enough to get the gun in the game.
O and i think the reason the NPC guns wont work in your method is that the shots are not being initiated. I base this on the fact that there is no light, sound, or bullet when they fire the gun. All you see is the recoil which is most likely programed into the model. This could be because portal probably cant handle or initiate the scripts needed. I haven’t found a specific file that can fix this however.
Just got to thinking about the flashlight, From what I understand all you would have to do is move the effects that the flashlight makes to portal. Since there is no model for the flashlight that should be it. Also alter the key commands to allow the flashlight.
I am at school now so i cant look at the files I need to, so I may be a bit vague.
It is feasible to do this in xbox, however not anytime soon.
You would have to mod the xbox to play burnt games first.
then alter the coding using either primotech or my method i am working on
Then try it
I don’t know the xbox’s games file system so i can’t help you there.
I am assuming its all in .cab file extension however.
THIS ISN’T GOING TO HAPPEN SOON EITHER. WE NEED TO GET IT WORKING ON THE COMPUTER FIRST.
Thx to Frag Maniac on November 8th, 2007 1:33 am I have a GCF alterer so i can begin testing once i have documented all the necessary files.
I have absolutly no idea what these files do:
root\portal\models\vehicles\
If anyone knows please post.
Other than that i think i have found all the portal physics, scripts, rendering, and sprites.
Keep us posted sef, that may actually work. Would the enemies go through, though? I think that the AI would need to be coded to do so.
As for the n00bs with retarded questions; ignore them and drive them off by doing so.
Wow, keep up the good work sef! and everyone else who’s trying.
I tried to get ant lions through a portal, possibly too big.
And I tried shooting ant lions with a mounted machine gun.
They didn’t recieve any damage from the mounted gun.
My hand weapons still worked fine though.
AI Won’t recognise you on the otherside of a portal, because they don’t have the line of sight and still see it as a solid wall until you step thorugh, so may need to change their ai to similar to an auto turret which does recognise you thorugh portals.
Simply adding the correct script?
I look forward to the day when I can play through the whole of HL2 with a portal gun and no errors with full AI support for the portal gun where not only do the combine shoot through portals but pursue you through them as well.
Although saying that, there would sooo many area’s you could access with a portal gun that new wall textures and stuff would need to be added to avoid having see through scenery etc. Biggest downer for me in portal, = not being able to shoot a portal through a portal until you have stepped through.
thanks for the encouragement, i took a break today to collect my thoughts on the enemy AI. I think if we insert a portion of the sentry guns code in it may work. I am still just working off of theorys. This takes alot of time sorting through the files.
I am having troubles finding the enemy AI. I will do some research tommorow though. Right now i will start planning on exactly how to add the files needed. Here is what i found in scripting for the portal gun.
Now the Scripting:
root\portal\scripts:
game_sounds_weapons_portal.txt
mod_textures.txt
surfaceproperties_portal.txt
weapon_portalgun.txt
root\portal\scripts\vehicles\choreo_vehicle_portal_flythru.txt
I am wondering how to make a guide out of what I am doing. Right now i am extracting all the GCF files to make it easier to work with. Most people migt not be able to do things like that. I think it would be easier in the long run to just post these GCF file to bit torrent or file sharing. I think its still legal because you need the executable files and such to play it.
I have started testing. This may be easier than I thought however I want to get the gun into the game before I mess with the AI of the soldiers.
I need someone to find the AI files for the soldiers. That will help Alot.
I figure the easiest way to add the gun is to preload it in onw of these files.
\half life 2 content\root\reslists\Half-Life 2
I did a search using one of the file paths in one of those folders and it lead me to a different GCF. If i just add the files i documented earlier to one of those lists then it should just preload.
As of yet untested
[...] Half Life 2: Portal [...]
Good luck.
good news This will be far easier than i thought. At worst i will have to add all the portal gun files to one of the source shared GCFs. I will try just adding the file paths to one of the Half life 2 content GCF reslist if it doesn’t work then i will try the other method. I should be done in about 2 days at the most. SRY ABOUT COMMENT FLOODING
way to go sef! At first I thought it’d be near impossible to find a way to get the portal gun in HL2 (as opposed to just playing the HL2 maps in portal, which cool, but by far not flawless), but your work is getting me to think otherwise. Can’t wait to hear how the testing goes!
Today i have to make a list of the files involved and where exactly they would go. Also I have to figure out how exactly reslists work in terms of file paths.
@sef: The Valve Developer Wiki probably has a ton of info on the AI.
http://developer.valvesoftware.com/wiki/Npc_combine_s
That’s the Combine Soldier, the rest of them as well as zombies etc are on there.
cooollll stuff mannnn…. du u have it in hl2:episode 2……..?
K i took a look at the commands and it looks like these areas may be what we need:
* OnFoundPlayer
Fired when this NPC establishes line of sight to its enemy, and that enemy is a player (outputs player entity).
Flags
256 : Long Visibility/Shoot
Still i will keep trying to get the gun into HL2 first. Now I need the coding of the turrents from Portal.
The code from the HL2 turrets, with vox files and a laser sight. More or less.
I am having troubles with the GCF maker. It just shows a Command prompt for a split second and thats it.
Is there any other ways to modify the game other than moddifying the GCF?
What command would you use to manually load a text document into HL2. Like the preloading documents. If i can just do that in it command prompt then maybe none of us have to modify the actual game. The gun will just load directly from the Portal GCF like it does with all those Source GCFs.
If you set up a folder structure in the hl2 folder (I think that’s the one) similar to those in the GCF files, the game will use the files in the folders rather than those in the GCF archives. This is how various skin mods work. I would imagine if you just extracted and altered the text files you need to alter (and models, scripts, etc) and place them in the right spot, HL2 would use those and not the ones in the GCF files. Therefore, you do not need to recompile GCF’s, just put everything in the right place.
Interesting, that may work, however wouldent I have to modify all the reslists to include the C:…. etc portion of the path?
I am going to use this guide:
http://developer.valvesoftware.com/wiki/Adding_weapons
See if it works, I don’t thnk anyone else has found all the portal effects and such the way i did. May take me longer than expected.
I don’t think so, but the only way to find out is by trial and error I suppose.
WOW, nice find sef, that would actually make the portal gun a natural part of HL2!
thx a few problems i need to sort out however. To tell u guys the truth i bootlegged theis game, however i am seriously considering actually buying. But due to this my folders dont match any of yours. Also i cant connect to steam or any other such service. I should be able to do the mods using that guide however if i am unable it is best for one of you to try.
Here is a complete looooong list of assioted portal gun files.
All located in Portal Content GCF
portal\materials\effects\portal_1_particle.vmt
portal\materials\effects\portal_1_particle.vtf
portal\materials\effects\portal_2_particle.vmt
portal\materials\effects\portal_2_particle.vtf
portal\materials\effects\portal_cleanser.vmt
portal\materials\effects\portal_cleanser.vtf
portal\materials\effects\portal_create_warp_dudv.vmt
portal\materials\effects\portal_create_warp_dudv.vtf
portal\materials\effects\portal_create_warp_dudv_dx60.vmt
portal\materials\effects\portal_create_warp_dx70.vtf
portal\materials\effects\portal_create_warp_normal.vtf
portal\materials\models\portals\noise-blur-256×256.vtf
portal\materials\models\portals\portal-blue-color-dx8.vtf
portal\materials\models\portals\portal-blue-color.vtf
portal\materials\models\portals\portal-mask-dx8.vtf
portal\materials\models\portals\portal-orange-color-dx8.vtf
portal\materials\models\portals\portal-orange-color.vtf
portal\materials\models\portals\portal-red-color.vtf
portal\materials\models\portals\Portal_1_Anims.vmt
portal\materials\models\portals\portal_1_dynamicmesh.vmt
portal\materials\models\portals\portal_1_dynamicmesh_fogcompatible.vmt
portal\materials\models\portals\portal_1_renderfix_dynamicmesh.vmt
portal\materials\models\portals\Portal_2_Anims.vmt
portal\materials\models\portals\portal_2_dynamicmesh.vmt
portal\materials\models\portals\portal_2_dynamicmesh_fogcompatible.vmt
portal\materials\models\portals\portal_2_renderfix_dynamicmesh.vmt
portal\materials\models\portals\portal_depthdoubler.vmt
portal\materials\models\portals\portal_mask.vtf
portal\materials\models\portals\portal_refract_1.vmt
portal\materials\models\portals\portal_refract_2.vmt
portal\materials\models\portals\portal_stencil_hole.vmt
portal\materials\models\portals\portalstaticoverlay_1.vmt
portal\materials\models\portals\portalstaticoverlay_2.vmt
portal\materials\models\props\autoportal_frame\autoportal_frame.vmt
portal\materials\models\props\autoportal_frame\autoportal_frame.vtf
portal\materials\models\props\autoportal_frame\autoportal_frame_exp.vtf
portal\materials\models\props\autoportal_frame\autoportal_frame_n.vtf
portal\materials\models\props\portal_cleanser.vtf
portal\materials\models\props\portal_cleanser_exponent.vtf
portal\materials\models\props\portal_cleanser_lightwarp.vtf
portal\materials\models\props\portal_cleanser_normal.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_hands.vmt
portal\materials\models\weapons\v_models\v_portalgun\v_hands.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun.vmt
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun2.vmt
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun2.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_exponent.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_glass.vmt
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_glass.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_lightwarp.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_mask.vtf
portal\materials\models\weapons\v_models\v_portalgun\v_portalgun_normal.vtf
portal\materials\models\weapons\w_models\portalgun\w_portalgun.vmt
portal\materials\models\weapons\w_models\portalgun\w_portalgun.vtf
portal\materials\models\weapons\w_models\portalgun\w_portalgun_exponent.vtf
portal\materials\models\weapons\w_models\portalgun\w_portalgun_lightwarp.vtf
portal\materials\models\weapons\w_models\portalgun\w_portalgun_normal.vtf
portal\materials\signage\fixed_portal_border.vmt
portal\materials\signage\fixed_portal_border.vtf
portal\materials\sprites\hud\portal_crosshairs.vmt
portal\materials\sprites\hud\portal_crosshairs.vtf
portal\materials\sprites\portalgun_effects.vmt
portal\materials\sprites\portalgun_effects.vtf
portal\models\portals\portal1.dx80.vtx
portal\models\portals\portal1.dx90.vtx
portal\models\portals\portal1.mdl
portal\models\portals\portal1.sw.vtx
portal\models\portals\portal1.vvd
portal\models\portals\portal1_renderfix.dx80.vtx
portal\models\portals\portal1_renderfix.dx90.vtx
portal\models\portals\portal1_renderfix.mdl
portal\models\portals\portal1_renderfix.sw.vtx
portal\models\portals\portal1_renderfix.vvd
portal\models\portals\portal2.dx80.vtx
portal\models\portals\portal2.dx90.vtx
portal\models\portals\portal2.mdl
portal\models\portals\portal2.sw.vtx
portal\models\portals\portal2.vvd
portal\models\portals\portal2_renderfix.dx80.vtx
portal\models\portals\portal2_renderfix.dx90.vtx
portal\models\portals\portal2_renderfix.mdl
portal\models\portals\portal2_renderfix.sw.vtx
portal\models\portals\portal2_renderfix.vvd
portal\models\props\autoportal_frame\autoportal_frame.dx80.vtx
portal\models\props\autoportal_frame\autoportal_frame.dx90.vtx
portal\models\props\autoportal_frame\autoportal_frame.mdl
portal\models\props\autoportal_frame\autoportal_frame.phy
portal\models\props\autoportal_frame\autoportal_frame.sw.vtx
portal\models\props\autoportal_frame\autoportal_frame.vvd
portal\models\Weapons\V_hands.dx80.vtx
portal\models\Weapons\V_hands.dx90.vtx
portal\models\Weapons\V_hands.jpg
portal\models\Weapons\v_hands.mdl
portal\models\Weapons\V_hands.sw.vtx
portal\models\Weapons\v_hands.vvd
portal\models\Weapons\v_portalgun.dx80.vtx
portal\models\Weapons\v_portalgun.dx90.vtx
portal\models\Weapons\v_portalgun.jpg
portal\models\Weapons\v_portalgun.mdl
portal\models\Weapons\v_portalgun.sw.vtx
portal\models\Weapons\v_portalgun.vvd
portal\models\Weapons\w_portalgun.dx80.vtx
portal\models\Weapons\w_portalgun.dx90.vtx
portal\models\Weapons\w_portalgun.jpg
portal\models\Weapons\w_portalgun.mdl
portal\models\Weapons\w_portalgun.phy
portal\models\Weapons\w_portalgun.sw.vtx
portal\models\Weapons\w_portalgun.vvd
portal\particles\particles_manifest.txt
portal\particles\portal_projectile.pcf
portal\particles\portal_projectile_dx80.pcf
portal\particles\portalgun.pcf
portal\particles\portalgun_dx80.pcf
portal\particles\portals.pcf
portal\particles\portals_dx80.pcf
portal\scripts\game_sounds_player_portal.txt
portal\scripts\vehicles\choreo_vehicle_portal_flythru.txt
portal\scripts\game_sounds_weapons_portal.txt
portal\scripts\HudAnimations.txt
portal\scripts\hudanimations_manifest.txt
portal\scripts\weapon_portalgun.txt
portal\sound\player\fling_whoosh.wav
portal\sound\player\futureshoes1.wav
portal\sound\player\futureshoes2.wav
portal\sound\player\portal_enter1.wav
portal\sound\player\portal_enter2.wav
portal\sound\player\portal_exit1.wav
portal\sound\player\portal_exit2.wav
portal\sound\weapons\portalgun\portal_ambient_loop1.wav
portal\sound\weapons\portalgun\portal_close1.wav
portal\sound\weapons\portalgun\portal_close2.wav
portal\sound\weapons\portalgun\portal_fizzle2.wav
portal\sound\weapons\portalgun\portal_invalid_surface3.wav
portal\sound\weapons\portalgun\portal_open1.wav
portal\sound\weapons\portalgun\portal_open2.wav
portal\sound\weapons\portalgun\portal_open3.wav
portal\sound\weapons\portalgun\portalgun_powerup1.wav
portal\sound\weapons\portalgun\portalgun_shoot_blue1.wav
portal\sound\weapons\portalgun\portalgun_shoot_red1.wav
Sry about comment flooding and Someone go over the scripts folder, I may have missed one.
I will work on this more tommorrow. Need a break.
o one more thing, I already tried loading the portal maps into the Half Life 2 game. It was semi successfull. There was no textures, gun, and there was large error signs whereever there was objects. The walls were made of ping and other colors and was striped. The fact the walls stayed intrigued me so i looked at the errors. The portal gun was initialzed but ended in error. here are some of them:
Attempted to create unknown entity type func_noportal_volume!
Can’t init func_noportal_volume
Error reading in file “materials/maps/testchmb_a_05/c160_-206_192.vtf”
default error texture maps/testchmb_a_05/cubemapdefault
Error: Material “maps/testchmb_a_05/metal/metalwall048b_384_-64_64″ uses unknown shader “patch”
Precache called on a point_template that has no templates: point_spawn_single_portalgun_lvl5-a
That last one was the gun itself. I don’t know anymore where the gun is actually initialized from however if it is the BSP file, we could be screwed in this upcoming test.
I wouldn’t be worried about the stuff you saw in the portal maps on hl2 when you loaded the portal mas there the error signs are simply stand ins for missing objects and textures (im assuming you havnt copyied them across yet because if you have this might just get a little intreasting)
This is just a idea but (please tell me how practical this would be) what if someone with the knowhow was able to create an .exe (or something similar to that) file which would change/copy/unpack etc. the nessecary files. effectivly installing the mod in no time at all, I realise this may be a problem with the requirement of all these programs required to work all this but if it is possible it save the less talented (such as me) a lot of frustration.
Meybe that’ll be some thing to look into after we finish our work
Keep up the good work everyone and especially you sef
good idea, I think I know the perfect file type however i have no idea how to make them. A .bat file uses commands from text documents in command prompt. This will help st the files up for nontechnical users. Its a simple text style document but i have no experience in it so it will take me awhile to make one.
I will set up the mod here at school and test it at home.
O on the portal maps, What i found interesting was that the gun was initiated. This indicates that the gun may need the map to be put into the game. This is strange however because the Half Life 2 maps in Portal had all the weapons. I think if the mod technique doesn’t work then we would have to edit the precache list.
I looked over the comments and found
andukas on February 11th, 2008 9:36 am
that image is similar to what i had. It is a texture problem. The interesting thing is the gun wasn’t there and the errors showed that the gun was summoned.
About the BAT file, just have a folder with all the files you need to copy, with the BAT file outside of it, then in the BAT file just have a bunch of lines telling the computer to copy everything to where it needs to be, and overwrite if necessary. Just be sure to back up your original portal folder first
These mod directions are giving me a headache. There is alot of things we need that are not covered by the mods instructions. The way this is coming together seems a bit like the portal games actual file structure. I think we need to get a couple more people onto this section of the mod. If we do it would reduce the likely hood of this not working due to some missed file or something.
O yeah I have no experience in C++ which could be a problem at the end of the mod.
I have decided to go over the portal scripts again and matching all the files according to what they say within the mod. That made it a bit easier as long as I find all the right scripts.
I’m sry however I am starting to fall behind in my other work. I am going to have to abandon this project for awhile. If anyone wants to pickup where i left off they can.
The next thing I was going to do is assemble the guide for adding the weapon. It seems easier to follow the scripts links. Also I noticed a few things in the file system.
All the GCFs are connected except half life 2 to portal.
There is XBOX 360 configuration files in the gcfs from time to time.
The map files have there own files they automatically call up. That caused some problems.
The background files in scripts are actually for different menu backrounds.
You may need SDK.
I will check in once in awhile. Good luck
Can you do that with DOOM 3?
Fair enough sef, you’ve done a lot of work in the area, this is definitely a well-deserved break! I’ll probably be able to tinker with it tonight (I had 3 major tests this past week, so I couldn’t work on it that much until now). What all have you managed to accomplish? Have you gotten the gun into the game at all? Was it by the link to valve’s guide to adding weapons?
To all the people who keep asking about other platforms and games, this will likely only work on source-based games by valve. Let’s focus on getting this done on the PC first, then maybe we’ll talk about expanding it to other mediums.
yes it does, nikon.
THIS ONLY WORKS ON SOURCE GAMES AND WILL ONLY EVER UNLESS SOMEONE CODES IT TO DO OTHERWISE. YOU WOULD HAVE TO CODE IT FROM SCRATCH. OTHER GAMES BESIDES HL2, PORTAL, TF2, CSS, HL:S WILL NOT WORK.
I never gotten the gun into the game. I have only narrowed down the possible solutions. The link to the gun mod seems to be the best bet. I know there is no way to edit GCF files right now so that shot down alot of options. Right now the only way to use the GCF files is to extract certain part into exterior mods. That was my most recent plan with the gun mod.
If this should fail we will need SDK to edit the maps to include the gun.
Well, it looks like I’m gonna have to bite the bullet and install visual c++ so I can modify some code in HL2. Based on the adding weapons link sef gave, you just gotta copy the following files to their respective locations:
weapon_portalgun.txt
w_portalgun.mdl
v_portalgun.mdl
game_sounds_weapons_portal.txt
directory w/ the portalgun sounds
and modify some code to get the portal gun into HL2. I’m gonna try to do that first, then worry about the bullets, portals, etc later. One step at a time…
I got to thinking after seeing an article. Perhaps if we get the gun to work we should make anouther weapon based off of portals. Since the gun seems a bit overpowered maybe we can make some type of grenade that makes portals. Here is the article that gave me the idea.
http://developer.valvesoftware.com/wiki/Projectile_based_Weapons
Right click to drop and left to throw. It would limit the possiblitys of going outside the normal map limits.
Good call, projectile-based is a good idea. I think if we base it off the smg’s secondary fire (except speed it up a little bit) we’d be set. One thing I’ve found is it takes a while to compile and load the compiled game. I basically had to make a mod based off single-player half life 2 called “hl2p”. I followed the tutorial here:
http://developer.valvesoftware.com/wiki/My_First_Mod
Next step is to get the gun in the gun inside the game and just make it behave like a pistol, just to see if I can successfully add a weapon. I think, though, we should wait until we can mod the newest version of the source engine (the orange box version they call it, as of now we can only modify the episode 1 version) so I have the portal functionality and source files. This will make getting the portal gun into hl2 much easier, since I’d have the source files which tell how the portal gun’s projectiles behave. That way I can just copy the c++ files into the mod and make it all work (in theory, at least).
Yeah i was thinking about the smg secondary as well. The problem though is there is one fire trigger for its secondary. Which means we would have to set up a script to shoot orange portal every other shot. That is the only other way i can think of to do that other than adding a third function.
In the worst case scenario, we will have to individually edit all the maps to load the gun then use the sv_cheats to get it.
Keep in mind if we get this to work. We would be able to almost put any weapon into any source game. Although i only have the orange box I would like to see this in CSS and even Sin or something.
Maybe a silly question, but if you have the portal gun in portal/HL2 maps, and you use SV cheats to get up all the weapons, does this just import HL2 weapons from HL2 maps? Are the HL2 weapons a part of Portal anyway?
If so then maybe easier just to port the portal weapon list over which may include the portal gun and the cool little person icon that shows up when selected in game below the crow bar and Grav gun! That would solve modding exsiting weapons?
If some one can locate the Portal Weapons loadout script and check that against the HL2 weapons loadout script?
Just an idea.
Keep up the good work, wish I knew all about coding, then I might be able to help out!
Alas its all just letters and numbers to me.
I already thought of that, Portal does have several HL2 weapons however it doesn’t account for all of them. Its more likely that the rest of the weapons are located in the map file that was loaded. Also there is the reslists that the map loads as well. They contain all the links to the actual files.
I did however find it interesting that Portal still had files like crossbow and alyx gun (smg).
!IMPORTANT!
I just remembered that when you load the HL2 maps into portal that the portal symbol is like a small guy. That is stored in a rich text document in the portals actual installation file structure. It contains all the symbols for the weapons. Make sure to get it.
k nvm i was thinking of
C:\Program Files\Valvesoftware\The Orange Box\half-life 2\hl2\resource
it had all the weapon symbols. My last post was wrong
Keep in mind some people have Portal separate, not Orange Box’d.
(Like me) lol.
I’m starting the Portal gun into HL2 route as well.
Say, if you have Orange Box, try using Epi 2 as the base, then put the Portal gun and HL2 maps in it. That way you are working with Source 08(Or whatever it’s called.) from the start, that should have working eveything. I don’t have Epi 2 yet, so I cant try.
I found this in the GameInfo.txt, it might help if you don’t have it.
hasportals 1
A mess, but I hope it helps.
“:)
I’m not seeing this hasportals line…where is it in the file? Since the gameinfo.txt file isn’t that big, I’d say go ahead and paste it here. Also, I’m getting compiling errors when adding the portalgun, so I’ll need to see what it’s complaining about and try to fix it…
There is a 50% chance i’ve got this licked. Stay on the line, I’ll bbs.
I hope.
slugwars
Keep in mind you will have to simulate the paths in the scripts. Also gameinfo.txt just seems to be like a readme for modders. Its just original production information. Post any errors you may get.
Naes Draw
Keep at it, i hope you can get it.
SLUGWARS
THX I think i found it
I was wrong in my last post.
It is an important document and could solve every single problem.
What it does is decides what GCFs are loaded.
I think i will jump back in and start testing again. Here is the exact file past on my computer. (may not match)
C:\Program Files\Valvesoftware\The Orange Box\half-life 2\hl2
Ok preliminary test failed. It didnt how any signs of new model or anything created. This still could be out ticket to completion. Since we can access any GCF with HL2 we can probly get this wil a few more alterations. I added this to the coding of HL2 gameinfo.txt.
SteamAppId 400
ToolsAppId 211
At first i set a 2 infront just in case. I will try a portal map now.
Ok second test failed. Portal map was the same as normal. There must be a secondary script that helps the gameinfo.txt one. I will look through the scripts.
Ok, Loaded up a Portal map. Works fine, Chell player model, everything works like a dream, loaded a HL2, The gun works! BUT, you can’t go into a portal, because I think, the HL2 player is diffrent from the Chell one. shots and stuff go into the portals however.
I also had AI problems i.e. AI Disabled. If we can put the Chell player into the HL2 maps, I think we have it made.
What I did to do this, was copy the HL2 folder, put it into a mod, then dump the WHOLE portal gcf into it. Add the HL2 maps and stir in a gameinfo.txt with hasportals 1 and serve.
go into the gcf until you get to the folder with the maps models and all, and put all those folders into the mod. BBL dinner.
I think we are close.
ok third test semi successful. I loaded a Portal map in HL2. Here are the errors.
SOLID_VPHYSICS static prop with no vphysics model! (models/props/elevator_caps/elevator_caps.mdl)
Error reading in file “materials/maps/testchmb_a_05/c160_-206_192.vtf”
default error texture maps/testchmb_a_05/cubemapdefault
Error: Material “maps/testchmb_a_05/metal/metalwall048b_384_-64_64″ uses unknown shader “patch”
Precache called on a point_template that has no templates: point_spawn_single_portalgun_lvl5-a
I think we are making progress. The Vphysics error means I accessed the Portal GCF.
Naes your having more luck than me so i will take a look at chell script.
GLaD to be of service. :bows:
ok since u already have it working so-so try this.
insert the:
root\portal\scripts\vehicles\choreo_vehicle_portal_flythru.txt
file into:
C:\Program Files\Valvesoftware\The Orange Box\half-life 2\hl2\DownloadLists\all.txt
in your mod. This file seems to be the phsysics file for the portals.
With the way this may turn out we might be able to just have Portal as an actual mod instead of its own stand alone game.
O and I tryed putting portals vphysics.dll into half live 2 during my 3rd test earlier. After that the game wouldn’t load. Luckly i save a backup.
I dunno chaps, my way of adding the portal gun isn’t working. I got the c++ code to compile, but I can’t give the gun to myself. I’ll wait until I can use the orange box source engine SDK. I suppose in the meantime we can try other ways to make it work, but I’d rather make it a natural part of the game.
I personnly never install episode 2. Disc space issues.
No dice on the root\portal\scripts\vehicles\choreo_vehicle_portal_flythru.txt
adding, I copyed the console, but it didn’t stay in my clipboard, but there is a portal player and a portal weapon base it’s not finding. I’m still working.
O_O Open the sourcesdk.gcf. I think this is what we need to look at, I see stuff about players and stuff.
come to think about it. Does Gordon even have a model? I never seen anything like that in the models. Try loading the chell model into HL2. There is a way to do it through console however i can’t remember where i seen it.
this will help. Its a list of all the console commands.
http://developer.valvesoftware.com/wiki/Console_Command_List
Srry, I forgot the path from there
root\src_mod\game_shared
It has the player base too.
“come to think about it. Does Gordon even have a model? I never seen anything like that in the models. Try loading the chell model into HL2. There is a way to do it through console however i can’t remember where i seen it.”
Yes, it’s a gray non-animated person, I saw it in a portal.
I wish there was a edit. I don’t think we get the portal player base until the new sdk stuff is out… And that’s the trick. From the looks of it.
Thought so, That choreo_vehicle_portal_flythru.txt file i know is the one that determins how fast u are going through the portal. We need to know te file that makes the link between the two portals. I can’t help much more tonight sry. And tommorrow my schedule is full.
Good luck and keep in mind that this is most likely a scripting or dll problem in HL2 area.
O yeah I don’t have a sourcesdk.gcf and I have 13 different GCFs in all for portal and HL2.
Look in tools on steam, unless your the guy who can’t use steam, OH NVM THE ORANGE BOX sdk is out, I’ll dl now.
Um can you name those GCFs?
k hold on
half-life 2 content
half-life 2 game dialog
portal content
portal english
source 2007 binaries
source 2007 shared materials
source 2007 shared models
source 2007 shared sounds
source engine
source materials
source models
source sounds
sourceinit
I would have done it sooner but my computer froze and i had to restart
O yeah I cant use steam sry.
Ya, well, that was the sdk base, and it doesn’t have the stuff.
I got to thinking about it again and I think you need to try to use the portal dlls in the mod. Heres my file path.
C:\Program Files\Valvesoftware\The Orange Box\portal\bin
You know, the loading chell model COULD work. I saw the command… I can’t check now, but I will.
Well try that, I think now that it could be more located in the script that allows her to fall as far as she wants. It could be tied into something like response rules or such things.
I’m having precache problems. Were do you think I should precache chell.mdl?
Is there any way I could do this on a console game???
probly not but whatever
@Trevor,
If you read the above posts, you’ll find your answer, in short, its possible, though unlikely to happen any time soon ,considering that its far easier to do on a PC and peeps still have probs getting it sorted. or should i say fully working.
If you wanted to mod your HL2/Portal then you’d need to mod your console.
Naes Draw
I think precache files are for vmt and vtf files mainly. Where was the chell file you found?
Also i noticed sound files in precache 405 along with map files. We may be able to use those eventually.
Try adding all of Precache 401 and 405 to one of the other precaches. It may allow the physics to transfer over.
Sry I wasn’t able to answer earlier.
Can I add counter strike source bots so i like can play css against bots with the portal gun ?
hi i have don everything and its working fine but the only thing is tht i dnt have any sound for all the people can anyone help??
thanks a lot
I was thinking we may need more specialized people on this mod. We have made massive strides in making it however in order to get it working perfectly we may need people with more experiance in AI and C++.
Rune2099 can you go on some other forums and tell them of our project and progress? If we get more people we would have more ideas being kicked around as well.
We may also need someone with experiance with DLLs. They seem to be what loads alot of files at startup.
well I used setmodel chell in the console and it told me chell.mdl wasn’t precached. I don’t remember where it WAS but I could find it.
well find it and add its file path to each of the precache files. one of them should work.
I think I found what makes the portal see through.
root\portal\scripts\surfaceproperties_portal.txt
Its code suggests that the portals density is like water. Heres it parameters.
// density: this is the material density in kg / m^3 (water is 1000)
// elasticity: This is the collision elasticity (0 - 1.0, 0.01 is soft, 1.0 is hard)
// friction: this is the physical friction (0 - 1.0, 0.01 is slick, 1.0 is totally rough)
// dampening: this is the physical drag on an object when in contact with this surface (0 - x, 0 none to x a lot)
The most important thing we can do for this right now is identify what makes the portal useable for chell. If we do this all we would have to do is add it to precache for HL2.
All this does is mock 360 owners (fine and have pc owners enjoy it so)
Is there any way to do this on the 360?
@Toastwolf
have you read the whole thread, yeah it takes awhile cos so many people are asking about 360’s, LOL.
Yes its POSSIBLE if you MOD your 360 and void its warranty, what with the the 3 red light ring of death, it seems like a bad idea.
Just how practical this would be is another thing.
I don’t see anyone on this forum looking to code a 360 versionof the mod, though there maybe plenty who would. Also the mods in place for PC so far are far from finished, so in all hinesty a direct port at this stage would most likely crash your 360.
@Sef
Ya I’ll look for some other forums on portal, NP and give a link to this site etc.

TBO its a real shame that we can’t edit this irrelevant posts. and just view the important ones without having to scroll from one date to another.
I spose I could just create a txt file and copy and paste all the important posts.
BTW I have the orange box ver, got just after XMAS for £19.99, what a bargain
Thx Rune2099
To be honest, I am running out of ideas. Thats why I want to get more people on this project.
My most recent was unpack all the GCFs and order them correctly and see what happens. Its a last ditch effort so i will save it for later.
Here’s an idea I haven’t tried yet (I’ll do it soon, unless someone else wants to give it a shot). I was thinking, “doesn’t ep2 and portal use the same engine?” The answer (I think) is yes, because they run off of the orange box version of the source engine. The one with the portal gun stuff in it. So here’s the idea:
Open ep2’s gameinfo.txt and add in the “hasportals 1″ line if it’s not there already. Then, launch ep2 and try to give yourself the portalgun. If this works, then we’re set! Just plug hl2’s maps into the maps directory and play like you did in Portal.
You will need to add the models, sounds and materials. But, try it. It can’t hurt.
It didn’t work
I guess you would have to add all the portalgun stuff. If anyone wants to give it a shot, be my guest
ROFL at the 360 owners.
THIS IS A PC MOD FFS.
GET A CLUE!
or get a pc and buy ORANGE BOX for pc the way its meant to be.
NO THERES NO OTHER WAY SO STOP ASKING!
you would think people would lern after more than a decade of pc game modding that CONSOLES are NOT included in the equasion. You chose to buy it on a console.. your stuck with it EXACTLY.. the way it is without change, your lucky you get update patches from xbox live ffs.
Yeah that ep2 may work. Naes Draw give it a shot. I still see a problem however.
When I beat portal I played through it again with commentary. What happens when an object goes through the portal is that the object is duplicated on the other side. So it ,for a short time, has two versions.
Also in order to simulate the gravity changes the set a small bubble around the portals where the physics are different.
I suggest playing through it again and listening to the commentary. or listen from the gcf.
I heard that in the commentary too, but I didn’t know if these changes were exclusively for portal or if they were just part of the new source engine; they also did some modifications to make ep2 look better and more realistic, especially in the antlion tunnels (I’m playing through ep2 with the commentary now).
Well In my current HL2 portal, Stuff goes in portals, but not the player. I haven’t had time to do the setmodel chell yet, and I don’t have Epi 2. :C
I have no idea why stuff would go through but not the player. Is there any change in the path when grenades go through? Test a couple things like headcrabs, gun sentrys, and ant lions. Especially gun sentries. If they go through then the problem probably isn’t located in the model but rather in some type of physics script. If it doesn’t then it can be either model or script.
is there any possible way to get it on the 360 version?
Well, the props don’t colide with the level. They do go thru portals so far, I’ll try turrets later.
Would it be possible to do something like this to get SMOD to play maps from Episode 2 or Episode 1? I’m asking because I’m starting to get bored with only maps from the original Half Life 2.
Look at the instructions. You copy the same folders from the Ep. 1/2 GCFs to get them to work.
@Tim
Read the previous posts regarding 360, alternativley get a decent games system, ie a PC.
Perhaps we should get Primotech involved. They seem to have more resources and manpower. Plus they came up with the original mod method which was clever. Anouther place we can try to get to help is the valve developer community. They come up with great mods involving expert coding.
This final step seems like it will take more expertise. It could involve modifying the DLLs or impact coding.
Hey sef,
Thanks for your interest.
I was actually toying with the idea of doing a downloadable release of this mod.
If you and a few other people are interested in helping out developing it, I’d devote the time and resources to make it happen.
-Alex
Thx Alex
Right now the biggest problem is locating the correct script for portal-player interaction. I figure its either model script or global script.
I ruled out global script because other objects could go through the portal.
The only other thing it could be is the startup of the game. This is located in the DLLs. The one DLL I have been paying attention to is vphysics.
What i will try next is decrypting the DLLs so we can see what they do and whats all in them. I checked with a teacher and they said if we could decrypt them then it would be easier to manipulate.
lol portal gun in TF2 capn flags was never that easy
can anyone plz help me
ive downloaded the hl2 .it has 3 files .i ve to extract them and after ive done extracting i get a folder which contains all the files of hl2(obviously) there is also an hl2.exe file . i D.clicked it but it still does not runit says something about ifile system and that it cannot recover factory files ,,,,something like that. if u ve faced the problem and if u know the solution then plz help me as well . for i want to enjoy the game as well .i love valve productions.
they make gr8 first-person shooters
@angels: Quit pirating and use steam. We know Valve makes great FPS’s, the least you could do is support them in their effort to create more.
As far as the DLL goes, you’ll have to create a mod (sorta like what I did a while back). The reason you need to do it this way is because if you create a mod based off hl2, when you compile it, you’re creating the client and server DLL’s which has all the technical data related to the weapons and other mechanics of the game, such as speed of the RPG missile, fire rate and accuracy for the SMG, etc. Just follow the tutorial here for more info:
http://developer.valvesoftware.com/wiki/My_First_Mod
As far as getting the portalgun in hl2, we’ll have to wait until valve releases the “orange box” version of the source SDK, which allows you to create a mod that can use the portalgun-related C++ files (in addition to the original hl2 C++ files) to compile into the two aforementioned DLL’s.
You don’t need to decrypt the DLL’s and modify them; you simply need the source and compile the DLL’s.
This is where Primotech could get involved. I’m pretty certain that at least some of you know the mechanics of creating source-based mods, C++, etc. If anyone can make everything compile correctly and work, it would probably be you. If this were to be successfully implemented, then we’d have a hl2 which natively supports the portalgun.
Well since we can’t modify the DLLs, why don’t we modify the files they access? I found a somewhat decent application that shows the physical memory that is accessed by the DLL but also the files. I would have to experiment but if i find anything of note i will post it.
I didn’t get anywhere with the dll viewer. I am checking out the gameinfo.txt files again now.
Realized that if the DLLs were responsible for portal-player problems, then when Naes Draw tryed the portal maps in Half Life 2 it wouldn’t have worked. I am circling back around to scripts.
I would expect that some of the problems we’re facing is due to the modifications the portal people did to the source engine, which is, at least in part, in the DLL’s. The DLL’s themselves can’t be edited, but compiled using the way I outlined the post before. The only way to get this all working flawlessly is by compiling a mod.
However, until we can do that with the newer source engine, we’ll just have to improvise using the portal DLL’s, since they have the portalgun functionality. I learned by trying (and failing) to play with the portalgun in ep2 that it wasn’t in the ep2 DLL’s.
One idea, which would take a while, is to open all the random script files (stuff in the scripts folder, etc) and such and just add on what’s different between the portal and hl2 stuff. You have to do this to get sounds to work and keep the game from freezing at places like the red train car, so I would expect that if you did this to all the text files in the directory and subdirectories that’d be as close as you can get to perfect.
hard!!!!
is ther go in to be a new half life 3 or 4 ????
half life and portal is awsome !
slugwars
k i will give that a shot tommorow.
alex
the episode 1-3 was considered half life 3. The game makers decided that fans would like it better that waiting 4 years.
There is a difference in the mapautocompile.txt between portal and HL2.
Heres the portal file top line of coding:
vrad: -final -staticproppolys -staticproplighting -both -mpi
Heres the HL2 top line of coding:
vrad: -final -staticproppolys -textureshadows -nossprops -hdr -mpi
I also found it interesting that Portal didn’t list all the map files the way HL2 did. It just had a default loading for all maps from what I see.
K for propdata.txt I found few differences.
Portal:
PLASTIC
“dmg.club” “1.25″
//”physicsmode” “1″
“health” “1″
“damage_table” “glass”
These were different or new in the coding
Sry but i found more in Propdata.txt
Portal:
POTTERY
// Breakable small pottery
“Pottery.break”
{
“base” “Pottery.Base”
“physicsmode” “3″
“health” “20″
}
The only difference I saw in surfaceproperties_manifest.txt is:
“file” “scripts/surfaceproperties_portal.txt”
under the list of additional property files.
Surfaceproperties_portal sets up what type of surfaces are needed to make a portal. Basically it rules out jagged and small surfaces. Also there was no real matchs between the HL2 and Portal version of this file.
In the Weapon_manifest files, the portal version had every gun including the portal gun. Thats why the original mod could use the other guns. I bet if you typed in the right cheats you could get HL2 guns in normal portal. But that wouldn’t really benefit.
The talker Folder in portal has no importance on Player-Portal interaction. It just sets up the death sounds and such. And the response rules look like alot of coding but it just points to the talker/chell.txt.
I tried it and right now im just playing around in city 17 with my awesome portal gun but i have a question, it seems that theres no sound with the scenes…the characters make the scene movements and do what they’re supost to only i hear no sound comeing from they’re lips, how do i fix this?
Read the thread in reverse.
Look for PRIME083.
Attempting to get the SMOD guys to see if they can help.
I took a look at some of the videos on the SMOD and they have alternate functions for alot of weapons. This portal gun seems to fall under that category. They also changed alot of other things like in it the enemies can shatter like boxes and such does.
Cool, it worked. just wondering. almost all the sounds that are in the game are not there. people dont talk they just make facial expressions, which is pretty funny for a bit but not after 5 mins, also there is no ambiant noise makinging feel like i have a hearing problem. <is there any way to fix this? oh and if you play from the first level for a bit the weird cloud thing goes away ^_^. also shouldnt there be a way to just take the portal gun and all its attributes and stick it in the Half Life 2 data?
From all the scripts I have looked at, There doesn’t seem to be a Player-portal interaction one. I will look in other GCFs.
I am going to get Source SDK. Kinda of a risk however I think it will work out. I got to thinking that the actual physics is stored in the map. Makes sense since the lighting and walls are built there as well.
Good and bad news. I have found for sure that the portals teleport functions are located in the map’s script. This is great because now we can all shoot for editing the maps code to what we need. I found a file within a Hammer 3.4 bootleg i did. The name of the file is portal.fgd. What fgd files do is provide an easy reference to map makers to what the coding does. Here is a long bit of coding that I found interesting.
@SolidClass base(Origin, Angles) = func_liquidportal : “A space that fills with portal liquid and teleports entities when done filling”
[
InitialLinkedPortal(string) : “Linked liquid portal.”
FillTime(float) : “Fill Time (sec)” : 10 : “How long the volume takes to fill in seconds.”
//Inputs
input SetLinkedLiquidPortal(string) : “The liquid portal this should link to. Will update linked portal to point back.”
input SetFillTime(float) : “How long the area takes to fill.”
input StartFilling(void) : “Start filling NOW. Entities teleport when finished.”
input AddActivatorToTeleportList(void) : “Add the activator entity to the list of entities to teleport when filling is finished.”
input RemoveActivatorFromTeleportList(void) : “Remove the activator entity from the list of entities to teleport when filling is finished.”
It ends here. The bad part is I have yet to get bsp files to open in Hammer 3.5, however I will get to configuring it tommorrow. sry about flooding comments.
@Ryan: If you read the thread, that’s exactly what these people are doing!
And if you read, you’ll fix your sound problem.
this would be sweet if this turned into a full blown patchable mod
I’ve been following these comments all the way through. I think it’s cool what their doing and I’m sure once they get this fully working, they’ll find a way to convert their work into some sort of patchable mod.
Anyhow, I would suggest setting up a blog somewhere to make this a lot easier than using the comments. If you have a gmail account sef, you can sign up to https://www.blogger.com/start and set one up. This will also allow people to follow your progress through the rss feed function there which is cool.
That would be cool however, I am running out of ideas. Throughout most of this I have been running on theory and doing small tests based off of them. This latest map idea seems like the solution however i will have to wait for the new source sdk to come out onto torrent or something before I can test it. Untill then I will leave it to Cc666 and Naes Draw plus anyone else who has any ideas.
Should anyone try to test out the map editor idea, keep an eye out for any scripting pages.
Also I wasn’t able to open the BSP files with my version of hammer.
[...] Valve has, by the way, confirmed Portal 2 is on the way. And find out how to play through Half-Life 2 and its ilk with the portal gun right here. [...]
I haven’t been doing anything. I don’t have much (not any) modding experience in HL2.
Actually to tell you the truth I have no experiance either. I have some understanding of Javascript and HTML. That helped me understand the scripts and file structure. And all I did was small tests to determin what may work. Once I get the real orange box I can probably get the maps changed to include the gun.
hey can you tell me how to do this without having to use GFCSscape cause it takes too long
Hi there guys , hive tried this whit original hl2 and non-steam portal , so , i changed files in portal folder ( maps , scenes , materials , models ) and i get it work , just have one problem , i can read a message saying ” A.I. Disabled ” so , there is anythink i can do for fix that ?
e-mail me if u like , plz : shishiofx@hotmail.com
@omfg
There is several AI related console commands. Try some out and let us know what you get.
http://developer.valvesoftware.com/wiki/Console_Command_List
@sef
Ive tried some commands , the first * ai_disable “0″ * but doesnt work , still disable , and im starting to think that the problem is that the non-steam portal is missing some files that may read of hl2 common files ( i guess ) so , im gonna try whit orinal portal too and then ill post what appends.
@ omfg
Yeah that may be the problem. Check to see if your version of portal still has AI as well. If what you do next doesn’t work it may be the same problem we are having with the maps preloaded objects.
I get the Ai Disable as well. I do get the Portal gun into HL2, it’s just the player can’t get in it yet and props have no phys meshes.
Still working on getting the chell.mdl to work. I have the Orange Box SDK, but I… wait a minute! brb.
[...] Information om hur du gör hittar du här: http://www.primotechnology.com/2007/10/17/half-life-2-portal/ [...]
Huh, still looking, but Portal LOOKS to use the same info_player as HL2. Meaning that it could be a model issue. I’m also going to mass spam the folder with all the HL2 scripts I can find.
Looks like I found all the Precaches. Testing now.
Ok, getting somewhere! AI is working fine, portal gun is no problem, phys meshes are ok, BUT enemy bullets are gone. If we can fix that we are set. Oh, and when you look in a portal you only see the gun.
If we can fix the bullets we are as good as done.
If I remember correctly there is a command that initiates the enemies primary weapon fire. Not sure where its at however if you use it, whether it works or not it should provide an error that will point to the actual script file.
Got to think and using commands for the bullets part probly wont work.
Not sure right now why the bullets won’t work. Keep messing with precache, it could be a connection between GCFs.
Is it at all relevant that when you load a HL2 map into portal, it tells you in an on screen message that its loaded “test chamber 15″ for example.
Surely it should know its loaded D3_citadel etc
it then reloads the data?
could there be a configuration problem located in a map list or something?
Just an idea
The reason for that from what i understand is that it uses the same backround.txt file as the testchamber. That however is a good observation.
I remember reading something somewhere that when steam updates it also updates the GCFs. That means that even if we could edit GCFs we could not keep the moddifications forever. That is why the modding technique is the best way to go in this project.
I am going to start a blog accourding to djnforce9’s sugestion. It would make the organization of this project’s comments easier. Also, even though this is my first such project, I am going to try to set up drivers for rock band instruments for frets on fire. These projects actually seem like more fun to me than the actual games at this point.
The blog will be for whatever progress I make even if I am alone in some projects. I will set it up tonight.
The blog is made, which was incredibly easy by the way, here is the address:
http://unimods.blogspot.com/
Keep in mind that I am new to this as well. Never made a blog before so any suggestions will be usefull. Also I will eventually implement some java or html or something to kinda spice it up.
Keep in mind that I sometimes have bad grammer as well.
Hey guys, just wanted to let you know that you’re giving alot of people hope :P, I’ve been wanting to get the portal gun into half life and other valve games for a while now as opposed to merely playing hl2 levels in portal, but I lack the programming/scripting knowhow to even attempt it (though i’ll admit it hasn’t stopped me randomly extracting .gcf files into directory’s )and hoping). In any event your work means something to everybody out there in the valve community, thanks alot, especially to Sef, but to all of you throwing your idea’s around.
Does the Enemies still recoil from shooting the gun? Any sound or damage? Do antlions and Head Crabs do damage? Does falling a long distance still hurt? Some of the answers will help point to the cause.
I can’t use CSS coding in the blog so I can’t customize it so easily.
K I remade the blog. Its made so that only I can make new posts but anyone can comment. I can make someone an author should I have an extra project should someone want to pick it up. I also used a picture from this site for the header.
Sef:”Does the Enemies still recoil from shooting the gun? Any sound or damage? Do antlions and Head Crabs do damage? Does falling a long distance still hurt? Some of the answers will help point to the cause.”
Yes the Combine weapons recoil, there is muzzle flashes, there are shells, but no bullets or firing sounds for NPCs. Melee attacks still seem to work. And from what I can tell, there isn’t any fall dmg and there is regenration of HP. It’s not you can take bullet dmg, because I shot myself with most of the weapons thru a portal and they did damage.
interesting its the player model that seems to be the problem. remember the same problems were in the original mod. Check the chell script and try modifying it. I remember regen was found there as well.
@Naes Draw
Can you post a guide on what you have done so far. Could provide clues to the bullets problem.
@Naes Draw
Try using this cheat
impulse 108
Cheat. Debugs the NPC under the crosshairs.
May provide clues.
I’m unable to find the ‘half-life 2 content.gcf’
would this be in Valve\Steam\steamapps\ ?
All i see in there is Platform.gcf & winui.gcf
other than that is a folder marked SourceMods but it’s empty.
Has it already been said that you need to have a valid registered copy of both Portal & HL2 installed.? both of mine are cracked version & even the portal version is a standalone that doesnt even need installing.
is there anywhere I can get a copy of that gcf file ?
sorry, last one i hope. i also dont have a ’steam_id’ folder.
@MrM
Your saying that there is no GCF for HL2 and portal?
Does the two games still work?
This could be benefitial to the mod we are working on.
Where did you get the stand alone versions? I bootlegged the orange box in full so I had GCFs
impulse 108
Gave me a bit of hex and that was it.
Um, I made a HL2 mod folder, then put all of the Portal and HL2 Gcf files in it.
K i will try that sometime however right now I dont have enough disk space.
I don’t know what could be causing the bullet issues but it would have to be common element from primotechs technique and your mod.
How about this, Try dumping all he GCFs into the mod. One at a time. This may seem like it would use alot of disk space but however when your done you should be able to delete the GCFs safely.
!IMPORTANT!
I may have found the problem. Navigate to:
C:\Program Files\Valvesoftware\The Orange Box\portal\portal\DownloadLists
and delete the exclude.lst file. I just used something like this in school. Try primotechs method after doing this as well. What it does is restrict what is loaded by portal. Likely that is the problem we are having.
Make sure you save a copy of that txt document however. Never know what could happen.
I don’t have one in my portal folder…? Or in the mod, unless…
No, doesn’t look like it. I’ll add a blank one to the folder and test it.
Well, I found one, hold on.
Crashed. But I don’t think it was from that. I’ll try tomarow, it’s late..
@ sef , Here’s a list of the GCF’s in my valve\portal folder; portal content, portal english, source 2007 binaries, source 2007 shared materials, source 2007 shared models, source 2007 shared sounds, source materials, source models, source sounds.
Then in ..\steam\steamapps there’s platform & winui.
And yes, both games work just fine.
HL2 I had to install but portal is standalone. I dont recall where I got either game but somewhere on a torrent site. Yes, I too am a shameful pirate. Ok, not SHAMEFUL. But I would buy the Orange Box in a heart beat if i had the cash. Great deal for 5 games. But I only wanted HL2 ep2 & Portal. HL2 & it’s subsequent episodes have been my favorite games ever. Portal is just an amazing concept that was executed beautifully. I really hope there are intentions to use the Portal gun in HL2 ep3.
perhaps what a lot of ppl may be hoping for (& I don’t know if it’s been mentioned) is a pre-modded version of HL2/Portal combination so ppl like myself who dont have some of the proper files can effectively play HL2 using the portal gun & maybe even experience the sounds too.
It sounds like so much more fun even though it doesn’t really work within the game itself
Interesting Now when you installed the stand alone portal did you have to use a reg edit file? Also Since it come without GCFs and other such things could you tell me a bit about what files are under its directory. Just list a few and I should get the idea.
A+ testing is coming up so I will have to dip out of testing for about a month.
Think of the coding objectivly. Any new errors should be looked on as progress to the solution.
Try putting:
Game portal
in the half life 2 game info.
Let me clarify my last post, I mean dip out of testing the mod. Just noticed I was a bit unclear.
for sound, with voices the best thing to do is turn closed caption on, at least you know what they are saying and what is happening
Well, I got this to ‘work’ to some extent. No HL2 ambient sounds or characters sounds and some more missing sounds. Actually, a few times I got phrases like “Over HERE!” or “oh its you”, little phrases like that but then that’s it. I get my weapon sounds & explosions also.
@ sef, i took the bsp files from my hl2 maps folder & placed them in MY [however it's setup] Portal\portal\portal\maps folder along with the scripts. All the sounds are in a gcf file located in the irst portal folder; portal content [sounds contained within], portal
english, source 2007…., etc.
And no reg edit files. just extracted the rars & modified the shortcut with -steam -game portal.
@MrM
Try editing the gameinfo.txt file to include the HL2 GCF. Its just a few text edits.
is there a free gcf editor ?
I’m wondering if i took the portal content gcf, removed the sounds folder & replaced it with hl2’s sound folder, would it work maybe?
Unfortunately no:
Steam automatically updates the GCFs so any changes won’t stay.
Also any free GCF editors are all very buggy, I trieed to find some a while back.
Yo can get the files out and put them in a mod folder however, with GCFScape.
I got to examining the posted pictures by primotech. Notice that no sprites were loaded for the orange or blue glow within the gun. That means that not all aspects of the gun loaded in the HL2 map. Not sure what that would mean right now but I will keep it in mind.
Just figured out how the sprite thing in my last post is beneficial. The only other difference between play in portal maps and playing in Half Life 2 maps is the maps them selves. Since the HL2 maps are not designed for portals DLLs and scripting the portal gun’s sprites are missing. Same thing with all the other glitchs. Not sure what to do now.
@Naes Draw
Continue experimenting with the mod. Also is there sprites?
I also tryed the exclusion list thing and mine crashed as well.
i started playing the ‘coast’ maps but there was no vehicle. boooo.
don’t know what happened there. then, when i decided to hoof it [very very long walk] i noticed that just after the first tunnel [the game loads] i shot a portal on the tunnel face & then one on the house way off in the distance. when i walk thru the portal i fall into the map and get stuck. even boooo’er.
*save your games often.*
[...] be other weapons available or will the whole point be to make the other player fall into fire/goo?read more | digg [...]
@MrM
use the console command, noclip
this will allow you to walk through walls, floors etc.
when you are clear of the floor, type it in again to resume normal game play.
Can you help me mates ?
I did this thing with GCFScape, it worked nicely.
Except that at some point all the menu text dissapiered
.Then I reinstalled the game ,deleted the program and still the same problem .
No letters on the buttons ,or menus
http://i254.photobucket.com/albums/hh108/Tesirus/Untitled-1-1.jpg
@Terirus
Interesting, Well the fact the problem stayed after you reinstalled means that the mod is not responsible for the ongoing problem. However it did cause it to begin with. I am betting the resolution is the problem. Try switching the resolution on your computer to match what the game uses. Other than that I don’t really know of any other solutions
I have given up on the frets on fire/rock band mod idea due to other people’s interest in it already. They are making steady progress in it so I think I came up with another good idea. I think I will try to get the Wii remote to sync with Half Life 2. It would be pretty fun and such. Their is a script out there for some things involving the wii-mote. I think its called pie something. I will do some research.
After A few minutes of searching I have already found people who have done it on google video. The name of the script is called GlovePie. I will look for instuctions on how to actually make this work today, and post them when I am done.
Ok I can’t start testing this right away however I found a good resource.
http://www.wiili.org/
This will provide alot of answers if needed. I need to go buy a bluetooth adapter before I can try this.
yo guys,i’m trying to install half life 2 - episode two - but i cant play it.. please help somebody ? !! did i need the half life 2 to play it or just the episode ??
waiting for reply
@$py0x
Yeah you need Half Life 2 to install episode 2. And possibly episode 1.
$pyr0x , you can always do like I did & get a standalone copy. No install.
But that’s on the piracy side which, although i partake I don’t officially condone.
i’d just like to say because of so many people complaining about things not loading and going wrong that i have followed all the intsructions to the tee and the game works fine (exept the non shooting enemies and flashlight) and i would just like to thank everyone whos working on making it better
Hi!
I cannot pop up the console. I activated the console in Options, and I tried to use the ~ button but the console not come. Why? I tried this in the game menu.
did anyone get the hl2 sounds working? such as; ambient, vehicle sounds [like trains, choppers...], antlions, etc.
I’ve got all my weapon sounds, explosions, & item sounds like boxes breaking & barrels exploding.
mind you i’m about 2/3 thru it now.
ok,thx for help anyway
HL2 player you have to use the console in game, just start click new game and try it after its loaded
Well , ive tried on both hl2 and portal official ( steam ) and it works ! , but there is some several problems around , some sound misseds and the worst thing is that the enemy bullets dont hit me ! someone knowh how to fix this ?
@ omfg
if you read the previous posts, you’ll find that your questions have been asked numerous times already and answered already.
Seems mod development has almost come to a complete stop. I have been thinking that even if we get the gun in, that we cannot make it completly native to HL2. The DLLs and map preloading seems to be the problem. I can’t edit the Maps and the DLLs are virtually impossible to edit. The only way to edit DLLs that i know of is a disk editor program.
Those edit the actual hard drive physically. I am no where near that skilled for that, and even if I were I would have to have intimate knowlage of the DLLs structure. Not to mention that its extemely dangerous to alter the hard drive in that fashion.
For now I am waiting to get the money for the actual game.
Thanks for the update. If you have this game trade it at gorillaswap.com
I’ve been away for a bit, but I’m back.
The “portal gun is in maps” therey doesn’t make sence. Running the HL2 maps in portal you get the gun.
I’m going to try something, but I weep for my Hard Drive space.
I’ll put ALL HL2 stuff in one mod folder, then put ALL portal stuff on top of it.
Then, I reverse it. Because, I think we are over writing files here.
Here I go…
To help you all out if I get it to work, I’m going to have devlogs in both. i.e.
[March 5, '08:[HL2-portal]
-Put “Half-Life content.gcf” into HL2-Portal.
-Added base Half-Life 2 game folder.
-Set GameInfo.txt for testing.
-Next step, Testing for basic functionality, including NPC bullets, NPC AI, sounds and the like.]
Easy to read, no?
The thing I can’t figure out is why the portals are functional with the other DLLs and maps but the enemy bullets and such are not. Really confusing.
@Rune2099
Yeah , i have been reading for sounds , but NOT all of them are fixed yet !and the bullets still missing , so , thats why i asked =P
Yeah
Back from what I have red, I only spotted sound files relating to the bullets impact but not the actual firing of the gun. I will try to listen to a couple of them to see what is what.
After searching a bit I found withing Source sounds GCF all the player and npc weapon sounds.
root\hl2\sound\weapons
Now we need to know the reason not all of them are being loaded.
Also in the HL2 content GCF with this file path
root\hl2\maps\soundcache
The problem may lay there. However I could not translate the .cache files so I dont know whats in them. It could be important.
I see many, MANY people here asking about if this will work on the Xbox360 and one guy asking about PS3 (I wonder what that tells about the 360 community)… Well, I don’t know about the 360-people, but for the guy with PS3, it can be done! Kind of.
You see, you can install Linux on the PS3 easy as snap, I’ve done it myself. Sony even uses this fact in marketing. And in Linux, you can start a virtual machine and install Windows on it. I haven’t done this on my PS3, but I’ve created VMs in Linux on my computer.
And with Windows up and running, my guess would be that you could install Steam, and HL2 and portal. And THEN you can do as this article says!
I haven’t tried this myself, but the PS3 is a powerful machine, and I hardly believe there should be any lag or anything in running HL2.
Of course, there are several downsides on this method:
- You have to get a Windows license
- You can’t use your copy for PS3 and have to get a new license for Steam as well
Still, beats the hardware modding the 360-owners have to do
Interesting never thought of that. If thats the case then the same thing can be applied to the psp also right? Not sure what you would do with it but its just a theory.
youe are bastard fuck off valve shit bull bitch fuckens off and sux
XMAX, STFU. Oh, and the Orange Box SDK came out. Will that help anyone here? I really do wan to play this, but it is pretty pointless without the npcs actually shooting at the player. The flashlight, I do not really care about. Just turn your brightness up. For the sounds, I just copied the entire scripts folder, and added the portal stuff. But, the guns still don’t work for the npcs, that really annoys me. I want to have a fun experience with this.
YA i was wondering how you got the maps in the very beginging of game?
You guys ROCK!!!!!!
Damnit I know the problem is in the maps. The DLLs were ruled out when the bullet problems persisted even with naes draw’s mod. The problem is since I bootlegged the orange box I can’t get support for it. So if anyone wants to mess with the maps with the new SDK they are more than welcome to post any findings and differences in the forum.
Also I still havent found a blue tooth adapter but I found out that candles (of all things) can replace the sensor bar. Plus the wiimote sends the movement to the wii instead of the sensor bar.
this is much easier than all this importing stuff… http://www.metacafe.com/watch/878386/how_to_play_half_life_2_in_portal/
still no sound however.
mmm
in the you tube vid
the person who uploaded the link is using the exact same stuff as we are attempting in this forum.
importing HL2 maps into portal
all that vid shows you is how to load the console, then the map, the the cheat to get the portal gun.
without this forum thread and others like it that vid would not have been possible.
sef, I really hope that you can save up enough to buy the orange box soon, as you seem to be our best bet of cracking this thing open!
I have orange box and I downloaded the SDK, any idea where I would look or what I would need to do reconfigure a map?
if its not too complicated that is.
My impression is that the maps have a little script in them for certain things. Not sure where this would be located but It would be something like console should you find it.
Not sure how long it will take me to get the orange box because I am also trying to get a bluetooth adapter and a server computer.
hey for all of you guys who want to know if this works on the 360!
it does, it took me awhile to find the correct mod chip, but after I did the rest was cake
I just got the usb wire that can hook up to the 360
i plugged it in transfered most of the files from half life 2( which i have on pc) into the file marked portal and then i organized all the hl2 files so the proper levels were in portal and it runs smoother than it does on my friends ps3(which I helped him with using fig00rs walkthrough)
my favorite part is when you go through the time travveling machine thing and leaving a portal in that doctor guys office then go kill him and explore
ps (I am not a big technical genius, It was pretty easy to figure out,
although the sunlight glare pisses me off Ill have to fix that)
Nice work Diplosat
Does the bullets work?
Also post what modchip you used and some basic instruction on how you organised the files. I personally never knew you could hook up the XBox to the computer.
You don’t have to be a technical genius to be clever with what you know.
I think also need to copy the sounds folder, or in game the dialog cant be heared.
PD: You also can do the same with Garry’s Mod to play with Gmod in HL2 Campaing, it is very good
perhaps editing half life 2 to give all combine’s a pulse rifle, which is the bullet type that turrets in portal and helicopters use, hence giving NPCs ability to shoot?
Jizzya has a point, it isnt a perfect solution but at least we will have somthing playable to last us until sef or one of those other talented folk get the fully functioning mod happening. I will admit i have some questions reguarding the possiblity of this action (having never used the SDK or anything like it), can the weapons carried by NPCs be changed en mass or would you have to go through each map changing all their weapons individualy (if this is the case it isnt really woth the effort).
Anyway you guys keep up the good work, i hope to see a fully functioning mod soon
If i remember right there is a NPC script for every weapon. I am no longer sure where it would be but I think there is a script that controls all the npc gun types. I bet if you changed primary ammo it would work.
sry I have been gone. I have been studing for the A+ certification.
could you download the free portal demo (Portal : The First Slice) off steam and and run it with half life 2 maps?
Hey,
As a preface: I use the method of importing half-life 2 stuff into the portal framework.
On the color “cloud”:
I don’t think it’s a cloud or the light from the sun. It changes color with the gun, so I think it’s the little thing of light that goes inside the glass tube at the front of the gun. (which doesn’t appear inside the gun during the glitch)
I modified the hl2_portal/particles/particles_manifest.txt file to eliminate problems with the vorts (and include the other stuff that isn’t in portal) and I run the gameinfo such that the hl2 game line (near the bottom) comes before the portal game line.
It likes to make ugly sprites until you switch weapons away from the portalgun, but I “give weapon_portalgun” and then “give weapon_physcannon”, and then use g to switch. It makes the effects all work perfectly, with the possible exception of the super gravity gun, which I’ve never seen working in any version of HL2:Portal.
Note: picos’ method works, but it duplicated some files already in the particles_manifest, which I had to remove the second listing of before it would work; this eliminated a ‘bogus file type’ error
I’ve encountered a problem with the airboat, which doesn’t turn. I don’t really know why, but I’m going to assume it’s some sort of problem with a cfg file, such that the keys aren’t mapped properly for the airboat..??
On bullets: there are multiple possible reasons, I think, why bullets don’t work. Obviously, as others have mentioned, the dll’s could be lacking the AI framework to make them work.
Another possibility is that the models portal is accessing include the animations for shooting, but not some sort of .qc script needed to shoot. If this is the case, extracting the model directory into hl2_portal (or whatever your folder is named) could make bullets work. {for example, the .qc for first-person weapons has to be accessed since you can impulse 101 them in portal, but npc weapons (i.e. viewmodels) don’t need to be accessed for portal to work}
A third possibility is that the game isn’t able to access a particle file used for bullets. This seems least likely, because it would probably generate an error message in the console, which it doesn’t seem to do.
Another note: running the hl2 line before the portal line in gameinfo makes particles happier (i.e. not crashing vorts), but also runs the menu such that the right pictures appear for the chapters, and you can use the sexy halflife2 ttf file for a much better looking title.
I really don’t think the npc bullet issue related to the maps, but for those who wish to investigate this possibility further, VMEX (valve map extractor) is mentioned in the valve developer community wiki.
http://www.geocities.com/cofrdrbob/vmex.html
It decompiles a .bsp into .vmf files, which can be loaded in hammer.
With the possible exception of the Ship, version .98g is supposed to work with all valve games.
Nice work AdamP
I didn’t even know about QC files.
I think it could be the DLL thing again. But if thats the case then how would we edit them to be able to handle both the portal and bullets? The only way I know of requires an insane amount of know-how of both the DLL and your hard drive in general. I have seen some programs that decompile the DLL to an extent but it ends up in hexadecimal. I have problems reading that stuff.
I think the DLLs are the problem in that problem. I think for the next step we need to find whats exactly in the DLLs for HL2 and portal. Then we could compare the differences and narrow down the problem.
Keep up the good work.
Hello everybody, my name is Damion, and I’m glad to join your conmunity,
and wish to assit as far as possible.
Good work, diplosat! What modchip is it, and where can you find it? Also, does it make it so you can’t go online without being ba ba ba banned?
is this possable to do with the portal demo
(portal the first slice)
or do i have to have the full game
im not sure
i dont think they do
they might
Hi. I tried to do this, but when I extracted the maps and scenes from HL2, the maps did not show up in the Portal console. And I checked to see if the maps were in the folders, and they were. Can somone please help me?
Thanks.
yea i have portal the first slice
can u do this with portal the first slice
Ok, I fixed my first problem, but now I have another problem. I got the maps to show up in the console, but when I loaded them, the portal screen got smaller and black, and it gave me that stupid “Send error report” thing. Any ideas would help!
Please and thank you!
does anyone know where to get poral free
Hello evryone, I finaly got it working! Thanks for the guide!
it should be able to work in first slice i have it and if you use the cheat upgrade_portalgun you get the full gun so everything is there exept all the maps.
but when i try to load any map i get told its not a real bsp or that its not there does anyone know how to fix this
Odds are that portal first slice was made using a different map file type. You could try to convert it.
If you look carefully through the Portal directory, you will find some models that seem a bit out of place. I can only remember one: vortigaunt (no, I don’t remember the extension. Please don’t kill me.)
Now, you will note that the “bullet” (if you will) that comes from the portal gun is very similar to the green energy shot by the Vortigaunts in HL2. Thus, I assume that that model file is the bullet. To confirm my theory, I spawned a Vortigaunt and a Combine soldier in-game. The Vort shot at the soldier, who couldn’t return fire. Thus, if someone goes to the trouble of finding the bullet model cache (including said vortigaunt datafile), bullets should be capable of inclusion in HL2Portal. Just a theory.
portal first slice is an exact(ish) copy of portal but with the other maps removed
why dident i think off this its already been done using the doom 3 engine. prey you can have diferent portals open at the same time and it can change the direction of gravity so its half way there
I’ve had issues with the floaty, Portal Gun, light cloudy before, all you need to do is use the “give weapon_portalgun” command instead of using “impulse 101″ to get the Portal Gun. This will make it behave normally, and also always you to play through without every gun from the start.
Hello everybody, my name is Daniel, and I’m glad to join your conmunity,
Wish to assist as far as possible.
i tried it with portal first slice but what happend was
i typed in maps * and i saw all the maps but when i type
(ex)map d1_canals1.bsp it comes up with an error
saying that the map is not a correct .bsp file or that the .bsp file does not exist please help me
Uh, i don’t get it. My tiny incoprehensive brain couldn’t comprehend (hence incoprehensive) the directions. Can u, like, dumb it down a bit? For me?
Has any1 here fund a way to get the gman or any other person to speak in hl2 with attached portal game? i followed instructions here and such added a few more hl2 stuff, so just want to know is there a way tp get npc’s to talk like the gman does when u 1st arrive in c17?
Typos*: Found*
1 more thing, is it possible to transfer the actual portal gun into hl2 folder and then use portal gun in hl2?
its possable but u would have to crack both games and put all the sounds,scripts,models and matierials and all that (its very complicated)
sadly i dont no how to do that
portal first slice is it possable please answer me im lost and need help please help meeeeeeeee!!!!!!!!!!!!!!!!!!
Sorry, I haven’t had time to work on this.
Still no luck I see.
Hmm.
I think we need to get a person who has done a major HL2 mod in here.
They might have some idea of where to go next. One that had to deal with hardcore changes.
Eh, does any of the precaches say any thing about the client DLL?
It might make a nasty mess, but
portal/bin/client.dll
HL2/bin/client.dll
WOULD make things get loaded.
I’ll check into that. Hm.
Precache_401.LST
portal\bin\client.dll
portal\bin\server.dll
Bingo.
The trick, is to make sure it’s reading this LST.
Then, why not add the HL2?
The worst it could do is Asplode your computer.
I don’t know if I can manage this today.
What you have to do, is look for the lists that run other LSTs, and put 401 into them after adding these lines,
hl2\bin\client.dll
hl2\bin\server.dll <—Optional
Good luck.
@Naes Draw
What is in reference to your newest discovery? and what are the results.
Can’t try till likely this weekend, and what?
What i meen is- Does this have anything to do with the original mod? or one of the other platforms. like XBOX or PS3. Or does this have to do with Portal First Slice?
Sry I have been gone for awhile. Forgot what everyone was doing.
This is still PC.
Where I can find this mod? I very want to play in it.
You wouldn’t, you’d pay for it. Don’t be an ass and take money away from Valve.
Seconds that emotion. $20 isn’t a big deal for this good a game, and then when this is done you get HL2 with it.
why would you brake the law for somthing as cheap as 20 bucks.
just buy it its worth it
dumbass you gay
im getting portal today YAAAAAAAAAAAAAY!!!!!!!!!!!!!!!
finaly i dont have to keep asking how to do this
with the demo
so please disreguard any of mt posts on the first slice
Listen that link for that program i need is dead . Where i can find it ? plz
I’m trying to move the portal gun mats/sounds/models to HL2:DM just to see if it’s possible. Anyone want to help playtest?
I found a portal gun mod for garry’s mod, but it could use a check to make sure that you weren’t able to put portals on the skyboxes. Anybody else here any good with code?
Just a thought…
We are currently importing the half life 2 scripts and maps into Portal. Why not the whole content directory? If you just open up the HL2 GCF file and extract the contents into Portal, one of two things will happen (I haven’t tried this, though I plan to): either the transfer will overwrite key portal scripts, OR the portal scripts stay and the half life 2 everything else is also there. Therefore, instead of playing HL2 maps in Portal, by importing everything you can actually run the game in Portal. In theory at least…
I am unsure about how to do the first parts of this… the part where is says that you have to have a file thingy…what is that…if you can explain (in depth) how to do this entire process that would be great…I have the orange box for the 360… so if there is a problem with that could you please let me know. If you could do this I would greatly appreciate your time.
Silly humans, we all know that VAlVe is putting the Aperture Science Handheld Portal Device in Episode 3. Word on the street is I’ll be making a cameo as wel
You can;t do it on 360, get a proper computer you clown aiden.
It’s ok but it would be better if we could get the portal gun in the actual game without having to load each map manually….all your doing there is shifting the maps over from one game to another and it makes things sort of buggy… I freezed up 4-5 time in 15 minutes i was playing. then you reach the end of the map and theres nowhere else to go. the story is lost and so is the action ; ( ….valve need to come up with an update on how the Doctor makes a portal gun for Gordon so he can use it to defeat the combine…that be so cool!
all the power of the teleportation machine in one hand gun lol
i like how tons of people ask about how to do this mod on the 360 but yet if they were to read they would notice that everything talks about steam and computer. its really quite funny.
oh yea…awesome mod guys great job
valve needs to just come out with either a installer that compiles the portal stuff into half life 2 or come out with a half life 2 portal edition. im sure if they sold the portal edition for like 5 bucks people would buy it.
of course u would have to own portal and half life 2 before u could buy the portal edition.
i hate not being able to edit old comments.
Valve are to release Portal as a stand alone game, I think April 11th, can’t remember exactly. So sooner or later you’ll be able to buy portal in the shops, by itself, for all those that are lacking cash. Also, the other orange box goodies will be released as stand alone versions too.
You can get portal stand-alone on steam.
Also, I was working and I got an error, but I forgot it… I’ll try to update later.
“Invalid or corrupt backround texture”
materials/console/startup_loading.vtf
Before the valve opening movie.
This is with adding both games DLLs via precache.
oh please somebody know how to fix this error, because i have my portal set up and i get that error too.
and i do own portal, i bought the orange box…because its amazing……..TF2 FTW
I sorta finished this up to around the Breen levels, just when I’m supposed to get on the elevator & chase him down or up i cant remember. Alyx is supposed to hack the lift but she doesnt move.Besides that, the portal gun isnt as fun in the citadel since your gravity gun is still normal & there’s not as many surfaces to portal thru.
It was mildly amusing while it lasted.
thanks.
cant wait for hl2ep3
It was great, I just had one problem, when I went to the citadel to retrieve the Super Gravity Gun (the blue one, if you don’t know), and when it happened, I couldn’t pick up organic objects, just a weird blue light projected in front of me when I took it out. I don’t know if other people said this, I’m not going to read 750+ comments simply to find out.
First off, thanks primotech crew for this amasing mod.
im fom the netherlands and i like to play games on the
hl2 engine, i olso play mods and have a little experiance with them.
(this may seem like a stupid question..)
is it possible for hhe npc’s to hit you?.
ive looked up and down this website but coulden find annyhing that ses
its fixed.
if u need annything just lemme know, i know a bit..
hope to hear from you
Jeremy Hof
To, “Naes Draw” on March 28th, 2008 3:16 pm.
BINGO!! < etc..
i was wondering if that had annything to do with the npc’s hurting
the player, if so,
can you please send me the “Precache_401.LST” u mentioned in that
post earlier and tell me were to place it?
(maby its better to make a gud post on it, so people can have it fixed)
manny manny thanks,
Jeremy Hof.
fl3w@hotmail.com
Ok I have read through FAR TOO MUCH to get a accurate answer on how to merge Portal & HL2 together. But I bet that most of all this can only work with “Steam Powered Source Engine” thing. Well I don’t have steam. I have HL2 & DM and Portal.
I have gone through a lot of different techniques to try & get my Nonsteam HL2 games to work with Portal. Sadly no dice, yet.
Please!!! Anyone here that doesn’t have STEAM & has figure out a way to get Portal to work with HL2 or the other way around, Please reply to this message/comment w/directions!
Note: I transferred all the Maps from HL2 to the Portal Maps( the graphs & map files, but not the soundcache. I read that if I overwrite or replace them, the game will act weird on ya.) it worked but AI was disabled( dunno the command to turn them on), EVERYTHING was purple( save the plants), There were gigantic “ERROR(s)”
all over the place, and the sky had purple & pink boxes( felt like I was trapped in a room inside of a base/prison).
So yeah, need quite a bit of help. Couple more notes: not a technician guy, no idea about HTML coding, no idea about scrpts and whatever( ya know dunno what I would need to do if I were to edit them like HEXworkshop does it). But if ya tell me “How to install Portal Gun on HL2 or the other way around For NOOBs” that’ll be awesome.
Email me here —-> valdagesh@yahoo.com
And to ppl that love STEAM so much that they’ll bend over for them, please don’t send me bull about “YOU NEED STEAM TO GET THIS TO WORK” or whatever other crap that has to do with steam( sorry but I do not feel like paying to play a mod for a game when most engines out there suck ass).
Thank you.
Gyrannon
( felt like I was trapped in a room inside of a base/prison).
Grrr. Meant to say “Instead” not Inside.
Sorry for all my mistypes & mispelling( wish there was a “Modify comment/message button”)
I just got back from a competition. Sry for being gone for awhile.
Anyway I found that you may be able to assign more GCFs or caches to the loading of the game in SteamEmu. Its file path for me is:
C:\Program Files\Valvesoftware\The Orange Box\half-life 2
If modifyed right, you may be able to specify HL2 or portal GCF as well as the normal one.
i found some AI options in the Config.CFG file. here is the path:
C:\Program Files\Valvesoftware\The Orange Box\half-life 2\hl2\cfg
The code is:
ai_report_task_timings_on_limit “0″
ai_think_limit_label “0″
Ingenious! Tot ally Ingenious.
Thanks for the GCFScape tools
You guys sooooooooooo Rock!!!
To “sef ” on April 19th, 2008 8:26 pm,
ok here’s what i have, i have merged the maks scripts sounds etc but the ai still cant hurt me. the weard crosshair and possible bugs are fine t comes with it i guess.
but npc’s not beeing able to hurt u thats not cool to play.
plz tell me what file to extract to portal or what file i need to edit and what do i need to edit.
i aint no noob so just explane it like a readme and we will all understand.
manny thanks for all the effort u put in to this i for one apriciate it
Jeremy Hof,,
fl3w@hotmail.com
[edit]
maks = maps
[edit]
maks - maps
No one has goten this to work perfectly yet. Naes draw seems to be the closest to getting a working version from what I have seen.
I am searching for a way to get the precache files to look into multiple GCFs right now but so far I am unsuccessfull. I am going to get a stand alone version of portal to see if its contained in a GCF or in normal file structure.
I just got much closer i think.
What i did was, I used the HL2.exe within the portal file structure. I used the same gameinfo.txt as what was used in Portal after the error i got the first time. here are my file paths for these things.
HL2.exe
C:\Program Files\Valvesoftware\The Orange Box\portal
Gameinfo.txt
C:\Program Files\Valvesoftware\The Orange Box\portal\portal
where I put gameinfo.txt
C:\Program Files\Valvesoftware\The Orange Box\portal\hl2
When I did that i was able to load HL2 as portal entirly. Kinda hard to explain. When i minimised it, Its window name was portal. I also had the portal gun and all the other weapons. Plus the portal gun didn’t seem to work everywhere like it usally did as well. Still testing it out.
So far it has many of the same syntoms of primotech’s mod but i still havent been able to test the AI bug. I have had a couple of game crashes so far though. Anouther thing thats weird is all the errors relate to the portal particles and such, and not to the half life 2 stuff. Anouther thing is when you look at yourself in the portal, you are chell and the gun is surrounded by glitchy boxxes. Those boxxes make it hard to look up.
Ok I have tested a little more. The crashing was due to a ram issue i had. Also the enemys still can’t shoot you. But seeing how they reacted to you, I think its a model or model settings issue and not an AI issue. It seems some scenes work beeter. Alyx can speak now.
After more testing i found if you turn on npc_vphysics in console, You wont be able to damage them. I am looking for a switch like that for the player.
I was wrong in that last post. It seems that the smg bullets do nothing. I will look for a command for that.
keep it up sef, we all count on u :D!
Ok my findings on the tests with the smg is:
1. I can shoot myself
2. The enemys can’t shoot me
3. When I shoot the enemys their is no damage but it leaves a blood spot
4. Also NPC shotgun and AR doesn’t work either
This rules out the bullets and Chell model from the possible causes. (I wouldn’t be able to shoot myself)
I could be wrong however. I am stumped on what could be causing this. Any suggestions on the problems or possibilities are welcome.
I’ve read TOO MUCH ON THIS SITE! IVE FOUND A VIDEO ON YOUTUBE. THE MOD CAN BE PLAYED 100%!!! BUT HOW??????? The movie on youtube: http://youtube.com/watch?v=6-P4RxBA-Io AND THERE SITE IS: http://www.halflifemovie.org BUT THEY DONT HAVE FINISHED YET! still can wait…. or anybody has done perfeclty. it would be great if he/she can write it step by step on this page! Thanks
I think we may need to develop a script file to change the needed item after everthing is loaded. I found a command that loads outside scripts within the command console. its exec. We need to find the cause of the problem first though.
maby it doesnt register the player and npc’s to be foe’s or allie’s?
just blaberin
possible but if that were the case the enemies would just ignore the player. But i haven’t thought of that yet.
treu :P, i think its just the engines not working together, to make this work we just need to script/edit a whole chunk of hl2 and put it in portal
i really hope this is not the case,
J
Odds are that we will be able to write a “small” script that will override the normal elements of the game through the console. The problem is that in order to do that I will need a little more knoledge of the valve coding.
The best thing we can do is find what coding is causing the bullet issue. From there we will be able to solve all the smaller issues reletivly simply.
O by the way, I found this set of commands that may be helpfull. They add items to the precache. I hope its not the solution. It could be very tedeious.
sv_precachegeneric Usage: sv_precachegeneric [ preload ]
Add file to precache list.
sv_precacheinfo Show precache info.
sv_precachemodel Usage: sv_precachemodel [ preload ]
Add model to precache list.
sv_precachesound Usage: sv_precachesound [ preload ]
Add sound to precache list.
This will help solve small errors such as missing particles and such when you shoot the portal gun.
sef, i really dont know where to put those lines, where can i find that precachelist?
j.
btw i dont know if this will help anny but there was a chinese guy that made sum mod named S:MOD when you serch on google for “hl2 smod console commands” you should find sumthing. sinse smod uses more features maby u can get a hint of how they did it with portal..
j
From what I see there are 3 precaches. Here are mine:
C:\Program Files\Valvesoftware\The Orange Box\portal\portal\DownloadLists
root\reslists\Half-Life 2 of the half life 2 GCF
root\portal\reslists of the portal GCF
And those lines are for the developers console. You can access it by enabling it in options. I think in advanced under keyboard. I have yet to test those lines yet though.
so u can only use the hl2 organgebox ? couse i still use the old hl2 and mix it up with portal..
hope im doin the right thing, btw i know how to get rid of that cloud u get when u spawn the portal gun (the thing that makes the game lag a bit)
its that colour in the gun it self, if u use impulse 101 it gets messed up try these commands (they dont always work, i advize “red letter day” map).
type this in console DONT TYPE IMPULSE 101 !!!!
“get weapon_portalgun”
“upgrade portalgun”
no clouds, smooth gameplay ^^
i wonder why it does that..
J.
ohyeah i probs found sumthin,
all the hl2 maps we put in the portal directory are not listed in the maplist, this is an oviouse error.
i think thats why sometimes the game crashes when its loading. its becouse it doesnt know what order to load :P..
My newest method of using an HL2.exe with portal gameinfo.txt works good with the maps. It seems to have fixed scene errors and the maps can be accessed through normal campaign. Its because its just portal with a HL2 face on it.
O yeah if you have original HL2, you should be fine. Those are just my paths and they are just examples.
pfieuw!, i was starting to get worry’d here..
indeed it is portal with the hl2 face, but remember IN PORTAL u can get hurt by those turrets.
so NPC can lock on you, i think couse the npc’s are from hl2 and the “player” comes from the original portal that they dont work together they register the player as foe, but their settings prevent them from huting you (hl2 settings 2 portal settings)
i might be on to sumthing, ill ask sum coders @ school,
Jer-
Yeah you may be right however It wouldn’t be located in the model itself, but rather the settings for the player. I will look around in the coding when i get a chance. Go ahead and ask who ever you can. Any help is beneficial.
ok so i asked the pro coders at my school and this i what they think,
Couse hl2 is a different game then portal the overal settings are not the same, by simply finding the correct script/dll/file/wa-eva u can alter the “rules” of the game (duuuuh!!!!!)
he told me to serch for the file that loads up the portal content first, in that file you must enter a line that makes sure all items (like npc’s,bullets etc) are properly loaded in the Portal game from the HL2 list!
This bugs me couse this is the thing we have been trying all the time,
and where the frick can we find it ?!
sef, hope it helped m8.
Jer-
K When i get a chance I will see if I can get a list of all the files the DLLs access. If we can alter those files it may work better but still just a theory.
oh yeah, i have a question u think its possible to do this with hl1 (source) witout the same bugs?, i didnt wanna try it couse i dont have enough room on my HD, i chekked manny forums about this but al it ses is “aww cool” or “this is awsome” etc, nothing usefull.
maby its best to start an official project about this thing,
i do ICT on my school and we have sum experianced coders. i my self like to edit games from time to time but i lack the program experiance.
maby iff we round up sum people we get the attention of sum gud coders who see this thing work. (possble episode 3 addon?) It would be gr8 if we could make this happen, ill ask sum people at school tomorrow if they can help us.
i think THIS IS POSSIBLE, maby its gonna take sum time but “where there’s a will there’s a way!”, and i aint gonna stop till i see a portal gun working (proper) in hl2 sp!
Jer-
My overal theorie;
1we have half life 2,
2we have portal
We use portal as main engine, (remember none of the hl2 entitie’s/npc’s are scripted for this engine) and fuse the maps/scripts/sounds/etc from hl2 using that program (mentioned in the redme on top of this site).
Then we load a map and start playing, in this map are manny things that run on the hl2 engine. But all these files are loaded from the Portal engine (remember the fuse) Therefore we get a rainge of bugs (no gunfire npc’s/some missing sound files etc etc) this is totally logical.
The problem is we need to make the Portal engine know what to do with those extra files we merged, my guess is a set of new scripts made for portal to make hl2 (stuff) run poper in Portal.
This is what i think (i just had a chat with a friend who knows allot about engines and he agree’s)
Jeremy
The only problem is we cant edit GCFs. But it may work if we add all the files we need as after they have been extracted. But I need to test a few things before I try that.
Sorry what I meant Was after we extract the files from the GCF we add them to the precache using those commands. If we need to we can bind the commands we would use to add the needed files to the keys. But that just makes it easier to use.
a readme will make it clear, but yeh sounds good!. and i think the propper way to test all of this is not with the original games, you can get banned if you edit the GCF files but with a extracted version (if u know what i mean :P)
u dont recommend the use of it but to test something it should be ok.
if needed i have both games, (non) just need a place to upload them to.
Jeremy.
What I mean by not being able to edit the GCFs is that its literally impossible to edit them. There is no program out there that effectivly compiles GCFs so that either HL2 or Portal can recognise it. Thats a problem thats hard to work around. But if I get some spare time I will test out those commands.
i heard about sum program named “HAMMER” it allows you to edit those files, but they warn u 2 they say that edditing might result in ban.
j-
Hammer is for BSP files. They are the map files for Portal and HL2. I tried using it before but the version i got was out of date.
Now i think its in the maps again. I tried loading a portal map in my HL2/Portal exe. It had the portal gun with the same weird boxxes cept’ closer to the end of the barrel. The Glados voice overs were also gone.
Along with the barriers that get rid of portals. They were logically there but you couldn’t see them. I also got a bunch of “Attemped to precache unknown particle system” errors.
I can’t work on this untill tommorow. We are getting close again i think.
Anouther method I tink we can try is loading the portal precaches into HL2 but i will need proper syntax.
K i think we need to get to the same point. Jeremy set up the HL2/Portal exe method. I told how to do it back on sef on April 20th, 2008 12:41 pm.
ill do this when i get home from training, im back arround 9ish/ then i will try this
Jeremy
m8 can u make me a propper explenation?,
ur explenation is a bit difficult for me to read,
im not english :P.
thanks, jer
done, i merged hl2 maps/scripts/sounds all i need is ur version, upload them with speedyshare and tell me where to put them.
j
I placed the Portal Gameinfo.txt under the HL2 directory where portal was installed. Then I loaded the HL2.exe that is near the portal.exe.
Sry didn’t know you were not english. However That is about as simple as I can explain it. I have never been good at explaining these things.
Thats weird. The HL2 maps, scripts,and sounds should compile themselves once you launch the HL2.exe. Plus you should have all the required files for this.
I haven’t made any real progress on the AI problem either.
I have been trouble shooting a Windows XP problem all day and just finally got it.
n1, but to make it easy just finish my work (in words),
i have portal and added the maps/scripts/sounds etc, i downloaded that scipt so the cinematics work 2. what do i do next?,
Do you have both HL2 and Portal installed right now on their own?
Is there a way I can do it while running HL2 instead of running portal?
SEF ->
NO, i have hl2 original (on steam) and portal non-steam (extract and play version fully updated)
i extract from hl2 to portal (non steam) then run portal (non) without having steam running on the background.
AND REAPER X
FFS, REED THE POSTS..
U CANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@ LEAST NOT YET,
portal is supprted by the portal engine (aka portal game duuuuuuuuh), try loading the portalgun in hl2 can be done, but with consequenses.
gmod has a portalgun, but its crappy/buggy/glitchy/errory.. just w8 a couple of weeks till we figured this out,
(K) j-
maby we can eddit all npc’s to make em carry stunsticks only :P, then its playable with damage ^^
btw, non of the coders at my school have time, we have to w8 till after the holiday then they prommissed me to take a look at it.
(K)
K I see that may be why we are having version conflicts right now.
Does your portal extract and play have a portal GCF?
I personally bootlegged the entire orange box so the versions i have seem to be more compatible. The only difference is the file paths they were installed to.
nah evrything is the same as u, or else we wouldent get the exact same errors, ths just a script that bupasses steams securety or summthing. its the same as yours fully updated with the same cinsitancy
K well anyway the best thing we can do is get a list of files that are loaded at the initial startup. Then maybe we can narrow down the specific AI file that may be causing this.
O yeah, I checked the AI damage with some of the weapons with console. Everything was normal.
I also noticed that the Chell model takes alot more damage than she should.
When I get home, I will try to find the players model script using some old commands.
told u its the “merge” problem, the engines start collidin we need to make sum new scripts!.
if you need my startup stuff just lemme know,
j-
I didn’t think it was a merge problem because none of the errors in console pointed to ai. But i guess since it is being loaded from a HL2.exe, it might not be the problem. I will see what i can find on merging but i dont know where to start. I will have to think about it for awhile.
Ok, Ive found that it does work to some degree (for those that have bootleg versions of portal, you will have problems, especially if you have installed it someplace else.) The thing is, you will end up with 2 situations.
1. You get the map, but its a huge mess with a bunch of “ERROR” signs and no textures in the map.
2: AI Is disabled and going through the usual method will not fix it.
Anyone know how to remedy this?
Ok I have though about it and I figure its a Script file that HL2 Content GCF has but Portal Content GCF doesn’t.
Its the same case with the players configuration. The player has a massive regen but takes around ten times the damage. The player regen can be fixed using a command mentioned earlier in these comments but i can’t remember it.
The Ai script that we need is probably in the same place as the player script.
I may have found something.
Awhile back, I accidently made a mod using Source SDK. I didn’t hink much of it because it was an accident but I happened to look through it today. I looks like all the DLLs are unpacked their. And there is stuff about AI as well. I will search through it using notepad.
I could have sworn there was a command that loaded scripts specifically.
If anyone knows the command, please post
K after looking around the bare bones mod I accidently made, I have found that most of the files can be loaded with notepad with no errors.
Also I think I found the right file for the AI gun problem. It will likly inadvertenly fix the problem with the players SMG as well. I am not sure if its right though because its pure coding. Similar to Visual Basic coding.
The biggest problem now is loading it to HL2/Portal. Its in a CPP file format. So likly loading it as a script won’t work. Also I can’t add it to precache through command line because the command I listed earlier doesn’t work for Portal. I have never seen that type before. I won’t be able to do anymore today but i will look it up tommorow.
maby u just need to “add” the models/scripts or whatever, in a main bootscript?
I was actually googling for a quick hack to get the physcannon into HL: Source when I found this mod instead.
Anyway, I happen to be a pretty decent C++ coder but also a complete n00b when it comes to Source engine modding. This piqued my interest though so I may take a look at the code out of curiosity. Do keep in mind that I’m not committing to anything, so no promises. In other words, don’t count on me to follow through.
@sef,
A CPP file is a text file containing C++ code. If you change it, you’d need to compile that and several other CPP files into the proper DLL(s), and then replace the old one(s) with the result. To compile C++ code you need a compiler. From what I can tell the source code tree generated by the SDK pretty much expects you to use Microsoft Visual C++ 2005, but in theory you should be able to use any Windows compatible compiler (unless Valve have been doing some really naughty things).
i need help…. where is the maps for hl2 located? and how do i change a .rar file to a .bsp file?
after spending about 5 hrs looking though half of the comments it has made me tired, so if this has been said already then don’t flame me.
The reason that the maps won’t load in portal first slice, is because either the .bsp files have a code or lock to stop the game from loading anything other then them, or it is a slightly different format to normal .bsp files, the reason being is u could just copy the maps out if someone else’s full portal and put them in here and play it, but this prevents the game from reading anything other then the specially modified .bsp.
BUT i just had another idea, i could be a simple code to tell the game to only load maps with certain names like testchamber_01, _02 etc, etc, so if u renamed the hl2 maps, it may be possible, although u could only have a few at a time.
@jack
a .rar is exactly like a more compressed version of a .zip, u will need to download winrar to umm.. unrar it
for the hl2 maps, did u
1 read the instructions
2 download GCFScape
and 3 actually have hl2?
it would be nice if someone, hexchild i’m looking in ur direction, could investigate the differences in portal first slices .bsp maps and the normal ones, then make a converter, to convert the normal .bsp maps and vica versa.
-ultradude25
I have already seen a anouther case of different BSP file formats. An older version of Hammer can’t load the HL2 and Portal maps due to their map format. But it can load HL Source, from what i see. I think the HL source maps are a different BSP format like Portal first slice.It would be hard to convert the BSP files without knowing the difference in them.
I will look for a compiler but the problem is that I have no real experiance in C++ yet. So even if I tried to edit them, I wouldn’t know where to really look for bullets and NPC AI.
Also I have tried replacing the Portal DLLs with the HL2 DLLs. It didn’t though. It just seems like the Bullets are being over rided by a file loaded by portal. I will check the exclusion list when i get a chance.
Is it also possible to do this with ep 2, because I don’t seem to do it the right way.
cool mod. works decently, some gltches like no talking or the AI’s guns dont seem to work on me, but otherwise it works farely well. i cant wait till someone figures it all out for us. it would be nice if the guys at valve would piece the rest together for us. This should provide me with some entertainment tho, unforntunatly i think im gonna be distacted by GTAIV for the next few weeks so ill prolly foret about this.
wait, just a thought, since valve opens up their engine for people to use, couldn’t some1 just make it into a seperate game alltogether?
You guys must be really smart to figure all of this out. So could you please tell me how enable A.I. because always when I start playing it says A.I. disabled… So I’ve tried doing crap with the console window but nothing helps. Everything else works just fine
except some walls are blue but I don’t mind. Oh yeah type sv_portal_placement_never_fail 1 to shoot portals practically anywhere and sv_portal_placement_never_bump 1 so it won’t bounce off too. PLZ help.
If it helps I have a “downloaded version” of half life 2 and Portal. But they still work independently except on the Half-Life 2: Portal the A.I. is disabled and I don’t know what to do. So PLZ!PLZ!PLZ!PLZ!PLZ!PLZ!PLZ! help me.
well like everyone else read though most of the comments and u should find an answer, people can’t just keep posting these things for people not willing to look themselves
There should seriously be a wiki for this.
Hey, is there some way to modify the original post to reflect the current progress on this project? Adding baso88’s HL2_Portal edit (perhaps adding chapter names to the files, too) to the top would stop people from complaining about the sound and AI, along with making updating easier once Sef and crew figure out the bullet issues.
Unless, of course, there’s another page I wasn’t able to find that’s chronicling this progress, in which case more power to you.
In the meantime, I’ve gotten configuration up to the point talked about in these comments, except for one thing that doesn’t seem to have been mentioned so far:
Occasionally, when both portals are up and I walk near one, I’ll get about a foot from it and freeze. I won’t be able to walk to, away, or to the side, but I can turn, and what I have to do is shoot one of the portals somewhere else, and then I can move again. Usually the portals work fine though. It seems to happen more often if the elevation of the out-portal is very high (say near the top of a building in the starting town), although I’ve seen it happen a few times at ground level too (notably/repeatably in one spot at the beginning of the game in the train station when both are placed nearby at ground level on one of the walls)
Two other things that were of note:
Attempting to precache model, but model name is NULL
Attempting to precache model, but model name is NULL
Attempting to precache model, but model name is NULL
Attemped to precache unknown particle system “vortigaunt_charge_token”!
Attemped to precache unknown particle system “vortigaunt_beam”!
Attemped to precache unknown particle system “vortigaunt_beam_charge”!
Attemped to precache unknown particle system “vortigaunt_hand_glow”!
Could this be related to the enemy shooting issue?
Also, enemies don’t see through portals. At least, the Combine soldiers at the beginning don’t. I tested this after the railroad tracks, by being on the far side of a fence, hiding behind a corner, and making a portal so that they had an easy shot of me through the portal. I step through, they shoot at me. I step back to the far side, and they ignore me. I step out from behind the corner (so that they can see me but the easiest path to shoot me is through the portal) and they shoot at me through the fence instead.
Hm… Also, in the boxcar at the first checkpoint of the railroad… “Here, let my vortigaunt friend here give you a jolt.” ::puts his hands together to begin charging…. no sparks…. lag, lag… crash. “hl2 has an error and needs to exit”.:: That one’s definitely related to the first one.. If you can tell me where to get the logs I can retrieve the console at the time of the crash, as I haven’t played since then.
Hm.. Both the rockets and the machine guns from the Combine tanks during the Hovercar run damage and sound just fine… ::running tests::
The SDK gives me options to generate source code trees for HL2 and HL2: DM, but I’ve found no way so far to generate one for Portal. I’ve looked through both HL2 source trees for the weapons code, and found all the regular HL2 weapons but no portal gun.
So, as far as I can tell, the portion of the portal gun functionality that was implemented in C++ source code is not available through the SDK, and I have no way to compile the Portal DLLs, only the Half-Life 2 DLLs, unless I start reverse-engineering the Portal DLLs (and I will not resort to that kind of reverse-engineering since it most likely violates the EULA).
A lot of the portal gun stuff is probably scripted, but it seems to me that the core functionality of portal creation is likely to be in the C++ code. Assuming that is true, as I see it we’re left with two options to get the portal gun working completely:
- Use the original portal binaries, which then may not contain everything that is in the HL2 binaries, since they probably removed parts that weren’t in use to save space and CPU load.
- Add new portal gun code in the HL2 source code to fill in the missing parts. At this time I don’t have any idea how much work this would involve.
@ultradude25,
If your theory is correct that the maps have been marked in some way such that the Portal engine will only play those maps, then that would be Valve’s way of protecting their game from being pirated, which in my opinion they are entitled to do. So if I were to find anything to support that theory, you wouldn’t get any help from me in that regard.
after I’ve put the hl2 maps and scenes in portal GLaDoS won’t say anything any longer (in the original portal), not even after I re-installed it.
plz tell me what to do T_T
@ Kai
Whats likly happening is that the HL2 maps are still there after you reinstalled. Try browsing to where you moved the files to see if they are still there.
@hexchild
I see what your saying. But having half of the DLL’s coding still helps i think. I guess we have to wait till Valve releases the next SDK. Maybe in the next one the portal DLLs may be provided for intergrated support of some sort. I can’t get it however but one of you could.
Also there would be alot of coding changes in the HL2 DLLs to get them to be able to load portal content. Its because it effects the physics in the game it self.
I still don’t know why the bullet problem would persist in loading from both sides though.
hi,
it works, but i haven’t got any texture. no textures. i’ve copied “maps” and “scenes” with GCFScape, but, no textures.
oh year, i need this game^^
Hi, same problem as you, Sven, i have no textures they’re all pink and black checkered, it drives my eyes crazy, a few textures are there, ones that are used in portal i think, i found two GFCs one called source models and one called source materials, i’m extracting them to the Portal folder, i am also running portal without steam.
Hello
I checked all the comments and I noticed that some had the same problem as me but they didn’t get it fixed, they didn’t thank you because they didn’t get helped. So could you please help us with this AI disabled problem?
Thank you
@PoPcheesemo and others
This isn’t magic tech support, this is an experimental system. I’ve started poking around at the code now that I’ve seen it, but I’ve gotten no further than Sef and the others.
*The textures and sounds have been fixed by the zip file that has been reposted many times above.
*The lack of bullets in many of the NPC weapons has not been fixed. I’m looking into it. If you don’t like it, why not help out?
*The AI seems to work just fine if you do the steps given above (follow steps in original post, then add the zip file to the directory), except for the bullets. If yours isn’t working at all, uninstall it and try again, you probably missed something.
*There are still glitches I have with movement near portals (falling into the ground and such) These are because HL2 maps aren’t flat like Portal ones. There’s probably no way around that except to rewrite the game from the bottom up, and noone’s getting paid to do that.
@ JanusFenix
From what i have seen in fixxing a HL2 exe to run portal the way I did a little earlier, I have solved a few of those problems.
Just about all the scenes work fine for me. and I haven’t fallen through the floor much either.
The only down side is that the portal gun doesn’t work on all surfaces. Which can be interpeted as good for people looking for a challenge anyway.
I still haven’t made any headway yet. I think we should bring in the original makers of the game to help out. Even if they just tell us what the problem may be, it would be beneficial.
@ Sef:
That does sound like an interesting plan. I’m tempted to form a letter to Valve (specifically Gabe Newell, probably, since he gives his email address in HalfLife 2: Lost Coast’s commentary, asking for contact from people. He at least could forward the email to the proper place in Valve. Does this sound like a good idea?
All the scenes except for a few with the Vortigaunts and the sewer after the canals work for me. I agree that the portal gun not always working is beneficial, and the going out of bounds is just funny…
But.
I fall out of the ground more often
I do agree that poking Valve might come up with interesting results.
Alright that sounds good.
I don’t know why it would fall through more. Perhaps it was just the level I used to test it with. I used the part where you had to defend yourself with 3 sentrys in a building. There is alot of flat surfaces there. Perhaps that may be it.
I will test more when i get a chance.
@Sef:
Ah, yes. I see. It happens when the entering portal is on a vertical wall, where you think you’d just be able to walk up a hill and go into the portal (for example, many times during the airboat scene, or in the sand with the antlions). I think that in Portal, the ground was always flat, and the walls at 90* to the ground. That’d be why they wouldn’t bother to code what happens when you’re walking up a hill into a portal.
Alright. I’ll write up something and post it here, and after that I’ll send it off.
Come to think about it. We may need to test what happens when you go through the portal and the gravity is different on the other side. I never though about testing how HL2 handles the gravity changes. I mean when the gravity is pulling at a different angle.
That works fine, especially since gravity always pulls down.
For example, shoot a portal on a wall, and another one at a ceiling.
I never had a problem with that. What gets you is the floor next to the portal you’re going in.
@everyone
Most likely the reason doesn’t work for some of us is because it works with the bought version with the .GCF files but what we have is a downloaded non steam version so we didn’t have the .GCF files in the first place.
@sef
There’s still the sv_portal_placement_never_fail 1 command and the sv_portal_placement_never_bump 1 so you could place them anywhere as long as it fits on the surface of it.
I’m buying the orange box now so that it will work.
SRY for my bad english
@ PoPcheesemo
Are you saying that your version doesn’t use GCFs? If it doesn’t, I would like a little more info. It may be easier to manipulate than the ones with the GCFs. It would be like being able to manipulate the GCFs themselves rather than editing their scripts.
I bootlegged mine too but it did come with GCFs.
Hi
Not being a technical person, not clear about the concept. I just wanted to know are you looking for a very good platform for your games, I have solution for you.
You can ask for details by mailing me on isha@codewalla.com
If I have written something which does not interest you then sorry for the trouble.
Hi
Not being a technical person, not clear about the concept. I just wanted to know are you looking for a very good platform for your games, I have solution for you.
You can ask for details by mailing me.
If I have written something which does not interest you then sorry for the trouble.
@sef
Well I just downloaded it as a torrent and it was a 7zip file which contained everything about portal and a .bat file which opened it as non steam and the HL2 came as a .daa file which I opened similarly as the GCFScape and extracted the maps, models, materials, scenes, scripts, expressions, sounds, and etc. but not the bin or the cfg and it worked fine the bullets and everything except it had a litle text at the bottom left corner saying A.I Disabled… and then nobody did anything except move their mouths and talk.
Alright, I will look for a torrent like that when i get a chance. Your AI problem seems like it could be solved with a command in the console. I think there is one that applies specifically to AI.
O and it is possible that you are missing the sound files for the scenes and voice reactions and such.
Here is the torrent if you want http://www.torrentz.com/5ccd3922199dc097092e5c2a0ae09c18867e7840
Oh yeah one more thing on the menu screen where it has a picture of the citadel or Ravenholm etc. it says A.I Disabled… even on the menu screen. I found that as pretty weird.
So, if you have the maps pending problem, it’s a pretty easy fix.
You don’t know how to follow instructions.
So, when you type “maps *” to see the list of maps, do not type “maps ” to run them. That’s simply not how the Valve engine works.
You would type “map “. There is a difference. “map”, not “maps”.
I know that this cheat is for the PC but can u tell me if there is the same cheat for the Xbox 360.
@John
FOR THE LAST TIME NO FOR 360
Hi i would just like to say i downloaded that gfscape thing, And the other one, Then when i try to load it up it says this “this application has failed to start because the application configuration is incorrect, Reistalling the application might help” Please help me
The missing sound effects are because of the sound scripts - but if you just copy them from HL 2 you only have the HL2 sound and the Portalgun will no longer make sounds. So you need to merge the scripts from Portal and HL2 campaign. You don’t need to extract the sound files.
Another Problem I have is: Some NPC’s can’t shot you. They start the shooting animations, but the weapons don’t generate any projectiles…
While I don’t have a PC capable of running Orange Box (I’m working on building an modern one), I must say I have great interest in this project. I’m a big Portal fan and really appreciate the gameplay dynamics the portal mechanism introduces. (I only ever played it on the 360, but I can read, so I’m not going to ask the dreaded question. Yet again =_=)
In regards to the remaining bugs (specifically the enemy shooting bug), I have some suggestions to make. Keep in mind that this may not be entirely accurate as I’ve had no experiance with the Source engine. However, I do have experiance modding Quake and with programming in general.
As the bug with enemies not firing correctly is present in both the original hl2-in-portal configuration as well as the newer portal-in-hl2 experiments, it seems to me that the problem isn’t caused by the binary executable content of the differing engines used (i.e. the .dll and .exe files).
From what I know about modern game engines, this actually makes perfect sense. Unlike old-school games, modern FPSes (from at least Quake, if not earlier) tend to hard code little, if any, of the high level gameplay related functions. In general, stuff like generating projectiles from enemy (or player) weapons is handled at the script level. Of course, many of you proabably already knew that, but all the talk of exe, dll, and C++ made me think some people where headed down (what appears to me to be) the wrong path.
In light of this, it seems pretty clear that the problem is due to some sort of conflict between portal and hl2’s enemy scripts. So what needs to be done is to locate where this conflict occures. Of course, that’s what all the intrepid modders here have been trying to do. I just want to suggest a few systematic ways of searching for the problem.
The first way is what us hackers like to call “brute force and ignorance”. What one would do in this case is to extract all the relevant content of both games and then compare and contrast them. This could be automated using scripting (not game scripting, general purpose) and tools like diff. However, this is likely to generate a huge delta, so finding the relevant change in amoungst the rest is likely to be difficult.
The second method is more elegant and employs a basic bug hunting technique well know to programmers, when attempting to locate a regression (something that worked before, but now doesn’t) resulting from a large changeset, narrow down the changes. What I would suggest doing is the following.
Enemy shooting in hl2 is known to work. (Of course, Portal’s turrets work as well, but that’s not the issue.) So start with hl2 as the known working configuration. Then, rather than do the whole scale script dumping that’s been done so far, do it in as small a pieces as possible. Compile a list of the files that have been added and attempt to add them one at a time until enemy shooting breaks.
The goal here isn’t to get the portal gun working. Ignore non-fatal errors and warnings. Ignore bugs and glitches other than the enemy bullet bug. Select a single script file and add it. If required, add any dependancies that it absolutely needs (i.e. will not run at all without, crashes the game without, etc.) Then fire up the game and test if the bug has manifested itself yet.
Lather, rinse, repeat. Eventually, you should be able to reproduce the bug. Once you’ve done that, make a note of which scripts have been added so far and which script (or scripts) where added in the last change. Back out all the changes and only add the last one. Test for the bug again. If it’s present, you’ve found the problem. If it goes away, you’ll have to use a similar procedure to figure out what combination of scripts produces the bug. (However, unless you don’t get the bug untill most scripts have been added, the list should be smaller.)
I don’t know how many files the mod (or hack, I’m not sure what to call this) involves, or how interdependant they are, so this could be a lot of work, but it seems to be the best way. (Unless, of course, that e-mail to Valve gets results.)
To speed things up, multiple people could split up the list and work on adding different sets. There seem to be a few dedicated people investigating this that have been able to produce multiple versions that work to varying degrees. As they’ve already been cooperating, organizing such an effort shouldn’t be too hard.
The other thing to do would be to learn how to build Source engine game mods and see how things such as bullets are normally scripted. While I have no experiance with this particular engine, I imagine tutorials and whatnot are availible. That way you’d have a better idea what you’re looking for.
Finally, you could employ a tool like grep to scan the dumped scripts for interesting bits. Words like “bullet”, “fire”, “projectile”, and “enemy” come to mind. If you follow the suggestion in the previous paragraph, you could probably come up with even better keywords to search for. This could also be used to narrow down the intersting changes if you used the brute force diff method.
Best of luck, keep up the good work, and if you still haven’t gotten this figured out by the time I get the Orange Box, I’ll gladly help.
K Good diagnostics methods Levi. Makes sense to test the scripts for the bugs. All i have been doing so far was looking at them for mentions for bullets and enemies. I will try to think up some keywords and starting points and such up.
I have went out and bought the orange box. But I cant install it due to hard drive space issues. I will make some space after next tuesday.
Thank Levi. That comment should be able to unite the people interested in a common technique for feveloping this mod/hack.
Developing*
I will think of a system to test individual scripts. But I do know that for it we need to get the basic system scripts singled out before we can test.
i have exite…
can i put the exite portal gun in HL2:DM?
and if it is possible can you tell me how?
Therre is some proplem i dont have sound and portals bugs some time i cant go portal is stuck then need fire again and then i can go it and those sound i want to work and game when i go that barrel thing wherre combine try kill whit exploring barrel bing then come error
i love the music that is playing in this video , someone knowh the name of this song ?
I would like to thank you all for the horrible engrish, (yes, that’s engrish) responses. They’ve been hilarious.
well yuor wellkum?
One quick question, how would I be able to get this to work with the Portal and Half-life 2 demos?
my AI keeps becoming disabled although i extracted everything to the right places Awnsers?
Levi “Karatorian” Aho: That’s a great idea. If I have some time, I’ll see if I can look into that. Less mass dumping, more one or two at a time. I like it.
love portal and that tip works the added plus is that when playing portal if u use the impulse 101 cheats after u add the half life maps and scene u get the halflife 2 weapons in portal sweet
i have not read through all posts as there are tones, but would it not be possible to use hl2:dm as we know it works multiplayer
and incorp the portal gun etc into hl2:dm, instead of the other way around?
um,when i went 2 access the half-life 2 files,it said “the application has failed to start becauce its side-by-side configuration was incorrect”help plz
I haven’t had time to go through all of the comments here so sorry if this question has already been answered.
I have extracted the HL2 maps, scenes GCF files to the steam\steamapps\(your_steam_id)\portal\portal using GCFscape. But after i have extracted them they are 0kb in size. I have also tried validating them but there is an error message that says validation is incomplete. I have run portal and typed maps * in the console and the HL2 maps are there but when i try to run them i get a message that say that the maps cannot be found or are invalid. Has there been a problem with extracting the files to the portal folder?
i tried to play the maps in portal they work but there is no sound
[...] lograrlo hay que seguir [éstas] instrucciones. Estan en inglés, pero son bastantes sencillas. Cualquier cosa pregunten en un [...]
I suggest try getting the portalgun first before getting any other weapons so you
don’t have a sprite sitting up at your face.
Just one problem when you try doing that, you spawn with items in the hl2, hl2ep1, and ep2 maps.
I tried it using GCF scrape and the npcs emmited no sound, so i guess it is missing sentences.txt In the script folder, I am guessing.
is there an eazyer way to do it. i cant play portal or half life any more because of this
Hi,
is there a way the game runs on a legacy GeForce2 MX400?
The card supports only up to Direct X 7, but I hope there is a way to run it.
i can’t get hl2 content open can u help
will it work for garrysmod10? Because the portal guns for that are buggy.
i agree with Ti210,the portal guns for gmod are buggy and when i shoot 1 it looks like a spray(it has a black square around it)
Well, after reading over every post here, everything seems to be working fine and dandy for me, except for the A.I.
I’ve tried importing just about everything relating to HL2, and every A.I. command I could find, but nothing seems to work. Hope someone comes up with a solution soon.
I downloaded the program, copied the maps and scenes… but when I run portal and type ” maps * ” in console it only shows the portal maps.. I cant load any HL2 maps
what am I doing wrong? please help!!
Okey that was my bad, I fixed it.. sorry
i am getting this error when starting portal.exe
cant find background image
materials/console/startup_loading.vtf
hello my name is matt.
i have been reading through these comments for a few days now, skipping through some so im sorry if i repeat something already written. i have been working on a mod of portal for multiplayer action, and my team has the entire mod designed in theory, on paper, and in some coding. i think my advances may help you, and in time, help me. i have this “portal:deathmatch” loadable, the start menu has all the commands, find server, create server, etc. and the options dialog has everything from portal options, thru multiplayer options… you know, all the basic stuff.
my problem is ONLY when i create game. i use the test map i built, the portal gun on the ground, along with a variety of weapons which mostly works. the hud works perfectly, the sprinting works, etc. my biggest problem that i cannot seem to figure out is when i walk into the portal. i know from both the commentary, and these comments that the way they designed portal and the engine behind it, is that there is practicly a bubble around the portal, and when the charector goes inside the bubble, the physics change accordingly.. they used this approach because it had a much faster engine response of like a 10th of a second instead of a 60th of a second, im not sure of the real numbers, something small like that lol srry…. well there is something in teh code, most likely in the client/server.dll’s that causes this to happen, and apperantly in multiplayer mode this is a fatal error. i am not as skilled with dll decompiling, which is my main problem, but the change im looking for, if someone wishes to try and figure it out… to change the engine so that 1:the physics do not change when you get near the bubble. 2:a way to make it so the physics change in the bubble works correctly with the rest of the environment, in the end debugging the fatal error.
This fatal error caused by the physics change in the portal bubble is my only real problem that i cannot fix. if someone can help me with this, then everything else should be allot easyer. so this is really a call out to those 1337programmers that know how to read hexcode and decompile dll’s in their sleep. and yes ive tried reflector to decompile the dll into bits of c coding, but it gives me an error about the header file. im open to any suggestions. and i will constantly be checking back for any updates etc.
oh and sorry about the mispelling, i typed this fast so i can get back to the work lol.
good luck.
-matt
Hi all here is my problem. I dont have HL2 yet but i have HL2 EP2 and portal. I try to extract EP2 maps from episode two maps.gcf and Scenes from episode two content.gcf. Every time when i load EP2 maps game crashes or all textures are purple. What i did wrong?
I havent half-life 2 content.gcf.
Hey guys nice work but i dont have half life 2… i just have portal and a faked half life an upgrade or something like that so can somebody plz upload the .gcf file?
Hey guys nice work but i dont have half life 2… i just have portal and a faked half life an upgrade or something like that so can somebody plz upload the .gcf file? or mail it to me kaydi0@gmail.com
Sorry d1kay, but thats warez we cant give you came content for free
If you guys haven’t noticed on the portal gun, there is a small orb in the middle of if that changes color from blue to orange to signify the last color or portal thrown. The annoying orb of light that seems to purtrude from your skull is that orb. Thus the orb only shows when you have the portal gun out. I ve successfully got it to return it back to its origonal spot, but i dont have a repeatable proccess. Maybe someone here can figure it out
I`m confused about the instrctions to the portal gun hack
I need your help on the portal gun hack. I need help on 1,3,4
i got the thing to work but when i play the noone talks and some citizens are missing like the ones against the wall and when i walk on the roofs there is only one guy on the road and his shots dont make noise or hurt. why is that?
ok i fixed the first few problems but the npc guns dont injure or make sound (only pistol has no sound as far as i know.) so what should i do?
und kann man die sich jetzt runter laden oders was
Great…i love this
How can I have the portal gun in HL2 if i don’t have the Portal game.. I only have HL2
well i have gotten this to work on the consle so screw you all!!!!! i hacked my old xbox and put linux on it, then i put windows on it, then i downloaded all i needed and followed the tut and ran it on my xbox with a 360 controller with NO lag what so ever! Very Very fun and worth it.
@ Octavian
you cant
you need HL2 to export the maps and scenes files
and i did that but only shows the portal maps
i copied all the HL2 maps to Portal Steam\steamapps\steam_id\portal\portal
and did the same with scenes folder so now is like this
steamapps\steam_id\portal\portal
HL2 maps all *.bsp
scenes folder
what i did wrong ?
update
now its working but my Portal has crashed and when i use the portal gun appears a strange line the color of portal , blue or orange.
some1 knows which is the problem ?
Regarding the “bullet problem”; I took a look at the code for npc_combine in the standard HL2 source tree.
In that source file I found mention of three weapons that can be carried by the combine - weapon_smg1, weapon_shotgun and weapon_ar2. All three of these weapons can be obtained by the player, for example by disposing of those unfortunate combine who happen to carry them around (or if you prefer you can use the “give” command to obtain them more quickly..
and all three of these weapons work just fine in Portal when used by the player. I don’t think there’s any hack that makes the bullets different for the combine when using those weapons (that just wouldn’t make much sense in a game like HL2).
I also noticed while playing around with this mod that there was a rebel holding an SMG who didn’t fire bullets, so I loaded up d3_c17_12 (the map where you’re supposed to take down a bunch of striders in front of that old museum once the suppressor device on the roof has been disabled), since some of the rebels there carry rocket launchers. I wanted to see if the choice of weapon was perhaps of importance. As I suspected, those guys do not fire anything, either. They just gather in front of the striders, point their weapons at them and get perforated and/or stomped on.
The striders can shoot. So I checked their code. The only weapon I could find mentioned in the code for npc_strider was weapon_striderbuster, also known as the “Magnusson Device”. This is an explosive you use to take down striders, the catch being that you have to make them stick to the strider and then fire bullets at them to set off the explosion. I’m pretty sure the reason this weapon is mentioned in the strider code, is to treat that weapon differently for striders, such as to add some extra damage when that particular weapon is used, or perhaps to do some special effects or other tricks. I also looked for mentions of “bullet” in the strider code, and found a routine that seems to be specifically written to fire bullets directly (ie. not via a weapon). There is mention of a “minigun” object that determines which direction the bullets are fired in, but that object is not an actual weapon entity.
What all this tells me is that the problem is most likely NOT with missing definitions for specific bullet types, nor for specific weapon types. What this suggests to me is that from a structural viewpoint npc_combine entities “carry” a weapon entity, which determines the type of fire, while npc_strider entities do not “carry” a weapon, because the ability to fire bullets is built into the strider itself. I also checked the code for npc_combinegunship. It mentions no weapons at all, so it doesn’t seem to “carry” a weapon either.
So the “bullet problem” seems to be related to whether the AI has to trigger a separate weapon. The code that would normally do that might have been removed or modified, or with a bit of luck some script or configuration file related to that functionality may be missing or incorrect.
i tried it and it works but whenever i shoot a orange portal it crashes saying “HL2.EXE has stopped working i can fire a blue portal but not a orange portal please help if you have any answers than email me at Jackbernett@yahoo.com
I wrote an installer that generates this mod from existing Steam, Half-Life 2 and Portal installations. I figure it’s good enough for a beta release, so you can download it at:
http://www.upload66.com/file/18733/Portalizer-0-1-zip.html
I recommend you virus-check everything before you run it.
Before anyone asks: I will NOT make this installer work for XBox, and I will NOT make this installer work for your warez downloads.
PS. If you happen find a solution to one of the many glitches in this mod, make sure you post it here and perhaps I might eventually incorporate it into another version of the installer.
I was given a fix for the vortigaunt particle much earlier in this thread. I deleted my mod progress, thinking your installer would have that incorporated. it didn’t
so much for your claim that you’ve incorporated everything that has been discovered so far.
oh, there was also someone who posted that you could change a game variable in the config file so that it would take an indeterminantly LONG time for the player to heal after being hit/falling, effectively eliminating the auto healing
Dear Hexchild,
A readme would have been great
I’m getting a “Unable To Locate Half-Life 2″ error
What file path are you passing to the HLextract dll?
is it relative?
where did you put the file?
Anyway you know what stinks?
Not having all the .h and .cpp files in the SDK to actually do a .dll build to modify all this.
Because for some reason Valve will release the HL2 source ..but not TF2 CSS or Portal. Awesome.
I was hoping I could just jump into the code and make some changes…Huge Negative there
@Ronny Mueller,
Where did I claim to have incorporated everything?
@UnaKRon,
I don’t think it’s the path passed to HLLib that is the problem, since you seem to be getting an error message before that happens.
Before any extraction occurs, Portalizer searches for the HL2 and Portal folders in subdirectories of the steamapps folder in the Steam install dir, under the assumption that at least one of the subdirectories belongs to the steam user. It actually looks for cfg/config.cfg in each game folder, so you need to have played each game once before they can be “found”.
It’s quite possible I’ve made other annoying assumptions somewhere. It’s a quick’n'dirty hack after all.
Let me know if you get the installer working.
Ok, I’ve uploaded another version:
http://www.upload66.com/file/18788/Portalizer-0-2-zip.html
This one merges the particle manifest files from Portal and HL2 (which fixes the Vortigaunt sparks problem), but I could only find the particle manifest file for HL2 in a gcf file called “source 2007 shared materials.gcf” which doesn’t sound like it’s necessarily going to stick around for a long while. Hopefully everyone has this file and will in the future as well…
I also added keyboard actions for enabling and disabling the health regeneration. I would’ve preferred to have it disabled by default, but so far I don’t know how to run the command automatically after loading a chapter.
And as requested, there is now a readme file. Hopefully it’s somewhat readable, too.
Can we do this using Portal: The First Slice?
#Zonji
Check the EULA…I would hate to see an account banned for some reason because you didnt want to pay 19.99 or orange box for 39.99
From my under standing Yes. But you have to rename the maps to the levels expected by portal first slice.
@HexChild:
The Chapter Title and words bug was fixed by Baso88 above. This would be a good addition to your already very useful exe
is it possible to use this method to get the dod:s weps to hl2 sp?
someone said that invalid bsp notice meant i have to update through steam. i have half life 2 on disk! does this mean i have to spend twenty bucks to but hl2 through steam? i really don’t want to do that. not worth it. is there some other way? HELP!
My video of live headcrabs going through portals. Enjoy.
http://www.youtube.com/watch?v=tyX_NDZ29Ow
Um… the portalizer link isn’t working… can anyone who has it put a copy of it up somewhere? Please?
*** ERROR: Bone access not allowed (entity 22:class C_DynamicProp)
*** ERROR: Bone access not allowed (entity 22:class C_DynamicProp)
*** ERROR: Bone access not allowed (entity 22:class C_DynamicProp)
This error popped up when I tried to shoot using a Combine machine gun shield/gun station. This was accompanied with, of course, the gun making the firing lights, but not the sound or… death of Combine soldiers.
The location to test this is soon after the first part of the railroad, where you find (I think Station
abandoned and with the machine gun station on top of it.
Hope that helps.
I think i might have to rewrite this entire thing and include all the changes that have been mentioned, Looks like the original people arnt around that much anymore which is a shame.
Hexchild you seem to have done a bit of work on this, why didn’t you just make a new HL2 mod and add the required files into that.
Thats what i have done and i dont seem to be getting any problems
Joff? Um. That’s what the installer was, from what I can tell. Perhaps you should release *your* version, if yours solves the problems we’ve been talking about?
(Most notably the bullets from Covenant weapons…)
Sorry, that probably sounded rude. I didn’t mean it to.
Yo, I play CSS, and i was on a forum, and somebody posted this site, and I have one thing to say, THIS WOULD BE THE BEST CSS MOD IN THE WORLD……and i was wondering, could you try to get the gun into CSS, if you did, i would love you forever!
PLESE EMAIL ME WHAT YOUR REPLY IS TO MY CHALLENGE
[...] tiene un pequeño tutorial de como [...]
LOL Drew is a dumbass, e-mail me, but he doesn’t leave his e-mail address
no edit button is lame, how is it going, are people still working on this because i am hoping that everything has been fixed by now.
Well, there’s a fix for the bullet bug (In theory, I’ve never modded nor know a thing about it, but I assume this would all be possible), however it’s pretty difficult, and there won’t be any grenades.
First, we have to model the combine soldiers already holding their guns, one with an SMG, one with a shotgun, on with an AR, one with a pistol, and an elite with an AR,. This shouldn’t be too hard, as all that would have to be done would be loading up the combine model and placing the relevant weapon in their hand. Second, we have to use a sample of code like the strider’s code, or a buzzbatoner’s, or a headcrab’s, so that the attack is built into the model, which the gun is also built into. After that, we have to find every instance of npc_create_equipment weapon_… and replace it with npc_create npc_(Our relevant created model). They’ll shoot, for the same reason the strider shoots, but we have to replace EVERY combine soldier in the game.
I was also thinking that we could try to find the weapon files in half-life and the portal gun file in Portal, and just move the portal gun to the same place as the HL2 weapons.
Um, im sorry if this has already been posted but there are loads of comments. In the instructins it says there is is a folder in the steam folder called (your_steam_id) and for some reason i dont seem to have that folder and all of it’s contents please help me:)
Ps really sorry i’m a complete idiot when it comes to computors
hi just to say my comment looks really stupid but with the (your_steam_id) thing I meant your steam id. sorry I just though you might think i was being incredably dense. Anyway it doesent matter now because i located the portal file somewere else sorry for taking up space
Adding the portal gun to counterstrike is plausible but I think that the biggest obstacle would be the version of the game engine that CS uses. Plus the fact that adding the portal gun to CS would create unknown objects and collisions to other players in the server and they may have a critical error when the portal gun is used. However there would be no bullet problem in CS. Because every character would be carrying the weapon in the same fashion as you. Kinda hard to explain.
This leads me on to the next idea. Perhaps you can change the code for enemy fire with the players code for shooting weapons. We have proved that the player can shoot themselves. So perhaps if you change the NPC fire sequence code to reflect more towards what the player’s code looks like maybe that would fix it. Biggest problem with that plan however is that the player may end up triggering all the NPC guns and not just their own. We could replace the players code with a similar code that causes it to trigger on a different “frequency”. Like adding a extra character in front of a crucial piece of coding.
Back on the game engine thing. My theory is that the HL2 engine and Portal engine are different considerably. So I figured we could try some of the things we have been doing with HL2 episode 2 instead of HL2. If I remember correctly HL2 episode 2 and portal came out at the same time. So something I tried earlier may work better. I loaded Portal with a HL2 face or resources or whatever. I can’t quite remember the entire process. We could try it with HL2 episode 2. If it works then we can load the HL2 maps from Portal with a HL2 episode 2 face. And if the .exe resolves the bullets issue then it would carry over to HL2.
I was gone for awhile because I was getting the A+ certification.
@Still Not Chris,
Taking code that belongs in a DLL, from one NPC (such as the strider’s firing code) and reusing it for another NPC (such as the combine) requires that we make these modifications in the source code and then recompile the DLL from that.
Unfortunately, as far as I know the only C++ source code trees provided by Valve via the Source SDK are the HL2 and HL2: DM trees, which makes the source code for the Portal DLLs unavailable. Since we can’t realistically modify parts of the code in a DLL without recompiling the whole thing, this means that anything we compile from one of the available source trees won’t have any of the Portal specific stuff in it, such as the portals themselves and support for the portal gun, unless we can figure out ourselves how to do those things in C++.
So, basically we’re currently stuck with using Portal’s original DLLs (and thus Portal’s original, unmodified C++ code).
We can still look for clues in the HL2 source code tree, since Portal seems to include most of HL2’s code. With some luck we might be able to reproduce the same problem in HL2, so that we can figure out what could be causing it. Then if we’re really lucky it turns out to be a problem that isn’t in the C++ code…
Ok So I have so much to say, but I somewhat feel it would be spam to repeatedly thank someone for this . . . I’m going to start off by saying this. Everyone is pretty much only looking at hl2. I (shamefully) haven’t even finished hl1. So I’m going to focus on hls here. I’ve read the majority of this “thread/comment” thing. I’ve tried some of it, but I couldn’t even get npc’s to show up in hls. I only had 1 scientist, whom did nothing but staticly look in 1 direction. So I was looking in gcf files with gcfscape and decided it would be easier to extract all of them. So I did. When looking through the files, mainly the precache, I found this. Portal precaches everything at once, where as hls does it only on every map. I personally wanted to play without having to impulse 101 everytime. I don’t like to cheat too much. So hears what I’m going to attemp:
1 I’m sticking to portal gun in hls
2 I’m copying all the files referenced in the portal precache in relevance to the portal gun into my extracted hls gcf folder
3 I’m going to add to the precache the items from portal to the hls precache
This needs to be done to every map i think. Look in gcf\root\reslist of hls and portal to understand what I mean. I don’t know if this will work. I’ve been up for about 24 hours, about 15 of which i’ve been focusing on this project. I’m hoping that doing this will allow me to ADD the portal gun to the list of weapons thus making it extremely easy to install. I just don’t know how offten the precaches are reset if ever. I was reading around the files and saw some crap about the client and server .dll’s. Not entirely sure how to word it right now and I’m to interested in seeing if I have found a way to do this. I will post my results once I’ve finished . . . AriderM
Ok so now I have finally created the hls mod and I’m copying the mod into the mods folder. I feel so sorry for my hd. I formatted with win2000 which can’t get bigger than 137 gigs as a “large” partition. I’ve installed xp and my 2000 partition was infected by about 500 different types of adware. I hated that. I was at a lan party. One of the comps did it . . . -_- But xp saved me ^_^ so Now I’ve got 63 unformatted gigs . . . hoping i can add a partition to it . . . too lazy to turn comp off for that long lolz. Back to the mod . . .
1 I’ve finished all the slave work of referencing all 75 files for the gun and I’m installing the mod to hls
2 I’m about to test this mod. It may work, it may not. I’ve actually never messed with mods beyond a simple inf change (soldat if you know it . . . ^_^) NO GUARANTEES!!!
3 BTW I’ve worked with very little c++ but I’ve worked extensively with c. I can probly help breakdown code and help trouble shoot and solve if it ever gets to that point . . .
4 NOW TO TEST!!!! . . . AriderM
umm . . . I’m gonna cry . . . I just realized how much skill is a factor here. I looked at the files and restarted steam. My files aren’t going to work because I don’t think there is a way to mess with the precache. I looked at another mod that was installed and don’t see how this could work . . . If someone could please help a noob I would greatly appreciate it. I’m honestly not even sure this will work, but I really see no reason why it wouldn’t. All the files for the gun are right here. It’s just a matter of taking the files for one engine, and adding them to the files of another copy of the same engine . . . IDK and I should probly get some sleep. I’m always up all night on crap like this . . . Oh well . . . AriderM
Well I’ve tried to not spam, but now I have to mention this. I thank the valve devolpement wiki thing, but i’ve got it to the point steam sees my mod as installed, but when i go to launch it tries to install counter strike source. I know I probly shouldn’t be using the undead patch, but I don’t care. It won’t dl css because of the patch, but I have the mod in a format it should run. If needed I can send it to someone to help . . . I’m so lost trying to get it to work. I’ll do all I can and I really want to see this mod get off the ground and running on some comps . . . Thanks ppl
Well, of all my messages I have figured out everything about running my mod, except one thing. I don’t know if I’m going to be able to re-build the reslists to use it. I’m just confused because when I first got it to start a successful run it is performing an update. Maybe it’s re-building on it’s own? idk i’m so lost but I guess i’m getting somewhere. It’s okay for ppl to call me dumb or noob, or even bitch me out because they already did this . . . w/e . . . AriderM
lol i got my mod to actually run and I changed the name of the game to run it and found some weird icons . . . Idk. If this mod works out you’ll see what I mean . . . I’ve got the whole thing functioning normally. Now my only issue is I can’t get my reslist to rebuild. I typed the command in as the valve development community said to do so. I run my mod and the only thing that happens is it says “Node Graph out of date: updating . . . ” Then the screen goes black. If you’ve opened up hls then you know about the changing background. Well it flips between them, working for only about 1 sec then back to black. It works, but only in the background. Are the reslist rebuilt? I wish I was more patient than this . . . AriderM
lolz 2 hours of sleep and I’m back on this project. I’m dl’ing the cpp editor and compiler to make the mod accept the gun. Will it work if the portal gun is added from the same process as any other gun? . . . AriderM
It is possible that it will work if its added like any other gun but not likely. You have to keep in mind that the portal gun has special functionally. Normal guns make bullet holes. Which are basically just small textures. But the portal gun manipulates the environment. Their may be more alterations you may need to make. I wish Valve had a load gun as well as a load map functionality.
yeah, the load gun function would be sweet. Sorry I wasn’t on here earlier, but I just needed a break. I’m going to jump back in and try to get it working. To repack the reslists I needed to get the sourcesdk. I’m currently using the undead patch so this is kinda imposible. My only hope is to force the extracted programs to recognize the steam install. For example, I need to place the dll’s where they are “missing” from. Can’t be too hard. I’ve done it before *remembers winME* and I’ll just have to do it to move on . . . AriderM
At this point I’m waiting for the compiler to install. I’m going to bed and I think i’m participating in a lan party tomorrow, so I’ll pick up dev on saturday . . . I’m obviously going to play with it between now and then tho ^_^ AriderM
nice progress. You seem to know what your doing pretty well. Just keep in mind, you may be able to choose what DLLs you can use. Try mix and matching the source DLLs. Some might effect the game in a positive way. The DLLs may alter the engine but its pretty hard to get them to load right. Its also time consuming. Use this as a last ditch effort.
Also, What did you think of Windows Me? Never got a chance to mess with it. I used 2000/2003 server though.
Ok, i recently bought the orange box for PC (i previously had half life 2 already and downloaded a non-steam version of portal as i already had 360 version and didn’t want to pay for the same again). Now i have the official orange box thing it works perfectly. Anyone having the same problems that aren’t running the official steam version of portal. You need to. ^^
Well, Thanks for the compliment sef, but I really have no idea what i’m doing . . . I have never compiled a dll and it appears to me that I’m going to have a legit copy of a source game. The ati promo hl2dm doesn’t allow you do dl the sourcesdk so I can only do so much . . . I’m still setting up the compiler. I need to install the directX sdk and I appear to have hdd size issues. I can’t use a win xp disc to format the missing 70 gigs and my ubuntu disc wont boot either -_-. Right now I just have to start uninstall games and free up some space. About 900 megs . . . I wish I had a second drive . . . Well, I’m at a lan and their playing a game I can’t use so I’m going to start working on the compiler setup . . . BTW, We really should setup a place for comments other than this. I’m thinking I can host one once my free service is finished upgrading their servers. I will setup a forum and we can do anything on it. In the mean time I guess I will continue to rape with my comments . . . AriderM
Ok, so my roommate has many source games legitimately, so I’m going to have him log in and download the rest of the sourcesdk to my comp so my cracked steam can access the files. Once that is done then i can continue with my course. The reason I cannot move on is because I don’t have the source code for the dll’s which is required to have a base to the engine . . . It’s complicated and you ppl might know what I mean . . . And I have one thing to say . . . X-BOX IS ONLY GOOD FOR QUICK MULTIPLAYER IF YOU DON’T HAVE COMPS FOR EVERYONE . . . PLEASE GET A PC AND LEARN THE TRUE TEST OF SKILL . . . Just needed to be said. I don’t feel it’s been emphasized enough . . . And my site is still down . . . Well I’m out untill my friend finishes his current dl and moves onto mine . . . AriderM
^_^ so now I have the sourcesdk and it’s actually working too. I’ll begin work on this a bit later because I think a game is starting up . . . I’m so happy this worked . . . Now to try to find ppl to help with c++ coding . . . -_- just started looking through the options for creating a mod . . . and i’m going to cry probly. I can’t make a hl:source mod . . . So now I’m going probly mod portal to accept everything from the hl maps and possibly add in all the missing elements. This is probably best too because I can then fix all the hl2 issues in my compiles . . . That’s it for now . . . AriderM
Ok, no sleep and I’m back on the project. I’m going to make a portal mod that accepts the missing items for hl:s. If somebody has any other ideas as to how I should go about this. First I’m going to try the portal dll’s in the hl:s engine . . . IDK if it’s going to work and I can modify them if needed to work if the errors give me any goods . . . IDK and I’m back to work . . . Site is still down. I’m going to host forums on this topic so it can be documented very well and hopefully functioning as a resource for other projects and so on . . . AriderM
OMFG I’M TIRED . . . I’m pretty much falling asleep trying to find a map decompiler so I can add the missing entities into a map for portal. This may go either way. IDK. I’m going to get some breakfast and probly go to sleep . . . Sorry tonight wasn’t as productive, but I’m very enthusiastic on getting this working . . . post later tonight . . . AriderM
Well still awake . . . Pretty tired but I think I’m going to do this the easy way. I’m going to make the mod for hl2 and see if it will work. Then I can try to port it out to hl:source as a final goal. The only thing is if I do this and get it working than I don’t think anyone will stick with finishing the final goal. But if that happens then I’ll struggle on my own I guess. So for everyone to listen and I bet you just did a search for it, but I’m going to make a fully functional portal gun for hl2. I feel dangerous claiming that but idk. Might just be me tired . . . Oh well . . . AriderM
If you succeed then this mod should carry on to any source/valve game. Some with a few more hang ups though. TF2 would probably only work on custom servers. What would be interesting is, building a custom game engine that source games could use. Sounds far fetched though.
I hate it when browsers time out. Didn’t let me send a perfect update . . . This comment crap is getting annoying. I’m probly going to move to one of my free crap-sites till I can get up my forum. I am having issues. It’s happened like 5 times where I send about a full screen of text at a res of 1600 x 1200 and it just doesn’t make it . . . -_- BTW sef, if you want, I’ll make you an admin on the forums when I get them up. I could use help managing them and it seems as if you and I are the only ones getting somewhere with this. and that wasn’t dissing anyone either. So I think a forum will help organize and we can filter it out so much. And I don’t really want to release a version until the whole thing is complete. I WILL NOT LET THIS TURN INTO THE DECAY PROJECT!!! I don’t know if anyone else will get that . . . and I still can’t seem to wait for it ^_^. Well, I’m hoping you send me a message.
AriderM aim
and if you need more i have pretty much every chat client under the sun. I’m willing to get another if i don’t have one . . . AriderM
BTW, I need someone to give me a WORKING .bsp to .rmf decompiler. Or they could just send me the hl:source original non-compiled maps . . . Yeah, I didn’t think so on the latter . . . That’s what I need to add the weapon I think . . . AriderM
Well, now I’ve got outstanding news. I’ve got source code opening in VC++ express 8 or whatever the VDC led me to and it’s totally what I needed. I’m following a tutorial on adding a weapon into hl2, but that’s pretty much the same as what I’m doing, which is convenient for the source code snipets and the EXACT resources(thank you GCFScape). I, quite remarkably could see it being finish . . . tonight. Don’t hold me too it, because there still is a massive amount of error possible, but if all goes right I could start doing my next goal. That is incorperating the synergy mod into hl:source to allow online play with portals in the hl1 story. I think that thought of how close it is made me cream my pants . . . Thought I’d let you guys know that it may not be long at all . . . AriderM
Well, now I have to stop for a little bit to take and throw in a spare hard-drive. I feel now that it is worth doing just so I can make the appropriate setup. I now get the “low disk space” crap every 30 secs . . . -_-
actually, as much as I don’t want too, I’m going to delete my fav anime that took me 3 weeks to dl . . . Suzuka is really good if ur up for a romance anime . . . *Back to work slave!* no need to yell, I’m going to modify code now . . . AriderM
There, I now have control of a website. It appears to be stable, I don’t know how to put a link in this comment, so I’m just going to put the url in my comment and set it as my website to post here. I’m putting the default forums on right now. I love how this was available. I’m gonna try to get a redirect domain to shorten it up, but that’ll take 5 mins. gotta love .tk . . .
http://ashpd.quotaless.com/
Like I said, I just got it and there is nothing on it at this second, but I will have forums within a couple hours at most . . . AriderM
well, I’m having some issues getting the forum installed . . . I hate phpMyAdmin and phpBB. They are free and good, but so anoying to install . . . I’m almost finished . . . AriderM
OK. Now I have finished installing the forums. I’m going to be changing it over time, but for now it’s up. I’m waiting for dot.tk to add my url to their proxy, but now in due time you should be able to just type ashpd.tk in a browser to get to the page. Much shorter and easier to remember . . . I even put a little something for x-box users . . . ^_^ Join please and continue using your accounts. I’m not going to host files on this server because they will temporarily stop service if I exceed a certain bandwidth in a certain amount of time. I don’t know and I don’t care. I hate rapidshare. If I find a link to rapidShare I will personally check it out and put it up on fileFront. So please if ur going to help, make it user friendly. I don’t like waiting 45 seconds and being unprivilaged because I use the inet without paying a million ppl. That’s about it . . . Have fun and post away . . . AriderM
So yeah, all of my updates are going to be on that page from now on and I’m planning on archiving this page too . . . AriderM
(p.s. accounts are free, i love when things work. Now for it all to break { in reference to the code } )
Nice forum so far. I think you need to open it so other users can make topics though. If the topics are useless then you can delete them.
I have tested the HL2.exes in all the other versions of this game.( Portal, Episode 2, ect.) The best i could do is load HL2 with whatever game it was with. Whats weird is the the Portal game loaded the easiest. I still need to check what happens when you load the portal maps into episode 2.
Personally I use Frontpage, Dreamweaver, and Joomla. And I usually use a Linux machine because of security concerns.
O what i meant was the Xbox topics need to be opened up for new topics. From what I see, there are 2 ways of doing xbox HL2 portal mods. One is chip the xbox so it could play bootlegged games. Then modify the game’s ISO image using a computer. Reburn the game. And if you combined them good, it will work. This method takes alot more technical skills than the PC mod would take. You would have to be able to break down .cab files and alter them.
The other way is to install windows XP onto the xbox. Not sure how to do this but if people could put Linux onto it then its reasonable that XP would work. Then you could install HL2/Portal normally.
Keep in mind that the only way to get this to work on xbox is to void the warranty on the xbox. Plus until we get the PC version working, the Xbox version will have to wait.
I KNOW A WAY TO FIX THE ORANGE OR BLUE LINE
Instead of impulse 101 type give weapon_portalgun (or portal_gun i forget)
then upgrade it (You don’t even have to have sv_cheats 1 for this!)
Ok, sef, I’ll open up the x-box topic, although I will not personally look through it as much. The main reason I had it closed is because with any x-box if you mod it and connect it to the i-net, microsoft will red-ring ur x-box, and I don’t want to be connected at all to that. You would have to connect to steam to run any of these games, unless someone found a way to make a non-steam hl2 or portal or what ever method ends up working. So it’s a bit confusing, but I’ll open it up for discussion now . . . AriderM
I didn’t realize Microsoft could red ring your xbox. We better wait for now.
yeah, that’s why i specifically said no x-box support . . . I’ve got a java chat set up on my website now . . . Hope it works out great . . . http://ashpd.quotaless.com . . . That url opens up the constant chat with forum on the right. If people have a request for the layout I can try to change it . . . AriderM
Ok, so for those who may have noticed, yes my site went down. But it’s back up again. It went down because the host was updating i think. It’s what happens for free services . . . Guess that’s it , , , AriderM
For Sound go to => Source Sound.gcf ^^
AWESOME! I just wonder if this [principle] would work with a Portal/Age of Chivalry combination.
Ok, this looks great fun, as both Portal and HL2 were great for me, and so right now I’m feeling like my life will never be complete without these too combined. So like a good little person I went ahead and followed you intructions.
I download GCFScape, go to open ‘half-life 2 content’… and it says it could not open because it was being used by another process?!? Any ideas on what to do here, as far as I know, I’m NOT using it in any other process,and I don’t have HL2 open…
Please help, as I said before, I feel incomplete without this awesoem combination
Toad:
What you need to do, I found this to be an issue sometimes. Exit steam. It’ll take a minute for the process to end, but then you should be able to open it. And everyone should move towards my website. It’s got free chat and free forums
http://ashpd.quotaless.com/
That’s all for now . . . AriderM
Is anyone still interested?
Well, I browse the c++ books at barnes and nobles and I think I’m gonna try this. I’m looking at the functions in the dll’s for the default ones, dll function extractor, and it tells me everything i need to know kinda. Now i just need to reference it, initiate those functions, and I should be good. It’s really only like 10 functions . . . Well, I’ll post all the technical shit on my page . . . Hope people are still willing to help . . . AriderM
does this work with the demo of portal??
it works with the portal demo aswell, you’ll just have to rename the map files. for example “d1_canals_01″ => “testchmb_a_01″…
hey guyz i got an idea for this portal gun thing.
instead of doing this hack try this hack instead:
First off, backup up your entire Portal directory in a safe place. It’s the folder marked “portal” in ..\Steam\steamapps\(your_steam_id)\. Next, download and install, if you haven’t already, GCFScape. This handy program will allow you to access the cached game files for any Source-powered game, in addition to several other Steam games you may have downloaded. Once that’s done, browse to the directory ..\Steam\steamapps\. There, you’ll see all the available GCF archives. We’ll start with Portal, then Half-Life 2 mod(s) or just the regular game Half-Life 2.
First just copy the whole Portal folder and put it into SourceMods folder then delete all the maps, scenes, and saves (do new game just for precaution) (just speculation) then replace those maps, scenes, and saves with the maps, scenes, and saves from Half-Life 2, ep1 (separetly), ep2 (separetly). now for mods you just go ahead copy in the whole mod like HL2: Substance or the fabled Smod
if anybody wishes to try this besides me please email me your progress. oh and one more thing, Hey Primotech people if my hack works i give you guys full permission and cooperation to use my hack
Open the GCF marked “half-life 2 content.gcf” You’ll see a directory tree in the left pane. Click the box to the left of the folder marked “hl2″ to see the directory listing contained within it. Then, right-click “maps,” select ‘Extract’ and extract the entire folder into the directory \Steam\steamapps\(your_steam_id)\\portal. This will merge it with the existing Portal map folder.
crap i screwed up lol this is the right hack:
First off, backup up your entire Portal directory in a safe place. It’s the folder marked “portal” in ..\Steam\steamapps\(your_steam_id)\. Next, download and install, if you haven’t already, GCFScape. This handy program will allow you to access the cached game files for any Source-powered game, in addition to several other Steam games you may have downloaded. Once that’s done, browse to the directory ..\Steam\steamapps\. There, you’ll see all the available GCF archives. We’ll start with Portal, then Half-Life 2 mod(s) or just the regular game Half-Life 2.
First just copy the whole Portal folder and put it into SourceMods folder then delete all the maps, scenes, and saves (do new game just for precaution) (just speculation) then replace those maps, scenes, and saves with the maps, scenes, and saves from Half-Life 2, ep1 (separetly), ep2 (separetly). now for mods you just go ahead copy in the whole mod like HL2: Substance or the fabled Smod
if anybody wishes to try this besides me please email me your progress. oh and one more thing, Hey Primotech people if my hack works i give you guys full permission and cooperation to use my hack
Yeah fixed it LOL.
when i get my hack working i will give you guys the info cuz its gonna take some work
Thank you Darius_Cole, and could you please post your ideas under a new topic on my website . . . It would help quite a bit. I’m trying to hack the dll’s to use the functions and basically make it interupt the flow, kinda like a game genie . . . the url is:
http://www.ashpd.quotaless.com
I’m almost always logged in, and I’m still updating the chat on that webpage . . . AriderM
where do we download it
Well, there is a funny thing about that, did you read a majority of the forum? It’s not finished yet . . . Did you read my previous post even? It would help you quite a bit . . . sorry about the chat to everyone . . . can’t find a good one to use . . . AriderM
I did this, loved pwning Civil protection, but then when I went back to playing Portal, the robot chic in the background (forgot her name) Wasn’t making any sound when she talked D: Been trying to find a way to fix it, and after going back to the portal content.gcf and extrating old files, its not letting me run portal, it comes up with an error sayding “Not enough disk space to run game Please free up some disk space” I have 24gig.. Please help, Portal’s my only good game I have at the moment >.<
honestly, the best thing to do to fix your portal, would be to find the sav files, copy them, then use steam to remove local content. Finally, redownload portal for all your mind blowing good-ness . . .AriderM
plz can anyone expline me haw i install and play halflife online??????????????plzzzzzzzzzzzzzzzzzz
i just did this with the mod missing information and now im playing HL2 with beta weapons!!
[...] Posted by helpmeplease321 How do I go about doing this? Link? Here ya go Half-Life 2: Portal : Primotech It is incredibly fun going through HL2 with the portal gun . Check out the video there also to see [...]
can we spawn portal turrets ? :p with that lovely kid voice xD
could image it xD right after a corner the sound of a kid arraises xD AND BOOM killing you like Cake :))
CAn I do this on cs:s?
if u shoot a portal gun up into the sky will it create a portal in the sky box
Brendan
Do u mean hard disk?
hello.
i’ve found here ( http://xtreme.890m.com/forum/viewtopic.php?t=10 ) that 2 dlls are involved in the bullet issue.
They are:
\bin\server.dll
\bin\client.dll
I’ve tried to overwrite the hl2 dll to the portal\bin in directory… now if someone shot you, you’ll be hurt!!
the only problem is that if you enable cheats and do impulse 1010, you gain all the weapons, EXCEPT THE PORTAL GUN!!
(and the get weapon_portalgun is unknown command for the console!!)
if you know hpw to fix these 2 dll, the bullets problem is solved.
Bye
I NEED HELP THE CHARACTERS ARENT TALKING they keep thier mouths closed and d actions (no sound either)
HELP,
have you tried reading all the posts? this problem has already been solved copying a hl folder inside the portal folder..try searching a bit!
how to i make the difficulty higher? The set difficulty is tooo low.:(
the problem is the difficulty..the problem is that actually you won’t be hurt!
my problem is im doing everything and the characthers keep mouth shut and they move but no sounds it all works but except character sounds so i need a reply if i get a reply and works thx!
hey plz someone respond if u dont IM RUINED NOO!!!!!
my problem is 100 percent like the person HELP’s problem so plz someone i need a answer so i dont go without playing it
Reposted solution to the new peoples’ questions is reposted.
The Portalizer mod (thanks to the people who created this, and to HexChild for compiling it into a mod so easy even *humans* could use them):
http://www.upload66.com/file/18788/Portalizer-0-2-zip.html
Use the included ReadMe file.
Play. Enjoy. Don’t whine about bullets or chapter names.
Heya guys, my problem is that I’ve got portal and hl2, but only on disks and I dont use steam. I’ve been messing around with this myself, but all I end up with is a game that *should* work, but it just cant seem to understand the textures. So the question is if it’s possible to do without using the steam version (ie, no .gcf files) or not?
As far as I know the gcf is steam’s way of packing the data away, but my install has all the .bsp’s and textures in file form.
Let me know if you can think of anything
@Janusfenix
http://www.upload66.com/file/18788/Portalizer-0-2-zip.html
Nothing here except bullshit-ads by google. Broken link?
Thx.
This is a great idea, thanks a million for this little invention. As a reward, at the end of me trying this, you may have cake.
Hm.. Hey HexChild, or anyone else on the project: Any chance of a new link? I lost my copy of the installer.
yes, Vortigaunt. That’s what we in the business call an expired link. See my above post of “It’s not there anymore. Someone who has the file, make a new link”.
Good job.
[...] I cannot remember where I found the tutorial to do it…. Let me see if I can find it….. Link I believe that is what I originally used. It is fun stuff. [...]
Its Awesome! I loved the way combine can’t follow you because they are ez to kill. One problem: on the first level you can’t use the cheat because you can’t have your suit.
I have half-life 2 and portal non-steam then how do i make it work? when i paste the map or scene folder and try to load a map (like d1_canals…..) it crashes and kick me from the game.What should i do.
So far, i’ve tried the d1_canals_01 map and it’s working out nicely. I just need help switching weapons and taking out the portal gun. can you help me out here?
ha one question ppl did better jobs but its ok its just wird that you will get catched by the combin or so called cival protection
im just trying to say it kind of sucks and that you get it by orange box witch sucks becoasem i have all half life 2 episods one and two so yha it sucks that its not gmod
it sucks truly
Can Someone tell me how to install it non-steam?
yeah you cant disable that cloud. That is the light thats inside the portal gun, but it’s position gets fuked up when you get the gun using impulse 101 or any other console command. Trust me, ive had to put up with it from time to time.
oh and, you dont call it civil protection, you call it fucked protection (more like execution)
god damn it… i keep having an error at canals, where the vortagon goes to charge me, its a “memory couldnt be read” error, but i think the problem is that portal doesnt have the bolt data, so i was wondering if someone could find the bolt that the vortagons make and find out where we have to put it? if you find it, email me please, nathan.davies-lee1@education.nsw.gov.au
@matteo
look on google for a program that can merge dll’s. you need the line/s on the portal gun, and you need the lines on the enemy gun sounds and bullets.
Can any1 link the page for dling steam files? i cant find any of em :/
im new to this soooooo im gonna need some help!!!
ive downloaded gcfscape and backed up my portal files…….but the directory will not show up!!!!! >:(
could someone tell me where it is!!! perhaps im looking in the wrong place!!
Now I want to take this to the next step. I have been trying to get the super gravity gun within this mod/hack. Now I have tried going to citadel 3, where you obtain the super gravity gun, and every time I pick it up, it’s the normal one with a little blue, glowing orb sitting in front of you. It doesn’t have any of its powers or anything, only the normal ones. I haven’t found the right file, so if someone could help me, it would be great, I’m sure this would be incredible if we could get this to work.
yeah its kinda fucked. its kind of embedded in its uncharged self. thats why if you use that cheat in half life 2 and you then use give weapon_physcannon, you get the supergravity gun. It assigns the classname in that level. What i would do… is i would try to mod hl2 with sdk. i cant find it there, but its a free stubbie to the first to find one (lol like im old enough)
I have a Hl2 e2 loading error :
“