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
Iballs::GetBallData

 
Post new topic   Reply to topic Printable version
 View previous topic  Py support for reldb Post :: Post MySQL Socket  View next topic  
Author Message
Live-Wire
Newbie


Joined: Oct 22 2005
Posts: 4
Offline

PostPosted: Mon Oct 24, 2005 1:59 am    Post subject: Iballs::GetBallData Reply to topic Reply with quote

Is asss.iballs.GetBallData supported in python?

With the line:
Code: Show/Hide
arena_balls = balls.GetBallData(arena)


I get the error:
AttributeError: 'asss.Iballs' object has no attribute 'GetBallData'

The reason I ask is because I'm trying to work with the BallData struct .. wondering why the ball CB_*s accept a bid param instead of a reference to the ball object.

Whats the best way to go about loading the BallData struct of a bid?
Back to top
View users profile Send private message Add User to Ignore List
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Mon Oct 24, 2005 1:36 pm    Post subject: Reply to topic Reply with quote

There's probably not a good reason. The balls interface is somewhat old, and was derived from the old flags interface. The old flags interface was replaced by flagcore, partly because it was impossible to use from python. So basically, the interface needs to be changed. It should be done in the style of flagcore, with GetBalls and SetBalls functions, that will allow access to all the balls at once, from C, but only one at a time from python. I'm willing to do it, but please file a bug so I don't forget.
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: 35 page(s) served in previous 5 minutes.

phpBB Created this page in 0.568113 seconds : 26 queries executed (77.4%): GZIP compression disabled