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
Module in a specific arena.

 
Post new topic   Reply to topic Printable version
 View previous topic  Green spawning Post :: Post Server SSCX  View next topic  
Author Message
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sun Apr 03, 2005 4:31 am    Post subject: Module in a specific arena. Reply to topic Reply with quote

I'm wishing to have a specific module be available only in the public arenas (Public 0). I tried a few things but had no luck. I would go code-diving, but I'm lazy and figured that it would be easier to just ask the experts. A short tutorial would be excellent, I am grateful for whatever information can be provided.
_________________
Current Terror Alert Level
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Chambahs
Guest


Offline

PostPosted: Sun Apr 03, 2005 5:52 am    Post subject: Reply to topic Reply with quote

um....attach the module in arenas/(public) only instead of default?
Back to top
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sun Apr 03, 2005 9:32 am    Post subject: Reply to topic Reply with quote

arena.conf:

Code: Show/Hide
[ 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

_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Chambahs
Guest


Offline

PostPosted: Sun Apr 03, 2005 9:35 am    Post subject: Reply to topic Reply with quote

I think explody meant something else....that question was easy enough for ME to answer...which is not likely with alot of questions tongue.gif
Back to top
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Sun Apr 03, 2005 11:26 am    Post subject: Reply to topic Reply with quote

Also, ?attmod to attach the modules to the current arena while in-game.
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sun Apr 03, 2005 4:44 pm    Post subject: Reply to topic Reply with quote

I place the module in the module.conf file and it seems to be global for all arenas, no matter what I place in the arena folders. I tried the attmod command and it seems to fail. The module is a custom one, so I specified both the dllname and the entry point (seperated by a colon).
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Chambahs
Guest


Offline

PostPosted: Sun Apr 03, 2005 4:58 pm    Post subject: Reply to topic Reply with quote

50, mind if i take a look?

Procedure: ?cd bin, ?putfile name:name, ?cd arenas/(public), ?getfile arena.conf, edit the attach modules section, put "name \" on the list, ?putfile arena.conf, ?cd conf, ?getfile modules.conf, add it to the list, ?putfile modules.conf, and if you need to, add the commands to whichever file in the groupdef.dir directory, then hit ?shutdown -r (just to make sure), when it comes back up, do a nice ?lsmod -a, if the name is there then ?go (some other arena) and ?lsmod -a, if its there, then you have a problem, if not, then good job

make sure not to attach the module in default's arena.conf, and also...sorry for mistaking you for explody tongue.gif
Back to top
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sun Apr 03, 2005 5:51 pm    Post subject: Reply to topic Reply with quote

Thanks chambahs, those help a lot. But I should have specified that the module is all ?commands (no callbacks). So even though it's only attached to one arena, the commands are able to be accessed globally throughout the zone. Is there a way to limit commands to specific arenas?

Unassociated to the above, I also got a "M <security> {scf} [50% Packetloss] map checksum mismatch" with a continuum client, not sure if that is rare or not, I wasn't doing anything out of the ordinary, (was alt-tabbed and then switched arenas and then returned to the game).
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Apr 03, 2005 6:12 pm    Post subject: Reply to topic Reply with quote

code the module such that it ignores commands when the player is in an arena such that the module is not attached.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sun Apr 03, 2005 7:11 pm    Post subject: Reply to topic Reply with quote

When you specify which arenas to enable the commands in, don't choose ALLARENAS. Move it out of the MM_LOAD and MM_UNLOAD and into MM_ATTACH and MM_DETACH and use the passed arena.
_________________
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
Chambahs
Guest


Offline

PostPosted: Sun Apr 03, 2005 7:18 pm    Post subject: Reply to topic Reply with quote

aww 50 is so nice, instead of saying, that didnt help at all because its not what was needed he said it nicely, lol...

anyway ....err was just about to post what bak suggested, thats what i would do....and uhh 50, you were just sitting there doing nothing and got a map checksum error?? also, was it just 1 or was it multiple errors?
Back to top
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Sun Apr 03, 2005 7:38 pm    Post subject: Reply to topic Reply with quote

He's most likely getting more than 1 error since checksums keep messaging until the problem is resolved.
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sun Apr 03, 2005 8:42 pm    Post subject: Reply to topic Reply with quote

Thanks brain, I figured that, but having the cmdman allocate a pointer for each arena that the module is attached to seemed a little wasteful.
Might be better if there was a ALLATTACHED define (like the ALLARENAS) that could be passed to AddCommand() so that it would search through ModuleData->attached for any command that it got. Just an idea. It would require a new module manager function that passed ModuleData* pointers, seeing how this hasn't been done already, there is probably a reason for it.

Yah, about the map checksum. I wasn't doing anything. It had nothing to do with the module I had loaded, it runs perfect and I'll probably post it here tommarow or something. I tried recreating it but didn't have any luck, so it was probably nothing.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sun Apr 03, 2005 9:01 pm    Post subject: Reply to topic Reply with quote

Dr Brain's answer is correct: if you're writing a module, you have to decide whether you want it to automatically take effect everywhere, or require attaching. If you want to require attaching, you have to do your registration work in the MM_ATTACH/DETACH action, and don't use ALLARENAS. Any wasteful overhead is my problem, not yours. And really, it's insignificant.

The map checksum mismatch is a know bug, it's my fault, and it'll be fixed in the next release.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Chambahs
Guest


Offline

PostPosted: Mon Apr 04, 2005 9:32 am    Post subject: Reply to topic Reply with quote

which will be soon hopefully? tongue.gif
Back to top
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Apr 04, 2005 7:02 pm    Post subject: Reply to topic Reply with quote

I said put them in arena.conf, but nobody listened sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Apr 04, 2005 10:31 pm    Post subject: Reply to topic Reply with quote

It wasn't the solution to the problem, silly.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Tue Apr 05, 2005 7:30 pm    Post subject: Reply to topic Reply with quote

Chamby wrote:
?getfile arena.conf, edit the attach modules section, put "name \" on the list, ?putfile arena.conf

Fiddycent Ploss wrote:
Thanks chambahs


Oh well, whatever, it was a start
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Chambahs
Guest


Offline

PostPosted: Wed Apr 06, 2005 1:26 pm    Post subject: Reply to topic Reply with quote

D1, your just mad 50 loves me more! pfft (pushes away)
Back to top
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: 32 page(s) served in previous 5 minutes.

phpBB Created this page in 0.450015 seconds : 43 queries executed (91.3%): GZIP compression disabled