FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Multiple Clients
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> Tech Corner
View previous topic :: View next topic  
Author Message
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Wed May 28, 2003 12:16 pm    Post subject: Multiple Clients Reply with quote

I'm looking for a way to trick HL into allowing multiple instances of
a client to run on the same machine. (Assuming that the client is
not written in such a way that any resources could not be
properly shared. Of course, in theory the OS is supposed to handle
that, but we all know that theory and reality are not the same thing.)

Anyone know anything about getting multiple clients running on
the same box?
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Wed May 28, 2003 12:20 pm    Post subject: Reply with quote

Oh, BTW, this would assume that the clients were running in
windowed mode.

(Yes I am perverse)
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Fri May 30, 2003 12:01 am    Post subject: Reply with quote

I'll take that as a no.
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bright Red Nipples
Registered User


Joined: 26 Mar 2002
Location: at work :s
Posts: 7684

PostPosted: Fri May 30, 2003 12:04 am    Post subject: Reply with quote

I would have posted something informative if I knew what the hell you were saying. Unfortunately I am not computer literate enough to even attempt to give you advice. Sorry.
_________________


God Bless You Blue Ruler
Back to top
View user's profile Send private message Send e-mail
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Fri May 30, 2003 12:07 am    Post subject: Reply with quote

Bright Red Nipples wrote:
I would have posted something informative if I knew what the hell you were saying. Unfortunately I am not computer literate enough to even attempt to give you advice. Sorry.


Ah well, I'm sure there's a reason why Valve programmed HL
not to do it in the first place anyhow.
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Mon Jun 02, 2003 6:20 pm    Post subject: Reply with quote

I know what you mean, but I don't think it's possible with the HL engine... That would be cool though.
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Usually Dead
Registered User


Joined: 14 Jan 2003
Location: Salt Lake City, Utah
Posts: 680

PostPosted: Mon Jun 02, 2003 9:02 pm    Post subject: Reply with quote

I tried doing the same thing with Diablo II, but Blizzard dosen't seem to like it any more than Valve does. It would have been cool too, becuase I could have easily exchanged items between characters in single player mode.

Wait a second MPI... why do you want to do this in the first place??
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Mon Jun 02, 2003 9:15 pm    Post subject: Reply with quote

Usually Dead wrote:
I tried doing the same thing with Diablo II, but Blizzard dosen't seem to like it any more than Valve does. It would have been cool too, becuase I could have easily exchanged items between characters in single player mode.

Wait a second MPI... why do you want to do this in the first place??


'Cause using sv_cheats 1 in Natural Selection isn't the same
as having two clients connected, and I want to abuse the game,
err I mean experiment with the game. Also, if you write a console
script that has an infinite loop, there's no way that I've found to stop
the script except to terminate HL from the outside (with task manager
or any program that provides a kill process feature).

I'm trying currently to figure out what sort of mechanism HL uses to
detect if it's already running. It's not the image name, since I've
already tried the experiment with a renamed client, and even
changed the one instance of 'hl.exe' inside the renamed client for
the heck of it. (Yay for hex editors!)

Now I'm wondering if it uses a registry key, or makes some sort of
"magic" handle, or if the client checks for locks or open handles on
the rest of the client files, etc...
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Mon Jun 02, 2003 9:56 pm    Post subject: Reply with quote

Have you tried copying the entire Half-Life directory to another location outside of the SIERRA file? Then change the cd key to it or something?
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Mon Jun 02, 2003 10:01 pm    Post subject: Reply with quote

Stevo wrote:
Have you tried copying the entire Half-Life directory to another location outside of the SIERRA file? Then change the cd key to it or something?


So far I haven't tried anything yet except messing with the executable,
haven't had time. Right now I shouldn't even be on the forums,
with all the various things I ought to be doing that I'm not
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Usually Dead
Registered User


Joined: 14 Jan 2003
Location: Salt Lake City, Utah
Posts: 680

PostPosted: Tue Jun 03, 2003 6:19 am    Post subject: Reply with quote

My Personal Insanity wrote:
I'm trying currently to figure out what sort of mechanism HL uses to
detect if it's already running. It's not the image name, since I've
already tried the experiment with a renamed client, and even
changed the one instance of 'hl.exe' inside the renamed client for
the heck of it. (Yay for hex editors!)

Now I'm wondering if it uses a registry key, or makes some sort of
"magic" handle, or if the client checks for locks or open handles on
the rest of the client files, etc...


Well, it seems to me that HL probably just uses some variable in the RAM to determine weather it's running or not. Every time the HL executable is run, it checks for that specific peice of data in the memory to see if it should start up or not.

I could be wrong... it just seems the most obvious way Valve would keep their game from running two copies at once. If not that, then maybe the HL.exe checks its .dlls to see if they're already in use.
_________________


Last edited by Usually Dead on Tue Jun 03, 2003 12:06 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ROOFCUTTER
Server Admin
Server Admin


Joined: 12 Aug 2001
Location: =USV=
Posts: 9271

PostPosted: Tue Jun 03, 2003 6:28 am    Post subject: Reply with quote

Why do you want to do this?
_________________
Only in America......do they have drive-up ATM machines with Braille lettering.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
My Personal Insanity
Registered User


Joined: 03 Mar 2002
Location: Salt Lake City GUILD: US-V
Posts: 2627

PostPosted: Tue Jun 03, 2003 8:22 pm    Post subject: Reply with quote

ROOFCUTTER wrote:
Why do you want to do this?


My Personal Insanity wrote:

'Cause using sv_cheats 1 in Natural Selection isn't the same
as having two clients connected, and I want to abuse the game,
err I mean experiment with the game. Also, if you write a console
script that has an infinite loop, there's no way that I've found to stop
the script except to terminate HL from the outside (with task manager
or any program that provides a kill process feature).


The scripts especially. HL scripting really lacks conditionals or real
loops, so automating repetitive things (like my attempt to have -1337
deaths on a LAN game) is not easy, and scripts also leave you unable
to control the client, and thus unable to manipulate the enviroment,
until the script terminates.

Finally, I want to see some things from the outside, not 1st or even 3rd
person...
_________________
[url=http://www.surfacezero.net/BottleFairy-Sensei-san(J).mp3][/url]
aaa, oshiete sensei-san...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Tue Jun 03, 2003 9:41 pm    Post subject: Reply with quote

My Personal Insanity wrote:
Finally, I want to see some things from the outside, not 1st or even 3rd
person...

You could do that. Just make a dedicated server and then use the HLTV and connect it to localhost and start a demo while you play. Or you could just use two computers....
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DJ George
Server Admin
Server Admin


Joined: 25 Mar 2003
Location: Where the music is loudest
Posts: 1677

PostPosted: Tue Jun 03, 2003 10:51 pm    Post subject: Reply with quote

He is trying to cheat thet is what he is really up to!
_________________
http://www.barbertonrhps.com - The offical Website for Barberton's West Theater Rocky Horror Picture Show in Ohio
http://russellsoundlab.com - Disk Jockeys
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> Tech Corner All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group