The Gang Garrison 2 Forum

Gang Garrison Development => Feature Requests => Topic started by: SlimeCounty on August 22, 2011, 11:42:26 pm

Title: web embedded dedicated server?
Post by: SlimeCounty on August 22, 2011, 11:42:26 pm
Hi, I run a TF2 server and forum, and would love to host a dedicated server for Gang Garrison 2, only problem is that my PC isn't on all the time...Is there a way either now, or in the near future to host a dedicated server through my site? I would LOVE to have it embedded into my forums (smf) and would actually pay for that feature. Thanks for reading. :x28:
Title: Re: web embedded dedicated server?
Post by: Psychopath on August 23, 2011, 12:00:27 am
Nothing short of a rewrite in another language will make that workable. It's a limitation brought by the software used to create the game. After 3 years in development, it's a hefty task to move everything over to a new language while also keeping all of the contributors educated on how things are changing; we're hobbyists, we can't dedicate too much of our time to this when our lives demand us to use that time for school and/or work.

Sorry for the inconvenience.
Title: Re: web embedded dedicated server?
Post by: Footpöp on August 23, 2011, 12:09:23 am
That argument has been in use since forever

Didn't a member of the forums do an experimental port to another language about two years ago?

obviously it takes a long time, but if someone started a few lines of code today it could be mostly ported over by the time 2.4 or something hits  :drool:


Distance till completion shouldn't be a deterring factor from something ever happening, none of the great monuments scattered across the world today would have happened if everyone said "takes too long"

the journey of a thousand miles begins with a single step

//psycho babble

but really porting this to C or something could solve a lot of problems that pester GG2, like a lack of good servers  :drool:
Title: Re: web embedded dedicated server?
Post by: NAGN on August 23, 2011, 12:43:03 am
Development isn't as simple as writing a few bits of magic code every day like a book, you need experience, and alot of time to get that experience
Title: Re: web embedded dedicated server?
Post by: Hanz Ketchup on August 23, 2011, 12:45:01 am
Should I bring up my "programming language ambassadors" idea again
Title: Re: web embedded dedicated server?
Post by: NAGN on August 23, 2011, 12:46:00 am
what
Title: Re: web embedded dedicated server?
Post by: SlimeCounty on August 23, 2011, 01:27:38 am
...Sorry for the inconvenience.

Oh, it's no inconvenience whatsoever, thanks for quick reply. My players will just have to live with only being able to play when I'm at the PC...maybe I could talk a few of my admins to run dedicated servers of their own when I'm not around...thanks a lot guys.
Title: Re: web embedded dedicated server?
Post by: Hanz Ketchup on August 23, 2011, 01:32:22 am
what
It's an idea I came up with a while ago, it's supposed to be an initiative for porting GG2 to a different language.
Title: Re: web embedded dedicated server?
Post by: NAGN on August 23, 2011, 01:37:51 am
I'm not following
Title: Re: web embedded dedicated server?
Post by: misty on August 23, 2011, 01:44:23 am
Hey, eh, wasn't this guy called Flaw work on 2.4 based Python dedicated server?

Python can be run in web environment, right?
Pardon my ignorance.
Title: Re: web embedded dedicated server?
Post by: NAGN on August 23, 2011, 01:45:54 am
I'm pretty sure python can
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 23, 2011, 12:03:51 pm
Flaw has "temporarily paused development" on that python server, in other words has pretty much stopped.

There have been several different tries to port it, none have actually flourished as of yet.


If people are seriously interested for a Python re-write I might be able to help, and I already have some very skinny beginnings, as well as a few concepts.

The other alternatives would probably be C++ and Java. I could maybe help for C++, but I'd need to look at it seriously again.
Title: Re: web embedded dedicated server?
Post by: Hanz Ketchup on August 23, 2011, 04:15:14 pm
I'm not following
It's to decide on which language is best for our uses and get a head start on porting
Title: Re: web embedded dedicated server?
Post by: NAGN on August 23, 2011, 04:16:52 pm
The best language would be the one of which the person is most familiar with that has the time and ability to develop

the common language is C++, but that's not to say that Java, python, and other common lanuages could work as well

what matters is moreso getting someone to actually do what they want than a standard language
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 24, 2011, 01:19:46 am
The best language would be the one of which the person is most familiar with that has the time and ability to develop

the common language is C++, but that's not to say that Java, python, and other common lanuages could work as well

