Modding Help [SOLVED] Help with new ore

Discussion in 'Starbound Modding' started by NaiJi, Jan 10, 2017.

Tags:
  1. NaiJi

    NaiJi Starship Captain

    Hello everyone! It's my first time when I'm trying to create mod, so, of course, I have a lot of problem with it. With Basic Guide without any obstacles I have replaced my own textures, changed the name and the description of coal. But it's not cool and very boring, so I have tried to create my own ore, but game's ignoring it!
    The name of ore is Coalite. I have created 2 folders:
    Starbound\mods\coalite\tiles\mods
    Starbound\mods\coalite\items\generic\crafting

    Into mods I have created coalite.mathmod and coalite.png with texture.
    The code of .mathmod:
    {
    "modId" : 11,
    "modName" : "coalite",
    "itemDrop" : "coaliteore",
    "description" : "Coalite ore.",
    "health" : 1,
    "harvestLevel" : 1,
    "breaksWithTile" : true,

    "miningSounds" : [ "/sfx/tools/pickaxe_ore.ogg", "/sfx/tools/pickaxe_ore2.ogg" ],
    "miningParticle" : "orespark",

    "renderTemplate" : "/tiles/classicmaterialtemplate.config",
    "renderParameters" : {
    "texture" : "coalite.png",
    "variants" : 8,
    "multiColored" : false,
    "zLevel" : 0
    }
    }
    Into crafting I have created coaliteore.item and coaliteore.png with texture.
    The code of .item:
    {
    "itemName" : "coaliteore",
    "price" : 4,
    "rarity" : "Common",
    "category" : "craftingMaterial",
    "inventoryIcon" : "coaliteore.png",
    "description" : "Look at this coalite. Like a coal, but cooler",
    "shortdescription" : "Coalite",
    "itemTags" : [ "reagent" ],

    "radioMessagesOnPickup" : [ "pickupcoalite" ]
    }
    :nurumad: this code won't work! Game is not changing and I can't find my new super-mega ore :'c

    It looks like I need to change code of biomes when, I supposed, Coalite should to be generated. But I don't know how and what exactly.
     
    Last edited: Jan 10, 2017
  2. lazarus78

    lazarus78 The Waste of Time

    What does your log file say? That is the first place you should always look. (And should always be posted too when asking for help)
     
  3. NaiJi

    NaiJi Starship Captain

    Where i can find my log file? It looks like i didn't create it.
    Thanks for the tip. I will remember :)
     
  4. lazarus78

    lazarus78 The Waste of Time

    ..\common\Starbound\storage

    There will be 6 files, you want the first one. Not the ones ending in a number.
     
  5. NaiJi

    NaiJi Starship Captain

    Wow! Just now Starbound isn't even opening! It seems... conflict between IDs. Okay, before it i didn't forget change ID of Coalite, but game was refusing to generate it.

    Code:
    [23:47:24.092] [Error] Application: exception thrown, shutting down: (ObjectException) Error loading object '/objects/biome/jungle/junglebush14/junglebush14.object': (MaterialException) Error loading mod file /tiles/mods/coalite.matmod
    Caused by: (MaterialException) Duplicate mod id 11 found for mod coalite
    [0] 13f203ee3 Star::captureStack
    [1] 13f202c6e Star::StarException::StarException
    [2] 13f4858ea Star::ObjectException::format<Star::String,Star::OutputProxy>
    [3] 13faf9b4f `Star::ObjectDatabase::readConfig'::`1'::catch$1013
     
  6. NaiJi

    NaiJi Starship Captain

    Now i will fix ID and start the game. After this i will write log's data here
     
  7. NaiJi

    NaiJi Starship Captain

    Code:
    [23:58:40.898] [Info] Root: Detected asset source named 'coaliteore' at '..\mods\coalite'
    Code:
    [23:58:41.883] [Info] Loading assets from: '..\mods\coalite'
    Well... that's all about coalite :nurusad:
     
  8. lazarus78

    lazarus78 The Waste of Time

    Post the whole log please. Just because nothing stands out to you, doesn't mean nothing is there. Experienced eyes can see things most do not.

    If there are no errors caused by your mod, then it is likely there is ntoting technically wrong with the coding, but it just isn't set up properly.


    Come to think of it, I re-read your first post... it sounds like you didn't add it to the ..\biomes\oredistrebutions.config
     
    bk3k and NaiJi like this.
  9. NaiJi

    NaiJi Starship Captain

    Okay, next time I will do it.
    Whoa! I get it!
     
    lazarus78 likes this.
  10. NaiJi

    NaiJi Starship Captain

    IT'S WORKING!!! Whoaaaa! I'm so damn happy my first mod IS WORKING! :nuruawe:

    Thank you, lazarus! Thank you very much!
     
    lazarus78 likes this.
  11. lazarus78

    lazarus78 The Waste of Time

    Congratz. Glad to help. I am almost always around if you have any more questions.
     
    Last edited: Jan 10, 2017
    NaiJi likes this.

Share This Page