1. These forums are archived and available in read-only format. No new accounts may be created and content may not be added or edited. This archive is dedicated to hoshiwara.t who tragically passed away in April of 2015. She will be forever missed.

PNG to Starbound .json drawables

Discussion in 'Off-Topic' started by Sen, Oct 11, 2014.

  1. Sen

    Sen Guest

    Would anyone be butthurt if I release a tool here to convert image files (like .PNG) to Starbound .json drawables format? Basically, image goes in, text you paste into StarCheat comes out.

    I know they took it down on Chucklefish because of a certain group of eliti-.. I mean, because of concerns that someone could use it to make a goatse sword and show everyone goatse. So should I release it here, or should this be a "hush-hush PM only" sort of thing?
     
  2. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    We can always punish people for abusing the tool, so long as people take screenshots and report abusers.

    EDIT:
    I'm a fan of open source software and the sharing of software for the betterment of everyone.
    There'll always be abusers, but at least in this domain, we can take care of them.
     
    #2 Kazyyk, Oct 11, 2014
    Last edited by a moderator: Oct 11, 2014
  3. Aiko Ikari

    Aiko Ikari Guest

    Keep it quiet so the few of us that have it continue feeling special.
     
  4. Kumakin

    Kumakin New Member

    Joined:
    Mar 5, 2014
    Messages:
    306
    Likes Received:
    0
    Sounds fun. But, I feel like there will be penis cannons everywhere.
     
  5. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    Banhammer's been collecting dust lately.
     
  6. Kumakin

    Kumakin New Member

    Joined:
    Mar 5, 2014
    Messages:
    306
    Likes Received:
    0
    [​IMG]
     
  7. OmegaMatt

    OmegaMatt Last But Not Least

    Joined:
    Jan 4, 2014
    Messages:
    114
    Likes Received:
    20
    Your tool would output scaled and layered drawables like in that technicolor ship hull post you made a while back, yes? I'm very curious about how you approached that problem. I've written a quick and dirty script that cuts the number of drawables needed in about half for most my custom sprites.

    If people would like to see my source code, I'd be happy to share too, I just need to investigate a little bug before I can release it publicly.
     
  8. Sen

    Sen Guest

    I'm glad someone figured it out! :D

    I approached it a lot of times!

    I eventually even went to Stack Overflow to try and find "the" optimal solution, but I don't think that turned out so well (I can't remember what happened - I think I implemented one of the solutions offered, but then it didn't work so I spent a week trying to debug it and eventually gave up and used a more naive solution).

    https://github.com/Narks/SBImageConverter
    This is my git repo, but I do not think it is up to date (and the actual project is buried somewhere in my backups - I had to wipe the machine the project was on). If I recall correctly, I used not only the ?crop directive (to get rectangles), but also exploited it to get 45 degree diagonal lines and right-angled triangles of various sizes.
    edit: tl;dr its a mess at the moment

    That repo is not quite set up for creating weapon sprites, though - it's set up to create something else (which I'm not going to explain :p). I'll update it and release a tool that the layman can understand when I've made more progress on my other project.
     
    #8 Sen, Oct 13, 2014
    Last edited: Oct 13, 2014
  9. Shag

    Shag High Impact Sexual Implications

    Joined:
    Feb 22, 2014
    Messages:
    756
    Likes Received:
    92
    Meeeeem!
    -IS EXCITED!-
     
  10. Sammy McHammyDoodle

    Sammy McHammyDoodle New Member

    Joined:
    Jan 13, 2014
    Messages:
    415
    Likes Received:
    0
    This has been a long time ago but I'd also be excited to try and use this to make cool things.
     
  11. Shag

    Shag High Impact Sexual Implications

    Joined:
    Feb 22, 2014
    Messages:
    756
    Likes Received:
    92
    Yep, let's hope Sen-pai releases it soon for computers illiterate fools like me can use it c: