Modding Help How do you change values now?

Discussion in 'Starbound Modding' started by Clocksmasher, Jan 30, 2014.

  1. Clocksmasher

    Clocksmasher Void-Bound Voyager

    I unpacked the assets and tried to change and place certain files now, but it doesn't work.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    Unpacking assets by it self doesn't do anything.
    Since the game reads only the packed.pak file.

    You either are going to have to create a mod for that value. [recommended]
    Or repack the asset file and replace the original one [not recommended]

    Numerous tutorials are available on how to create a new mod.
     
  3. Clocksmasher

    Clocksmasher Void-Bound Voyager

    They're all outdated, though, and only list when the files were in their exact folders. As of Furious Koala, the folders are there, but not the files themselves.
     
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    Nah you just forgot to unpack. the Files there is an announcement about it
    anyway
    Shameless advertising but
    http://community.playstarbound.com/...ial-starbound-unoffical-modding-e-book.67821/

    Useful is Useful.

    - Edit
    You said you unpacked... so how did the files disappear after unpacking.
     
  5. Clocksmasher

    Clocksmasher Void-Bound Voyager

    I didn't mean that, I mean, as-is in the assets folder, there's nothing there. Nothing to do with the .PAK or unpacking it.

    EDIT:

    Also, I don't really know if your modding guide pertains to my problem. All I wanna do is add certain items to one of the tutorial quests, like a Diamond Drill, or to change the values of some clothing.
     
    Last edited: Jan 31, 2014
  6. throttlekitty

    throttlekitty Scruffy Nerf-Herder

    What he's saying is that the files that you expect to see within the assets folder are now contained inside the .pak file. They need to be extracted somewhere first so you can work on your mod.
     
  7. Clocksmasher

    Clocksmasher Void-Bound Voyager

    Alright... so basically I have to make my changes... into a mod. Great. Sounds like a complicated process.
     
  8. intervencion

    intervencion Existential Complex

    Sounds like a MODification process.
     
  9. The | Suit

    The | Suit Agent S. Forum Moderator

    Aye - and that is what the Tutorial was for. How to make a mod.
     
    intervencion likes this.
  10. chrisgbk

    chrisgbk Subatomic Cosmonaut

    It's actually quite easy. There are two approaches to use. The first is simplest since it's almost the same as the old way, just instead of modifying a file in assets directly, you make your own modded copy of it. You CAN replace files outright, ie: use an entire copy of the file instead of using the __merge stuff below, and starbound will replace the entire file with your mod.


    A simple example of a mod, best for starting out:

    /mods/simple/items/tools/beamaxe.beamaxe
    Code:
    {
      "__merge" : [
        [ "overwrite", "fireTime" ],
        [ "overwrite", "blockRadius"]
      ],
    
      "fireTime" : 0.01,
      "blockRadius" : 5
    }

    /mods/simple/simple.modinfo
    Code:
    {
      "name" : "simple",
      "version" : "Beta v. Furious Koala",
      "path" : ".",
      "dependencies" : []
    }


    Alternatively, you can use the asset packer to pack the mod into .pak format, so you have

    /mods/simple/simple.pak
    Code:
    contains /items/tools/beamaxe.beamaxe from above
    
    /mods/simple/simple.modinfo
    Code:
    {
      "name" : "simple",
      "version" : "Beta v. Furious Koala",
      "path" : "./simple.pak",
      "dependencies" : []
    }
     
    Last edited: Feb 1, 2014
    intervencion likes this.
  11. Arucard

    Arucard Aquatic Astronaut

    So if I want to add new items, would I have to pack them or can I use the old method since it isn't altering vanilla items? I thought mods could be made exactly as before but for some reason I'm having problems with some rather simple changes.
     
  12. intervencion

    intervencion Existential Complex

    If you want new items, mod them and put the mod into /starbound/mods/ with a modinfo.modinfo, same as Angry Koala but w/out modify the bootrap.config ;)
     
    The | Suit likes this.

Share This Page