Jump to content

[1.15.2] Items and Blocks Cannot Locate Textures


Techmo

Recommended Posts

Hello!

I am a fairly experienced programmer in other languages, but virtually a noob to minecraft modding. I'm getting the hang of it, but have hit a bit of a road block. I have some items that, despite their textures being very obviously existent, they refuse to show anything ingame other than the pink and black "no texture". I have no idea why it's doing this, as it SHOULD be all defined as far as I can see. Nothing is missing. I am aware that at this point in time the mod doesn't really do anything apart from add some blocks and items, it is still a work in progress in it's early stages.

 

Mod Download: https://www.mediafire.com/file/rasmac9qa2qvgnq/TutorialMod.zip/file

 

The issue is that despite the fact that "tutorial_ore" works perfectly fine without a care in the world, "silver_ore" cannot find it's texture for some reason. Infact, silver_ore, lithium_ore, silver_ingot and lithium_ingot cannot find their textures. I do not understand what I've missed. They spawn into the world perfectly fine, and they pop up in the creative tab "Scientific Advancements", but it just refuses to find it's texture. I've been working on this for about a week now, and I have decided that I cannot do this on my own. I need a fresh set of eyes to find out what I've missed. My project cannot continue until I have found what the issue is.

 

As far as I can see, the items/blocks that cannot find their textures SHOULD be almost identical copies of tutorial_block and tutorial_item, which work perfectly fine. I really cannot figure this one out, and any help is appreciated

Thanking you in advance,

Techmo

Edited by Techmo
Zip file didn't upload, so I just added a mediafire download link
Link to comment
Share on other sites

30 minutes ago, Techmo said:

Hello!

I am a fairly experienced programmer in other languages, but virtually a noob to minecraft modding. I'm getting the hang of it, but have hit a bit of a road block. I have some items that, despite their textures being very obviously existent, they refuse to show anything ingame other than the pink and black "no texture". I have no idea why it's doing this, as it SHOULD be all defined as far as I can see. Nothing is missing. I am aware that at this point in time the mod doesn't really do anything apart from add some blocks and items, it is still a work in progress in it's early stages.

 

Mod Download: https://www.mediafire.com/file/rasmac9qa2qvgnq/TutorialMod.zip/file

 

The issue is that despite the fact that "tutorial_ore" works perfectly fine without a care in the world, "silver_ore" cannot find it's texture for some reason. Infact, silver_ore, lithium_ore, silver_ingot and lithium_ingot cannot find their textures. I do not understand what I've missed. They spawn into the world perfectly fine, and they pop up in the creative tab "Scientific Advancements", but it just refuses to find it's texture. I've been working on this for about a week now, and I have decided that I cannot do this on my own. I need a fresh set of eyes to find out what I've missed. My project cannot continue until I have found what the issue is.

 

As far as I can see, the items/blocks that cannot find their textures SHOULD be almost identical copies of tutorial_block and tutorial_item, which work perfectly fine. I really cannot figure this one out, and any help is appreciated

Thanking you in advance,

Techmo

First , what program do you use , intellij or eclipse ide?

Link to comment
Share on other sites

25 minutes ago, Techmo said:

I use eclipse. I wasnt aware there was any difference sorry.

Ok .. If you are using eclipse , go on your project folder and search for "bin":

Untitled.png.590bae8ad00f60c20a2eb111332dfff5.png

Now check if you have any resources in your bin folder , like blockstates , models, textures(.json or .png files) ..

Link to comment
Share on other sites

That is so bizarre. I do see the mistake I've made. So then question of the day becomes: "Being that I've never touched the "bin" folder before in my life, how have some of the texture files made it in there in the first place when I never put them there? Because that is the remaining mystery"

Link to comment
Share on other sites

2 minutes ago, Techmo said:

That is so bizarre. I do see the mistake I've made. So then question of the day becomes: "Being that I've never touched the "bin" folder before in my life, how have some of the texture files made it in there in the first place when I never put them there? Because that is the remaining mystery"

The bin folder its like your "run mod folder" but separatly !

I have a temporary solution for you: try to copy your src resources folders in your bin.main folder

I wash having the same problem , and the only permanent solution that I can tell you about is to switch eclipse with intellij, because you have to copy your resources to that bin folder evry time you add something new !

Hope that helps you! 

Link to comment
Share on other sites

Thanks so much for your help! I've already got everything working the way I want it in eclipse, so I might just make a python file that deletes the contents of the bin file, then just repopulates it with the resources from the "src" folder. It's like 10 minutes of coding for me, not even, so I'll just do that.

 

To anyone that reads this like a year down the line, the solution is to delete the contents of the "bin" file, then put the contents of your "src" file into your "bin" file.

 

Thanks for your help Wintersky20, and I hope you have a wonderful day!

  • Like 1
Link to comment
Share on other sites

