The online racing simulator
Clojure - clj-insim, an InSim client in clojure
You can find the project on github: https://github.com/verberktstan/clj-insim

Did some updates, it works very stable now..

At the point of writing, it is a VERY VERY basic InSim client.
  • It connects to LFS via InSim
  • It reads and parses some packets (more to be added)
  • It allows you to dispatch on incoming packets or send packets manually
What it doesn't do (out of the box)
  • It DOESN't maintain connection automatically (but you can do it yourself :-) )
  • It DOESN't register connections or players automatically (but you can do it yourself :-) )
A lot of work needs to be done; writing codecs, parsers etc.
Please try it if you like, any feedback is welcome!

I've been talking about this before;
https://www.lfs.net/forum/thread/92870-Clojure-InSim-client

Stan (Boer Tarrel)
Released v0.2.0-SNAPSHOT
Check out v0.2.0-SNAPSHOT !

Find it on GitHub & Clojars

What's new;
  • clj-insim automatically maintains the connection for you
  • clj-insim automatically registers connections and players for you
  • access registered connections with
    (clj-insim/get-connection 0)

  • access registered players with
    (clj-insim/get-player 1)

  • you can enqueue packets in multiple ways: by returning one or more packets from your dispatch function, or by calling
    (clj-insim/enqueue! lfs-client your-packet)

    from anywhere in your code..
  • Updated the readme to help you get started!
Any Clojure fanatics here? Please tell me what you think about clj-insim![/quote]

Ciao, Stan (aka Boer Tarrel)

FGED GREDG RDFGDR GSFDG