what matters is moreso getting someone to actually do what they want than a standard language
Well, the choice of library is also important.

Also, from previous experiences, if you start a project alone, everyone suddenly thinks you're good enough and that they don't have to do anything, and you'll probably be left programming it alone.

We need to form teams from the start.
Title: Re: web embedded dedicated server?
Post by: NAGN on August 24, 2011, 01:20:41 am
Hm well I believe it was planned to use Box2D as the central library as a start
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 24, 2011, 03:26:32 am
Hm well I believe it was planned to use Box2D as the central library as a start

Quote from: Box2d manual
Since Box2D is written in C++, you are expected to be experienced in C++ programming. Box2D should not be your first C++ programming project. You should be comfortable with compiling, linking, and debugging.

So we agree on C++?

Or has someone tried to port it?
Title: Re: web embedded dedicated server?
Post by: Haxton Sale on August 24, 2011, 05:47:23 am
I know it's not what op wanted, but anyone remember /v/idya's mapvoting? That was pretty cool.
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 24, 2011, 06:08:18 am
I know it's not what op wanted, but anyone remember /v/idya's mapvoting? That was pretty cool.
What the hell is that?
Title: Re: web embedded dedicated server?
Post by: trog on August 24, 2011, 06:48:51 am
there was a website which you used to vote for the next map, and a little transition map inbetween

at least I think so, wasn't actually here when it was up
Title: Re: web embedded dedicated server?
Post by: [Royal Gay Penguin Nachos Ibarra Gordita Agave] LC on August 24, 2011, 09:24:02 am
Yes, you were taken to a map called vote_lobby and had 30 seconds to vote for the next map. Vindi had something like that going for a short time as well I believe.
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 24, 2011, 11:03:21 am
Yes, you were taken to a map called vote_lobby and had 30 seconds to vote for the next map. Vindi had something like that going for a short time as well I believe.
And uhh... what does this have to do with the discussion?
Title: Re: web embedded dedicated server?
Post by: trog on August 24, 2011, 12:33:36 pm
I know it's not what op wanted, but anyone remember /v/idya's mapvoting? That was pretty cool.
What the hell is that?
^^^that's what
Title: Re: web embedded dedicated server?
Post by: Blackbird88 on August 24, 2011, 01:49:02 pm
Link for anyone who missed out
http://web.archive.org/web/20090413034526/http://gg2.scose.net/ (http://web.archive.org/web/20090413034526/http://gg2.scose.net/)
Title: Re: web embedded dedicated server?
Post by: Vindicator on August 24, 2011, 02:15:55 pm
I'm taking a Python independent studies course at school, so I basically have 55 minutes every day I could use to build a dedicated server (and present it as my final project).

Although, I'm not looking into doing this on my own.
Title: Re: web embedded dedicated server?
Post by: Kirtan on August 24, 2011, 04:36:30 pm
I am also taking Python/C# at school and could use this for my project. It would be great if more people agreed doing this in Python though.
Title: Re: web embedded dedicated server?
Post by: Saniblues on August 24, 2011, 05:13:41 pm
You don't necessarily have to do a direct port of the game, you can just start out with the basics (CTF mode and movement, basically every 1.0 build) and work your way up from there.
Title: Re: web embedded dedicated server?
Post by: Kirtan on August 24, 2011, 05:43:30 pm
direct port = easier IMO :/
Title: Re: web embedded dedicated server?
Post by: Dusty on August 24, 2011, 06:46:30 pm
Yes, well, it's a long time to work on something with little effort to show for it until it's done.
Title: Re: web embedded dedicated server?
Post by: Orpheon on August 25, 2011, 03:24:03 am
I can help for Python.

Actually, I even already started. Though I probably won't be able to compete with 55 min every day of vindi, I could help.

Also, it's much easier to start from the beginning, ignore the networking, make ctf and all the classes work (wihout the HUDs first), and then just add stuff.

The collision system could get a little complicated, people on the #pygame channel recommended me to use rects for collision (also with the wallmask), and not mask.

Speaking of which, what library are we using? Pygame, or something else?
Title: Re: web embedded dedicated server?
Post by: Saniblues on August 25, 2011, 04:50:01 pm
direct port = easier IMO :/
If the project tanks after you get the basics done, you at least have the basics. That's enough for someone else to pick up where you left off or just simply please all the people that are used to 1.0 builds (Read: Me)