AAO25.com

America's Army => General Chat => Topic started by: c644ever on Thursday, December 29, 2011, 16:05:03 PM

Title: Dedicated server for aa25
Post by: c644ever on Thursday, December 29, 2011, 16:05:03 PM
Hello,
my problem is
I need some advice to get a dedicated server running - not on my local PC, but on a root-server, which has no GUI
 
I..
.downloaded armyops250-linux.run and installed it in a users home
.installed the necessary 32 bit libs
.started server.bin

but it didn't show up in assist server browser
or is this ao-250-linux.run a dead end?

I don't really like to install X onto the root-server and start assist via X-remotely (that ssh -X thing:-)

Thanks in advance for any ideas!
Title: Re: Dedicated server for aa25
Post by: [Nifty]-mister on Thursday, December 29, 2011, 16:10:50 PM
JhonnyM is the guy that can help you out here...! 8)
Title: Re: Dedicated server for aa25
Post by: c644ever on Thursday, December 29, 2011, 16:24:45 PM
ty - Let's pray he'll read this thread!
Title: Re: Dedicated server for aa25
Post by: Jonnym on Thursday, December 29, 2011, 16:53:00 PM
What i have done is started an X session on a VNC display, Then VNC to the server and load the Assist GUI.
instructions on how to do this here... http://www.ndchost.com/wiki/vps/x-server-vnc

Screenshot of one of my servers, LDXE desktop on VNC display...
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2Faa25assist.sourceforge.net%2Fimg%2Fsrvimg.PNG&hash=ddb1b7efe958fa0621f238e8a39fa97b)
Title: Re: Dedicated server for aa25
Post by: c644ever on Thursday, December 29, 2011, 17:49:55 PM
Thank you for the fast answer.
So there's no way around installing X on the server?
I'll have to bite that poisoned apple then  ;)
with ssh -X ... you don't need vnc and a desktop environment (if you use linux) The Rootserver will open a X-session-window on the Linux-Desktop - works flawless. (not really assist thinks server is a mac and crashes then)
Title: Re: Dedicated server for aa25
Post by: Jonnym on Friday, December 30, 2011, 02:08:53 AM
Until someone uses the sourcecode from assist to make a command line version of the server part of the software... This is the only way.
Title: Re: Dedicated server for aa25
Post by: c644ever on Friday, December 30, 2011, 10:11:32 AM
CLI would be really fine

X-ssh-forwarding doesn't work for me - it opens a assist25 window wich asks me if I have a PPC CPU - the server definitely isn't a mac and then assist crashes with a nil pointer:-)

I worked on a pure CLI install with the original armyops-linux.run as base
you have to put
-> all *.so and *.ini from assist/Server to foo/System (from a linux assist install :-)
-> copy pb files to foo/System/pb

the console output of that server looks like the output in the assist server console window, but it doesn't appear on the server list there :-( 

maybe i forgot sth to put into foo/System

a shellscript witch is downloading and installing all needed parts for assist server would be a solution.

Title: Re: Dedicated server for aa25
Post by: Jonnym on Friday, December 30, 2011, 11:32:12 AM
The gamespy element of the server is handled within Assist, without this you cannot run the server without assist. Have you tried using the VNC method?
Title: Re: Dedicated server for aa25
Post by: c644ever on Friday, December 30, 2011, 12:50:51 PM
hmm - lucky I - there's a 30 day eval of realbasic ... ;)

As far as I understand the source - (My Basic skills stuck with CBM basic V2.0)
The Methods:
Instaa, updateme, getip, pbupdate, RunSrv, StopSrv,ReadQR in Assist
and
ReadQR in AssistQR
should be striped off the gui stuff into a commandline-friendly main() and packed into one .bin file, right?
did I miss dependencies?
can it be done with real basic?

Major - where's that piece of source?
Title: Re: Dedicated server for aa25
Post by: Jonnym on Friday, December 30, 2011, 15:08:44 PM
Not that easy, would many days of hard work to do what your asking. If your willing to giveme  the login details for your server i will set it up for you on VNC.
Title: Re: Dedicated server for aa25
Post by: Spanky on Friday, December 30, 2011, 15:10:05 PM
If your willing to giveme  the login details for your server i will set it up for you on VNC.

Talk about program support :P
Title: Re: Dedicated server for aa25
Post by: Jonnym on Friday, December 30, 2011, 15:21:38 PM
Talk about program support :P

It's just a one off, If we get to busy I will train a team of people to do this for me.
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Friday, December 30, 2011, 15:25:31 PM
It's just a one off, If we get to busy I will train a team of people to do this for me.

interested  ;D ;D
i would do all to keep AA2 alive
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 06:34:40 AM
I'm looking for help too, i used the Assist manager to start a server on a local home pc, ports are open and i actually got 1 player on my server but i wasn't able to join it except as an admin. Any tips?
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Saturday, December 31, 2011, 06:45:58 AM
you had open all ports?
maybe firewall block?

UDP ports explained:
1716 for the Game
1717 for the GameQuery
1718 for the Master Server Query
8777 for the Standard UT Query
27900 for GameSpy

TCP ports explained:
28910 for GameSpy
20025-45 for MBS Game Server
20046 for the Auth server
20047 for MBS
20048 for DCDS
14200 for LAN