3 minutes ago, Techmo said:

Thanks so much for your help! I've already got everything working the way I want it in eclipse, so I might just make a python file that deletes the contents of the bin file, then just repopulates it with the resources from the "src" folder. It's like 10 minutes of coding for me, not even, so I'll just do that.

 

To anyone that reads this like a year down the line, the solution is to delete the contents of the "bin" file, then put the contents of your "src" file into your "bin" file.

 

Thanks for your help Wintersky20, and I hope you have a wonderful day!

I'm glad I was able to help you 

Have a wonderful day too!

Link to comment
Share on other sites

1 hour ago, Techmo said:

I use eclipse. I wasnt aware there was any difference sorry.

There isn't much of a difference other than setting up Gradle.

However Eclipse does not automatically refresh project files when they are changed on disk.

 

32 minutes ago, Wintersky20 said:

I wash having the same problem , and the only permanent solution that I can tell you about is to switch eclipse with intellij, because you have to copy your resources to that bin folder evry time you add something new !

You don't have to. If you manually changed something on disk (outside of Eclipse), you can refresh the project files to publish the new changes.

 

14 minutes ago, Techmo said:

To anyone that reads this like a year down the line, the solution is to delete the contents of the "bin" file, then put the contents of your "src" file into your "bin" file.

This won't be necessary.

Simply right click in the files viewer in Eclipse and click "Refresh".

Edited by DavidM
  • Thanks 1

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

5 minutes ago, DavidM said:

There isn't much of a difference other than setting up Gradle.

However Eclipse does not automatically refresh project files when they are changed on disk.

 

You don't have to. If you manually changed something on disk (outside of Eclipse), you can refresh the project files to publish the new changes.

 

This won't be necessary.

Simply right click in the files viewer in Eclipse and click "Refresh".

Actually I was trying this , and did no work for me !

The only permanent solution that I found , as I said previously is to switch eclipse with intellij ..

Or , an solution that I don't tryed is to update the eclipse and gradle editor , but i dont think this solves the problem!

And @DavidM, thanks for reminding me to update my eclipse and intellij , you rock !

Link to comment
Share on other sites

Yep, for literally anything else, hitting refresh does solve it. BUT, the only exception seems to be the textures folder. It will refresh everything except "bin/main/assets/YOURMODNAME/textures" folder for some reason. I would presume it's either a bug, or a piece of code that was missed somehow in development. Easy fix though

 

As for a permanant solution, I don't really need one. I got to run a python file every time I build the project, as it sorts out some things like transparancy on certain images (Filtered out only pixels with the exact value of 255,255,255. 255,255,254 will be left as white for example), as well as doing mod backups and stuff. SO, I just added a tiny bit of code to the end of the file that copies across the folder to how it SHOULD be. Problem solved. As it runs every single time I make a file-based change, it acts like my own customised permanent solution

 

I love mixing different languages together in a giant frankenstein mess that somehow works. Makes for a fun challange for someone like me that knows so many languages

Edited by Techmo
Link to comment
Share on other sites

8 minutes ago, Techmo said:

Yep, for literally anything else, hitting refresh does solve it. BUT, the only exception seems to be the textures folder. It will refresh everything except "bin/main/assets/YOURMODNAME/textures" folder for some reason. I would presume it's either a bug, or a piece of code that was missed somehow in development. Easy fix though

 

As for a permanant solution, I don't really need one. I got to run a python file every time I build the project, as it sorts out some things like transparancy on certain images (Filtered out only pixels with the exact value of 255,255,255. 255,255,254 will be left as white for example), as well as doing mod backups and stuff. SO, I just added a tiny bit of code to the end of the file that copies across the folder to how it SHOULD be. Problem solved. As it runs every single time I make a file-based change, it acts like my own customised permanent solution

 

This is a good fix , auto-running  a python file to copy the file from a location to another !

You give me an idea for the future if i want to use eclipse and still has this bug !

Right now , intellij ultimate is enough for me !

By the way , updating eclipse and gradle editor dos not solve the problem, I just tried! 

Link to comment
Share on other sites

1 hour ago, Wintersky20 said:

Actually I was trying this , and did no work for me !

I have never encountered that situation. That sounds very weird.

Are you sure that you've selected a directory superior to the texture directory before refreshing?

The refresh function only refreshes the selected directory and all subdirectories of it (unless there is nothing selected, in which case I think it will update all project files).

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

2 minutes ago, DavidM said:

I have never encountered that situation. That sounds very weird.

Are you sure that you've selected a directory superior to the texture directory before refreshing?

The refresh function only refreshes the selected directory and all subdirectories of it (unless there is nothing selected, in which case I think it will update all project files).

I think this is a bug from the Gradle Editor !

I mean , in 1.12 , I don't encounter this type of problems because was no need for an internal plugin like gradle editor 

