[Broken]: Jython 317 RuneScape Emulator - Help fixing?
As a fun project/learning experience I decided that I would write a server almost entirely in Python except use the JVM to run it through the Jython library (believe it or not, Jython runs much faster than standard Python because it benefits from the dynamic optimizations that the HotSpot JVM provides).
Some Benefits:
- Easy to develop with (you can literally learn Python in a few hours)
- No need to compile your code - no need for the JDK
- Extremely lightweight source code (the jython library jar is 1.8MB though)
- Very fast compared to standard Python
- Very simple source code.
- Easy "packaging", because of recursive script loading in the Engine, you can throw any scripts into any amount of sub-folders for organizational purposes and they will all be loaded the same. (also, no need for a "package" statement).
The server uses a very lightweight asynchronous networking library written in Java that I have made (called Helios). The jar has the source code in it, but there is no JavaDoc documentation. Feel free to use it in other projects. It has an Engine.jar (source files are in the jar) which contains the main Java code which loads all Python scripts into the interpreter (which then compiles them into bytecode) and calls the "bootstrap" method inside the interpreter.
However, because I am not nearly as good with Python as I am with Java, I have been unable to complete this source: I'm stuck on parsing incoming packets after login. So I'm asking you guys to do your best and take a shot at fixing it. If you fix it, major props to you and we can move on with developing this baby.
(mods: this stands apart from downloads/projects/help threads because it's unique compared to other servers and this main section in general will have a better response towards helping out. If it's in the projects section, nobody will look. If it's in the downloads section, nobody will use it as they're looking for complete sources. And if it's in the help section, well I wont get any useful help)
Download: [Only registered and activated users can see links. Click Here To Register...]
I also thought it'd be kinda neat to just give this out as an example that we are not restricted to Java in this community.
Good luck!