think not all are needed now no more (20046 for the Auth server i think you dont need no more)
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 07:58:57 AM
Yep i have them open, except for 28910 (Gamespy) and 20048 (DCDS). Master Browser, DCDS and authentication don't work no more.
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Saturday, December 31, 2011, 08:13:33 AM
how is the name from your server?
firewall checked?
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 08:18:57 AM
how is the name from your server?
firewall checked?

Yep i checked port forwarding and firewall forwarding too. It's Koden Test server.
Title: Re: Dedicated server for aa25
Post by: Jonnym on Saturday, December 31, 2011, 08:48:21 AM
Sound like your router does not support NAT Loopback.
It is sending data from outside to your server, but data coming from inside your network is not getting looped back into the server.
google your router with NAT Loopback to see if there is a setting you can turn on.
Try using AA menu, opening console and then type open 127.0.0.1:1716 as a temp measure.
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 09:08:10 AM
Sound like your router does not support NAT Loopback.
It is sending data from outside to your server, but data coming from inside your network is not getting looped back into the server.
google your router with NAT Loopback to see if there is a setting you can turn on.
Try using AA menu, opening console and then type open 127.0.0.1:1716 as a temp measure.

i already tried accessing while referring to it as localhost with that specific command but it didn't worked. Well, at least someone plays on mine server ^^ i'm pretty happy about that because the server will just work for some testing purpose, and anyway i only have 320kbits upload bandwidth (which often happens to be even lower...thanks Telecom Italia for bringing us such marvellous speeds...)
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Saturday, December 31, 2011, 09:30:43 AM
hmm i canb join and play on server......only admin was bad to me.... he had give me pistol and all others sniper :P
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 09:33:18 AM
hmm i canb join and play on server......only admin was bad to me.... he had give me pistol and all others sniper :P

Lolz only after a few matches because you were taking down Tax a bit too fast  ;D rebalancing
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Saturday, December 31, 2011, 09:37:48 AM
lol sorry :D

with so less uploadspeed. iwould say dont put more than 8 max 10 people

ps like that map
Title: Re: Dedicated server for aa25
Post by: Jonnym on Saturday, December 31, 2011, 09:41:35 AM
I will add a join local server button in the release.
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, December 31, 2011, 09:46:53 AM
lol sorry :D

with so less uploadspeed. i would say dont put more than 8 max 10 people

ps like that map

It's a test server, i'm not going to run it more than 2 or maybe 3 hours each day. I noticed many players like those custom maps tho (and that's a good thing - makes for a different gameplay). About the upload limit, i will be setting it up to 10 players max.

P.s. ty jonny :)
Title: Re: Dedicated server for aa25
Post by: [K][K].Zipferurtyp on Saturday, December 31, 2011, 09:49:47 AM
hope server is on when i'm wake up......
on my server i have only normal maps running,thats why i like to join servers with maap maps like yours
Title: Re: Dedicated server for aa25
Post by: c644ever on Saturday, January 07, 2012, 14:25:50 PM
Souds a little crazy, but ...
... the windows build seems to work on a cli linux server with wine and X11 forwarding.

1. install xauth on your server (apt-get ...)
2. edit the /etc/ssh/sshd_config and enable x11 forwarding
3. reboot or restart the ssh server
4. install wine, links2, xterm
5. login to your with ssh -X -l sth x.x.x.x -p 12345 -> X is with shift!!!
6. try xterm if a window opens on your desktop with xterm in it, forwarding worx
7. Download assist windows and unzipit
8. wine 25Assist.exe

hooah
Title: Re: Dedicated server for aa25
Post by: Koden on Saturday, January 07, 2012, 16:41:47 PM
Souds a little crazy, but ...
... the windows build seems to work on a cli linux server with wine and X11 forwarding.

1. install xauth on your server (apt-get ...)
2. edit the /etc/ssh/sshd_config and enable x11 forwarding
3. reboot or restart the ssh server
4. install wine, links2, xterm
5. login to your with ssh -X -l sth x.x.x.x -p 12345 -> X is with shift!!!
6. try xterm if a window opens on your desktop with xterm in it, forwarding worx
7. Download assist windows and unzipit
8. wine 25Assist.exe

hooah

Checked for punkbuster compatibily and behavior? AA2 seems to work decently on wine but Punkbuster is reported to be a pain in the butt (http://appdb.winehq.org/objectManager.php?sClass=application&iId=908) due to "unknown Windows APIs", on client side. I don't know how it would on server side regarding windows API calls.
Title: Re: Dedicated server for aa25
Post by: Jonnym on Saturday, January 07, 2012, 17:36:22 PM
LOL, why, there is a native linux binary. VNC Display?
Title: Re: Dedicated server for aa25
Post by: c644ever on Sunday, January 08, 2012, 10:02:50 AM
LOL, why, there is a native linux binary.
The Linux binary "thinks" the server is a mac with X11 forwarding

Quote
VNC Display?

1. You need a Window Manager/Desktop Environment running on the server (resourceproblem if weak cpu or vServer)
2. VNC may be a security leak <- I only use it inside LANs

Punkbusterproblems with Wine are 99% clientside only - as far as I know.

update: seems to work - some players on there!
Title: Re: Dedicated server for aa25
Post by: Jonnym on Sunday, January 08, 2012, 10:39:11 AM
Whats the name of the server?