Server Help

ASSS Questions - flags won't appear and ?go klinko brings me to public.lvl

tcsoccerman - Mon Jan 15, 2007 3:58 pm
Post subject: flags won't appear and ?go klinko brings me to public.lvl
I have my flags set to 20:
Code: Show/Hide
[Flag]

; client-side stuff
FlaggerOnRadar=1
FlaggerKillMultiplier=2
FlaggerGunUpgrade=0
FlaggerBombUpgrade=0
FlaggerFireCostPercent=100
FlaggerDamagePercent=100
FlaggerBombFireDelay=0
FlaggerSpeedAdjustment=0
FlaggerThrustAdjustment=0
CarryFlags=1
FlagDropDelay=25000
FlagDropResetReward=0
EnterGameFlaggingDelay=0
FlagBlankDelay=200
NoDataFlagDropDelay=500

; new server settings

GameType = $FLAGGAME_BASIC
FlagCount = 20

FlagReward=15000
SplitPoints=0

ResetDelay=1440000
FriendlyTransfer=0

SpawnX = 512
SpawnY = 512
SpawnRadius = 100

DropRadius = 2
NeutRadius = 10

DropOwned = 1
NeutOwned = 0

but i don't think it even loads it off modules, so i tryed updating my arena.conf to have #include fg_wz or such, but i'm just getting this off another post and i think someone here can help me.


Next problem is when i type ?go klinko (i have a subarena called klinko.lvl, which is in my arena, scf file) it will go to public, basically standing still, same goes for dodgeball. Is it that i need the klinko.cfg file as well, and dodgeball.cfg? do i need to add more information on another .conf file? plz help once again

Also, can someone tell me where i'm supposed to enter my edit (such as points awarded or such) for the following code???

Code: Show/Hide
#define GOALMODE_MAP(F) \
   F(GOAL_ALL)  \
   F(GOAL_LEFTRIGHT)  \
   F(GOAL_TOPBOTTOM)  \
   F(GOAL_CORNERS_3_1)  \
   F(GOAL_CORNERS_1_3)  \
   F(GOAL_SIDES_3_1)  \
   F(GOAL_SIDES_1_3)

DEFINE_ENUM(GOALMODE_MAP)
DEFINE_FROM_STRING(goalmode_val, GOALMODE_MAP)

#define MAXFREQ  CFG_SOCCER_MAXFREQ
#define MAXGOALS CFG_SOCCER_MAXGOALS


typedef struct GoalAreas
{
   int upperleft_x;        // coord of first tile in upper-left
   int upperleft_y;        // corner
   int width;              // guess
   int height;             // .. for now just a rectangular approximation =P
   int goalfreq;           // owner freq of goal
} GoalAreas;

struct ArenaScores
{
   int mode;                       // stores type of soccer game, 0-6 by default
   int stealpts;                   // 0 = absolute scoring, else = start value for each team
   int cpts, reward, winby;
   int score[MAXFREQ];             // score each freq has
   GoalAreas goals[MAXGOALS];      // array of goal-defined areas for >2 goal arenas
};


/* prototypes */
local void MyGoal(Arena *, Player *, int, int, int);
local void MyAA(Arena *, int);
#if 0
local int  IdGoalScored(int, int, int);
#endif
local int  RewardPoints(Arena *, int);
local void CheckGameOver(Arena *, int);
local void ScoreMsg(Arena *, Player *);
local void Csetscore(const char *, const char *,Player *, const Target *);
local void Cscore(const char *, const char *, Player *, const Target *);
local void Cresetgame(const char *, const char *, Player *, const Target *);
local helptext_t setscore_help, score_help, resetgame_help;


tcsoccerman, aka darth vadar. Halo and hs rocks!!!
Smong - Mon Jan 15, 2007 4:29 pm
Post subject:
To get flags to appear go into modules.conf, make sure "pymod:pymod" and "<py> fg_wz" are there, and uncommented. Then go into arena.conf and make sure "fg_wz" is in the AttachModules setting (a space separated list of module names).

For the arenas, create new folders in the arenas directory, each with its own arena.conf:
Code: Show/Hide
base
+arenas
|+(public)
||+arena.conf
|+klinko
||+arena.conf
||+klinko.lvl

tcsoccerman - Mon Jan 15, 2007 5:14 pm
Post subject: reply
can you get a little more detailed on that please?? i created new folders for each arena and added arena.conf in all folders for specific arena and put map of arnea in folder to but i'm guessin i did something wrong since it still doesn't work. also flags don't work either

this is what i have for my arena.conf

Code: Show/Hide
[ Misc ]
SeeEnergy = $SEE_TEAM
SpecSeeEnergy = $SEE_ALL


[ Modules ]
; this key holds the names of the modules that will take effect in this
; arena. typical things to put here are modules for scoring, special
; game types, flag guards, etc.
AttachModules = \
   fm_normal \
   points_kill \
   points_flag \
   points_goal \
   buy
   flagcore \
   koth \
   flags \
   fg_wz \

; separate out settings for flags and balls into separate files
#include flags.conf

#include balls.conf


I'm starting to think i shouldn't have that random buy in there(wanted buy module and it wasn't there). is that loaded serperately? plz respond ty
tcsoccerman - Mon Jan 15, 2007 5:50 pm
Post subject: fixed
Yeh, somehow i fixed it. i did't really change anything except..well i dunno. maybe specific arena .conf files a little bit but not much, not this stuff. ty for help anyways. i also got flags back up. prob. from messing around with flag prizing or something idunno. ty anyways
Smong - Tue Jan 16, 2007 2:22 pm
Post subject:
2 posts up, the problem with the buy module is you forgot to end the line with a \ (backslash). As a result all the modules after buy aren't getting attached (including that flag module).

Backslashes are just used to make settings span multiple lines, makes it more readable. Note it isn't necessary to end the very last line with a backslash.
tcsoccerman - Tue Jan 16, 2007 3:20 pm
Post subject: ty
Thank you, i just took it out but i'll add that back in with the slash since you told me about it icon_smile.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group