View Full Version : Dedicated.bat?
Quike
08-18-2011, 11:19 PM
Just saw the dedicated.bat file in my honfolder. Is there by any chance that we can do some :scou: and actually get one of our own server started up, or is it just a no go?
Oloko
08-19-2011, 03:16 AM
The file will let you start a dedicated server, but there is no way for you or anyone else to join it. From what I understand, if you want to connect to a server, it either need to be a practice server or your request to join a dedicated server needs to be authenticated by the master server.
So you would need to have your server registered on the official master server to be able to play on it.
That is only a guess, but one thing I know for sure is that you can't join a server you host.
Bad_McPants
08-22-2011, 10:28 PM
That is only a guess, but one thing I know for sure is that you can't join a server you host.
That's... not entirely true. There is a way for you to connect to the dedicated server when it's running on your computer, but I'm not sure anyone else will be able to connect to it.
Oloko
08-23-2011, 02:28 AM
Would you mind sharing with us how you did it?
Jonathan
08-23-2011, 06:06 AM
Would you mind sharing with us how you did it?
You can connect to your dedicated server using "connect <ip>" (so local server is "connect 127.0.0.1"). But you can only create a practice game on your dedicated servers and practice games only allow 1 player.
Bad_McPants
08-23-2011, 07:37 AM
You can connect to your dedicated server using "connect <ip>" (so local server is "connect 127.0.0.1"). But you can only create a practice game on your dedicated servers and practice games only allow 1 player.
Essentially this.
Open up dedicated.bat
Type "startserver" if the server doesn't automatically start loading entities
Type "startgame practice Gamename map:caldavar allheroes:true" or any similar practice game setup
Open an instance of HoN and open the console
Type connect 127.0.0.1
Game should load up with no players connected to it. Just take a slot and hit Start Game. You'll probably notice it's pretty laggy so that tells me you're connected to the dedicated server and not just the HoN client.
Jonathan
08-23-2011, 07:49 AM
Essentially this.
Open up dedicated.bat
Type "startserver" if the server doesn't automatically start loading entities
Type "startgame practice Gamename map:caldavar allheroes:true" or any similar practice game setup
Open an instance of HoN and open the console
Type connect 127.0.0.1
Game should load up with no players connected to it. Just take a slot and hit Start Game. You'll probably notice it's pretty laggy so that tells me you're connected to the dedicated server and not just the HoN client.
You'll only get lag if your CPU is not good enough to handle 2 HoNs open at once.
Or it could be that both are running on the same core.
Radiohead
08-23-2011, 10:21 AM
startgame local gamename map:caldavar allheroes:true
the "local"command started a dedicated server back in beta (discovered it last week while trying to create a practice game with my 0.1.30 client), but it said files were missing.
I'll try it when I get home. :engi:
Jonathan
08-23-2011, 11:34 AM
startgame local gamename map:caldavar allheroes:true
the "local"command started a dedicated server back in beta (discovered it last week while trying to create a practice game with my 0.1.30 client), but it said files were missing.
I'll try it when I get home. :engi:
They removed the "local" command.
Radiohead
08-23-2011, 11:41 AM
We could try connecting to a practice game in someone else's computer. Unfortunately I don't have 2 computers here atm, but if anybody wants to try it, send me a PM.
They removed the "local" command.
Then we'll have to find new parameters. Perhaps they're hidden somewhere
startgame :nigh: APEMNOOBSLOL map:caldavar allheroes:true
Quike
08-23-2011, 01:23 PM
So if we :scou: some we might end up starting a server for others to join?
:scou::scou::scou::scou:
Techies
08-23-2011, 01:57 PM
Upload the dedicated.bat file, I don't have it...
+I got an idea.
Jonathan
08-23-2011, 02:05 PM
Upload the dedicated.bat file, I don't have it...
+I got an idea.
Create a shortcut to hon.exe and add -dedicated at the end of the target("C:\Program Files (x86)\Heroes of Newerth\hon.exe" -dedicated)
Tafelpoot
08-23-2011, 02:45 PM
They removed the "local" command.
This. I think you have to compile the game again if you want a local option. I really don't think they have put a "secret" lan option in the game. We just need a LAN client, which they won't release very soonish afaik. :(
Radiohead
08-23-2011, 03:22 PM
So if we :scou: some we might end up starting a server for others to join?
:scou::scou::scou::scou:
We might even be able to play skaut warz!!! :scou: :scou: :scou:
This. I think you have to compile the game again if you want a local option. I really don't think they have put a "secret" lan option in the game. We just need a LAN client, which they won't release very soonish afaik. :(
They might have only removed the command, but not the option.
Bad_McPants
08-23-2011, 08:12 PM
You'll only get lag if your CPU is not good enough to handle 2 HoNs open at once.
Or it could be that both are running on the same core.
Hmm, I have a pretty beefy computer, so I'd be surprised if it couldn't run two instances at once. Perhaps it was the core issue.
We could try connecting to a practice game in someone else's computer. Unfortunately I don't have 2 computers here atm, but if anybody wants to try it, send me a PM.
It doesn't work, as far as I could tell. I haven't personally tested Hamachi but I have tested across my own LAN and that didn't work, so I doubt anything else would. There's some handshaking involved not only when a dedicated server connects to the master server, but also when a client connects to the dedicated server. The client appears to have to go through the master server for some verification process. It looks like it's setup to accept unverified connections from 127.0.0.1 (so you can play practice mode games), but anything else requires a signature from the master server.
Jonathan
08-24-2011, 05:49 AM
It doesn't work, as far as I could tell. I haven't personally tested Hamachi but I have tested across my own LAN and that didn't work, so I doubt anything else would. There's some handshaking involved not only when a dedicated server connects to the master server, but also when a client connects to the dedicated server. The client appears to have to go through the master server for some verification process. It looks like it's setup to accept unverified connections from 127.0.0.1 (so you can play practice mode games), but anything else requires a signature from the master server.
As far as I can tell it is the client doing the verification process. It checks if the IP is 127.0.0.1/localhost. (I tried connecting to myself using my LAN IP-192.168.2.254, on the server side it said connection accepted from 127.0.0.1/localhost, but the client said something about invalid connection request).
Radiohead
08-24-2011, 06:40 AM
That means we'd have to bypass that requirement in some way. Question is: how?
Bad_McPants
08-24-2011, 07:56 AM
As far as I can tell it is the client doing the verification process. It checks if the IP is 127.0.0.1/localhost. (I tried connecting to myself using my LAN IP-192.168.2.254, on the server side it said connection accepted from 127.0.0.1/localhost, but the client said something about invalid connection request).
The client might check to see if the server is registered on the master list, except for 127.0.0.1.
Quike
09-01-2011, 03:47 AM
Anyone still trying? Or is it a dead race?
With a lot of work and some serious patience I managed to host a game on a dedicated external server. Sadly I can't stay in game for more then a few minutes before it crashes.
tojooko
09-21-2011, 04:02 AM
How about connecting more than 1 client?
Are you using server manager?
I had never server crashes, so maybe it's something with your PC?
Anyway, you may be person who came the farthest in using dedicated.bat:)
You may join #honscience in IRC if you want to discuss about details.
Manu311
09-23-2011, 09:37 AM
Btw if you're using linux, it's pretty easy to make the ip 127.0.0.1 bound to any other adress you like, maybe that could help a bit :P.
The Problem I guess N is having: I think the dedicated server isn't written to deal with package loss or anything, but it still uses UDP - that means, if your connection isn't very good, you'll disconnect (10gbit lan could be enough, maybe even 1gbit, maybe neither).
Oloko
10-01-2011, 04:53 PM
Please refrain from talking about hacking the game, code injection, private server, private server creation and such on the forum.
I will lock this thread or start giving out infractions if I have to.
embrance
10-03-2011, 07:36 AM
Then why dont just delete the topic or lock it?