Modding Help Making a lua mod

Discussion in 'Starbound Modding' started by MysticPing, Jan 21, 2014.

  1. MysticPing

    MysticPing Subatomic Cosmonaut

    So, is it possible to make a mod that only uses lua now, no c++?

    Also the documentation is great but it doesnt tell much about how you do stuff or what is needed for what

    function help(dt)
    print("I'd aprociate any help")
    if comments == helpful then
    print("thankyou")
    end
    end
     
    The | Suit likes this.
  2. vileRaisin

    vileRaisin Tentacle Wrangler

    Your question is very broad, just like your last. If you want to get better answers, you need to ask something more specific.

    You don't use c++ to mod, it's pretty much just LUA and JSON models.

    With that said, there isn't much documentation and the modding capabilities are still in development. The best thing you can do is check out the assets and read other mods (the home defense something mod contains a lot of LUA) to see what's possible.

    If you have a specific idea or concept in mind that you would want to mod, it's far better if you explain that first. That way people can give you feedback on whether that specific thing is achievable with the current modding capabilities.
     
  3. Dilrax

    Dilrax Ketchup Robot

    you can use Notepad++ to pretty much do all your modding and i think i know what your talking about mystic, just on a different idea, though i dont think its easy to LUA everything, from my understanding of the files, the LUA's are your typical script files if i am right, though iv spent the past... 24hours trying to incorporate the use of a LUA in to the lines of code in a JSON (no spoilers here) with sadly no luck let alone it being hard enough to get one file to work...

    but who knows you might be able to with the right know how, also a good place to start might be the boss spawning items and tech LUA's, those use the LUA to do a couple of functions like spawn/create things, move/travel, though i dont really understand much of it so i cant help you there, alas it may be worth taking a look at, so i wish you the best of luck.
     
  4. coolsp0t

    coolsp0t Phantasmal Quasar

    JSON and the Starbound Fileformats are well documented.... Please write me a PM for more informations, because i hate Scriptkiddies. :)
    Writing a programm in C++ that interacts with the Client is possible, but not recommend!
    You can write a LUA Mod, whats the problem about that? The Client needs more AI Scripts. Atm it exists only 3 different NPC Scripts: Merchant, Villager & Guard.
    Look in the client ./assets/scripts/API <- here you can see which returns you can use for LUA.
     
    severedskullz likes this.
  5. Oh thats cool. Jordo finally added the rest of them in the API folder. Ive been linking everyone to the GitHub copy.
     

Share This Page