Replacing TS with Lua

Moderator: andrewmac

5 posts Page 1 of 1
saindd
Posts: 220
Joined: Wed Apr 15, 2015 3:20 am
by saindd » Thu Apr 28, 2016 3:42 am
How easy it is to replace scripting engines inside Torque 6? Is it too deep of a feature, or is it modularized?
LukasPJ
Site Admin
Posts: 316
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Thu Apr 28, 2016 2:02 pm
@
User avatar
saindd
I modified Torque6 to have a C-interface and used it to bind the C# as the scripting language alongside TS. Is that the direction you want to take? If it is, then I can give you some pointers.
saindd
Posts: 220
Joined: Wed Apr 15, 2015 3:20 am
by saindd » Sat Apr 30, 2016 3:15 am
What do you mean by C-interface? Getting rid of object access from the scripting language?
saindd
Posts: 220
Joined: Wed Apr 15, 2015 3:20 am
by saindd » Sat Apr 30, 2016 3:17 am
I was planning to use this: http://sol2.readthedocs.io/en/latest/
LukasPJ
Site Admin
Posts: 316
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Sat Apr 30, 2016 12:56 pm
So, that's the difference between implementing a new interpreter and doing interop between the engine and another language.

I don't know about the difficulty of implementing a new interpreter, but you might be able to get some ideas looking at my implementation of C#:
https://github.com/lukaspj/Torque6-Embedded-CSharp

In particular, this Wiki-page could give you some idea of where to start:
https://github.com/lukaspj/Torque6-Embe ... Sharp-Flow
5 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests