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
python and balls

 
Post new topic   Reply to topic Printable version
 View previous topic  any known issues with ASSS on an NT ma... Post :: Post Yes, you can "warp" players ...  View next topic  
Author Message
Guest



Offline

PostPosted: Tue May 23, 2006 7:56 am    Post subject: python and balls Reply to topic Reply with quote

is it true that at the moment python modules cant tell at which direction and speed a ball was fired? why arent they just in the callback? i hope thats false and someone will explain how to get the info :/
Back to top
Bak
?ls -s
0 in


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

PostPosted: Tue May 23, 2006 1:48 pm    Post subject: Reply to topic Reply with quote

add the callback you want
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: Tue May 23, 2006 3:32 pm    Post subject: Reply to topic Reply with quote

And make sure you submit the patch to Grel, or you'll be up a creek if anything changes in future versions.
_________________
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
Guest



Offline

PostPosted: Wed May 24, 2006 12:02 pm    Post subject: Reply to topic Reply with quote

so.. in other words there is no way to access that data (BallData) with python?

and what comes to me editing the callback, im afraid being barely able to read C is not sufficient for that.. unless the only change needed is
Code: Show/Hide
DO_CBS(CB_BALLFIRE, arena, BallFireFunc, (arena, p, bid));
->
Code: Show/Hide
DO_CBS(CB_BALLFIRE, arena, BallFireFunc, (arena, p, bid, bd->x, bd->y, bd->xspeed, bd->yspeed));
in balls.c and even so i really have no idea how to build the server on my own
Back to top
Bak
?ls -s
0 in


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

PostPosted: Wed May 24, 2006 12:09 pm    Post subject: Reply to topic Reply with quote

you'll probably want to make it a new callback, so it doesn't interfere with other modules that use that callback already (or be prepared to recompile everything). You only need to compile the balls.c file for a change like that. You also need to change the CB_BALLFIRE or whatever #defined constant you use in balls.h as well as the BallFireFunc definition
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu May 25, 2006 9:49 am    Post subject: Reply to topic Reply with quote

You'll also need to recompile pymod.c as well as balls.c. When creating the new callback don't forget to write matching markup for the pymod scripts to find (something like pycb:).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
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: 27 page(s) served in previous 5 minutes.

phpBB Created this page in 0.444416 seconds : 31 queries executed (93.4%): GZIP compression disabled