Jump to content

New Texture Directory For Minecraft Forge 1.6.1


XxxXEclipse7XxxX

Recommended Posts

Why do people call it a pahimar setup? I've been using it since long before he showed it to everyone ><

 

Because he showed it to everyone.

Oh, and I tried to follow his tutorial to set myself up like that and I couldn't get it to work, so I said, "the hell with it, hard drive space is cheap" and just move things around as I need to.

 

Then i don't know, if you read the readme that dinnerbone put in the assets folder inside of MCP it says that anything placed there will be deleted on start-up.

 

I read the readme.  It's entirely unhelpful.  Because all it says (and you repeated it) is "don't put things here."  It does NOT say where they should go!

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

I've been trying to update my NBTEdit mod, which has a couple of GUI textures.

 

I first tried "assets/nbtedit/textures/gui/..." and a similar ResourceLocator,

 

 

public static final ResourceLocation TEXTURE = new ResourceLocation("nbtedit", "textures/gui/widgets.png");

 

That of course didn't work, but, if I move my textures to "assets/minecraft/nbtedit/textures/gui/..." and use this code, it works.

 

public static final ResourceLocation TEXTURE = new ResourceLocation("nbtedit/textures/gui/widgets.png");

 

Now, I dug into the problem, and here are my findings. SimpleReloadableResourceManager attempts to load the texture with a call to func_110536_a(ResourceLocation), which then uses the first string (normally "minecraft", attempted to set for my mod "nbtedit") to locate a ResourceManager from its ResourceManager map. Of course, nothing is mapped to "nbtedit". The reason one is mapped to "minecraft" is because in a call to SimpleReloadableResourceManager.func_110545_a(ResourcePack), the default resource pack is loaded, which contains an immutable set of strings to map with a FallbackResourceManager. The set only contains "minecraft", and when it sees "nbtedit" later, it crashes instead of creating a new FallbackResourceManager. I believe we need to wait for a proper Forge implementation of "AbstractResourcePack" or an edit of SimpleReloadableResourceManager.

Link to comment
Share on other sites

Why do people call it a pahimar setup? I've been using it since long before he showed it to everyone ><

 

Then i don't know, if you read the readme that dinnerbone put in the assets folder inside of MCP it says that anything placed there will be deleted on start-up.

i tryed to use your version but i get this error insted

2013-07-02 19:28:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_7258_Steel-Ingot.png

Link to comment
Share on other sites

As for locations, here is what's working for me at the moment:

 

1) Within Eclipse/Forge/MCP:

- Keep setup the same: {modid}\textures\{items/blocks}\name.png

 

2) After recompiling & obfuscation, ready for live play:

\assets\{modid}\textures\items\name.png

Unfortunately, blocks does not seem to be playing by the same rule for me *despite* the following:

 

3) After opening the 1.6.1 jar in .minecraft/versions/, this is what I'm finding:

\assets\{modid}\textures\blocks\

\assets\{modid}\textures\items\

\assets\{modid}\textures\entities\{mobtype}\name.png

GUI, paintings, items, misc, and all that is in that \textures\(subfolder)\ as well.

 

I'm wondering if the blocks' textures need to be coded differently, even though there's no apparent errors in Eclipse for my code.

Link to comment
Share on other sites

As for locations, here is what's working for me at the moment:

 

1) Within Eclipse/Forge/MCP:

- Keep setup the same: {modid}/textures/{items/blocks}/name.png

 

And where does this folder go?

 

2) After recompiling & obfuscation, ready for live play:

- Items - assets/{modid}/{textures}/items/name.png

Unfortunately, blocks does not seem to be playing by the same rule.  assets/{modid}/{textures}/tiles/name.png does *not* work for me.

 

/tiles?  don't you mean /blocks?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

And where does this folder go?

 

My apologies.  Full file paths, for my setup; first set is with the .class files after recompilation, second set is with the .java files before recompilation:

C:\Files\forge\mcp\eclipse\Minecraft\bin\mods\minehack\textures\items\name.png

C:\Files\forge\mcp\eclipse\Minecraft\bin\mods\minehack\textures\blocks\name.png

 

C:\Files\forge\mcp\src\minecraft\mods\minehack\textures\items\name.png

C:\Files\forge\mcp\src\minecraft\mods\minehack\textures\blocks\name.png

 

/tiles?  don't you mean /blocks?

 

I mean both. :)  It was a random idea; on mouseover in live, the blocks have 'tile.Antigonite.name' for instance, so I figured it was worth checking to see if might have been changed to \tiles\ instead of \blocks\.  Not so, sadly.

Link to comment
Share on other sites

mcp/eclipse/Minecraft/bin/assets/minecraft/ seems to be working if you're using ResourceLocation.

 

