Deepu Posted April 6, 2016 Posted April 6, 2016 I know that this seems vague.. but.. C++ is actually good when it comes to game scripting and game programming whether its scripting MTA or whether you're working with OpenGL rendering or with Ogre3D.. C++ is the best. C++ has unique set of class wise instruction set which is useful when you're like trying to link the objects of the class to a real world object.. As an Example: class guy{ int skin_id; char*nick; // character pointer to use it as a string.. just for instance. public: void getSkin(void);}; guy child; // created object. child.getSkin(); // see? its useful to code it for MTA.. why am I suggesting it to make it a universal language of MTA for the next update?? I am tired of using modules... They are showing a whole bunch of errors in Code::blocks.. it says missing header files.. when I did include them and many more silly stuffs.. So please do add this like lua in the next release.. its really fun coding in C++ please WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Deepu Posted April 6, 2016 Author Posted April 6, 2016 I know that this seems vague.. but.. C++ is actually good when it comes to game scripting and game programming whether its scripting MTA or whether you're working with OpenGL rendering or with Ogre3D.. C++ is the best. C++ has unique set of class wise instruction set which is useful when you're like trying to link the objects of the class to a real world object.. As an Example: class guy{ int skin_id; char*nick; // character pointer to use it as a string.. just for instance. public: void getSkin(void); }; guy child; // created object. child.getSkin(); // see? its useful to code it for MTA.. why am I suggesting it to make it a universal language of MTA for the next update?? I am tired of using modules... They are showing a whole bunch of errors in Code::blocks.. it says missing header files.. when I did include them and many more silly stuffs.. So please do add this like lua in the next release.. its really fun coding in C++ please WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Anubhav Posted April 6, 2016 Posted April 6, 2016 What? C++ is also one of the most complicated language, as far as I know. Lua is quite simple and we just can't put C++ like this. It will be horrifying for scripters, they will have to learn alot of things again and that also in more complicated way. Let Lua be there. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Anubhav Posted April 6, 2016 Posted April 6, 2016 What? C++ is also one of the most complicated language, as far as I know. Lua is quite simple and we just can't put C++ like this. It will be horrifying for scripters, they will have to learn alot of things again and that also in more complicated way. Let Lua be there. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Jusonex Posted April 6, 2016 Posted April 6, 2016 Something like that will never happen. C++ is a programming language that compiles into native code and is not appropriate for embedding it as a scripting language. Via native code you would be able to do everything you want - including installing and distributing malware. There are of course possibilities to sandbox it, but writing such a secure environment (which is most likely still exploitable, see Chrome sandbox) requires much more effort than embedding a C++-like scripting language or even writing a new scripting language that looks similar to C++. Finally, it doesn't make sense at all as C++ is too complicated for small scripting tasks. So each language has its own purpose. And btw: You can do OOP in Lua as well (via sbx320' classlib for example: https://github.com/sbx320/lua_utils)
Jusonex Posted April 6, 2016 Posted April 6, 2016 Something like that will never happen. C++ is a programming language that compiles into native code and is not appropriate for embedding it as a scripting language. Via native code you would be able to do everything you want - including installing and distributing malware. There are of course possibilities to sandbox it, but writing such a secure environment (which is most likely still exploitable, see Chrome sandbox) requires much more effort than embedding a C++-like scripting language or even writing a new scripting language that looks similar to C++. Finally, it doesn't make sense at all as C++ is too complicated for small scripting tasks. So each language has its own purpose. And btw: You can do OOP in Lua as well (via sbx320' classlib for example: https://github.com/sbx320/lua_utils)
Deepu Posted April 6, 2016 Author Posted April 6, 2016 can I use integrated C++ in lua? if its possible please do tell me how.. I am tired of lua WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Deepu Posted April 6, 2016 Author Posted April 6, 2016 can I use integrated C++ in lua? if its possible please do tell me how.. I am tired of lua WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
megaman54 Posted April 6, 2016 Posted April 6, 2016 You could make your own module for the server. Since modules are writte in C++, you could write complete functions there and just calls them from lua.
megaman54 Posted April 6, 2016 Posted April 6, 2016 You could make your own module for the server. Since modules are writte in C++, you could write complete functions there and just calls them from lua.
Deepu Posted April 7, 2016 Author Posted April 7, 2016 Okay then, thanks WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Deepu Posted April 7, 2016 Author Posted April 7, 2016 Okay then, thanks WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Simple0x47 Posted April 9, 2016 Posted April 9, 2016 Lua it's better for this situation, if you wanna make OOP just use Metatables. -- Metatables -- http://www.lua.org/pil/13.html -- OOP -- http://www.lua.org/pil/16.html "Keep making it simplex."
Deepu Posted April 14, 2016 Author Posted April 14, 2016 I know the lua OOP but its just not flexible. WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
FernandoMTA Posted April 17, 2016 Posted April 17, 2016 no god no plz no keep LUA. Nando's Resources https://forum.multitheftauto.com/topic/139644-rel-nandos-resources/
Anubhav Posted May 4, 2016 Posted May 4, 2016 How about C# ? Why do you all people seem to have one intention? Like literally hard working servers will be destroyed. They have to create everything again. Just keep Lua, it's the best. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
John Smith Posted May 4, 2016 Posted May 4, 2016 How about C# ? Like literally hard working servers will be destroyed. They have to create everything again. Why would adding a programming language to mta cause servers to be destroyed? If you find my post useful or if it helped you, please like my post Ingame name: ZoeN
Anubhav Posted May 4, 2016 Posted May 4, 2016 How about C# ? Like literally hard working servers will be destroyed. They have to create everything again. Why would adding a programming language to mta cause servers to be destroyed? Read the title well. They mean to remove Lua and add C++ or C# See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
FernandoMTA Posted May 6, 2016 Posted May 6, 2016 inb4 no thanks. please deny this. Nando's Resources https://forum.multitheftauto.com/topic/139644-rel-nandos-resources/
Piorun Posted May 21, 2016 Posted May 21, 2016 C# is great oop language. There could be an option to choose between Lua and C# so ppl won't need to remake his scripts. Lua is bad if we are talking about oop. Many programmers prefer OOP over procedural cause it's better and cleaner.
Deepu Posted May 30, 2016 Author Posted May 30, 2016 @Anubhav I didn't say that Lua has to be stopped. I said that Lua is not flexible for OOP else people would have made minecraft with lua.. right? C++ is flexible because it has its own class support and object oriented systems development resources. If yu know crystalMV then.. even he likes using C or C++ because its more easier and more simpler to learn and to program. so we all can do it with C++. WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Anubhav Posted May 30, 2016 Posted May 30, 2016 @Anubhav I didn't say that Lua has to be stopped. I said that Lua is not flexible for OOP else people would have made minecraft with lua.. right? C++ is flexible because it has its own class support and object oriented systems development resources. If yu know crystalMV then.. even he likes using C or C++ because its more easier and more simpler to learn and to program. so we all can do it with C++. It's not simple to learn. It is very high-level language, and is very complicated language for me. It's your opinion. My opinion is it to be not added, it gives MTA team extra work which is not needed. They will need to disable alot of libraries to prevent abuse of C++, which will cause million years of work. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Deepu Posted May 31, 2016 Author Posted May 31, 2016 To your knowledge.. @Anubhav, C++ has public, private and protected visibility modes. Ensuring safety among privacy. MTA was written in C++. GTA was written in C++/DirectX. GTA V was written in C++/OpenGL. So.. if MTA makes C++ coordination dll. then we can start MTA 5 or MTA 4 or something like that for GTA 4 and GTA V. WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Moderators AlexTMjugador Posted June 4, 2016 Moderators Posted June 4, 2016 To your knowledge.. @Anubhav, C++ has public, private and protected visibility modes. Ensuring safety among privacy. MTA was written in C++. GTA was written in C++/DirectX. GTA V was written in C++/OpenGL. So.. if MTA makes C++ coordination dll. then we can start MTA 5 or MTA 4 or something like that for GTA 4 and GTA V. I'm not a pro C++ developer, but clearly you got some things wrong there. DirectX is nothing more than Microsoft Windows' 3D graphics library, so it is not a language by itself, to start with. GTA V, on the other hand, uses DirectX, not OpenGL (have you ever seen the DirectX version option that GTA V has in its graphics settings?). And I have never heard the words "coordination dll". GTA: SA, GTA IV and GTA V are very different games, and making a mod like MTA: SA work with any of them is a very difficult task, because although MTA tries to build its own engine on top of GTA: SA, it still depends on assembly hooks and memory manipulation of the game itself. And, as you can probably conclude, GTA: SA executable and memory has (almost) nothing in common with GTA IV or GTA V ones. Back to the topic, I think that Lua is fine to use as a MTA: SA scripting language. Sure, it is not the fastest and most known thing out there, but it is designed with embedding in mind, it has a good learning curve, it is well documented, it is powerful and, most importantly, safe. C++, on the other hand, is lower-level, and things like memory manipulation are difficult to sandbox without reducing functionality. So, in the end, C++ doesn't simply cut it. My Wiki contributions My MTA: SA Community profile Sapere aude!
Recommended Posts