Quick question

Avatar

By Kelvin 9 Sep 2015 22:04

Member · 44 comments

In Squirrel, it's possible to load and compile source files as well as load precompiled scripts during runtime, effectively allowing a game's functionality to change while it's running (although, I'd personally only use this at the start for loading mods). I want to know, does Python support this as well? If not, I think I'm going to look for a Squirrel VM in Python, because I think it would be a cool feature if players could write mods for the game without having to rebuild it through PyGame every time they want to make a change, and sharing mods would be much easier.


Avatar

By ShadowApex 10 Sep 2015 05:32

Lead Developer · 374 comments

Python is an interpreted language, so there is no compile step needed to run Tuxemon. The game itself is also written in a way that keeps mods in mind. Game functionality in the form of event actions and conditions can be added by simply dropping in a .py file under core/components/event/actions. All of the game data is also written in a human-readable JSON format which users can freely modify to change their gaming experience. I'm always open to making Tuxemon more moddable and extendible, so if you have any other ways we can accomplish that, I'd be happy to learn about it!