User Tag List

Page 3 of 12 FirstFirst 1 2 3 4 5 ... LastLast
Results 21 to 30 of 111

Thread: pylacewing - Lacewing for Python

  1. #21
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Morrisey, that's one of the great advantages of POINC. You can create the game server with Python and Poinc, which works seamlessly with the Oinc Client extension. Just start the Poinc server, connect to it using your MMF2 application.

    Take a look at the server example code, then run it via command prompt. Open MMF2, drag in the OINC extension and connect to the server (localhost might do it if you are running locally) and you'll hopefully find the MMF2 app connects nice and quickly.
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  2. #22
    No Products Registered

    Join Date
    Jun 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Python does some errors when I try to open it. Shoot. Some connection errors.

    -Edit: reb00t helped.

    :whistle: One more question: is that server.py that excatly "blank" server base which includes all features what OINC has at the moment? I know it's in alpha stage but I would like to handle this as soon as I can.

  3. #23
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Unfortunately, server.py is missing some nice features (to make it as simple as possible). I suggest you to check out the wiki entry (look at the sample files) and the OServer docs, especially the accept methods:

    acceptLogin(self, name)
    acceptNameChange(self, name)
    acceptConnection(self, welcome)
    acceptChannelMessage(self, channel, message)
    acceptChannelJoin(self, channelName)
    acceptChannelPart(self, channel)


    which aren't used in server.py.

    Do not hesitate to contact if you're confused

  4. #24
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Let me claryify that. DarkKiller HAS integrated it, however, it is not DEMONSTRATED, as in there is no example.
    But, you have the list now, so all you do is you add e.g.

    def acceptLogin(self, name)
    pritn "test: " + name

    And you are done! I have used this to create a database driven verification processs that uses the username to authorize, and i wrote a routine that checkes for banned IPS and basicly, it already kicks you when a users first tries to connect.
    Poinc is really great!

    Edit:
    Use acceptConnection(self, welcome) if you wnt to make a BAN routine.

    Return False to deny, True to proceed.

  5. #25
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Poinc version 0.1.9 released, and this release should be fully compatible with the OINC API Release 7.

    Channel listing is a new feature in 0.1.9.
    To turn channel listing off at the serverside, simply set the 'ChannelListing' flag in OServerFactory to False.

    For the server (OServer):
    acceptChannelListRequest will send the current channel list to the client requesting it unless False is returned.

    channelListSent is called after the channel list has been sent.

    For the client (OClient):
    requestChannelList will return a deferred (see Twisted documentation) that will fire once the channel list has been received.

    See the new examples provided

  6. #26
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    I should be providing some examples on how to use the channel listing features from the OINC extension later today.

  7. #27
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    571
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    It seems Twisted does not work with Python 2.6. It says "Twisted for Python 2.5" but one would think it'd be 2.5 and higher. But when installing Twisted I get a "Python not installed" Or does Twisted have an absolute path/name for checking where Python is?

  8. #28
    No Products Registered

    Join Date
    Oct 2008
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Indeed, Twisted does not work with the latest versions of Python. What my friend Mr. Monkey does is have two versions of Python installed: Python 2.5 for using Twisted, and the latest version for everything else.

  9. #29
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    571
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Quote Originally Posted by DragonMC
    Indeed, Twisted does not work with the latest versions of Python. What my friend Mr. Monkey does is have two versions of Python installed: Python 2.5 for using Twisted, and the latest version for everything else.
    Ok then. Will install the 2.5 too. Thanks.

  10. #30
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Poinc - OINC for Python

    Is this version compatible? i can remember that the latest release of OINC needed the server to under go some changes. Have you just added this new feature or did you also improve / update the old code?
    Also i found some "TODO" marks in your source code, is this done already?
    I will give it a shot and try and remake the RPG DEMO game.

Page 3 of 12 FirstFirst 1 2 3 4 5 ... LastLast

Similar Threads

  1. Python not working correctly when exported (and Python with iOS)
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th April 2013, 12:10 PM
  2. Python Object - Get Python Variables from MMF2
    By DizzyDoo in forum Python Scripting
    Replies: 2
    Last Post: 26th December 2011, 01:57 PM
  3. Voice chat using Lacewing and Python (PyAudio)
    By Mathias in forum Python Scripting
    Replies: 16
    Last Post: 28th October 2011, 08:27 PM
  4. Pylacewing error
    By izac in forum Lacewing
    Replies: 6
    Last Post: 23rd November 2009, 12:00 PM
  5. Pylacewing
    By izac in forum Lacewing
    Replies: 2
    Last Post: 19th November 2009, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •