Modding Help Player Scaling?

Discussion in 'Starbound Modding' started by BalsamicVinegar, May 10, 2014.

  1. BalsamicVinegar

    BalsamicVinegar Void-Bound Voyager

    So, I've been playing on an RP server recently. The server isn't modded, and there are no required mods or anything. Some people have been running around with little "mini characters." They're normal players shrunk down to half the size of anyone else. After seeing several of them, I decided to start looking for the way they do this. Keep in mind, there is no mod on the server to automatically do this. I've heard mentions of the (fe)malebody.frames files, and the size option in there:

    Code:
      "frameGrid" : {
        "size" : [43, 43],
        "dimensions" : [9, 6],
    I played around with it, but had no luck. After increasing or decreasing the size, I just become a suit of armor with an invisible player inside. I also tried resizing the body textures. I ended up with a headless, floating mini-me.

    Anyone have any idea how you would go about doing this?
     
  2. Maskrising

    Maskrising Subatomic Cosmonaut

    perhaps add "possiton to the code.. but ive been wondering this myself...
     
  3. the420urchin

    the420urchin Pangalactic Porcupine

    That's frame size and grid, take a look at this post it has everything you need. In this case "scale". The second code bracket should work, just change the number to ".5" or what have you.

     
  4. Maskrising

    Maskrising Subatomic Cosmonaut

    i dont quite understand where i would put these codes or how to work them yet -is quite new to modding-
     
  5. Kawa

    Kawa Tiy's Beard

    That thing I explained in the private conversation about directives. Scale is one, just like the color replacement and border things.
     
  6. BalsamicVinegar

    BalsamicVinegar Void-Bound Voyager

    I still don't understand where to put that. I haven't found any animation files to put them in. If I put them in the .frames I just end up invisible again. On a hunch, I tried putting it in the player.config and humanoid.config files, but those just crashed the game. I also put it into some armor files, but I just ended up with perfectly generic items. Any help is much appreciated.
     
  7. the420urchin

    the420urchin Pangalactic Porcupine

    It goes into the .frames file, my only guess is your not placing it right in the code. I haven't fully tested this yet though so I can't tell for sure what the problem would be without more info.
     
  8. prodamn

    prodamn Spaceman Spiff

    don't you have to put it after the image line in, for instance, the .object fiile ?

    the .frame file only tells the game what frame to use for what situation, doesn't it ?

    the

    "frameGrid" : {
    "size" : [43, 43],
    "dimensions" : [9, 6],

    only tells the game where it should cut out the frames in the file and what size the original image has ?

    in this case it should cut out an image from an image, size of 43,43, every 9th pixel horizontal and every 6th pixel vertical.
    if you set "size" : [43, 43], to IDK: "size" : [200, 200], and there is no image in the folder of the size 200x200 then you will see nothing, with a bit luck maybe some parts and bits of the image.

    There's no place to put ?scale=2 anywhere, in the frames file!

    the ?scale=2 should go... umm..
    yea.. where is the file?!
     
  9. the420urchin

    the420urchin Pangalactic Porcupine

    Again, keep in mind I have no reason to test this so I haven't bothered. But the .frame file handles all frames and animation and that's what was stated to be changed by the person that pointed to the original post. Unless I find the time to test stuff I can't help you further, just keep trying to find the correct placement in .frames as I am pretty much 99% positive that's where it has to go. Or maybe Kawa will come along and post a little help for you, but honestly it really should be as simple and a little experimenting should get you to an answer. Best of luck to you though, I hope you figure it out.
     
  10. Kawa

    Kawa Tiy's Beard

    Here I come to ruin your daaaay~

    Depending on what you intend to do, the frames file is not the way to go. See, frames file editing would make the game render larger cells -- that is, instead of, say, 43×43px it'd use 100×100 and you'd need entirely new graphics to go with it -- whereas directive scaling, as described here and here, would render the same 43×43 cells at a larger size, like 86×86. No new graphics data required, only some invasive sur-jer-ee on a player file.
     
  11. prodamn

    prodamn Spaceman Spiff

    With the small tiny detail that he CAN'T change the player scale from the .frames file,
    unless he crops the images and sets a new size aswell as the dimensions.

    Well then you probably have to see that this 1% you're not positive about it going into the .frames file is the case.

    a little experimenting:


    {
    "objectName" : "BlockBuilder",
    "rarity" : "Common",
    "description" : "All the blocks!",
    "shortdescription" : "BlockBuilder",
    "race" : "generic",
    "subtitle" : "All the blocks!",
    "category" : "crafting",
    "interactAction" : "OpenCraftingInterface",
    "interactData" : {
    "config" : "/interface/windowconfig/BlockBuilder.config",
    "filter" : [ "BlockBuilder" ]
    },
    "printable" : false,
    "price" : 50,
    "hydrophobic" : true,

    "inventoryIcon" : "BlockBuildericon.png",
    "orientations" : [
    {

    "dualImage" : "BlockBuilder.png:<color>.<frame>",
    "imagePosition" : [0, 0],
    "frames" : 4,
    "animationCycle" : 3,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "solid"

    }
    ]
    }




    That's my code, the object looks ingame like this:

    Untitled.png

    now let's take this one line from the other post where you can scale your images with.

    "image" : "<partImage>:default.<frame>?scale=2"

    now we compare this line with the lines in the code, before we do that we take a look at the .frames file of this object aswell.


    "frameGrid" : {
    "size" : [32, 32],
    "dimensions" : [4, 1],
    "names" : [
    [ "default.0", "default.1", "default.2", "default.3" ]

    ]
    },

    "aliases" : {
    "default.default" : "default.0"
    }
    }




    the frames file contains no "image" or anything similar , let's look in the object file:


    "orientations" : [
    {

    "dualImage" : "BlockBuilder.png:<color>.<frame>",
    "imagePosition" : [0, 0],
    "frames" : 4,
    "animationCycle" : 3,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "solid"

    }
    ]



    there it is! "dualimage"

    let's add ?scale=2 to "dualimage" :


    {
    "objectName" : "BlockBuilder",
    "rarity" : "Common",
    "description" : "All the blocks!",
    "shortdescription" : "BlockBuilder",
    "race" : "generic",
    "subtitle" : "All the blocks!",
    "category" : "crafting",
    "interactAction" : "OpenCraftingInterface",
    "interactData" : {
    "config" : "/interface/windowconfig/BlockBuilder.config",
    "filter" : [ "BlockBuilder" ]
    },
    "printable" : false,
    "price" : 50,
    "hydrophobic" : true,

    "inventoryIcon" : "BlockBuildericon.png",
    "orientations" : [
    {

    "dualImage" : "BlockBuilder.png:<color>.<frame>?scale=2",
    "imagePosition" : [0, 0],
    "frames" : 4,
    "animationCycle" : 3,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "solid"

    }
    ]
    }



    let's take a look how it appears ingame, shall we ?

    there we go! Massive BlockBuilder!!

    2.png

    Well this proves the point that ?scale=<value> doesn't belong in the frames file!
    And how people get smaller/larger stuff on servers.

    Now the other thing is, that i can't seem to find a file which acts like the object file for the character.
    i'm clueless on that.
     

    Attached Files:

    Last edited: May 12, 2014
    The | Suit and Kawa like this.
  12. the420urchin

    the420urchin Pangalactic Porcupine

    There ya go, prodamn and kawa got ya covered. I was just relaying info for your sake mostly from the other page to try and push you in the right direction, and the original posts talk about doing it in the frames files so I figured they knew what they were talking about. Glad someone who had the time to test stuff posted info for ya, hope I was at least some help.
     
    Kawa likes this.
  13. Maskrising

    Maskrising Subatomic Cosmonaut

    update" the scalign works on player file but the way they make there charecters on the ground involves the morphball tech... thats all i got to learn from them...
     
  14. ArtosVI

    ArtosVI Void-Bound Voyager

    What part of the player file did you put it in?
     
  15. prodamn

    prodamn Spaceman Spiff

    woop woop :p
     
    Last edited: May 22, 2014
  16. Derpiebird

    Derpiebird Phantasmal Quasar

    I would assume her own?
    You know, the playerfiles in the player folder?
     
    prodamn likes this.
  17. prodamn

    prodamn Spaceman Spiff

    woop :p
     
    Last edited: May 22, 2014
  18. Derpiebird

    Derpiebird Phantasmal Quasar

    Still no answer to what part of the player file to put this in?
     
  19. Kawa

    Kawa Tiy's Beard

    Okay, I'mma do it. I'mma do the thing.

    Key phrases: "explained at least three times", "look and act very wrong".
     
  20. Kawa

    Kawa Tiy's Beard

    Since that was all just theory, I've decided to be nice and put it into practice.

    Step 1: only add scale to the character's directives.
    whoopie1.png
    Let's ignore the filtering problems for now. That's just another directive to add that doesn't matter here.

    Step 2: add scales to the character's clothes.
    whoopie2.png
    Okay. Now all your stuff has to be adjusted and if you trade in MP it'll look as stupid as in the first pic. Nice.

    Step 3: try it out in actual gameplay!
    whoopie3.png
    Whoopie indeed.

    And that's why I suggest you don't RP a giant.
     
    BalsamicVinegar and prodamn like this.

Share This Page