Ie...

 

new ResourceLocation("infection/textures/entity/walker.png");

 

=

 

mcp/eclipse/Minecraft/bin/assets/minecraft/infection/textures/entity/walker.png

 

If you want something that works for the time being without going in and editing the jar.

Link to comment
Share on other sites

I have had the same problem as others and have found the solution.

 

Assets are loaded from the icon registry at a different time than they used to be. You must register your icons during the PRE INIT not during the INIT. Otherwise they will not be in the icon registry when the assets are loaded.

 

Hope that helps.  ;)

 

EDIT: Just to confirm, the directory is the same as before but "assets" instead of "mods".

Link to comment
Share on other sites

Can you still use that in forge build 758, as they made this change...

 

"Resource packs, part two. FML mods are now resource packs. Vanilla will scan anything under 'assets' and turn it into a resource prefix. Use resourcelocations to look stuff up."

 

Edit: Never mind, that does work.

Link to comment
Share on other sites

You must register your icons during the PRE INIT not during the INIT.

 

And how does one do that?

Forge calls registerIcons, not [my main mod file].

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

ResourcePacks *should* be refreashed after all mods are loaded.

Make sure you're using the latest version of Forge.

the proper place to pt your asses is in: /mcp/src/minecraft/assets/{modname}

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Lex, I tried that but it wouldn't work. I tried outside of a /mcp/src/minecraft/assets/{modname}/textures and inside. Neither work. Where do I put the textures?

 

EDIT: I finally got to a live version of files.minecraftforge.net. I'm going to update and see what happens!

 

EDIT: Still didn't work.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Link to comment
Share on other sites

ResourcePacks *should* be refreashed after all mods are loaded.

Make sure you're using the latest version of Forge.

the proper place to pt your asses is in: /mcp/src/minecraft/assets/{modname}

 

It is not doing that in the latest version on the file server, you have to put all LanguageRegistry calls in preInit for the names and textures to be found correctly.  It might need more, my init method is basically LanguageRegistry, GameRegistry, OreDictionary, and instantiations, so I just grabbed most of it and moved it over.  I also added in pack.mcmeta file under assets/modname and almost all of my textures loaded with no other changes to the code.  The only one that didn't work after that was my hacked together test block, and that was because I used setUnlocalizedName as the texture reference.  My gui textures aren't loading though, so that's next on my list of stuff to fix tomorrow, probably a reference issue.  I have it updated on my Github (https://github.com/Malorolam/Carbonization) so there is a more complex example to look at for block and item textures.

Link to comment
Share on other sites

I'm blaming Mojang for some of this nonsense.

 

If you take a look in FolderResourcePack.java

if (!s.equals(s.toLowerCase()))
{
    this.func_110594_c(s);
}

 

which roughly translates as:

if mod name contains upper case letters, then throw an error and refuse to do anything with it.

 

Anyone happen to know which string it uses in this function, eg is it Mod.modid, Mod.name or something else ?

Link to comment
Share on other sites

I'm blaming Mojang for some of this nonsense.

 

If you take a look in FolderResourcePack.java

if (!s.equals(s.toLowerCase()))
{
    this.func_110594_c(s);
}

 

which roughly translates as:

if mod name contains upper case letters, then throw an error and refuse to do anything with it.

 

Anyone happen to know which string it uses in this function, eg is it Mod.modid, Mod.name or something else ?

 

String s is the return from a function that takes in two files, one of which appears to be the main directory to the assets folder, the other appears to be the mod specific file locations, i.e. the <modname>/textures/blah part, all of which should normally return all lowercase.

 

From what I see, if it throws the error it's because there is actually an error, and the basic Java file structure stuff broke somehow.

Link to comment
Share on other sites

ResourcePacks *should* be refreashed after all mods are loaded.

Make sure you're using the latest version of Forge.

the proper place to pt your asses is in: /mcp/src/minecraft/assets/{modname}

 

It is not doing that in the latest version on the file server, you have to put all LanguageRegistry calls in preInit for the names and textures to be found correctly.  It might need more, my init method is basically LanguageRegistry, GameRegistry, OreDictionary, and instantiations, so I just grabbed most of it and moved it over.  I also added in pack.mcmeta file under assets/modname and almost all of my textures loaded with no other changes to the code.  The only one that didn't work after that was my hacked together test block, and that was because I used setUnlocalizedName as the texture reference.  My gui textures aren't loading though, so that's next on my list of stuff to fix tomorrow, probably a reference issue.  I have it updated on my Github (https://github.com/Malorolam/Carbonization) so there is a more complex example to look at for block and item textures.

I would like to know what a pack.mcmeta file is and what it should contain

