Giter Club home page Giter Club logo

resourcepackconverter's Introduction

Resource Pack Converter

This is our 1.8-1.12 -> 1.13 Resource pack converter. We used this to do most of the grunt work to convert Hypixel's various resource packs for the 1.13 update.

We know that many use resource packs in nonstandard and quirky ways - but giving this a shot may reduce quite a bit of your pain and workload for the 1.13 conversion.

Please note again that while this code worked for the packs we use (ranging from 1.8 to 1.12 versions), it might not convert everything perfectly; You may need to fix some things by hand, some items may have been mapped wrong, some things are no longer possible in the newer version, etc. So please be sure to throughly test the results!

Also if any other developers would like to open any PRs with fixes and additions please feel free.

While this program will copy your resource packs before converting them, we still recommend backing them up, just in case!

Usage

Download the compiled jar file, or compile the source yourself.
The program will look for any valid resource packs in the current directory and is easily run by doing this.

java -jar ResourcePackConverter.jar

You can set the input directory using one of the following parameters. -i <path>, --input <path> or --input-dir <path>.

java -jar ResourcePackConverter.jar --input input/

We hope this helps out!

resourcepackconverter's People

Contributors

feelbetta avatar noxywoxy avatar plancke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resourcepackconverter's Issues

using?

Hi! i don't know anything about cmd prompt,java and ect...
i've read that i should put the java file in the rp folder and then do the cmd in the prompt thing,but it doesn't work, saying "unable to access jarfile ResourcePackConverter.jar"
i tried in administrator but still doesn't work
any help please?

How To Use?

I downloaded this file to update my small resource pack I'm making, but i have no idea how to use this. I saw something about putting a line in the command prompt, but I'm having trouble understanding if input directory is like the actual directory of the file? I have also tried putting the file in the resource pack and making a .bat file with the line meant for the command prompt (java -jar ResourcePackConverter.jar) but I'm still having problems. Sorry if this isn't the place to post this, or I'm wasting your time. I was just hoping I could save some time!

Animated textures

1.13 breaks the way certain animated textures work. this program did not fix the animated textures in the pack that i was updating. now im not sure what the changes that were made to animated textures are but the texture went from being a shine moving across the ore to this:
2018-07-20_13 44 49

Blockstates Support

The converter currently doesn't handle blockstate files. A lot of blockstates have been split up and turned into their own block ID. But even apart from that, there are two simple changes that would help a lot.

  • The paths to models now start in the models folder by default. > Prepend "block/" to all model paths.
  • The key for the default model inside “variants” is now an empty string “” instead of “normal”. > Rename all objects inside "variants" with the key "normal" to "".

Unfortunately, I don't know Java so I can't do a PR. Maybe someone else could.

help with usage please?

I downloaded the file, put it in my resource packs folder, opened my command line prompt, and pasted in the command as in the readme file. It didn't work. I tried renaming the file to match the command, removing "master" from the filename. That didn't work. Can you please tell me how to make this work? Sorry, I am a bit clueless about this. I just have a couple very small resource packs I want to convert and hoped this would make the task quick and painless.

Missing remaps

*_door_lower.png -> *_door_bottom.png
*_door_upper.png -> *_door_top.png
trapdoor.png -> oak_trapdoor.png
glass_purple.png -> purple_stained_glass.png
farmland_wet.png -> farmland_moist.png
trip_wire.png -> tripwire.png

1 line

This tool works very well for what its trying to do. i have but one issue, the end product in model and blockstate files is organized into one line instead of using the same format. this makes the code really hard to edit to fix what the tool missed. im not sure if it can be fixed but if it could keep the starting format (indents and line breaks) that would be much appreciated.

Missing convertion datas

Hi, this is very useful. However, when I tested it, the following data was missing.

  "hardened_clay_stained_purple": "purple_terracotta",
  "redstone_lamp_off": "redstone_lamp",

It would be great if you could add it. Thank you.

hopper

the model hopper_down in 1.12.2 inst renamed to hopper when converting.

transparency

I have recently tried to convert gnembon's 64x bushy leaves and came out with this:
2018-10-08_22 33 23
i cant really explain this but its not right all the transparency is mising. this is the source pack:
gnembon_bushy_leaves_x64.zip
any help is greatly appreciated!

Sound Converter: Doesn't consider the Sound Json element to be an Object

When this program converts the sounds, it fails to consider the possibility that a sounds array within the sounds.json could take the form:

"sounds": [ { "name": "example/1", "stream": false }]

instead of:

"sounds": ["example/1"]

therefore, it throws an exception when it tries to execute #getAsString on a JsonObject.

I made the quick fix for my use case to be

Path path = baseSoundsPath.resolve(jsonElement.getAsJsonObject().get("name").getAsString() + ".ogg");
                        if (!Util.fileExistsCorrectCasing(path)) {
                            String rewrite = path.toFile().getCanonicalPath().substring(baseSoundsPath.toString().length() + 1, path.toFile().getCanonicalPath().length() - 4);
                            if (PackConverter.DEBUG) System.out.println("      Rewriting Sound: '" + jsonElement.getAsJsonObject().get("name").getAsString() + "' -> '" + rewrite + "'");
                            sound = rewrite;

on line 44 and onwards of the SoundsConverter class.
However, it doesn't consider the stream parameter.

I have no knowledge on how resource pack jsons are meant to be set up.
So I'll leave this job up to you.

visual problem

So I had ctreated another issue earlier and figured it out myself, but now certain blocks, grass, sandstone, all stained glass, etc. are the placeholder texture. I'm going to try and see if I can fix this, but i would love help!

(p.s. horses are terrifying now!)
(Edit:fixed by replacing json files from blockstates and models with ones from a default pack)
2020-08-02_23 39 55

2020-08-02_23 38 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.