Tutorial S2F - Learning Basic Pixel art and Putting it into the Game

Discussion in 'Starbound Modding' started by The | Suit, Dec 21, 2013.

  1. Asatrix

    Asatrix Guest

    Can't wait for the Ebook. Seems like the right place to ask this. I am running a small private server and working on a matter manipulator mod that scales all the way to impervium. I recently found a pretty good sprite for it that the author has given permission for its use. I keep having issues when I try to make the first improvement use the "learnOnPickup" code. All its assets work, like the icon and menu images, and recipe. But in the crafting section it shows up as a perfectly generic item. Could I have you pm me and discuss the coding? I've looked and looked at other instance of the same code and can't figure out what's wrong. I want this up and running for my server so I don't want my players to suffer through expiremental stages of this.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    Perfectly generic item is usually due to unable to read the source file of the item.
    This could be due to usually 2 reasons.

    1. Your missing a Comma somewhere. .

    2. You misspelled the name associating it with something.
    For example you might have the obejct ID as mattermanipulator.

    But somewhere else called it supermattermanipulator - hence its pointing an item which doesn't exist. Spelling is extremely important.

    Easiest way to find out what is wrong where.
    Is first start the game. Use the item, create the perfectly generic item and use it.
    Then quit the game

    Open Starbound.log
    and look for the error message associated with the item.
     
  3. Asatrix

    Asatrix Guest


    This is what it's showing:
    Error: Could not instantiate item '[stonebeamaxe, 1, {}]'. ItemException: No such item 'stonebeamaxe'
    ... (3)
    00462F8A (E:/Steamworks/Starbound/git/starbound/source/frontend/StarCraftingInterface.cpp:519)
    ... (2)
    004BCDD3 (E:/Steamworks/Starbound/git/starbound/source/windowing/StarButtonWidget.cpp:185)
    004BDE0C (E:/Steamworks/Starbound/git/starbound/source/windowing/StarButtonWidget.cpp:104)
    004B3EB9 (E:/Steamworks/Starbound/git/starbound/source/windowing/StarPaneManager.cpp:173)
    ... (2)
    00402781 (E:/Steamworks/Starbound/git/starbound/source/client/StarClientApplication.cpp:280)
    0040A1C7 (E:/Steamworks/Starbound/git/starbound/source/application/StarApplicationBase.cpp:186)
    00407C30 (E:/Steamworks/Starbound/git/starbound/source/client/main.cpp:48)
    004DBBD1 (c:\SDL-1.2.15/./src/main/win32/SDL_win32_main.c:318)

    o.o it hasn't done this prior to me editing it. I'm grabbing the old asset to see if I can't repair it

    -.- found it had an extra comma
     
    Last edited by a moderator: Jan 26, 2014
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    Its always the Comma :p
     
  5. Desolator

    Desolator Pangalactic Porcupine

    dude THANK YOU SO MUCH!
    also, how would you update your mod when new patches and updates are released?
     
  6. The | Suit

    The | Suit Agent S. Forum Moderator


    Edit -
    Just read it wrong.
    Just update Modinfo file - with newest version name.
    As long as there are no drastic syntax changes that's all you have to do.
     
  7. pickandaxe

    pickandaxe Intergalactic Tourist

    i dont get the thing with merge or _merge or __merge , overwrite and delete , its somewhat confusing.

    if folder mod = assets , how is it loaded then mod first assets afterwards ?
     
  8. Desolator

    Desolator Pangalactic Porcupine

    im up to chapter 4, when i'm trying to find the code for an axe (weapon) theres nothing
    help?
     
  9. The | Suit

    The | Suit Agent S. Forum Moderator

    It loads the mod folder first - then "Corrects" to replace or add the assets. Which is why its important to maintain proper directory structure of mod.
    Note - this is probably changed in the latest version.

    Not sure which Axe you want.
    But what you can do is go to the assets folder

    [​IMG]

    where it says search assets in the top right.
    Type *axe
    asterix required
     
  10. Asatrix

    Asatrix Guest

    One problem I can't get the unpacker to work
     
  11. The | Suit

    The | Suit Agent S. Forum Moderator

    This tutorial will not be updated - for the newest version. Since I can't change the first and 2nd post anymore. [Forum Bug]
    So all the newest versions of the tutorial will come in a new thread
     
  12. Desolator

    Desolator Pangalactic Porcupine

    Ok, please tell us when you post the new version on the forum
     
  13. The | Suit

    The | Suit Agent S. Forum Moderator

    Ebook first draft should take a day or so.
    Its taken quite a bit of time with the formatting and document setting to say the least.

    But here is some Teaser images


    [​IMG]

    [​IMG]

     
    lambo517 and Kuroda_K like this.
  14. Kuroda_K

    Kuroda_K Subatomic Cosmonaut

    I'm having an odd problem this has been happening since the last update(Think its the updates fault) My animated object would show all frames as an object instead of just showing the first frame and cycling thru need a bit of assistance.

    This is my code for frames
    Code:
    {
      "frameGrid" : {
        "size" : [40, 32],
        "dimensions" : [6, 1],
        "names" : [
          [ "default.0", "default.1", "default.2", "default.3", "default.4", "default.5" ]
    
        ]
      },
    
      "aliases" : {
        "default.default" : "default.0"
      }
    }
    And this is the code for the object itself
    Code:
    {
      "objectName": "matterconverter",
      "rarity": "Uncommon",
      "description": "A machine that does the improvable.",
      "shortdescription": "Matter Converter",
      "race": "generic",
      "subtitle": "A break-thru in science!",
      "category": "crafting",
      "price": 200,
      "objectType": "container",
      "printable": false,
      "hydrophobic": true,
      "apexDescription": "This object has endless uses.",
      "avianDescription": "Anything can come out of this egg.",
      "floranDescription": "Crazy thing makesss weird noissssess.",
      "glitchDescription": "Awestruck. This machine can create endless possibilities.",
      "humanDescription": "I'd like to meet the mad scientist that made this.",
      "hylotlDescription": "This object mysterious like the tides...",
      "inventoryIcon": "matterconvertericon.png",
      "orientations": [
        {
          "dualImage": "matterconverter.png",
          "imagePosition": [
            0,
            0
          ],
          "frames": 6,
          "animationCycle": 0.5,
          "spaceScan": 0.1,
          "anchors": [
            "bottom"
          ],
          "collision": "platform"
        }
      ],
      "recipeGroup": "matterconverter",
      "openSounds": [
        "/sfx/objects/campfire_use.wav"
      ],
      "slotCount": 2,
      "uiConfig": "/interface/matterconverter/matterconverter.config",
      "frameCooldown": 67,
      "autoCloseCooldown": 3600
    }
    
     

    Attached Files:

  15. The | Suit

    The | Suit Agent S. Forum Moderator

    [/spoiler]

    you forgot to add the frame tag
    Code:
    "dualImage": "matterconverter.png:<frame>",
    Also you should always stick to a factor of 8.
    another words create the image to be 42 pixels [not really an issue but you will get clipping ]
     
    Kuroda_K likes this.
  16. Kuroda_K

    Kuroda_K Subatomic Cosmonaut

    Thanks for the look!
     
  17. JJLee

    JJLee Space Spelunker

    Does this allow you to use it in multiplayer too? I am making myself a sword
     
  18. The | Suit

    The | Suit Agent S. Forum Moderator

    Custom assets do not work in multilayer. [ without the other person also having the same mod ]
    Only modifications of vanilla code.
     
  19. coolsp0t

    coolsp0t Phantasmal Quasar

    If found some incorrected things in your Tut. But its a nice thing what you got done here.





    this thingy is far from good readable.

    Do this method for one item and open the list (look code above), if you will add more.

     
  20. The | Suit

    The | Suit Agent S. Forum Moderator

    Ya - thanks
    I knew about it for a while - the issue is those 2 posts caused some forum error. So they are no longer editable.
    Which is one reason why the tutorial is no longer updated anymore
     

Share This Page