Then , 1.13 come out , and starts to get wanki!

Link to comment
Share on other sites

On that note in IntelliJ I seem to be struggling finding usages of methods and fields since 1.14. Even when I search in all places it only shows me the results in my files. Could be the same issue. I'm using a outdated version of IntelliJ though (still 2017.3)

Edited by _Cruelar_

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

3 minutes ago, _Cruelar_ said:

On that note in IntelliJ I seem to be struggling finding usages of methods and fields since 1.14. Even when I search in all places it only shows me the results in my files. Could be the same issue. I'm using a outdated version of IntelliJ though (still 2017.3)

Hmm , I don't think it's the same problem ! 

Try to update your intellij ( and optionally buy an package or get an student pack for it , this way you can have more options and etc., or try the free one , and see if is working) 

I'm using intellij ultimate ( little bit over-price, but is better then eclipse)

Link to comment
Share on other sites

Thing is when working on a 1.12 mod or other java project it still works, only 1.14 mods make problems, also I have a perpetual fallback license for 2017.3 and I don't know if it 1) will stay active when I update and 2) I'll have such a license for later versions. Because of that I'm a bit worried that I won't be able to use IntelliJ after that at all.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

2 minutes ago, _Cruelar_ said:

Thing is when working on a 1.12 mod or other java project it still works, only 1.14 mods make problems, also I have a perpetual fallback license for 2017.3 and I don't know if it 1) will stay active when I update and 2) I'll have such a license for later versions. Because of that I'm a bit worried that I won't be able to use IntelliJ after that at all.

Download the new version , and try to install on another disk file like F: , E: etc.

Then insert your license , and see if is working!

But the problem I think is the outdated version!

  • Thanks 1
Link to comment
Share on other sites

Thanks seems like the old version didn't support the new way how the forge library is handled when finding usages, also it seems I can update for free to 2019.3 so thanks for pointing out how I could test this

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

36 minutes ago, _Cruelar_ said:

Thanks seems like the old version didn't support the new way how the forge library is handled when finding usages, also it seems I can update for free to 2019.3 so thanks for pointing out how I could test this