Don't tell me to learn the basics of java, I already know.

Link to comment
Share on other sites

I would like to know what a pack.mcmeta file is and what it should contain

 

Apparently this:

 

{
"pack": 1,
"description": "Forge Mod Defaults"
}
}

 

Not that adding it to my project made any difference what so ever.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

 

Which is, sadly, no more helpful than this thread.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

it has worked for alot of people! :P if you actually followed it correctly!

 

Please sir, inform me as to what I'm doing wrong.

https://dl.dropboxusercontent.com/u/7950499/src.zip

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • ASIABET adalah pilihan terbaik bagi Anda yang mencari slot gacor hari ini dengan server Rusia dan jackpot menggiurkan. Berikut adalah beberapa alasan mengapa Anda harus memilih ASIABET: Slot Gacor Hari Ini Kami menyajikan koleksi slot gacor terbaik yang diperbarui setiap hari. Dengan fitur-fitur unggulan dan peluang kemenangan yang tinggi, Anda akan merasakan pengalaman bermain yang tak terlupakan setiap kali Anda memutar gulungan. Server Rusia yang Handal Kami menggunakan server Rusia yang handal dan stabil untuk memastikan kelancaran dan keadilan dalam setiap putaran permainan. Anda dapat bermain dengan nyaman tanpa khawatir tentang gangguan atau lag. Jackpot Menggiurkan Nikmati kesempatan untuk memenangkan jackpot menggiurkan yang dapat mengubah hidup Anda secara instan. Dengan hadiah-hadiah besar yang ditawarkan, setiap putaran permainan bisa menjadi peluang untuk meraih keberuntungan besar.
    • Sonic77 adalah pilihan tepat bagi Anda yang menginginkan pengalaman bermain slot yang unggul dengan akun pro Swiss terbaik. Berikut adalah beberapa alasan mengapa Anda harus memilih Sonic77: Slot Gacor Terbaik Kami menyajikan koleksi slot gacor terbaik dari provider terkemuka. Dengan fitur-fitur unggulan dan peluang kemenangan yang tinggi, Anda akan merasakan pengalaman bermain yang tak terlupakan. Akun Pro Swiss Berkualitas Kami menawarkan akun pro Swiss yang berkualitas dan terpercaya. Dengan akun ini, Anda dapat menikmati berbagai keuntungan eksklusif dan fasilitas premium yang tidak tersedia untuk akun reguler.
    • SV388 SITUS RESMI SABUNG AYAM 2024   Temukan situs resmi untuk sabung ayam terpercaya di tahun 2024 dengan SV388! Dengan layanan terbaik dan pengalaman bertaruh yang tak tertandingi, SV388 adalah tempat terbaik untuk pecinta sabung ayam. Daftar sekarang untuk mengakses arena sabung ayam yang menarik dan nikmati kesempatan besar untuk meraih kemenangan. Jelajahi sensasi taruhan yang tak terlupakan di tahun ini dengan SV388! [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]   JURAGANSLOT88 SITUS JUDI SLOT ONLINE TERPERCAYA 2024 Jelajahi pengalaman judi slot online terpercaya di tahun 2024 dengan JuraganSlot88! Sebagai salah satu situs terkemuka, JuraganSlot88 menawarkan berbagai pilihan permainan slot yang menarik dengan layanan terbaik dan keamanan yang terjamin. Daftar sekarang untuk mengakses sensasi taruhan yang tak terlupakan dan raih kesempatan besar untuk meraih kemenangan di tahun ini dengan JuraganSlot88 [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]
    • Slot Bank MEGA atau Daftar slot Bank MEGA bisa anda lakukan pada situs WINNING303 kapanpun dan dimanapun, Bermodalkan Hp saja anda bisa mengakses chat ke agen kami selama 24 jam full. keuntungan bergabung bersama kami di WINNING303 adalah anda akan mendapatkan bonus 100% khusus member baru yang bergabung dan deposit. Tidak perlu banyak, 5 ribu rupiah saja anda sudah bisa bermain bersama kami di WINNING303 . Tunggu apa lagi ? Segera Klik DAFTAR dan anda akan jadi Jutawan dalam semalam.
    • ladangtoto situs resmi ladangtoto situs terpercaya 2024   Temukan situs resmi dan terpercaya untuk tahun 2024 di LadangToto! Dengan layanan terbaik dan keamanan yang terjamin, LadangToto adalah pilihan utama untuk penggemar judi online. Daftar sekarang untuk mengakses berbagai jenis permainan taruhan, termasuk togel, kasino, dan banyak lagi. Jelajahi sensasi taruhan yang tak terlupakan dan raih kesempatan besar untuk meraih kemenangan di tahun ini dengan LadangToto!" [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.