You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


Post a new message in "Default Forum"
Name:
Subject:
topic icon:
no
boardcode:
 Colour:  Size:   Close all tags
Message:
CAPTCHA: How much is 7 added to 1

Topic History of: Problem Registering New Module
Max. showing the last posts - (Last post first)
Author Message
develephant If it helps anyone, I had to put my "module" files in /usr/lib/python2.4/site-packages/



Not sure why. Thanks for a great server. Cheers.
badben Hi,



How to fix the problem ?

I put my module.py into lot of directory but it doens't want to load it :(
chromecowcow Found the problem (on linux).



The install puts modules in two folders,



/usr/local/lib/python2.4/site-packages/modules/

(Which is where I think it is supposed to go when the installer is working properly)



And also in the palabre-src-0.6b/modules folder (in the parent folder where I installed Palabre)



At the moment, palabre is only recognizing folders in the latter folder.



Now I just have to fix my module...};^)
chromecow Just getting my feet wet with modules. I've built a very simple module called:



existsQueries.py



Which (theoretically) receives the node <exists> and returns "I Exist!"



Here is the code (minus the GNU comment block):



Code:

 #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Palabre - existsQueries.py


class existsQueries:    
    
    
def __init__(self,server):        
        
self.server server        
        self
.name "existsQueries"
        
self.server.registerAction(’onStartup’,self.name)        
        
# Registering the EXISTS node
        
self.server.registerNode('exists',self.name)        
        
        return
        
    
def doNode(self,nodeName,node,client):        
        if 
nodeName == 'exists':
            
client.clientSendMessage(self.server.formatMessage('exists',[],'I Exist!'))
        return




I saved the module to /usr/local/lib/python2.4/site-packages/modules/

I stopped palabre, edited the /etc/palabre.conf to read:

[modules]

list = dbQueries,helloworld,simpleLogin,existsQueries

I restarted palabre, and got this:

Code:

 [root@someserver palabre-src-0.6b]# python Palabre.py
INFO     No log file has been specified
INFO     Palabre will only 
print log to console
INFO     Running on
xx.xxx.xx.xxx
INFO     Port
2468
INFO     Palabre is running on a 
public interface
INFO     Other computers will be able to access it
INFO     4 Module
(sto load
INFO     Module 
dbQueries Loaded
INFO     Module 
helloworld Loaded
INFO     Module 
simpleLogin Loaded
ERROR    ERROR 
No module named existsQueries
ERROR    Module 
existsQueries  Failed to load
INFO     3 Module
(sloaded
INFO     Connection to BDD      SKIPPED
ERROR    dbQueries
:DATABASE ACCESS IS NOT CONFIGURED
ERROR    dbQueries
:I won't accept any request



What am I missing?

Help me, Obi Wan!
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...

In the meantime you may still download palabre or use the forum