Modding Help [Sovled]Small Issue with Uploading to steam workshop.

Discussion in 'Starbound Modding' started by Nickh90, Nov 22, 2016.

Tags:
  1. Nickh90

    Nickh90 Void-Bound Voyager

    Hello I've just started out making mods for starbound. This one is more of a tweak of the Z-01 Tau Mech from ZZ's pack.
    I wanted the Minigun to fire faster than once every half to one second.

    I've got the mod working on Starbound running without steam however I've uploaded it the the Steam workshop and it seems to not effect anything on the mech. I'm pretty sure it has to do with the paths for my .patch files.
    Heres all the stuff.


    Code:
    {
      "author" : "Nick Hewitt",
      "description" : "This is a Tweak of the Z-01 Tau Mech from ZZ extra XS mechs.\nI take no credit for making this Except tweaking Somethings to my liking Such as Increasing the mech's minigun fire rate,health and armor.\nAll credit goes to the orginal creators.",
      "friendlyName" : "Z-01 Tau Mech Tweak",
      "link" : "steam://url/CommunityFilePage/804049973",
      "name" : "tau_mech_tweak",
      "steamContentId" : "804049973",
      "version" : "1.0",
      "priority" : 99
    }



    Code:
    {
      "name" : "mod_xsmech_variants",
      "path" : ".",
      "dependencies" : [ ],
      "metadata": {
        "description" : "Z-01 Tau Mech Tweak",
        "author" : "Nick Hewitt",
        "requires" : ["mod_xsmech","mod_xsmech_variants"],
        "update_by" : "Nick Hewitt",
        "version" : "1.0"
      }
    }


    Code:
    [
      {
        "op": "replace",
        "path": "/maxHealth",
        "value": 500000
      },
      {
        "op": "replace",
        "path": "/protection",
        "value": 14000
      },
      {
        "op": "replace",
        "path": "/mechFireCycle",
        "value": 0.35
      }
    ,
      {
        "op": "replace",
        "path": "/mechGunFireCone",
        "value": 0.35
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerSecond",
        "value": 5
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerSecondCannon",
        "value": 5
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerPrimaryShot",
        "value": 5
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerAltShot",
        "value": 5
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerSecondRunning",
        "value": 5
      }
    ,
      {
        "op": "replace",
        "path": "/energyCostPerSecondHovering",
        "value": 5
      }
    ]
    


    Thanks in advance for any help.
    Edit1: I checked and it does get loaded after both of the required mods
     
    Last edited: Nov 22, 2016
  2. Nickh90

    Nickh90 Void-Bound Voyager

    I have solved this Issue as of 4:57 am
    I goofed up and had two of the same variables in my Animation.patch and forgot to change the name on the pak.modinfo file.
     
  3. bk3k

    bk3k Oxygen Tank

    Seeing these files, I can tell you are confused on multiple fronts.

    .modinfo files do still work for manual(forum downloaded) installation, but are deprecated.
    metadata files have taken their place, and having both means Starbound will attempt to load your mod contents twice. These files both do the same job.
    You have a different "name" set in both for whatever reason(error because the same name defined?). Delete the .modifo file and move the needed attributes to the metadata file.

    You don't need "priority" for what you're doing.
    You do want the
    Code:
    "requires" : ["mod_xsmech"],
    So that this mod won't load without that mod, and this mod will always load after. Thus priority isn't needed. But put that in the metadata file.

    I can't begin to imagine why you have your own mod(same name in the very same file even) listed under "requires" because there is no scenario where that would be useful. I rather expect that also causes an error in your log.

    In case that didn't clear up anything, let me just give you the _metadata file you need.

    Code:
    {
      "author" : "Nick Hewitt",
      "description" : "This is a Tweak of the Z-01 Tau Mech from ZZ extra XS mechs.\nI take no credit for making this Except tweaking Somethings to my liking Such as Increasing the mech's minigun fire rate,health and armor.\nAll credit goes to the orginal creators.",
      "friendlyName" : "Z-01 Tau Mech Tweak",
      "link" : "steam://url/CommunityFilePage/804049973",
      "name" : "tau_mech_tweak",
      "requires" : ["mod_xsmech"],
      "steamContentId" : "804049973",
      "version" : "1.0"
    }
    

    And again delete the needless .modinfo file

    --edit--
    Now without comparing to the source, I don't see any particular problem with your patch. You can test that patch here.

    Anyhow if it works when put in /mods/ then it wouldn't be the patching paths. I rather expect my advice here would fix the issue.
     
    Last edited: Nov 23, 2016
  4. Nickh90

    Nickh90 Void-Bound Voyager

    Thanks for the Reply It helped clear some stuff up.
    I've gotten the mod to function correctly now before your post.
    and the problem with the patch was not in the one posted above but in an .animation.patch file.
    And yeah I used the one mech mod's .modinfo as a template and forgot to change the name which Caused the problem but seeing as i don't need the .modinfo file I'll remove that later.
     

Share This Page