Modding Help Race creation problem

Discussion in 'Starbound Modding' started by espilonarge, Dec 11, 2013.

  1. espilonarge

    espilonarge Big Damn Hero

    So I've been working on a new race to add to the game however, I've run in to a major problem that's causing issues.

    For some reason every time I go to test my race, instead of "highlighting" the new race, it switches to the Human race with white backgrounds. I've tried correcting the transparency issue, even went over all the config files to look for mistakes but it still refuses to select the new race.

    Because there isn't any real "tutorials" on creating races and there isn't any information on correcting issues like this, I desperately need help before I start tearing out my hair.
     
  2. Hapless

    Hapless Void-Bound Voyager

    Could we see your charcreation.config? Miss editing the species rediogroup seems the most likely problem.
     
  3. espilonarge

    espilonarge Big Damn Hero

    Code:
    {
    
      "textLabels" : [
        [ "SKIN COLOR", "HAIR STYLE", "SHIRT", "PANTS", "UNDY COLOR", "HAIR COLOR", "SHIRT COLOR", "PANTS COLOR", "HUMAN", "PERSONALITY" ],
        [ "FEATHER COLOR", "PLUMAGE", "SHIRT", "PANTS", "BEAK STYLE", "FLUFF", "SHIRT COLOR", "PANTS COLOR", "AVIAN", "PERSONALITY" ],
        [ "FUR COLOR", "HAIR STYLE", "SHIRT", "PANTS", "SKIN COLOR", "BEARD STYLE", "SHIRT COLOR", "PANTS COLOR", "APEX", "PERSONALITY" ],
        [ "SKIN COLOR", "FOLIAGE", "SHIRT", "PANTS", "LEAF COLOR", "FLOWER COLOR", "SHIRT COLOR", "PANTS COLOR", "FLORAN", "PERSONALITY" ],
        [ "SKIN COLOR", "FINS", "SHIRT", "PANTS", "BELLY COLOR", "FIN COLOR", "SHIRT COLOR", "PANTS COLOR", "HYLOTLS", "PERSONALITY" ],
        [ "PAINT COLOR", "HEAD MOD", "SHIRT", "PANTS", "LIGHTS COLOR", "DETAIL COLOR", "SHIRT COLOR", "PANTS COLOR", "GLITCH", "PERSONALITY" ],
        [ "FUR COLOR", "HAIR STYLE", "SHIRT", "PANTS", "MARKINGS", "HAIR COLOR", "SHIRT COLOR", "PANTS COLOR", "KANGA", "PERSONALITY" ]
      ],
      "paneLayout" : {
        "background" : {
          "type" : "background",
          "fileHeader" : "",
          "fileBody" : "/interface/title/charactercreation.png",
          "fileFooter" : ""
        },
        "labelSpeciesRadio" : {
          "type" : "label",
          "position" : [69, 200],
          "hAnchor" : "mid",
          "value" : "SPECIES"
        },
        "labelPortrait" : {
          "type" : "label",
          "position" : [168, 200],
          "hAnchor" : "mid",
          "value" : "HUMAN"
        },
        "labelMainSkinColor" : {
          "type" : "label",
          "position" : [52, 99],
          "hAnchor" : "mid"
        },
        "mainSkinColor" : {
          "type" : "spinner",
          "position" : [84, 99],
          "zlevel" : 1
        },
        "labelHairStyle" : {
          "type" : "label",
          "position" : [52, 87],
          "hAnchor" : "mid"
        },
        "hairStyle" : {
          "type" : "spinner",
          "position" : [84, 87],
          "zlevel" : 1
        },
        "labelShirt" : {
          "type" : "label",
          "position" : [52, 75],
          "hAnchor" : "mid"
        },
        "shirt" : {
          "type" : "spinner",
          "position" : [84, 75],
          "zlevel" : 1
        },
        "labelPants" : {
          "type" : "label",
          "position" : [52, 63],
          "hAnchor" : "mid"
        },
        "pants" : {
          "type" : "spinner",
          "position" : [84, 63],
          "zlevel" : 1
        },
        "labelPersonality" : {
          "type" : "label",
          "position" : [52, 51],
          "hAnchor" : "mid"
        },
        "personality" : {
          "type" : "spinner",
          "position" : [84, 51],
          "zlevel" : 1
        },
        "labelAlty" : {
          "type" : "label",
          "position" : [152, 99],
          "hAnchor" : "mid"
        },
        "alty" : {
          "type" : "spinner",
          "position" : [184, 99],
          "zlevel" : 1
        },
        "labelHeady" : {
          "type" : "label",
          "position" : [152, 87],
          "hAnchor" : "mid"
        },
        "heady" : {
          "type" : "spinner",
          "position" : [184, 87],
          "zlevel" : 1
        },
        "labelShirtColor" : {
          "type" : "label",
          "position" : [152, 75],
          "hAnchor" : "mid"
        },
        "shirtColor" : {
          "type" : "spinner",
          "position" : [184, 75],
          "zlevel" : 1
        },
        "labelPantsColor" : {
          "type" : "label",
          "position" : [152, 63],
          "hAnchor" : "mid"
        },
        "pantsColor" : {
          "type" : "spinner",
          "position" : [184, 63],
          "zlevel" : 1
        },
        "randomize" : {
          "type" : "button",
          "base" : "/interface/title/dice.png",
          "hover" : "/interface/title/diceover.png",
          "position" : [184, 115]
        },
        "randomName" : {
          "type" : "button",
          "base" : "/interface/title/dice.png",
          "hover" : "/interface/title/diceover.png",
          "position" : [184, 30]
        },
        "saveChar" : {
          "type" : "button",
          "base" : "/interface/button.png",
          "hover" : "/interface/buttonhover.png",
          "position" : [42, 13],
          "caption" : "Ok"
        },
        "cancel" : {
          "type" : "button",
          "base" : "/interface/button.png",
          "hover" : "/interface/buttonhover.png",
          "position" : [141, 13],
          "caption" : "Cancel"
        },
        "species" : {
          "type" : "radioGroup",
          "position" : [27, 170],
    
          "baseImage" : "/interface/title/button.png",
          "hoverImage" : "/interface/title/buttonover.png",
          "baseImageChecked" : "/interface/title/selected.png",
          "hoverImageChecked" : "/interface/title/selectedover.png",
    
          "buttons" : [
            {
              "id" : 0,
              "image" : "/interface/title/humanfemale.png",
              "position" : [0, 0]
            },
            {
              "id" : 1,
              "image" : "/interface/title/avianfemale.png",
              "position" : [27, 0]
            },
            {
              "id" : 2,
              "image" : "/interface/title/sapefemale.png",
              "position" : [54, 0]
            },
            {
              "id" : 3,
              "image" : "/interface/title/plantfemale.png",
              "position" : [0, -26]
            },
            {
              "id" : 4,
              "image" : "/interface/title/aquaticfemale.png",
              "position" : [27, -26]
            },
            {
              "id" : 5,
              "image" : "/interface/title/robotfemale.png",
              "position" : [54, -26]
            },
            {
              "id" : 6,
              "image" : "/interface/title/kangafemale.png",
              "position" : [54, 26]
            }
          ]
        },
        "gender" : {
          "type" : "radioGroup",
          "position" : [39, 114],
    
          "baseImage" : "/interface/title/button.png",
          "hoverImage" : "/interface/title/buttonover.png",
          "baseImageChecked" : "/interface/title/selected.png",
          "hoverImageChecked" : "/interface/title/selectedover.png",
    
          "buttons" : [
            {
              "id" : 0,
              "image" : "/interface/title/male.png",
              "position" : [0, 0]
            },
            {
              "id" : 1,
              "image" : "/interface/title/female.png",
              "selected" : true,
              "position" : [29, 0]
            }
          ]
        },
        "charPreview" : {
          "type" : "portrait",
          "position" : [167, 168],
          "scale" : 1.5
        },
        "name" : {
          "type" : "textbox",
          "position" : [62, 34],
          "hint" : "name",
          "maxWidth" : 70,
          "enterKey" : "saveChar",
          "escapeKey" : "cancel",
          "focus" : true
        }
      }
    }
    
    Edit - I've managed to fix the "transparency" issue (MSPaint doesn't retain transparency so I had to use Photoshop to fix the issue). This still doesn't solve the "unselectable" custom race issue though.
     
  4. OptimoosePrime

    OptimoosePrime Poptop Tamer

    Did you edit your species files for the new race to match the correct index?
     
  5. espilonarge

    espilonarge Big Damn Hero

    Well the good news is that after the issue was resolved, I've already made headway with bringing in my own race, the Kanga (might change it to Kangaru for a slightly unique twist)!

    I just need to work out how I'm going to "adjust" the color palette while being able to see the results in action (I'm a visual-artist, not a coder so it's difficult to predict the results).

    [​IMG]
     
    Insomnacious likes this.
  6. OptimoosePrime

    OptimoosePrime Poptop Tamer

    Looks great! A side note on the species icon though. If you move the other species icons over to the left a bit, you can add two races on the right next to them without overlapping anything. That's what I did anyway.
     
  7. espilonarge

    espilonarge Big Damn Hero

    I've managed to get the bootstrap.config to work. Just need to work on a few other details and it should be set for a bare-basic release. :)
     
  8. espilonarge

    espilonarge Big Damn Hero

    Ok, so I've hit a couple of snags that's delaying my progress.

    First. I've been trying to make color gradients for the sprites however, the process is taking far too long doing the whole trial-and-error way (especially changing the code over-and-over again). Surely someone knows of a tool that could simplify the process?

    Second. I've added eyebrows to the head sprite which uses the same color gradient that hair does however, the game will only change the color of the hair and not the eyebrows. Is there some way to fix this? I'm not code-savvy so I'm not sure what I would need to do to fix this.
     

Share This Page