Server Help

ASSS Questions - compiling

Anonymous - Wed Oct 20, 2010 3:58 pm
Post subject: compiling
When I try to complile fg_ctf I get this error

resol@krslynx:~/subspace/server/asss-1.5.0/src$ make
gcc -std=gnu99 -pipe -I. -Iinclude -I/home/resol/subspace/server/asss-1.5.0/build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o /home/resol/subspace/server/asss-1.5.0/build/fg_ctf.o fg_ctf/fg_ctf.c
fg_ctf/fg_ctf.c: In function 'rewardpoints':
fg_ctf/fg_ctf.c:669: error: too few arguments to function 'stats->SendUpdates'
make: *** [/home/resol/subspace/server/asss-1.5.0/build/fg_ctf.o] Error 1
resol@krslynx:~/subspace/server/asss-1.5.0/src$

This module was also pre-compiled but using that didn't work either.

I also have another problem with the elim module. It installs fine, but wont attach to an arena, I get this code when I try ?attmod in game.

E <pymod> error in 'mm_attach'
Attaching module elim failed.

I got a different python module to load fine. Going to try more..
Dr Brain - Wed Oct 20, 2010 5:43 pm
Post subject:
Was fg_ctf designed for a recent version of ASSS? If not, you may have to tweak it to get it to compile. Same applies to elim.

Perhaps someone more familiar with those modules can provide some more details.
Anonymous - Wed Oct 20, 2010 6:15 pm
Post subject:
Yeah, I think its coded for 1.4.4

fg_ctf v1.9 [Smong Jun 15 2007]

Not really sure where to start. And as for the
Samapico - Wed Oct 20, 2010 6:57 pm
Post subject:
From what I can see, in 1.5.0, the function is:
local void SendUpdates(Player *exclude)

So, at the line 669, replace
Code: Show/Hide
if (stats)
      stats->SendUpdates();

with
Code: Show/Hide
if (stats)
      stats->SendUpdates(NULL);



As for the elim module, make sure you have loaded all the modules on which it depends
Anonymous - Wed Oct 20, 2010 7:36 pm
Post subject:
resol@krslynx:~/subspace/server/asss-1.5.0/src$ make
gcc -std=gnu99 -pipe -I. -Iinclude -I/home/resol/subspace/server/asss-1.5.0/build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o /home/resol/subspace/server/asss-1.5.0/build/fg_ctf.o fg_ctf/fg_ctf.c
fg_ctf/fg_ctf.c: In function 'rewardpoints':
fg_ctf/fg_ctf.c:669: error: too few arguments to function 'stats->SendUpdates'
make: *** [/home/resol/subspace/server/asss-1.5.0/build/fg_ctf.o] Error 1
resol@krslynx:~/subspace/server/asss-1.5.0/src$
Dr Brain - Wed Oct 20, 2010 10:23 pm
Post subject:
That error is identical to the first one you posted. Are you sure you made the change that Samapico suggested? Make sure you edited the correct copy of the file.
Anonymous - Thu Oct 21, 2010 4:08 am
Post subject:
lol! forgot to upload fg_ctf.c to bin
Anonymous - Thu Oct 21, 2010 3:13 pm
Post subject:
Everything works fine, but one thing.

The 'utctfhud' that comes with the module doesn't display.
Samapico - Thu Oct 21, 2010 3:25 pm
Post subject:
Did you add the lvz file to the map's settings (arena.conf) ?

Either in [Misc] LevelFiles, like subgame, or (more appropriately) [General] .... something, forgot... Just check the default arena.conf, it's in there
Anonymous - Fri Oct 22, 2010 4:49 am
Post subject:
Yes I did that.

On a better note, I was wondering if there was maybe someone way to add a scoreboard for the ctf game, just to keep track of captures and jackpot display.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group