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
Pyint Troubles

 
Post new topic   Reply to topic Printable version
 View previous topic  Setting to make a player stop when the... Post :: Post module uploading  View next topic  
Author Message
Goldeye
Novice


Gender:Gender:Male
Joined: Dec 15 2003
Posts: 57
Offline

PostPosted: Sun Jul 09, 2006 10:35 am    Post subject: Pyint Troubles Reply to topic Reply with quote

I'll make it short and sweet. I get the following error.
Code: Show/Hide

E <pymod> error in 'mm_attach'
  File "/Users/goldeye/asss/working/bin/jpcounter.py", line 20, in mm_attach
    vl = get_interface(I_VARLVZ,a);
Exception: py->py interface varlvz-2 wasn't found

varlvz, however, is a C interface. meaning the hashtable pyint_ints does not contain varlvz-2. py_interfaces.inc contains absolutely no mention of varlvz, although py_constants.inc does have I_VARLVZ. Anyone know a cause for this or see anything wrong with the interface declaration below?

Code: Show/Hide

typedef struct Ivarlvz
{
   INTERFACE_HEAD_DECL
   /* pyint: use */


   void (*RefreshLVZ)(const Target *target);
   /* pyint: target -> void */

   void (*ToggleLVZVar)(const Target *target, char *name, int state);
   /* pyint: target, string, int -> void */

   void (*ToggleLVZVarByPtr)(const Target *target, lvzvar *var, int state);

     /* Toggles each lvzvar *var in list to var->next
    * A next value of VLVZ_CURRENT is ignored, and causes no change
    * next is set to VLVZ_CURRENT whenever this func changes it.
    */
  //     void (*ToggleLVZList)(Target *target, LinkedList *list);

     /* Returns a pointer to the lvzvar for arenas variable with name
    * or returns NULL if that variable was not found.
    */
   lvzvar *(*GetVar)(Arena *arena, char *name);
         
     /* Returns a pointer to the list of variables in arena
    * or NULL if that arena's variables were not initialized.
    */
   LinkedList *(*GetVarList)(Arena *arena);
} Ivarlvz;
Back to top
View users profile Send private message Add User to Ignore List Send email
Goldeye
Novice


Gender:Gender:Male
Joined: Dec 15 2003
Posts: 57
Offline

PostPosted: Sun Jul 09, 2006 11:20 am    Post subject: Reply to topic Reply with quote

Problem solved. It was DOS line endings. Hmph. and beware.
Back to top
View users profile Send private message Add User to Ignore List Send email
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: 34 page(s) served in previous 5 minutes.

phpBB Created this page in 0.427861 seconds : 27 queries executed (94.8%): GZIP compression disabled