Working on a mod, need some help!

  • jacob1
    24th Jun 2017 Developer 0 Permalink
    @RebMiami (View Post)
    When working with C++, you can do anything you want to any part of the game.

    In Lua, you can't touch everything. It's great for making new elements, and you can do a few other things, but anything outside the main game interface can't be modified, and some more complicated elements would not be possible to implement in Lua.
  • RebMiami
    5th Jul 2017 Member 0 Permalink

    I mean, I'm not worried about limitations in CREATING elements in Lua, I'm just worried about performance. My other computer (the first one I used to try to compile TPT) drops to less than 10 fps with a small C-4 explosion. The computer I'm working on (and the one that I am typing this message on) can go through about anything but that time I used console to modify NEUT for no reason. I think you get my point here.

  • jacob1
    5th Jul 2017 Developer 0 Permalink
    C++ does have better performance than Lua, Lua is very slow because it's constantly making calls from c++ <-> lua for every particle every frame
  • RebMiami
    10th Jul 2017 Member 0 Permalink

    Do you think you could move this thread to the Lua scripting section?

    Thanks

    Edited once by RebMiami. Last: 11th Jul 2017