Hard Light Productions Forums

Hosted Projects - Non-FreeSpace => StarShatter Open Source Project => Topic started by: Hufer on August 23, 2012, 02:54:25 am

Title: Multiplayer? Of any kind?
Post by: Hufer on August 23, 2012, 02:54:25 am
Hey all, I'm a little new to Hard Light but seeing as Starshattermods is down for good I thought I'd pop the big question for my group of friends and I.

Is multiplayer in this game possible? Before you say the servers are down and have been down for a while; does LAN play still work? There are many programs (such as Hamachi and Tunngle) that can create virtual LAN servers to get players in the same game.

I've tried using the -lan command while starting the game but so far have had no luck getting my buddies to see my game. Can anyone tell me if this is impossible, needs more work, or already exists and I'm just not doing it the right way. If LAN play still works I'm almost sure there should be a way to get Tunngle or Hamachi to work and set up games for anyone connected to them. I love this game and would love to play it with friends for once.

Thanks in advance.
Title: Re: Multiplayer? Of any kind?
Post by: Thaeris on August 23, 2012, 08:27:37 am
I'm not sure how much of the old downloads remained for older versions of the software. BUT, the current builds of Starshatter do not support multiplayer due to... was it linking to a Matrix Games server? There is something on that order for why multi doesn't work. On the upper hand, current builds do not need a serial input to run. But you're right, this is a real bug, and it's probably the most important one to fix in the near future.

If you can find an older build (before the current Open release), that should be able to do multi.
Title: Re: Multiplayer? Of any kind?
Post by: The E on August 23, 2012, 09:26:41 am
Current builds rely on some external server to do matchmaking. Since we don't have the source for that server (at least I don't think we do), multi has been disabled for now. I shall take a look at pure LAN games when I'm back home.
Title: Re: Multiplayer? Of any kind?
Post by: Colonol Dekker on August 23, 2012, 10:23:17 am
Multi's down?

Aww boooh :C


Title: Re: Multiplayer? Of any kind?
Post by: Hufer on August 23, 2012, 11:03:26 am
So if I find a copy of the game before the open source release I could do LAN games using the -lan command?

And it says in the manual that using -lan kicks off the Internet Broker.

Regardless, out of curiosity what version would I need/how would I tell I have the right version that still has multiplayer working.

Thanks for the help, by the way.
Title: Re: Multiplayer? Of any kind?
Post by: Robsoie on October 10, 2012, 06:08:12 pm
If i go to Multiplayer i see a button to create a Local Server , and then from the screen that follow i can set the "Type" to LAN.

After that, i just tried the "Hawk Match" mission that put me to fight in deathmatch with some AI (that would be replaced by players i guess if there were other people joining)

While i don't have a true LAN, in the past i have used programs like Hamachi and more recently Tunngle (as Hamachi has limited the amount of people for their free version that can play together)  to play privately with some friends.

So is multiplayer -completely- disabled in the actual open source release, or as i imaging LAN game has nothing to do with contacting some matrixgame server, is it still possible to play with Hamachi/Tunngle/whateverVPN with Starshatter "LAN" setting ?
Title: Re: Multiplayer? Of any kind?
Post by: Treelor on October 11, 2012, 07:18:14 pm
I can confirm multiplayer is 100% inoperative as of the open source release.
Title: Re: Multiplayer? Of any kind?
Post by: Robsoie on October 11, 2012, 10:05:00 pm
Thank you for the reply, hopefully the LAN part will be activated again sometime in the future so people will be able to use a VPN to battle around .
Title: Re: Multiplayer? Of any kind?
Post by: Vas709 on December 03, 2012, 07:52:58 am
You can try using pLan server, and see if it's working. And then please let me know. http://explainationhowto.blogspot.com/
Title: Re: Multiplayer? Of any kind?
Post by: Parias on January 09, 2013, 01:02:55 pm
Going to throw down my own hope that multiplayer gets fixed up at some point in the future as well.

