Replace TS with Lua Script

Friendly conversations, and everything that doesn't fit into the other forums.
10 posts Page 1 of 1
noemen
Posts: 24
Joined: Tue May 29, 2018 3:46 pm
 
  by noemen » Sun May 12, 2019 11:35 pm
Has anyone tried to replace TorqueScript with the Lua script language?

If so, could you help me?
Or who knows, put the secret formula here and help other people?
bsisko
Posts: 48
Joined: Mon Jun 19, 2017 7:28 pm
by bsisko » Mon May 13, 2019 3:20 am
I do not know Lua. I know it works with Lumberyard. but why do you want to use it with Torque?
Duion
Posts: 1319
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon May 13, 2019 2:14 pm
Not this again, please don't waste your time on this.

If you want to do this because of performance, you should consider that performance relevant code should not be in the script language anyway, because script language is slower, does not matter which one you use.

Torquescript is integrated into the engine, it would be stupid to replace it with another language, since the language itself is not going to be magically better.

There was a post on Garagegames on improving Torquescript: http://www.garagegames.com/community/re ... ew/18045/1

So I would suggest to spend time on optimizing the engine as it is, don't try to reinvent the wheel all the time.
noemen
Posts: 24
Joined: Tue May 29, 2018 3:46 pm
 
by noemen » Mon May 13, 2019 3:26 pm
Not this again, please don't waste your time on this.

If you want to do this because of performance, you should consider that performance relevant code should not be in the script language anyway, because script language is slower, does not matter which one you use.

Torquescript is integrated into the engine, it would be stupid to replace it with another language, since the language itself is not going to be magically better.

There was a post on Garagegames on improving Torquescript: http://www.garagegames.com/community/re ... ew/18045/1

So I would suggest to spend time on optimizing the engine as it is, don't try to reinvent the wheel all the time.
It is as I have seen other games created, being that they used the Moon. Being them BeamNg.driver and the Life is Feudal
Duion
Posts: 1319
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon May 13, 2019 3:33 pm
"Because others do so" is not an argument. I have seen the BeamNG implementation and they added a "lua" folder next to the "script" folder and you had Torquescript and Lua in the same game making things even more complicated. We also have C# script implementation, so if you do Lua as well, we will even have 3 scripting languages instead of 1.

To make my argument short: https://xkcd.com/927/
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Mon May 13, 2019 4:25 pm
Demolishun made this resource http://www.garagegames.com/community/re ... view/21706 for adding python as a scripting language it could be a good template to work off of for adding lua or any other scripting language actually. I can understand why you would want a language u are more familiar with tbh i started out with lua back in the farcry modding days :D
noemen
Posts: 24
Joined: Tue May 29, 2018 3:46 pm
 
by noemen » Mon May 13, 2019 5:58 pm
Demolishun made this resource http://www.garagegames.com/community/re ... view/21706 for adding python as a scripting language it could be a good template to work off of for adding lua or any other scripting language actually. I can understand why you would want a language u are more familiar with tbh i started out with lua back in the farcry modding days :D
The language Lua was created by a Brazilian to facilitate our integration (we brazilians and the world) with scripts. So I find it easier to work with Lua and I want to support other players to create Mods in my future game. Here in Brazil the language Lua is popular.
Duion
Posts: 1319
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon May 13, 2019 7:34 pm
"Because I'm more familiar with Lua" is also a bad argument, because compare the time it would need to exchange the whole scripting language vs the time needed to learn to use a slightly different syntax. I also modded games using Lua, but I had no problems adapting to it and no problems adapting to use another scripting language, it is not really that much different also Torquescript is not so much different to C or C++.

And regarding to get Brazilians to use Torque by adding their favorite language is also a logical fallacy, it most likely will not work, you should rather invest that time into marketing that will be a thousand times more efficient in that regard.
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Tue May 14, 2019 11:35 am
Demolishun made this resource http://www.garagegames.com/community/re ... view/21706 for adding python as a scripting language it could be a good template to work off of for adding lua or any other scripting language actually. I can understand why you would want a language u are more familiar with tbh i started out with lua back in the farcry modding days :D
The language Lua was created by a Brazilian to facilitate our integration (we brazilians and the world) with scripts. So I find it easier to work with Lua and I want to support other players to create Mods in my future game. Here in Brazil the language Lua is popular.
Hopefully demolishuns work is helpful to you browse those files and see what you can do, just to put a spell on this to save yourself time from having to change all ts files it might be better to not replace torquescript with Lua but have lua as another option that you can use with your assets so you don’t have to change too much
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Tue May 14, 2019 1:24 pm
Another interesting post is here http://www.garagegames.com/community/fo ... ent-863060

Maybe you could contact Anthony and see if he made any progress or if he would give u the source his github doesnt seem to have an active torque repository any more. Luis Anton Also did some work on it but i cant find it either
10 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests