Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Why do you use lua instead of C# itself as script language? #15795
I think the idea was to use a language that does not need to be compiled, so scripts can easily be distributed together with custom maps. Allowing anyone to add their own dlls and reference/execute them from maps sounds like a security risk to me.
(Looking it up I just found #2292 (comment), #2067 and https://forum.openra.net/viewtopic.php?f=83&t=15510 if anyone is interested in digging around in OpenRA's history. ^^)
Thanks for kindly show me the OpenRA's history. I read through the threads you sent me.
On the other hand, I think the distribution for the script files in OpenRa can be just .cs along with the custom map files. When OpenRa about to load the map, it could invoke .net runtime's csc.exe to compile .cs file to dll on demand and load to memory.
I was trying to demonstrate to my son (who is a 10th grader) how to modify these lua files to add multiple Tanya(s) in the game. I was thinking if the script were in C#, it would be much easier to create a more complicated game rules. After all, visual studio's debugger is very powerful compare to other script language. I could also teach my son some C# programming. He is very interested on creating his own map, but don't want to learn computer languages. LOL.
Anyway, OpenRa is really a nice and fun project. Great job for everyone on this project.