Modding Discussion New Updates and how it affects you!

Discussion in 'Starbound Modding' started by severedskullz, Jan 26, 2014.

Thread Status:
Not open for further replies.
  1. Check the actual gun itsself, not the recipie.
    When does this happen? Is this a custom UI that you are opening that throws the error?
     
  2. Del Rose

    Del Rose Seal Broken

    Thanks, but my mod have more of 50.000 files with 40 mb. I have to learn how to fix. But I have a hard time to understand some errors without a proper error report from my logs.

    In the angry koala work without problem, but in this current version I have to deal with strange errors.
     
  3. Del Rose

    Del Rose Seal Broken

    I have tons of customs. Custom UI to starmap, to character creation (with custom races), for each custom crafting tool, for each custom item and a custom toolbar. Without a way to find the exactly point of the error, I have to check blindly 50.000 files because I can't find exactly the right file to fix. Or at least, the right one to take as example.

    To have an idea of my problem, the image.cache generate a text file with each custom image of your mod. And because this, have some file size limits and can't be fixed if you have a large amount of images and you starbound game engine can't have enough file to handle. (At least, I think this because the error is related with the imagecache).

    My other problem is to find the correct file to fix.

    A partial code of the image.cache. Mine have more of 600 mb <_<
    Code:
    {"region":[["/interface/inventory/x.png",[0,0,8,10]],["/items/armors/apex/apex-tier1/icons.png:chest",[1,3,14,13]],["/items/armors/apex/apex-tier1/icons.png:head",[2,4,11,11]],["/items/armors/apex/apex-tier1/icons.png:pants",[3,2,13,13]],["/items/armors/apex/apex-tier10/icons.png:chest",[2,3,13,13]],["/items/armors/apex/apex-tier10/icons.png:head",[1,2,13,13]],["/items/armors/apex/apex-tier10/icons.png:pants",[2,1,13,14]],["/items/armors/apex/apex-tier2/icons.png:chest",[1,2,14,13]],["/items/armors/apex/apex-tier2/icons.png:head",[1,0,14,14]],["/items/armors/apex/apex-tier2/icons.png:pants",[3,2,13,13]],["/items/armors/apex/apex-tier3/icons.png:chest",[1,3,14,13]],["/items/armors/apex/apex-tier3/icons.png:head",[1,0,15,14]],["/items/armors/apex/apex-tier3/icons.png:pants",[3,2,13,13]],["/items/armors/apex/apex-tier4/icons.png:chest",[0,2,15,13]],["/items/armors/apex/apex-tier4/icons.png:head",[1,4,12,12]],["/items/armors/apex/apex-tier4/icons.png:pants",[4,2,13,13]],["/items/armors/apex/apex-tier5/icons.png:chest",[1,3,14,13]],["/items/armors/apex/apex-tier5/icons.png:head",[1,1,12,13]],["/items/armors/apex/apex-tier5/icons.png:pants",[3,1,13,14]],["/items/armors/apex/apex-tier6/icons.png:chest",[1,3,14,13]],["/items/armors/apex/apex-tier6/icons.png:head",[0,0,15,15]],["/items/armors/apex/apex-tier6/icons.png:pants",[3,1,13,14]],["/items/armors/apex/apex-tier7/icons.png:chest",[1,3,14,13]],["/items/armors/apex/apex-tier7/icons.png:head",[1,3,13,11]],["/items/armors/apex/apex-tier7/icons.png:pants",[3,2,13,13]],["/items/armors/apex/apex-tier8/icons.png:chest",[1,2,14,13]],["/items/armors/apex/apex-tier8/icons.png:head",[2,2,13,12]],["/items/armors/apex/apex-tier8/icons.png:pants",[3,2,12,13]],["/items/armors/apex/apex-tier9/icons.png:chest",[0,2,15,13]],["/items/armors/apex/apex-tier9/icons.png:head",[1,1,14,15]],["/items/armors/apex/apex-tier9/icons.png:pants",[2,1,13,14]],["/items/armors/apex/apexcommander/icons.png:chest",[2,2,13,13]],["/items/armors/apex/apexcommander/icons.png:pants",[4,2,12,13]],["/items/armors/apex/apexnavy/icons.png:chest",[2,2,13,13]],["/items/armors/apex/apexnavy/icons.png:pants",[4,2,12,13]],["/items/armors/apex/apexofficer/icons.png:chest",[2,2,13,13]],["/items/armors/apex/apexofficer/icons.png:pants",[4,2,12,13]],["/items/armors/apex/apexspecialist/icons.png:chest",[2,2,13,13]],["/items/armors/apex/apexspecialist/icons.png:pants",[4,2,12,13]],["/items/armors/aqua/aqua-kimono/icons.png:chest",[2,2,13,13]
     
    Last edited: Jan 26, 2014
  4. Kalivia

    Kalivia Yeah, You!

    Halp.

    Double from string all the way across the logs.
    It's so intense.
    What does it mean?
     
  5. means somewhere you have something like "1.0" instead of 1.0 in your bubblegun item. pastebin it and ill take a look.
     
  6. Pohany

    Pohany Parsec Taste Tester

    Thanks, finally I understood !!! Why not work
     
    Crystan likes this.
  7. dw420

    dw420 Void-Bound Voyager

    Easily remove the quotes from any entry of your configs.


    Example : "price" : "xxx" to "price" : xxx

    1.Open in notepad++ the files you want to edit. (hint: only .object files have a "price" defined)
    2. Press CTRL+F
    3. Click on the Replace tab (2nd from left to right)
    4.Check Regular expression (bottom left)
    5. Enter in the two fields the following
    Find what : field
    Replace with: field
    6. Press "Replace all"
    7. Check if the result is what you want...to undo press CTRL+Z
    8. Press "Replace in all open documents" (mass apply the same edit to the rest of your open configs)
    9.Save All
    10. Close all
    11. Come back to the forums and like my post because it saved you a few hours...
     
    Last edited: Jan 26, 2014
  8. HalcyonXIII

    HalcyonXIII Big Damn Hero

    @dw420 That only replaces lines where the price is 3 digits long though. Something like this would be more flexible:

    Find
    Code:
    "price" : "([0-9]+)",
    
    Replace
    Code:
    "price" : \1,
    
     
    Crystan likes this.
  9. Armed Mosquito

    Armed Mosquito Existential Complex

    If you guys get stuck im helping people solve some issues. Directly on skype, ik.gamedev just add me I will be more then happy to assist anyone who wants some help.

    Don't forget its not just price its values and values also mean true and false if its "true" its wrong if its true its right no quotes easy fix. For example if this was a gun you are working on gun and line 13 in your code says..

    "recoilTime" : "0.1",

    its wrong change it to

    "recoilTime" : 0.1,

    same for many others its not just price for those of you stumped on that situation.


    Add me via skype, send me your current crash log then well go from their, ik.gamedev
     
  10. Harag

    Harag Void-Bound Voyager

    Don't forget: JSON only knows numbers, so any number may contain a dot. Also, your regular expressions don't take into account that there may be arbitrary whitespace between the name and the value. I used these expressions to fix most of my problems:
    Code:
    ("size"\s*:\s*)"([0-9.]+)"
    ("amount"\s*:\s*)"([0-9.]+)"
    ("price"\s*:\s*)"([0-9.]+)"
    ("printable"\s*:\s*)"(true|false)"
    The first three all replace quoted numbers. The last one replaces quoted booleans. Because the name and whitespace are in their own matching group the replacement string simply becomes:
    Code:
    \1\2
     
    The | Suit, dw420 and HalcyonXIII like this.
  11. dw420

    dw420 Void-Bound Voyager

    Agreed, i just didn't want to complicate things from day one for the fella.
    Its easy to make the logical jump from xxx to [0-9][0-9][0-9]...while a lot harder to go from xxx to [0-9]+
     
  12. szhlopp

    szhlopp Void-Bound Voyager

    HELP!!!

    I don't even know where to begin debugging my mod... Starbound doesn't load when I put my mod into the folder. It just crashes. The log isn't updated.


    How on earth do I tell where to start???!??? Am I missing something? If I got conversion errors or anything at least I'd know what to find to fix. But my log's aren't updated, and the crash report that gets generated doesn't specify ANYTHING about my mod
     
  13. szhlopp

    szhlopp Void-Bound Voyager

    P.S.... FIXED

    DAMN. Figured it out... Updated the .modinfo to "Beta v. Furious Koala", and it loaded finally... Now I can see error messages.


    Code:
    Error: Error loading object file /objects/generic/toolstation/toolstation.object: VariantException: Improper conversion to int from string in get("price")

    From what I can tell, follow the error messages and fix them one at a time.
     
  14. AmaniWolf

    AmaniWolf Poptop Tamer

    Instead of making a new post I'll just ask here. Forgive me for being a total newb, but how do I access the files in order to make mods right now? I was getting semi-used to the old method of the files and now every file in my asset area is gone. Is there something special I need to do in order to look at the files?
     
  15. This has been asked numerous times, and there are dozens of topics covering this... Try searching the forums.
    http://community.playstarbound.com/...successfully-pack-and-unpack-pak-files.66649/
     
  16. NerArth

    NerArth Pangalactic Porcupine

    I wish they would leave notes about these things in a modding bit of the changes log or something. If it wasn't for posts like these from @severedskullz I'd be spending years looking for what the problem even was.

    Thank you more experienced coders for helping us less experienced.
     
    Holgast, severedskullz and The | Suit like this.
  17. The | Suit

    The | Suit Agent S. Forum Moderator

    starbound.log file
     
  18. The | Suit

    The | Suit Agent S. Forum Moderator

    Reason it - it changes so much. Constantly keeping it up2date would be a nightmare and a lot of time spent away from developing the base game.
    Hence its upto the community to keep it patched up until final build.
     
  19. Agreed. Even for my own mod (Which is so much simpler than entire game) it is still a pain to document every single change I've made to my code. The logger is more verbose than ever, so we atleast have very clear error messages that will pretty much tell you exactly what is wrong.
     
    The | Suit likes this.
  20. Harag

    Harag Void-Bound Voyager

    A Wiki is usually nice for this. With a litte care it's better organized than an endless list of threads and post. Easier to maintain, too: everybody can propose/do updates to the text.
     
Thread Status:
Not open for further replies.

Share This Page