Quick question about an exe file.

Quick question about an exe file.

Re: Quick question about an exe file. Posted by **Dedi** on Wed Oct 6th 2010 at 11:29am
**Dedi**
284 posts
Posted 2010-10-06 11:29am
**Dedi**
member
284 posts 39 snarkmarks Registered: Dec 21st 2004 Location: Melbourne, Australia
Just a quick question gents. I realise this is not Half-Life "editing" so I posted it on the general banter. As recently as about a month ago, I knew how to do this, and now I just seem to have forgotten (the incredible amount of studying I've done must have pushed something out :lol: ).

Anyway, down to the question. What do I write in the shortcut target of a HL exe file, to directly open, say Opposing Force, or Sven Coop? Like -console -game -svencoop, that sort of thing.

Cheers :)
Re: Quick question about an exe file. Posted by Niborius on Wed Oct 6th 2010 at 4:08pm
Niborius
1007 posts
Posted 2010-10-06 4:08pm
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
**Dedi** said:
Just a quick question gents. I realise this is not Half-Life "editing" so I posted it on the general banter. As recently as about a month ago, I knew how to do this, and now I just seem to have forgotten (the incredible amount of studying I've done must have pushed something out :lol: ).

Anyway, down to the question. What do I write in the shortcut target of a HL exe file, to directly open, say Opposing Force, or Sven Coop? Like -console -game -svencoop, that sort of thing.

Cheers :)
I think the mod must be inside the half life folder, and then you write (behind the .exe path) -game foldername

example: somethingsomething/half-life/hl.exe -game gearbox

not sure if it's hl.exe but that's not the point :)

I might be wrong though! Sorry if I am
Youtube Channel: https://www.youtube.com/c/Nibgames
Re: Quick question about an exe file. Posted by Crono on Thu Oct 7th 2010 at 1:18am
Crono
6628 posts
Posted 2010-10-07 1:18am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
I'm pretty sure it has to be inside the valve directory under the half-life installation directory. The game name for the argument will be in the libgame.txt or whatever that file is called for the mod.
Blame it on Microsoft, God does.
Re: Quick question about an exe file. Posted by Le Chief on Thu Oct 7th 2010 at 1:39am
Le Chief
2605 posts
Posted 2010-10-07 1:39am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Firstly, mods go under the Half-Life folder. The valve folder is the "mod folder" for Half-Life 1.

Secondly:
"Niborius" said:
somethingsomething/half-life/hl.exe -game gearbox
That is correct for WON Half-Life but I'm not sure if it is about Steam Half-Life. But regardless, if the mod works and you installed the mod correctly and restart Steam, the mod should show up in the games list.
Aaron's Stuff
Re: Quick question about an exe file. Posted by Crono on Thu Oct 7th 2010 at 3:28am
Crono
6628 posts
Posted 2010-10-07 3:28am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
You can also do the steam.exe -applaunch hl1# -game whatever.
Blame it on Microsoft, God does.
Re: Quick question about an exe file. Posted by **Dedi** on Sat Oct 9th 2010 at 1:35am
**Dedi**
284 posts
Posted 2010-10-09 1:35am
**Dedi**
member
284 posts 39 snarkmarks Registered: Dec 21st 2004 Location: Melbourne, Australia
Wow, I still can't get it to work. And I actually had it working a few months ago, I have no idea what I had written down though..

For the record, it is a WON version of HL.
Re: Quick question about an exe file. Posted by Le Chief on Sat Oct 9th 2010 at 12:47pm
Le Chief
2605 posts
Posted 2010-10-09 12:47pm
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
So it doesn't show up in the "Custom Games" list?

Copy and paste the liblist.gam and I'll take a look.
Aaron's Stuff
Re: Quick question about an exe file. Posted by **Dedi** on Sat Oct 9th 2010 at 10:44pm
**Dedi**
284 posts
Posted 2010-10-09 10:44pm
**Dedi**
member
284 posts 39 snarkmarks Registered: Dec 21st 2004 Location: Melbourne, Australia
It does show up in the custom games list, and there's no problem with that at all. My particular issue is only making an exe file that takes me directly to Sven Coop without going to HL first.

Here's the liblist.gam from Sven Coop:

game "Sven Co-op"
url_info "http://www.svencoop.com"
url_dl "http://www.svencoop.com"
version "3.0"
size "5"
svonly "0"
cldll "1"
secure "0"
hlversion "1110"
nomodels "0"
nohimodel "1"
type "multiplayer_only"
mpentity "info_player_deathmatch"
gamedll "dlls\hl.dll"
gamedll_linux "dlls/hl_i386.so"

I might have to remove everything and reinstall as well, since I've merged parts of version 4.5 and version 3.0 together.
Re: Quick question about an exe file. Posted by Crono on Sun Oct 10th 2010 at 12:33am
Crono
6628 posts
Posted 2010-10-10 12:33am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
"PATHTOHLINSTALL\\hl.exe -console -game svencoop"

Replace "PATHTOHLINSTALL" with whatever the path is, for example, "C:\\Sierra\\Half-Life"
Blame it on Microsoft, God does.
Re: Quick question about an exe file. Posted by Le Chief on Sun Oct 10th 2010 at 3:18am
Le Chief
2605 posts
Posted 2010-10-10 3:18am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Hmm you're missing slashes in that post Crono, silly Snarkpit. :uncertain:

Dedi, does the name in the -game parameter match the name of the folder the mod is in?
Aaron's Stuff
Re: Quick question about an exe file. Posted by Crono on Sun Oct 10th 2010 at 3:56am
Crono
6628 posts
Posted 2010-10-10 3:56am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
It's equally silly since the "preview" option shows it just fine. I escaped the backslash (a character that doesn't need escaping in anything ever)
Blame it on Microsoft, God does.
Re: Quick question about an exe file. Posted by **Dedi** on Sun Oct 10th 2010 at 6:59am
**Dedi**
284 posts
Posted 2010-10-10 6:59am
**Dedi**
member
284 posts 39 snarkmarks Registered: Dec 21st 2004 Location: Melbourne, Australia
aaron_da_killa said:
Hmm you're missing slashes in that post Crono, silly Snarkpit. :uncertain:

Dedi, does the name in the -game parameter match the name of the folder the mod is in?
Cheers Aaron! I tried the -console -game svencoop, with the name of the folder, and it did the trick. :)

I initially had it matching the liblist.gam name which is Sven Co-op. Changing it to the folder name did it.

Thanks gents. See this was so much simpler than I made it seem. :lol: The most embarrassing thing about it is the fact that I knew it before and then forgot. :p

Edit: Wow, I just looked at my initial post, and I almost had it right... I just needed to remove the '-' from the -console -game -svencoop.

Edit2: Oh, Nib, I just realised that what you wrote was right.. I tried all the suggestions, I wonder why it didn't work.. Oh well, all fixed now, thanks for the help guys.
Re: Quick question about an exe file. Posted by Niborius on Sun Oct 10th 2010 at 7:47am
Niborius
1007 posts
Posted 2010-10-10 7:47am
Niborius
member
1007 posts 1116 snarkmarks Registered: Mar 23rd 2009 Location: The Netherlands
**Dedi** said:
Edit2: Oh, Nib, I just realised that what you wrote was right.. I tried all the suggestions, I wonder why it didn't work.. Oh well, all fixed now, thanks for the help guys.
Heh, I was just about to say "Hey that was my idea! :lol: "

Good it's working now
Youtube Channel: https://www.youtube.com/c/Nibgames