Menu

Scripting Help

Help
barney_21
2007-06-15
2012-12-24
  • barney_21

    barney_21 - 2007-06-15

    Hi there,

    I'm running kokua on Ubuntu 7.04.  Thanks for the great linux-friendly tradwars app!

    The scripting function interests me.  Are there any beta-scripts available or any writeups on how to create simple scripts?  Also, how does the "Import from TWXproxy work"?

     
    • Don Brown

      Don Brown - 2007-06-16

      For scripting, your best bet is to use TWXProxy to handle all the scripts.  TWXProxy runs fine with WINE, and in addition to coming with a huge scripting library, it is well supported by the community with a lot of third-party scripts.  Also, it is damn fast.

      In Kokua 0.6 and beyond, I've been assuming you are running TWXProxy, which allows Kokua to focus on giving a better UI to the power of the underlying TWXProxy scripts; or at least that's the idea :)  Basically, writing scripts aren't nearly as interesting as writing radial menus and playing with hyperbolic graphs to me.  In fact, TWXProxy now is shipped with Kokua, and I'm playing with the idea of having Kokua start it up automatically behind the scenes.  Since both projects are open source, there might be other interesting integration points.

      As for the TWXProxy import, honestly, I don't really remember.  I think it processes the TWXProxy 1.0 or 2.0 text file format to load the data into Kokua.  I've also written a library to read the TWXProxy database directly, which I have yet to use in Kokua.

       
      • barney_21

        barney_21 - 2007-06-17

        Thanks for the help.  I've tried to run TWXProxy under Wine but I get the error "Unable to bind a listening socket to port 23". I've googled but can't figure out a way to remedy this.  Hopefully I'll figure this out.  Seems like the other players in the game are definitely using scripts to aid in their game progress.

         
        • Don Brown

          Don Brown - 2007-06-17

          Just go into the setup menu and change the port to something else like 2323.  In Linux, you have to be root to bind to ports under 1024.

          Don

           

Log in to post a comment.

MongoDB Logo MongoDB