Hard Light Productions Forums

General FreeSpace => Multiplayer => Topic started by: BlackDove on January 04, 2007, 12:55:21 pm

Title: The New Parallax Online?
Post by: BlackDove on January 04, 2007, 12:55:21 pm
Hamachi (http://www.hamachi.cc/)

This program's name or link were tossed around before on HLP, but I never saw anyone connect it with Freespace's Multiplayer, which is in dire need of a go-between (read: lobby) since PXO died.

The program basically makes your computer think that it's on a LAN connection with everyone that's populating the same room.

I use it to play Company of Heroes with my friends, because we can't choose the "Internet" option in the game, for reasons that are so obvious you really don't know anything about internet and games if you can't see them.

Now, Hamachi seems to mask (or convert or whatever-the-hell) your IP, and provide a "safe trusted zone", but you can also turn off the "trusting" components of it, because I wouldn't trust any of you with a pencil, ever, and if you're smart, you're just like me. The real deal here is that it will group people and give them a chat function, but it will also illuminate them in a way that a LAN network does, which would hopefully make Freespace games visible to and for people who are populating the same channel.

So essentially, you run Hamachi, join a Freespace "Network" with people in it (A network that is officially sponsored here and isn't managed by some dick), then you launch Freespace, choose the "LAN" (or IPX or whatever) option in the Multiplayer Options and see what games are going on the LAN.

At any rate, that's how Company of Heroes works, and I assume any other game would work in the exact same manner, it's just that I can't test it, because I don't care.

However if you care, then this potentially solves all the issues of PXO missing outright. If it doesn't work directly as I described it, then maybe some tweaks can be made somewhere (I don't know, I'm not a technically disposed person), be it to Freespaces MP config files or the Hamachi itself and then it would work.

Food for thought if anything. Just thought I'd throw it out there.
Title: Re: The New Parallax Online?
Post by: karajorma on January 04, 2007, 01:22:08 pm
Using Hamachi doesn't allow you to track stats like FS2NetD does however.

Still it's an acceptable solution for retail.
Title: Re: The New Parallax Online?
Post by: BlackDove on January 04, 2007, 01:34:16 pm
Yeah I guess stats didn't really cross my mind when I wrote that, because I despise stats, since they don't mean anything, and are actually deceiving.

Good point though. Maybe there would be some way to work around it?
Title: Re: The New Parallax Online?
Post by: karajorma on January 04, 2007, 02:03:26 pm
Not really. If we found a way to allow something else to deal with stats it would make it pretty easy to cheat.

To be honest I think FS2NetD is the way to go. I've never tried using it and Hamachi at the same time. In theory if your PC can see a VPN connection to the IP address it wants to get to it should use that in preference.
Title: Re: The New Parallax Online?
Post by: Turey on January 04, 2007, 02:19:45 pm
The IRC code for Multi is still in the code, someone just needs to get it working.
Title: Re: The New Parallax Online?
Post by: taylor on January 04, 2007, 02:32:18 pm
Ok, this has been brought up numerous times in the past week, so I'm going to go ahead and drop a bomb on everyone...  The original PXO lobby will return with 3.6.10.

Yes, we have the original code (have it had for a while).  Yes, it's been ported to all three platforms and rewritten to work in the current engine.  Yes, it's retail compatible.  Yes, it's part of the new FS2NetD that was supposed to be in 3.6.9 but got pushed back to 3.6.10 due to lack of testing.

So, everyone can calm down and not worry so much about work-arounds.  The new code will start showing up in test builds (both stable and unstable ones) later this month. :)
Title: Re: The New Parallax Online?
Post by: BlackDove on January 04, 2007, 02:39:00 pm
Finally. The reason I posted this was because there was no news from you or the Descent guy, and it's not like it can't be understood that you'd put it as low-priority considering the other stuff that you have to do for SCP.

Anyway good job, and thanks for the update.
Title: Re: The New Parallax Online?
Post by: taylor on January 04, 2007, 03:23:07 pm
Well, I was keeping it a secret since there is more than just code involved.  It requires both extensive client and server side changes (it's not a standard IRC server for instance), and it was also a part of the new FS2NetD code which is vastly improved, but not tested nearly enough.  The server side changes are complicated since all new security measures are needed, and we have to run two FS2NetD servers at the same time in order to support the current FS2NetD version while testing the new one.  Running two, incompatible, FS2NetD sever daemons in parallel is difficult since it was never written to do that.  The old server has to be upgraded to handle the new networking restrictions and configuration options, as well as security changes.  The new server has to be modified from it's final state for testing so that it will properly use different configuration and logging locations.

The IRC server is based on a standard IRC server, but customized to handle the lobby.  The problem here was that the original code base was too old to work properly on newer versions of Linux.  Moving to a more current version of the IRC server code worked ok, but presented other problems.  The newer code had been through a code rewrite and reorganization, and that makes diff'ing the code to find changes pretty much impossible.  Another issue was that the :v: customized IRC server had upwards of two dozen extra patches on it, and then :v:'s on changes on top of that.  Figuring out what was what in the original code took weeks to do on it's own.  Getting the required changes into the new code base, which is different, and fixing the new code base with the required security measures, was a tremendous amount of work.

Also remeber that some of the mods have their own interface art.  With the lobby back they have to go and do all of the interface artwork for those screens too.  I was trying to give everyone enough time to get the art done before it was actually required to be there.  And I didn't want the community to be all over me waiting for it, or be all over the mod makers to hurry up with the artwork.

So, a lot went into getting this to happen, and it's still not running yet (publicly anyway). :)
Title: Re: The New Parallax Online?
Post by: Mongoose on January 05, 2007, 01:29:53 am
Even though I'm somewhat apprehensive about the answer, I'll ask anyway...will this new implementation of PXO be compatible with Descent 3, as well?  While we do have a community-made TCP/IP server tracker that works quite well, and while I don't even know if there's anyone out there anymore who will stumble across the game and be stymied by an apparent lack of multiplayer servers (unfortunately, D3 doesn't have the benefit of a SCP-esque project, even though both of the previous games do), it would be nice to have the old in-game interface back up and running again, for convenience's sake.

At any rate, this is great news.  I've never gotten around to playing either FS game in multiplayer, and having the lobby system back would mean that I most likely would be able to give it a shot. :)
Title: Re: The New Parallax Online?
Post by: BlackDove on January 05, 2007, 04:06:09 am
I was under the impression you were given PXO in its entirety (as bugged as it was) and didn't have to mangle it with FS2NetD. Although I'll admit I have no idea how any of this works past the obvious, I don't quite understand what FS2NetD is doing together with it there. When we got the code, we experimented with it first (that's before you got your hands on it) and the pretty much main problem we were having was recognizing the user and validating them to join the IRC channel which would be the "lobby". Was there no way to just eliminate the NetD and architecture the PXO code to be exactly the same as it was before?

Not to misunderstand me, I don't quite give a **** how it works as long as it works, but wasn't this extra work as opposed to just debugging the old PXO and spooling it up back again?
Title: Re: The New Parallax Online?
Post by: taylor on January 05, 2007, 07:33:46 am
Even though I'm somewhat apprehensive about the answer, I'll ask anyway...will this new implementation of PXO be compatible with Descent 3, as well?
It's the original PXO code, so yeah, it should still work with D3.  It has been modified to fit in with FSO, to work on all three operating systems, and the PXO hooks have been replaced with FS2NetD hooks.  Not much of that will matter for an existing game which already has working PXO lobby code in it though. :)

I was under the impression you were given PXO in its entirety (as bugged as it was) and didn't have to mangle it with FS2NetD. Although I'll admit I have no idea how any of this works past the obvious, I don't quite understand what FS2NetD is doing together with it there. When we got the code, we experimented with it first (that's before you got your hands on it) and the pretty much main problem we were having was recognizing the user and validating them to join the IRC channel which would be the "lobby". Was there no way to just eliminate the NetD and architecture the PXO code to be exactly the same as it was before?

Not to misunderstand me, I don't quite give a **** how it works as long as it works, but wasn't this extra work as opposed to just debugging the old PXO and spooling it up back again?
The problem with PXO wasn't so much the client side code but the server side code.  Remember that we have to support 3 different operating systems, which are various architectures: little-endian, big-endian, 32-bit & 64-bit.  All of the PXO network code has to be modified to deal with this on both the client and server sides.  But the problem is the server side, it has to be completely rewritten, pretty much from scratch.  Plus, all of the PXO code has to be modified to work with dynamic limits, any of our current/future networking and compatibility changes, and work with mods.

Is that a massive job?  Not really.  It's a big job for sure, but the main point is that it's very low on the priority scale.  We already have FS2NetD, so other than just bug-fixing that no one is really out anything to the point that all of the original PXO code needs to be completed anytime soon.  It would have been far more work to get all of the original PXO code working than it would have been to just get parts of it working with FS2NetD.

Now, the FS2NetD upgrade does do one very important thing, it centralizes the code so that it will be far easier to rip out later.  Obviously, in order to reintroduce PXO all of the FS2NetD stuff has to go, so I started that process by making FS2NetD rather simple to remove when I do make the major code push for PXO.  Having all of the lobby code intregrated already will also simplify things, since that part will have not only been integrated with the game already, but already be working cross-platform.  All I'll have to do is remove the FS2NetD hooks in that code and replace them with the original PXO hooks.  A very simple process.

So FS2NetD has a ton of fixes now, from connection issue fixes, to basic code fixes, to working on the Mac, to simply being friendlier.  Some of the changes are actually based on the original PXO code setup.  It's now better setup to keep everyone happy until the rest of the original PXO code can be rewritten and integrated back into the game. :)
Title: Re: The New Parallax Online?
Post by: BlackDove on January 05, 2007, 11:10:03 am
Yeah that makes sense. Thanks for taking the time to explain.
Title: Re: The New Parallax Online?
Post by: Malarthi on January 05, 2007, 02:02:45 pm
Pardon my noobish ways, but was PXO tied in at all with Squadwars? If so, any chance of that coming back? That would ROCK!  :nod:
Title: Re: The New Parallax Online?
Post by: BlackDove on January 05, 2007, 02:31:25 pm
PXO was the multiplayer platform, and Squad Wars were tied into PXO, not the other way around.

Regarding Squad Wars, FS was really sort of an MMO 0.5 of sorts.

The Squad War code did come with PXO, and taylor has it, but I doubt that'd be possible to either restore, or worth the hassle.
Title: Re: The New Parallax Online?
Post by: taylor on January 05, 2007, 04:47:45 pm
SquadWars will make a comeback, but I'm not exactly sure in what form.  It should at least be compatible with what it used to be in the retail releases.  It wouldn't be much of an issue to bring it back as is, I've been through all of the code and have a good plan-of-attack to get it all back up to speed.  But I don't really think that, "as it was", is quite good enough in this day and age.  At least some expansion will likely be warranted, given how much we know about that sort of thing now, and having different expectations of how it should work.

It won't be until after I get done with the rest of the PXO code that this actually becomes an issue though.  At that point I think that a few of us devs, and some members of the multi community, will get together and work out exactly what changes to make.  The new code might be based on the old stuff, or be completely new and merely compatible (or not) with the retail releases.
Title: Re: The New Parallax Online?
Post by: [DW]-Hunter on January 05, 2007, 04:59:40 pm
forget Squadwar, we already have a replacement for it, its called Teamwars. (which is also in freelancer aswell)

The new site for it will be up shortly, but the old teamwars site is no longer the official site.
Title: Re: The New Parallax Online?
Post by: BlackDove on January 05, 2007, 06:01:31 pm
Nobody gives a damn about teamwars.

Anyway taylor, good stuff. I know Killjoy got Squad Wars up and running on PHP, so it is surely serviceable, it's just the "how high on priority list".

It'd be nice if it was active, but as you said, PXO and all the proprietary nonsense regarding multiplayer itself should be done first before and if ever you choose to make SW operational again.
Title: Re: The New Parallax Online?
Post by: [DW]-Hunter on January 05, 2007, 06:37:39 pm
I dont get why you guys are bringing back something long dead when there already is a working replacement there. Its pointless....

www.teamwars.org (http://www.teamwars.org)
Title: Re: The New Parallax Online?
Post by: Malarthi on January 05, 2007, 07:01:22 pm
[Poinless plug for product]I dont get why you guys are bringing back something long dead when there already is a working replacement there. Its pointless....

www.teamwars.org (http://www.teamwars.org)[/plug]

Fixed that for you >.<
If the people want cake, let them eat cake >.>
Title: Re: The New Parallax Online?
Post by: taylor on January 05, 2007, 07:41:36 pm
I don't really have a care either way in the matter.  All I know is that SquadWars is integrated with the PXO code, so I have to deal with it one way or the other.  It will just be much easier and considerably faster to get it working again than it would be to rip it out and get the PXO code working without it.

If no one wants it after I'm done porting everything then we can rip it out, or just replace it, at that point.  But doing that before the PXO code is done will do little more than slow down the reintroduction of PXO.
Title: Re: The New Parallax Online?
Post by: BlackDove on January 06, 2007, 08:26:59 am
Lightspeed had some really ****y ideas for its upgrade. While I don't know if it would be possible, when the time comes, I can throw you the big thing and you can see if it's do-able. It would more or less make the multiplayer part an MMO of sorts, without actually changing that much, as far as I understood it.
Title: Re: The New Parallax Online?
Post by: karajorma on January 06, 2007, 09:40:17 am
I wouldn't mind taking a look at that myself.
Title: Re: The New Parallax Online?
Post by: Malarthi on January 06, 2007, 05:00:32 pm
[Poinless plug for product]I dont get why you guys are bringing back something long dead when there already is a working replacement there. Its pointless....

www.teamwars.org (http://www.teamwars.org)[/plug]

Fixed that for you >.<
If the people want cake, let them eat cake >.>

Sorry, I was 3/4 out of my mind at the time >.<
Appologies to DW, and as to an MMO... Well... It might work *shrugs*
Title: Re: The New Parallax Online?
Post by: BlackDove on January 06, 2007, 05:22:40 pm
In it being persistent and non-repetitive. That's what I meant by MMO-like. No fees and the bad **** usually associated with MMO's.

I've played A LOT of Squad Wars back in my day, and while they had awesome aspects to it, there were some really bad ones too.

When we got the code my ideas were more towards fixing the bad stuff that I saw could be fixed, however Lightspeed took it a notch farther and actually sort of came up with a system that would keep things always interesting. Unfortunately that never happened because Killjoy has a very hectic and very busy life, and when it was apparent it wasn't gonna happen, the code was passed on to Taylor and another guy from the Descent community (because they're on PXO infrastructure as well, and could benefit from the fix - they went down when we did) , who had the time to work with it.
Title: Re: The New Parallax Online?
Post by: Malarthi on January 06, 2007, 05:42:14 pm
Ah, sounds great to me. Heck, even if there WAS a fee... An MMO in the Freespace universe... I would pay to play for SURE!
Title: Re: The New Parallax Online?
Post by: xgmx on May 22, 2007, 03:22:25 pm
oh god lock this topic now please.

hamachi leaves your computer open to viruses and hackers
Title: Re: The New Parallax Online?
Post by: Shade on May 22, 2007, 03:48:44 pm
Why lock it? It's already 4 months old and quite dead. Well, it was until you bumped it out of the depths of oblivion, at least. And especially, given your stated reason, why lock it when 90% of the thread concerns the eventual return of PXO, invalidating any reason to use Hamachi in the first place?
Title: Re: The New Parallax Online?
Post by: asyikarea51 on May 23, 2007, 07:20:37 am
(I know, the thread is old.)

I've just gotten around to using it myself (with a friend I personally know, so he's where I'm at) and got far better ping times in a good number of games, FS2O included, compared to FS2NetD connections.

It's probably better to use FS2NetD when the players are scattered all over the globe, but I think Hamachi's a better option if the other party isn't far away. Not to mention my friend's behind a firewall he has no control over. :sigh: I am aware that Hamachi can be a bit screwy at times though.

I'm not really in favour of PXO tbh, but then again I'm not a multiplayer sort of guy. If only FS2NetD could remain... oh well. :doubt:

Just my thoughts on it, hope no one minds. :)
Title: Re: The New Parallax Online?
Post by: Wobble73 on May 23, 2007, 08:37:50 am
Hmmmmm. Takashi has a title "Worse than Cobra" If xgmx carries on this way he's gonna get the title "Worse than Takashi"  :doubt:  :rolleyes:
Title: Re: The New Parallax Online?
Post by: karajorma on May 23, 2007, 11:18:10 am
I'm not really in favour of PXO tbh, but then again I'm not a multiplayer sort of guy. If only FS2NetD could remain... oh well. :doubt:

If you don't play online why would you care one way or the other?  :confused:
Title: Re: The New Parallax Online?
Post by: Dysko on May 23, 2007, 11:43:15 am
Actually asyikarea51 plays multi, he was on my wing in a TvT. He is only a sporadic user (like me :nervous: )
Title: Re: The New Parallax Online?
Post by: asyikarea51 on May 23, 2007, 12:36:39 pm
Yeah, and I brought a friend along, the same guy who tests my mod out - he was the one who came across the missing weapons issue.

(That reminds me, sorry for never posting the error in Mantis. The old computer's gone and I've kinda forgotten the issue already. Still, sacrificing one respawn is bothersome, but then again my only test mission has the respawn count set at 99 so it should be okay FTTB.)

Also, another drawback of Hamachi is that I can't force FS2O to a certain port through the Launcher - I end up getting error messages saying my network adapters can't be detected.
Title: Re: The New Parallax Online?
Post by: Dysko on May 23, 2007, 01:33:13 pm
Also, another drawback of Hamachi is that I can't force FS2O to a certain port through the Launcher - I end up getting error messages saying my network adapters can't be detected.
That's strange... I used Hamachi some times for multi matches, and it worked fine.
Title: Re: The New Parallax Online?
Post by: asyikarea51 on May 24, 2007, 12:18:24 am
Not sure about that, but the moment I removed the numbers from the "Force local port" textbox, I got a connection.

When I had numbers there, the problem persisted regardless of the connection type set ingame, be it via IP or to FS2NetD.

Hmm, I should go try something when my friend's online again...
Title: Re: The New Parallax Online?
Post by: karajorma on May 24, 2007, 02:44:02 am
Also, another drawback of Hamachi is that I can't force FS2O to a certain port through the Launcher - I end up getting error messages saying my network adapters can't be detected.

You shouldn't be forcing a local port without a very good reason anyway. :)
Title: Re: The New Parallax Online?
Post by: jr2 on May 24, 2007, 03:11:09 am
Hmm... I just d'led Allegiance (from Microsoft, they released it open source) and it looks quite interesting.  What are you people's thoughts on a mod of sorts for FS that would be sort of like Allegiance?  (Take a look, it's only 70 MB to d'l... just don't mix different user accounts on one compy, it's coded not to like that.)

The reason I bring this up is because I think such a mod or whatever might give FS a popularity boost.. Allegiance looks like it's quite a success.  (IDK, I haven't finished all the training missions yet, but I think I will by tomorrow... also, if you take a look at Allegiance, I think they ripped a lot of the interface styling from FS, as well as some of key mapping!)
Title: Re: The New Parallax Online?
Post by: asyikarea51 on May 24, 2007, 09:34:58 am
I looked at that game, but a first glance at the FAQ suggests something very demanding. I know, I know, one always has to dig deeper to find that trove, but there's always times when first impressions and ease of use and understanding matters.

How should I put it, umm... on the topic of an MMO-ish FS? Sure, some hardcore players would gladly raise their hands, but at the same time don't neglect the casual ones who would play the game once or twice a month because they lead more... "interesting" lives. (It'd suck to fly around for fun with a couple of friends you personally know, taking on NPCs and stuff in a mid-high ping environment, only to get shot down for no good reason whatsoever... :shaking:)

Something easy to jump into, basically what FS has been. My friend still can't fly very well, but at least he can fly and take simple evasive actions.

(sorry OFT: what's IDK? :doubt:)

edit @ karajorma: Point taken. :)
Title: Re: The New Parallax Online?
Post by: Wobble73 on May 24, 2007, 09:51:35 am


(sorry OFT: what's IDK? :doubt:)



IDK = I Don't Know
Title: Re: The New Parallax Online?
Post by: jr2 on May 24, 2007, 01:12:35 pm
Hmph.  There isn't a requirement to put a certain amount of playing hours in or anything, is there?  I mean, anybody that's into flight / space combat simulators aught to be able to adapt well enough to be an asset, even if they only play a few times a month.  Why would someone have to play more often than he wanted to?
Title: Re: The New Parallax Online?
Post by: Bob-san on May 24, 2007, 01:26:21 pm
I would like to test out my "skills" against other people. I have a fear I'll be shot down a hundred times before I can get a single kill... oh well I'll do multiplayer sometime within the next 2 years or so. You got time, guys!
Title: Re: The New Parallax Online?
Post by: Mobius on May 25, 2007, 07:11:00 pm
Then we should have separate sections. The number of people that are playing FS2 for the first time is escalating and let them fight with experienced players is unfair...
Title: Re: The New Parallax Online?
Post by: jr2 on May 25, 2007, 07:37:02 pm
Just go easy on them.  :p