Glad I can help you ! Have a beautiful day !

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

    • Selamat datang di OLXTOTO, situs slot gacor terpanas yang sedang booming di industri perjudian online. Jika Anda mencari pengalaman bermain yang luar biasa, maka OLXTOTO adalah tempat yang tepat untuk Anda. Dapatkan sensasi tidak biasa dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering. Di sini, Anda akan merasakan keseruan yang luar biasa dalam bermain judi slot. DAFTAR OLXTOTO DISINI LOGIN OLXTOTO DISINI AKUN PRO OLXTOTO DISINI   Jackpot Slot Maxwin Sering Untuk Peluang Besar Di OLXTOTO, kami tidak hanya memberikan hadiah slot biasa, tapi juga memberikan kesempatan kepada pemain untuk memenangkan jackpot slot maxwin yang sering. Dengan demikian, Anda dapat meraih keberuntungan besar dan memenangkan ribuan rupiah sebagai hadiah jackpot slot maxwin kami. Jackpot slot maxwin merupakan peluang besar bagi para pemain judi slot untuk meraih keuntungan yang lebih besar. Dalam permainan kami, Anda tidak harus terpaku pada kemenangan biasa saja. Kami hadir dengan jackpot slot maxwin yang sering, sehingga Anda memiliki peluang yang lebih besar untuk meraih kemenangan besar dengan hadiah yang menggiurkan. Dalam permainan judi slot, pengalaman bermain bukan hanya tentang keseruan dan hiburan semata. Kami memahami bahwa para pemain juga menginginkan kesempatan untuk meraih keberuntungan besar. Oleh karena itu, OLXTOTO hadir dengan jackpot slot maxwin yang sering untuk memberikan peluang besar kepada para pemain kami. Peluang Besar Menang Jackpot Slot Maxwin Peluang menang jackpot slot maxwin di OLXTOTO sangatlah besar. Anda tidak perlu khawatir tentang batasan atau pembatasan dalam meraih jackpot tersebut. Kami ingin memberikan kesempatan kepada semua pemain kami untuk merasakan sensasi menang dalam jumlah yang luar biasa. Jackpot slot maxwin kami dibuka untuk semua pemain judi slot di OLXTOTO. Anda memiliki peluang yang sama dengan pemain lainnya untuk memenangkan hadiah jackpot yang besar. Kami percaya bahwa semua orang memiliki kesempatan untuk meraih keberuntungan besar, dan itulah mengapa kami menyediakan jackpot slot maxwin yang sering untuk memenuhi harapan dan keinginan Anda.   Kesimpulan OLXTOTO adalah situs slot gacor terbaik yang memberikan pengalaman bermain judi slot online yang tak terlupakan. Dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering, OLXTOTO menjadi pilihan terbaik bagi para pemain yang mencari kesenangan dan kemenangan besar dalam perjudian online. Di samping itu, OLXTOTO juga menawarkan layanan pelanggan yang ramah dan responsif, siap membantu setiap pemain dalam mengatasi masalah teknis atau pertanyaan seputar perjudian online. Kami menjaga integritas game dan memberikan lingkungan bermain yang adil serta menjalankan kebijakan perlindungan pelanggan yang cermat. Bergabunglah dengan OLXTOTO sekarang dan nikmati pengalaman bermain slot online yang luar biasa. Jadilah bagian dari komunitas perjudian yang mengagumkan ini dan raih kesempatan untuk meraih kemenangan besar. Dapatkan akses mudah dan praktis ke situs OLXTOTO dan rasakan sensasi bermain judi slot yang tak terlupakan.  
    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa Di dunia perjudian online yang begitu kompetitif, mencari platform yang dapat memberikan kemenangan maksimal (Maxwin) dan hasil terbaik (Gacor) adalah prioritas bagi para penjudi yang cerdas. Dalam upaya ini, OLXTOTO telah muncul sebagai pemain kunci yang mengubah lanskap perjudian online dengan menawarkan pengalaman tanpa tandingan.     Sejak diluncurkan, OLXTOTO telah menjadi sorotan industri perjudian online. Dikenal sebagai "Platform Maxwin dan Gacor Terbesar Sepanjang Masa", OLXTOTO telah menarik perhatian pemain dari seluruh dunia dengan reputasinya yang solid dan kinerja yang luar biasa. Salah satu fitur utama yang membedakan OLXTOTO dari pesaingnya adalah komitmen mereka untuk memberikan pengalaman berjudi yang unik dan memuaskan. Dengan koleksi game yang luas dan beragam, termasuk togel, slot online, live casino, dan banyak lagi, OLXTOTO menawarkan sesuatu untuk semua orang. Dibangun dengan teknologi terkini dan didukung oleh tim ahli yang berdedikasi, platform ini memastikan bahwa setiap pengalaman berjudi di OLXTOTO tidak hanya menghibur, tetapi juga menguntungkan. Namun, keunggulan OLXTOTO tidak hanya terletak pada permainan yang mereka tawarkan. Mereka juga terkenal karena keamanan dan keadilan yang mereka berikan kepada para pemain mereka. Dengan sistem keamanan tingkat tinggi dan audit rutin yang dilakukan oleh otoritas regulasi independen, para pemain dapat yakin bahwa setiap putaran permainan di OLXTOTO adalah adil dan transparan. Tidak hanya itu, OLXTOTO juga dikenal karena layanan pelanggan yang luar biasa. Dengan tim dukungan yang ramah dan responsif, para pemain dapat yakin bahwa setiap pertanyaan atau masalah mereka akan ditangani dengan cepat dan efisien. Dengan semua fitur dan keunggulan yang ditawarkannya, tidak mengherankan bahwa OLXTOTO telah menjadi platform pilihan bagi para penjudi online yang mencari kemenangan maksimal dan hasil terbaik. Jadi, jika Anda ingin bergabung dengan jutaan pemain yang telah merasakan keajaiban OLXTOTO, jangan ragu untuk mendaftar dan mulai bermain hari ini!  
    • OLXTOTO adalah bandar slot yang terkenal dan terpercaya di Indonesia. Mereka menawarkan berbagai jenis permainan slot yang menarik dan menghibur. Dengan tampilan yang menarik dan grafis yang berkualitas tinggi, pemain akan merasa seperti berada di kasino sungguhan. OLXTOTO juga menyediakan layanan pelanggan yang ramah dan responsif, siap membantu pemain dengan segala pertanyaan atau masalah yang mereka hadapi. Daftar =  https://surkale.me/Olxtotodotcom1
    • DAFTAR & LOGIN BIGO4D   Bigo4D adalah situs slot online yang populer dan menarik perhatian banyak pemain slot di Indonesia. Dengan berbagai game slot yang unik dan menarik, Bigo4D menjadi tempat yang ideal untuk pemula dan pahlawan slot yang berpengalaman. Dalam artikel ini, kami akan membahas tentang Bigo4D sebagai situs slot terbesar dan menarik yang saat ini banyak dijajaki oleh pemain slot online.
    • DAFTAR & LOGIN BIGO4D Bigo4D adalah situs togel online yang menjadi pilihan banyak pemain di Indonesia. Dengan berbagai keunggulan yang dimilikinya, Bigo4D mampu menjadi situs togel terbesar di pasaran saat ini. Dalam artikel ini, kami akan membahas secara lengkap tentang Bigo4d dan alasan-alasannya menjadi situs togel favorit banyak pemain.
  • Topics

×
×
  • Create New...

Important Information

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