The JavaScript V8 engine( No, not an eight-cylinder piston engine) which is what TTP is using for the API, is a (very) fast, open-source JS engine that will be doing all of the processing for your code and making it tick. If you're familiar with any other scripting languages you should be able to pick up the language fairly quickly after looking up documentation on the specifics of JS and the differences compared to other languages. This primer isn't really meant to teach you JavaScript, but you'll find some links provided below on where you can read up on the proper syntax & default functionality. Well, to begin with, the API is an implementation of JavaScript instead of Lua. It without a doubt does and will have its own issues, but such things can be worked out over time, especially with a developer that communicates and listens to feedback regularly.įor some basic information on the API(read these before continuing): TTP is a new, clean slate with much promise in more than just scripting, and has the potential to be much better. Even then, it's not that great and still has plenty of shortcomings. It has gotten a little better in recent times, partially because new developers (from the community) were brought on board. C# is not an amazing language for implementing a Lua API, but nonetheless it was sorely lacking.ĭespite the fact that their game basically lived off of user-generated content, the developers did little to improve it. I know this, because I worked with it plenty myself and I've worked with my own MoonSharp implementation. One of my biggest issues with TTS was the very poorly lacking Lua API that could've been so much better and more intuitive than it was. I was baited and got caught in the trap without complaint. Honestly, I came to this game for the promise of scripting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |