Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Confused. >< (flag help)

 
Post new topic   Reply to topic Printable version
 View previous topic  Elvl Post :: Post Attatch toggling  View next topic  
Author Message
h04x
Newbie


Age:51
Gender:Gender:Male
Joined: Jan 13 2005
Posts: 6
Location: Not far from the alcohol
Offline

PostPosted: Thu Jan 13, 2005 4:51 pm    Post subject: Confused. >< (flag help) Reply to topic Reply with quote

I downloaded the 1.3.5 release (windows), unzipped, set my settings, got an error, figured out that I forgot to disable the python modules, disabled the python modules, and got up and running. I jump in my test zone to check everything out..

My flag is missing..

I checked, rechecked, etc, but I can't figure out why my flag decided to take a vacation without submitting the proper paperwork. I have the new flagcore module loading, $FLAGGAME_BASIC is set in flags.conf, flags.conf is #included in my arena.conf, points_flag is attached to the arena...

What am I missing? Is python now requred to have flags at all?

Thx for any help in advance.
_________________
.:h04x:.
Developer/Sysop
Gemini South


------------------------
salty nuts - borAX
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Jan 13, 2005 4:54 pm    Post subject: Reply to topic Reply with quote

Yes. Python is not optional.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
-Smong-
Guest


Offline

PostPosted: Thu Jan 13, 2005 7:57 pm    Post subject: Reply to topic Reply with quote

You need to attach fg_wz (which is a python module).

I think the only downside to python is you keep having to ?rmmod/?insmod when developing, with C modules you could just use install and restart the server after it crashed.
Back to top
h04x
Newbie


Age:51
Gender:Gender:Male
Joined: Jan 13 2005
Posts: 6
Location: Not far from the alcohol
Offline

PostPosted: Fri Jan 14, 2005 8:37 pm    Post subject: Aight... Still no flags. Reply to topic Reply with quote

Ok...
So I download the full Python 2.4 dev release with source, and install it. I go back to my modules.conf and set the pymod:pymod and <py>wz_fg modules to load up. I fire up 1.3.5 and get an error - Cant import cPickle, but it still enters main loop. I jump in my test zone again, and lo and behold...

No flag.

What do I need to do to remove the salty cucumber error and any ideas on why my flags are still on vacation? I'm a total python n00b (never even used it before, although I do have quite a bit of C, C++, and Java knowledge), but I still managed to open the wz_fg.py module in Idle and look around to see if there was any configuration information I needed to set, but from what I could see it appears to be reading config info from the .conf files.

<shrug> ..
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Jan 15, 2005 1:18 am    Post subject: Reply to topic Reply with quote

Two possibly-helpful hints:

One: 2.4 isn't really supported. The supplied python is built with 2.3.4. It probably can't load the 2.4 cPickle that you downloaded. Try removing 2.4 and installing 2.3.4.

Two: "Attaching" means listing a module in file arenas/blah/arena.conf, section [Modules], setting AttachModules. Before you can do this, the module also has to be loaded (usually via modules.conf). I'm aware this is kind of awkward and annoying. I welcome suggestions for how the selection of which modules get attached to which arenas can be improved.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
h04x
Newbie


Age:51
Gender:Gender:Male
Joined: Jan 13 2005
Posts: 6
Location: Not far from the alcohol
Offline

PostPosted: Sat Jan 15, 2005 2:39 am    Post subject: Yay. Reply to topic Reply with quote

Aight..
Downloaded 2.3.4, installed. Attached wz_fg in arena.conf using "wz_fg\"

Code: Show/Hide
I <cmod> loading C module 'pymod' from 'pymod'
I <pymod> loading python module 'fg_wz'


No more salty cucumber errors and my flag is no longer AWOL. One last problem tho (btw - thanx for all the help so far guys) I grabbed the flag, and got this error from the console.

Code: Show/Hide
E <pymod> python error unpacking results of function FlagTouch in interface I_FLAGGAME


I jumped out of the arena to look at the console and had this:

Code: Show/Hide
E <pymod> python error calling function Cleanup in interface I_FLAGGAME
Traceback (most recent call last):
  File:"C:\....\fg_wz.py", line 343, in cleanup
     spawn(sets.neutowned, sets.neutcenter, neut_flag)
  File:"C:\....\fg_wz.py", line 321, in spawn
     func(a, fid, x, y, r, myfreq)
  File:"C:\....\fg_wz.py", line 132, in neut_flag
     a.fg_wz.neuts.append(i)
AttributeError: 'asss.Arena' object has no attribute 'fg_wz'
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Sat Jan 15, 2005 2:49 am    Post subject: Reply to topic Reply with quote


heheh, I always liked that image sa_tongue.gif

shame it's meaningless
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
h04x
Newbie


Age:51
Gender:Gender:Male
Joined: Jan 13 2005
Posts: 6
Location: Not far from the alcohol
Offline

PostPosted: Sat Jan 15, 2005 2:52 am    Post subject: Reply to topic Reply with quote

Yeah, I know. But funny none the less..
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Jan 15, 2005 5:25 am    Post subject: Reply to topic Reply with quote

The unpacking error is annoying but harmless. The other is a simple typo: replace "fg_wz.neuts" with "fg_wz_neuts".

Both of these, plus a bunch more flag-related bugs, are fixed in my working copy and cvs, and will be in the next release.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 49 page(s) served in previous 5 minutes.

phpBB Created this page in 0.449890 seconds : 33 queries executed (93.3%): GZIP compression disabled