Server topic

User-to-user help and troubleshooting.
Post Reply
Grimmwolf_GB
Posts: 3711
Joined: Wed Jul 02, 2003 7:00 am
Location: Germany
Contact:

Post by Grimmwolf_GB »

Is there a guide to installing it as a service and which ports are needed for it? I am utterly confused as how to use it. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
Zapper
Posts: 1306
Joined: Sat Jan 29, 2005 8:00 am
Location: Denmark

Post by Zapper »

The current Server install release is pretty simple to install and it works without a problem.
But it only work with the current release of alleg.

Online
U can access the server in Online mode thru the normal logon via ASGS.
The Server must have a special server port open depending on which DirectX version the gamecode is made on.
http://support.microsoft.com/kb/240429
If there problem connecting with the online server that u just started U may not have full access thru ur router or network connection. Check port setup first, try and Google on the Internet for tools and solution on how to Diag ur network. There are many pitfalls when u need to check if your connection don't work.. Keep calm and have patience.
The network setup is not an Alleg problem.

LAN
Running a LAN server(privat game) does not require the Client to connect thru the ASGS but can be accessed by launching the Alleg.exe directly form where its residing(in the Allegiance folder).


The server installation worked for me without any new port's needed to be opened or forwarded.
I can run a complete diag on my router to see which ports are used be the service, if u like?.

And the current Readme/manual that is in the server package is out of date and technical knowledge is bad.
Ill write a new one and send it to the FAZ dev so they can include it in the server install package in the next release.
There are still some questions regarding gamefile(.igc) setup for online servers(default server, not LAN).
I have no knowledge if there is any parameters that can be set on the service, or where they are set.

DEV/POOK: any knowledge that u have would be appreciated.

thx
Zap
Last edited by Zapper on Wed Aug 09, 2006 5:35 pm, edited 1 time in total.
Life suck's and then u play Alleg.
-.. ..- -.- . -. ..- -.- . .----. . -- .. ... - .... . --. .-. . .- - . ... -
Image
jgbaxter
Posts: 2181
Joined: Mon Apr 25, 2005 7:00 am

Post by jgbaxter »

I had a pretty detailed post on the oldforums (can't we get them hosted on someones old 8086 or something?).

Anyway...

After installing the server, from the command prompt navigate to your alleg server directory, type allsrv -service to run as a service.

To edit the servers values run regedit, navigate to; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.0\Server

Edit > New > DWORD Value

Right click value and rename to ASGS_RANKS_ON

Right click value and modify Value Data to 1

-=-

If you want server to autoupdate, right click CfgFile and Modify to http://autoupdate.alleg.net/allegiance.cfg

by default servers do NOT autoupdate, and are pointed here; http://autoupdate.alleg.net/AllegianceServer.cfg

-=-

To add a core;

Edit > New > String Value

Right click and rename to Core# (where # is the next core in sequence you've set up, 1,2,3 etc.)

Right click and modify to change the actual core file to be used, do not use periods, do not add igc, for example... ("RTc006a").

Edit > New > String Value

Right click and rename to Game# (where # is the next game in sequence you've set up, 1,2,3 etc.)

Right click and modify to give the displayed name for the core in the lobby, try and use the same naming conventions for current cores, also try and include the version info. The version is important as people might update at different times.

Make sure core1 is matching game1, as core1 is loading the core file and game1 tells everyone what the game file is.
Last edited by jgbaxter on Wed Aug 09, 2006 8:03 pm, edited 1 time in total.
n.b. I may not see a forum post replied to me or a pm sent to me for weeks and weeks...
Grimmwolf_GB
Posts: 3711
Joined: Wed Jul 02, 2003 7:00 am
Location: Germany
Contact:

Post by Grimmwolf_GB »

Well, this is pretty weird...

I edited the Registry as you said, I went to command line to start as a service:

First attempt:
D:\Games\Allegiance\Server>allsrv -Service
AllSrv service installed.
Registry Update Successful.

Then I figure (no allsrv in the taskmanager): launch the exe:

D:\Games\Allegiance\Server>allsrv
Trying to run allsrv as an NT Service...
Type "allsrv -RegServer" to re-install as EXE.

Hmm, that is new, Ok, I type in the new suggestion:

D:\Games\Allegiance\Server>Allsrv -RegServer
AllSrv removed (as an NT Service).
Registry Update Successful.

I now try to get it running:

D:\Games\Allegiance\Server>allsrv
Use AllSrvUI.exe to run the Allegiance Server.

WTF? The UI is broken and does not work.
What exactly do I have to do to get it running?
Dogbones
Posts: 2721
Joined: Mon Nov 24, 2003 8:00 am
Location: Virginia

Post by Dogbones »

I think Pook's server bundle took care of all of this for you, but I personally have not used it (as things were already set up and working on my home system).

Did you register AGC.dll? If not that is a MUST
> regsvr32 AGC.dll

'AllSrv -Service' sets things up to run as a service. To actually start the service, manage it like any other windows service via the 'Services' GUI in Control Panel-> Admin Tools-> Services

'AllSrv -RegServer' sets things up as a console application

The above two are mutually exclusive, it either runs one way or the other.

When run as a service AllSrv looks to the registry keys to find what games and cores it should run (as per jgbater's post). When running as a service, I've also always run the lobby (as a service as well, 'AllLobby -service')

When running it as a console application you need to start the server with 'AllSrvUI.exe'. By default it only runs one core (zone_core if I recall correctly). AGM is supposed to let you change cores but I've not actually done that /blush.gif" style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" />
Image
DOG PROPERTY LAWS:
2. If it's in my mouth, it's mine.
[unless it tastes bad, then it is yours.]
Zapper
Posts: 1306
Joined: Sat Jan 29, 2005 8:00 am
Location: Denmark

Post by Zapper »

@Grimm
Dont unreg the service. If unreg then the UI wont work.

The AllsrvUI.exe is contacting the service.... No service, no action.

Register the service again and run the uninstall.
Reinstall and use the AllsrvUI.exe to handle the service.

U can run the service by starting it in the Component services.
In the component services u can se that the service is set to Automatic, that means that the service will start when u fire up the macine nextime etc.
When it start it run's as a Internet game(Defaultmode), u can ONLY contact it thru the lobby, start ur game as normal and u can see in the lobby. If u have the correct ports open in ur network u can access the server!
Otherwise it will Fail with the default Message " bla bla"
If u wish to run it as a LAN server(Privat game) U need to start the AllsrvUI.exe, Destroy game and chose the "Privat game" option, Create game, and ur set.
U can get on the Privat game without starting alleg from ASGS.

If u have any more problem's contact me in the IRC germanborg channel.

Zap
Last edited by Zapper on Thu Aug 10, 2006 3:15 pm, edited 1 time in total.
Life suck's and then u play Alleg.
-.. ..- -.- . -. ..- -.- . .----. . -- .. ... - .... . --. .-. . .- - . ... -
Image
jgbaxter
Posts: 2181
Joined: Mon Apr 25, 2005 7:00 am

Post by jgbaxter »

As can be seen from the lobby server list, there are quite a few servers running that people don't even know are still running. There's no icon in the task tray or fun ways to know you're running it... once you set up the service it's always on, unless you manually stop it. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
n.b. I may not see a forum post replied to me or a pm sent to me for weeks and weeks...
Post Reply