• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Suggestion C++ Scripting Language

Shinmaru

エロルアー Scripter!
Joined
Aug 20, 2007
Messages
1,988
Reaction score
88
Location
Puerto Rico
I was thinking, if this would allow is to script in a source-code level of tfs, I think this would make adding custom function and whatnot to TFS easier.

I would like to hear opinions(preferably from the devs) about this.

Link: C++Script
 
The difference is that LUA is a script language and C++ a programming language.
I think even if you could use C++ as script language it would just change the syntax and not what you are able to do without source editing as it has to be defined somewhere first.
 
I haven't investigated this C++ Script thing much, but I believe that this sorta compiles the code when it is called(basically, when the server starts), so at that time the program would have already loaded all the classes and then using Reflection you would be able to call the functions, I have already did something like this in C, so it's also possible in C++, of course my program complexity wasn't even 1/10th of what an OTServer is, but the logic remains the same, and it should be possible
 
Back
Top