Scripting language to be used

Discussion in 'Planetary Annihilation General Discussion' started by wizzything, August 28, 2012.

  1. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    I'm not even sure if you are yet in the position to decide that but, I kinda doubt you gonna do everything in C++(or whatever you are using for the engine).

    I'm just wondering which scripting language you are going to use, in SupCom you used 4.9 or 5.0(?) not sure right now, which was a bottleneck performance and modding wise.

    When I modded around I noticed that the garbage collection became a quite a performance issue, especially when the amount of units grew more, the reason for this should be self explanatory.

    While Lua is of course super simple to use, I'd suggest something object oriented and that native supports multi-threading, like Java.

    If you don't wanna go that way and want to stay with Lua, I'd at least suggest you to use something like LuaJIT which is much faster than the default Lua.
  2. JWest

    JWest Active Member

    Messages:
    264
    Likes Received:
    89
    Java? I'm not much for code, but I was under the impression that a game like this is not the kind of thing you'd use Java for... C++ would make more sense, but then again I'm not the most reliable person to talk about code with. I'm sure these guys know what they're doing. As long as this game can actually RUN, unlike SupCom in which you still can't play against the max number of AI's on a large map, even on the fastest computer out there just due to the way the game engine is built.
  3. DeadMG

    DeadMG Member

    Messages:
    217
    Likes Received:
    8
    We're already having this discussion in another thread.
  4. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    I actually used the search function to look for it, I didn't find it, would be neat if you provided a link.


    Also, almost everything was made in Lua in SupCom, atleast gameplay technical stuff, Java is a way faster than Lua.
  5. DeadMG

    DeadMG Member

    Messages:
    217
    Likes Received:
    8
  6. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    I feel like the thread you linked to is more about the actual modding rather than the scripting language, and infact, I just wanted a simple answer without much discussing about it.
  7. neutrino

    neutrino low mass particle Uber Employee

    Messages:
    3,123
    Likes Received:
    2,687
    The short answer is we haven't decided. Most of the core game engine stuff is going to be C++ since that's what I'm comfortable in.

    In the past we've used Lua but I'm honestly not a fan at this point. I've been following the conversation with great interest in the other thread actually.
  8. KNight

    KNight Post Master General

    Messages:
    7,681
    Likes Received:
    3,268
    Well that was kinda my intention to start, but it kinda snowballed from there, but with Neutrino's answer you're best off getting involved with that convo ;p

    Mike
  9. martindevans

    martindevans New Member

    Messages:
    14
    Likes Received:
    0
    The other thread kinda got way off topic talking about languages instead of general modding requests. I'm going to start a thread about scripting languages, summing up everything that was said in the other thread (link here soon)
  10. KNight

    KNight Post Master General

    Messages:
    7,681
    Likes Received:
    3,268
    Don't bother, us SupCom modders do that all the time, just join in, makling a new thread would just fragment the discussion.

    Mike
  11. martindevans

    martindevans New Member

    Messages:
    14
    Likes Received:
    0
    Well fair enough then, I'll continue shouting and C# and Lua being awesome :p
  12. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    C# is not exactly multiplatform, as this game is supposed to run on Linux and Mac too, I'd say that c# is a rather bad choice.
  13. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    Also, apparently Java is not exactly embedding friendly so I guess Lua 5.2 or preferably LuaJIT 5.2 would a way to go, you'll probably have multiple Lua states though, due to multithreading.
  14. martindevans

    martindevans New Member

    Messages:
    14
    Likes Received:
    0
    Although C# is my language of choice I actually wasn't the one to originally suggest it for PA and I still think Lua is the best choice.

    However, assuming Mono does what it's advertised to do then C# is multiplatform and a viable choice for scripting language, I'd really like to hear from someone who has used mono recently how good it is.
  15. DeadMG

    DeadMG Member

    Messages:
    217
    Likes Received:
    8
    Really, guise, just use the original thread. You're just fracturing the discussion here.
  16. wizzything

    wizzything New Member

    Messages:
    21
    Likes Received:
    1
    Lua has one problem though, it has no problem object orientation which often leads to fragmented code which is hard to maintain.
  17. BulletMagnet

    BulletMagnet Post Master General

    Messages:
    3,263
    Likes Received:
    591
    metatables make for reasonable oo.
  18. zordon

    zordon Member

    Messages:
    707
    Likes Received:
    2
    Fragmented code that is hard to maintain is more the result of the programmers than the language.

Share This Page