Tremulous Forum

Mods => Modding Center => Topic started by: Radioactiveman on July 09, 2010, 07:51:18 pm

Title: [Help] AMP-server setup
Post by: Radioactiveman on July 09, 2010, 07:51:18 pm
Hi, I want to setup an AMP-server on ArchLinux. Any help is appreciated.
I already had a working KorX-server but I want a AMP-server without it now.

I downloaded the source of LAKITU svn repository and patched the directory 5.3 with the amp.patch.
There was no error. After that I compiled 'SERVER' and 'GAME_QVM'. Everything compiled fine.

The server works but I can't connect.  >:(
The official client closes to the desktop and tremfusion to the main menu.
Error in the console of Tremfusion:
Code: [Select]
ERROR: CL_PARSEGAMESTATE: BAD COMMAND BYTEAnother some time ago was:
Code: [Select]
ERROR: CL_PARSEPACKETENTITIES: END OF MESSAGEBut I can't reproduce this one at the moment.

What can I do, what could be wrong? Thanks in advance.  ;)
Title: Re: [Help] AMP-server setup
Post by: David on July 09, 2010, 08:36:27 pm
AFAIK Lakitu's svn doesn't come with a working server.  Use the old one you were using.
Title: Re: [Help] AMP-server setup
Post by: Radioactiveman on July 10, 2010, 01:02:24 pm
I think 5.3 should work because AMP is based on it -> see here (http://tremulous.net/forum/index.php?topic=11768.0).
Do you mean KoRx with 'Use the old one'?
Title: Re: [Help] AMP-server setup
Post by: David on July 10, 2010, 01:33:16 pm
The whole point of having the server and the qvm seperate is that the server doesn't need to change for gameplay changes.  Any post-tjw server should work.
Title: Re: [Help] AMP-server setup
Post by: SlackerLinux on July 10, 2010, 02:25:47 pm
if your having trouble with latiku7 qvm 5.3 maybe a later version of latiku7 it might work better

heres a link to a patch that i did for my qvm it works as far as i can tell and it should work with later versions of latiku7 and has been somewhat cleaned up in terms of whitespace and a few bugfixes that were not in the original patch but were suggested on the blackout forums
AMP for SlackersQVM 1.1(based on latest latiku SVN so should apply with little to no issues for latest latiku release) (http://slackers-qvm.googlecode.com/svn/branches/patches/02-AMP-0.1-Slackersqvm-1.1.patch)

EDIT: looking at it there will be a few files that will need to be manually added because of extra features in my qvm like nobuild and changes to the listed qvm name etc

the tremded shouldn't matter i have used both tremfusion and fsm-trem tremdeds with testing(by testing i mean play a map 2-3 times and declare that it works :))
Title: Re: [Help] AMP-server setup
Post by: Radioactiveman on July 10, 2010, 03:15:39 pm
Patching 5.5 reports errors and compiling doesn't work too. Rezyn wrote me a new patch which worked without an error and lakitu trunk.
But it was the same problem, I could start the server but I couldn't connect.

How can I compile the tjw-server? I just found precompiled binaries and qvm's.

I also found out that the official tremded binary does not work for me, also after a completely reinstall.
Tremfusionded and MG tremded + Lakitu7's 5.5 qvm do.

Anyway, I have a working AMP-server, what I have done:  :)

Download Lakitu's 5.3 version, patch and compile it.
To bugfix the spawn bug, change "#define GENTITYNUM_BITS 12" to "10".
Use the MG Tremded (http://projects.mercenariesguild.net/projects/mgtremded/files) + the selfcompiled game.qvm.

Conclusion: the selfcompiled tremded binary caused the 'error'.  :-\
Title: Re: [Help] AMP-server setup
Post by: SlackerLinux on July 10, 2010, 11:42:39 pm
Patching 5.5 reports errors and compiling doesn't work too. Rezyn wrote me a new patch which worked without an error and lakitu trunk.
But it was the same problem, I could start the server but I couldn't connect.

How can I compile the tjw-server? I just found precompiled binaries and qvm's.

I also found out that the official tremded binary does not work for me, also after a completely reinstall.
Tremfusionded and MG tremded + Lakitu7's 5.5 qvm do.

Anyway, I have a working AMP-server, what I have done:  :)

Download Lakitu's 5.3 version, patch and compile it.
To bugfix the spawn bug, change "#define GENTITYNUM_BITS 12" to "10".
Use the MG Tremded (http://projects.mercenariesguild.net/projects/mgtremded/files) + the selfcompiled game.qvm.

Conclusion: the selfcompiled tremded binary caused the 'error'.  :-\

good to here you got it working yeh that gentity bug should be fixed in my patch(meaning it never changes from its default value)

by the official tremded binary do you mean the 1.1.0 binary? yeh that will never work the glue connecting newer game.qvm's and tremded was changed ages ago so they are nolonger compatible
Title: Re: [Help] AMP-server setup
Post by: Radioactiveman on July 11, 2010, 02:44:20 pm
Yes, I mean the 1.1.0 binary. But one more question:
I'm using tremfusionded with my qvm file now, set adminrights to 5 but after a restart my guid is different -> no more admin.
Why is this and what can I do?
Title: Re: [Help] AMP-server setup
Post by: David on July 11, 2010, 02:51:42 pm
guid is based on server IP and port.  Don't change them.
Title: Re: [Help] AMP-server setup
Post by: Radioactiveman on July 14, 2010, 04:04:58 pm
The server is hosted on the same computer which I use for playing (just for testing).
So is it not possible to use DynDNS and give adminrights to players because the IP is changing?
Is there another 'working' way to avoid this?
Title: Re: [Help] AMP-server setup
Post by: SlackerLinux on July 15, 2010, 01:30:47 am
if its on the same pc connect using the loopback address 127.0.0.1
Title: Re: [Help] AMP-server setup
Post by: Radioactiveman on July 15, 2010, 03:33:59 pm
That's clear, but if a friend wants to play too and he should be an admin ...