Actually, what I've always really wanted out of this game (ever since the first early builds of Starshatter came out, long long ago) was a full-blown dynamic co-op campaign; one where I could hook up with a buddy with one of us taking control of the carrier group and managing high-level orders and logistics, while the other led the fighter wings and handled actual implementation. This would've been absolutely bad-ass, but I don't think the original game's multiplayer really supported this.

It'd probably be a pain and a half to implement, but I'd love to see this occur some day.
Title: Re: Multiplayer? Of any kind?
Post by: doctorfrog on May 27, 2014, 02:36:15 am
Sorry for the thread necromancy, but it's possible that a limited, perhaps buggy form of multi is possible. See this thread: http://starshattermods.net/forum/viewthread.php?thread_id=148

Basically, running the game with the -server command switch appears to allow multi to work.

I have not tested it myself, but there it is if there are at least two people who want to try it out on their own. Read the thread I linked to thoroughly, though.
Title: Re: Multiplayer? Of any kind?
Post by: Cyberkada on June 12, 2014, 11:07:58 pm
a SQL database for player/ ships stats instead of the current .def files? 
Title: Re: Multiplayer? Of any kind?
Post by: Echelon9 on June 17, 2014, 01:48:57 am
Thinking about alternative formats, a simple human readable format with plenty of validation tools (e.g. JSON) could be useful.

We're considering JSON support for the FS2Open player formats at the moment with success.
Title: Re: Multiplayer? Of any kind?
Post by: Colonol Dekker on June 17, 2014, 04:16:01 am
Press X to JSON?

So what multi functionality is in place at the moment?
Title: Re: Multiplayer? Of any kind?
Post by: Cyberkada on June 17, 2014, 08:14:46 pm
Photon Hosting? there is a C++ plugin for that.
Title: Re: Multiplayer? Of any kind?
Post by: hostas on February 28, 2015, 06:11:10 pm

I have managed to play a pure LAN game with Starshatter 5.1.66 (under win7 x64), though there was some obstacles to solve, so i will share some guidance on it. To put it in short there were 2 things to do:

- add the line " fake.dom" to the host file of the clients ("C:\Windows\System32\drivers\etc\host", google it up how to find, open and edit...), where that IP belongs to the LAN server
- create a new pilot for the multi

At firs i couldn't connect to the server with direct IP ( - status offline). After inspections with a packet capture program, it turned out to be that the game tries to resolve a LOCAL! IP address by querying the IPS DNS server, which is just plane wrong and it's a full stop from here. I have downloaded the source code and found the culprit in the NetHost.cpp file. It must be the "gethostbyaddr" function (I have downloaded and compiled the demo code from msdn https://msdn.microsoft.com/en-us/library/windows/desktop/ms738521(v=vs.85).aspx and tested it for the same behaviour). This might be corrected in that cpp file by removing the if-else structure around that function and leaving only the gethostbyname function from the else branch (resolves booth IP and host name), however such a modification and the recomplie is beyond my knowledge and without the proper binary it won't be a help for others. So here is the different approach: add a line to the host file pointing the IP to some fake dummy domain name. That way Windows will simply resolve it from it's internal in-memory DNS cache, so that problematic DNS server response is now completly bypassed. And it worked, server online, ping 65ms, greate! Lets join to that host...

Bamm, next problem: lobby is completly empty, can't move on with the game. Thats why I had to create a new pilot as well. I have just copied the game directory from one PC to the other with exact same pilot settings so they probably conflicted during some authorisation, resulting with an empty, stucked lobby screen.

Too bad, but the carrier crash is comfirmed here as well Sad

I wonder if i could compile and debug such a huge project and try to solve some bugs. I don't do programing for a living, but I'm familiar with Visual Studio and have some basic C++ knowledge as well and maybe some freetime and passion too, but its hard to sort out all the initial linker/compiler errors, multiple projects, etc..