Toying with getting Haxe to build working Lua for Roblox.
Haxe is a static-typed language that compiles to a lot of languages; they added Lua support just under a year ago. I’ve wanted to figure out how to make it work on Roblox for a while now, and I decided to have a go at it now.
It’s been going okay; I’ve had to do some odd things to avoid forking the actual Lua code generator and stay within the bounds of modifying the standard library.
But anyway, so far a simple hello-world example works (disclaimer: absolutely nothing about this is final):
import roblox.RbxLib;
class HelloWorld {
public static function main() {
trace("Hello, world!");
trace(5 % 2);
trace(RbxLib.tick());
}
}
This compiles to a massive bundle of Lua that is spectacularly ugly, as generated code tends to be, but it does print this (with the third line changing based on when you run it):
@Tomarty I really hope you didn’t buy it at that price. Knowing the prices on these markets you could definitely get an equally good model for 20 bucks.
Not to mention the textures get heavily downgraded when imported and mapping doesn’t work.
My secret’s out xD I bought it on sale this morning so it wasn’t quite that much. Don’t worry it’ll definitely pay for itself. I’m also very picky about quad loops and good topology that make it easier to animate.
Crykee modeled a t-rex for me to animate years ago and it’s been nearly half of animation lab’s revenue recently