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
Polls
What's the next step for Palabre ?
  
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
 


Palabre on Facebook !

Woohoo the Palabre facebook group is open !

 Useless, yes ... but still ...

 Feel free to join :  Palabre on Facebook  

 I might be able to debug 0.6 and had a few more functionnalities soon ... stay tuned ...

 
Finaly ! A new version - 0.6 beta !
Oh yeah !
It's a beta for now, but sounds good already.
And guess what ? Plugins support has been added !
Three plugins are enabled in this beta release :
 
- helloworld.py [view source]
It adds two nodes "hello" and "quote"
If you send "<hello/>" it will reply "<world>Hello World</world>" ...
If you send "<quote>" it will reply with a random quote "<quote>Balblablabla</quote>"
Very simple plugin but shows you how to add actions and nodes easyly with Palabre
 
- dbQueries.py [view source]
WARNING ! Don't use this one on production environments !
IF database access is configured in palabre.conf, it allows you to send ANY sql query in a <db/> node !
example : <db>SELECT * FROM my_table</db>
(WARNING, request could be DROP DATABASE ....)
And it will reply :
<dbres >
    <row>
        <field_1>Value</field_1>
           <field_2>Value</field_2>
    </row>
    <row>
        <field_1>Value</field_1>
           <field_2>Value</field_2>
    </row>
 </dbres>
You can send "SHOW TABLES" or "SHOW COLUMNS my_table" and it will work too ...
 
-  simpleLogin.py [view source]
Just a plugin to explain how to write your own login module
This one is pretty easy .. just don't send "hacker" as password and you're in.
 
 
How to write a module ?
 
1. in the "modules" subdirectory create a file "yourModule.py"
2. In that file create a class yourModule
class yourModule:
    def __init__(self,palabreServer):
        self.server = palabreServer
        self.name = "yourModule"

3. Then specify when your module should be called.
    Two options are available : self.server.registerAction() and seld.server.registerNode()

    If you want your plugin to be called every time Palabre executes a specific action (example when server startup, when a client connects, when a client Leaves, when a client sends a password for connection, ...)

   

Example : Do something when server starts : 

Then add in your __init__ method :

       self.server.registerAction('onStartup',self.name)

   And Create a method called : 'onStartup'

    def onStartup(self,params):
        # Do something
        self.server.logger.info('My Module is loaded') 
        return


If you want to add an action when clients sends a specific node, add in __init__ :

     self.server.regsiterNode('mynode',self.name):

And create a method called 'doNode'

    def doNode(self,nodeName,node, client):
        if nodeName == 'mynode':
                client.clientSendMessage('<anynode>You sent MYNODE !</anynode>')

 

 4. In palabre.conf edit the [modules] section and add your module name to the list :

[modules]
list = helloworld,yourModule

 Restart Palabre ... and You're done !

 

Further documentation will come when Palabre 0.6 will be stable

Please feel free to report to the forum.

 

 

Célio 

 

 

 


 
 
New demo game online

I uploaded an old multiplayer car game made with Palabre.

 You can play it HERE !

(as there are not that many users on this website, you have to open two windows and play with yourself ... or refer a friend :p)

 

 
<< Start < Prev 1 2 3 4 5 Next > End >>

Results 1 - 4 of 19