Author |
Message |
resol guest Guest
Offline
|
Posted: 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..
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
|
resol guest Guest
Offline
|
Posted: 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
asss-fg_ctf-1.9.zip - 58.27 KB
File downloaded or viewed 47 time(s)
|
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: 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
if (stats)
stats->SendUpdates(); |
with
if (stats)
stats->SendUpdates(NULL); |
As for the elim module, make sure you have loaded all the modules on which it depends _________________ (Insert a bunch of dead links here)
|
|
Back to top |
|
|
resol guest Guest
Offline
|
Posted: 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$
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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.
|
|
Back to top |
|
|
resol guest Guest
Offline
|
Posted: Thu Oct 21, 2010 4:08 am Post subject: |
|
|
|
|
lol! forgot to upload fg_ctf.c to bin
|
|
Back to top |
|
|
resol guest Guest
Offline
|
Posted: 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.
|
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: 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
|
|
Back to top |
|
|
resol guest Guest
Offline
|
Posted: 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.
|
|
Back to top |
|
|
|