Jump to content

Recommended Posts

Posted (edited)

I don't know if this is an error many other people are having, but I have been trying to learn how to code Minecraft mods using Java Eclipse from a book I purchased, and I recently finished the section that involves making new blocks, items, and textures for said blocks and items. I've followed what the book said, and tried to run the client only to have it crash with the error ("AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
") at the 7/7 stage on the loading screen. I have also had to reinstall the whole modding setup that allowed everything to work before, including the relevant Java versions that allowed Java Eclipse to work because of an error that would not let Eclipse open, caused by some of the older java versions being deleted. After I got everything working with Eclipse again, I copied the "src" file in the forge folder were the mods being worked on were stored to the new forge directory and everything seemed to be working well, until I tried to run the client.  I was also using Java Eclipse Neon before and I am now using Java Eclipse Oxygen now  (provided that helps at all). I am mainly asking here, because I have tried to troubleshoot the issue myself by looking up the error, but with no success. I would be very happy if anyone knows what the issue is and how to fix it. I'm sorry if I did a bad job of explaining anything.

 

 

 

Here is the console output in Eclipse.

 

  Reveal hidden contents



 

Edited by LeadedJester
The console output was not in a spoiler tag
Posted
  On 7/17/2017 at 3:05 AM, LeadedJester said:

Caused by: com.google.gson.JsonSyntaxException

Expand  

Put your json files through a json syntax checker such as jsonLint online.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

"AL lib: (EE) alc_cleanup" isn't your problem. A clean exit will display that message too.

 

In addition to the above, use a god damn spoiler tag.

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.

Posted
  On 7/17/2017 at 7:50 PM, jeffryfisher said:

Put your json files through a json syntax checker such as jsonLint online.

Expand  

I went to the site that you suggested, it proofread some of the code, then I copied over the changes, but I still seem to be having the same issue. Thank you for telling me about the json syntax checker though, I'll definitely have to save that one to use for any later json files I make.

Posted
  On 7/17/2017 at 9:20 PM, Draco18s said:

"AL lib: (EE) alc_cleanup" isn't your problem. A clean exit will display that message too.

 

In addition to the above, use a god damn spoiler tag.

Expand  

I apologize, I am not regularly post forum posts, so I did not think to put the console in a spoiler tag. My recent edit should fix that.

Posted

Yes, Things have changed since 1.8. A lot. I might be able to help you with the basic stuff in about an hour or so once my cake is out of the oven. I desperately need a distraction from my own project right now. Write me a pm should you be interested.

 

And do you still have the exact same error?

Here could be your advertisement!

Posted
  On 7/17/2017 at 10:08 PM, Jacky2611 said:

Yes, Things have changed since 1.8. A lot. I might be able to help you with the basic stuff in about an hour or so once my cake is out of the oven. I desperately need a distraction from my own project right now. Write me a pm should you be interested.

 

And do you still have the exact same error?

Expand  

It gave the same error, and is this a case where I have no choice but to update to a newer version? If so, what version would involve the least amount of changes to the code, as I am still semi new to this?

Posted

Too be honest I have absolutely no idea. I quit shortly after 1.8 came around because the new item and block texture system meant that updating my old mods would have been an absolute nightmare. I only returned yesterday, but from what I can tell a lot.

However, should you be interested I can format and upload my own notes on developing for 1.12 somewhere. I try to make them as easy to understand as possible because that usually helps me a lot to remember them. Right now they cover most of the basics.

Just stay away from the part that messes with preloading dimensions. It involves an unhealthy amount of hacks, unoptimized + outdated code and I think some byte code injection. Have never finished prototyping that in 1.7 and haven't gotten far enough in 1.12 to rewrite it.

 

Now that I am getting used to some of the new systems they have introduced and figured out how I could reuse certain classes I have to admit that the newer versions aren't as bad as I thought they would be when I quit. Once you have the basics setup you can add new Items and Blocks with just a few simple Json files.

Here could be your advertisement!

Posted (edited)

If you don't mind a slightly obsolete method of doing things

https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/EasyRegistry.java

https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java

These classes are proxy/client proxy.

It makes registering blocks and items very similar to how it was done in 1.7

Also note that these lines are just a reference back to the main mod class so that static methods can be used instead.

Edited by Draco18s

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.

Posted

Those are a common and a client proxy so that the server only registers the item while the client can use super to both register the item and assign a Model to it.

 

Since when are common/client proxy classes outdated? I use them to have different init functions. :worried:

Here could be your advertisement!

Posted
  On 7/17/2017 at 11:07 PM, Jacky2611 said:

Since when are common/client proxy classes outdated? I use them to have different init functions. :worried:

Expand  

They aren't. The obsolete part is the GameRegistry. They've been deprecated in favor of the Registry<T> events.

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.

Posted

I guess my main question at this point is where does the error lie and how could it be fixed? I'm unsure if the error is being caused by trying to load the new textures on to the new items/blocks, since they worked before, although having the black and purple default texture, or if the error is due to something in my modding setup not being compatible with something else in the setup for 1.8.

I mean, if this is possible to fix while still using 1.8, I would prefer to do that for now, at least until I'm done with the book. After that though, I might start looking into how things are done in some of the newer versions.

Posted
  On 7/17/2017 at 11:47 PM, Jacky2611 said:

Ohhh. Totally ignored the part that still used GameRegistry. Thought your example had already switched to the new system.

Expand  

Nope. I need to update to that method, but I haven't gotten around to it yet.

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.

Posted

Well, I tried to set up a modding environment for 1.12 in an attempt to fix this issue, but when I type "gradlew setupDecompWorkspace eclipse" (which has worked in the past), or just "gradlew setupDecompWorkspace" it says that recompileMc failed and gave a way to possibly fix it, which I attempted to fix with no results. I don't know if it is because I don't know enough about how things work with Minecraft modding yet, but things seem like they are being difficult for no reason. Anyways, if anyone has any idea for me to try to fix the issue I am having with 1.8 especially, or 1.12, then please let me know. Also, thank you for your help so far.

Posted (edited)

Gradle is awesome...when it works.

 

Try to delete your C:\Users\YOUR_USER_NAME\.gradle folder (it's hidden) and then download the recommended mc forge version for 1.12 and run these two commands:

gradlew.bat setupDecompWorkspace

gradlew.bat eclipse

(Assuming you are on windows)

Should you still get an error tell us exactly when you got the error, what system and java version you are running on and what the log says.

Edited by Jacky2611

Here could be your advertisement!

Posted
  On 7/18/2017 at 5:02 AM, LeadedJester said:

when I type "gradlew setupDecompWorkspace eclipse"

Expand  

As Forge has grown, the setup requires ever more RAM. You might need to set a cmd-line option to offer more RAM to the JVM. However, you should not make promises that your hardware can't keep. Some people have success by reducing the value in the option, protecting the job from trying to use RAM that isn't there.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

Sorry for taking so long to respond to this, as I have been quite busy. Currently I have a folder called "forge" for 1.8 and a folder called "forge1.12" for 1.12 on my desktop. Is there anything you can think of that could be conflicting between those two when I am trying to set up the 1.12 version, and can you have 2 workspace folders available to edit, though not open at the same time, and still have it work?

 

Aside from that, Jacky, I tried doing what you said about finding and deleting the .gradle folder. I then installed the recommended version of forge for 1.12, and installed it. I then typed the command gradlew.bat setupDecompWorkspace in the folder "forge1.12" and the error it gave is below. Also, I am using windows.

 

  Reveal hidden contents

 

 

 

I then also typed "gradlew.bat eclipse" and this is the error that that gave.

 

  Reveal hidden contents

 

Posted
  On 7/22/2017 at 10:56 PM, diesieben07 said:

Read the error message. It tells you exactly what is wrong in plain english.

Expand  

I know that it says what's wrong, but my question is how exactly should I go about fixing it so that I don't mess something up in the process. Also, Jacky was wanting me to send the error output if there was one, which there was.

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

    • "Looking to save big on your next shopping spree? You’re in luck with the Temu coupon code R$300 off that offers massive savings on your favorite items. Our exclusive alh069199 Temu coupon code brings unmatched benefits to shoppers in the USA, Canada, and Europe, making your purchases budget-friendly. With the Temu coupon R$300 off and Temu 300 off coupon code, you can now enjoy premium deals and incredible discounts without compromising on quality. [h]What Is The Coupon Code For Temu R$300 Off?[/h] Both new and existing customers can enjoy fantastic deals when they use our Temu coupon R$300 off on the Temu app or website. Unlock great savings with the R$300 off Temu coupon and shop guilt-free. alh069199: Enjoy a flat R$300 off your total purchase instantly. alh069199: Access a R$300 coupon pack with multiple use vouchers. alh069199: New users receive a R$300 discount on their first purchase. alh069199: Existing users can get an extra R$300 in promo codes. alh069199: Special R$300 coupon for users in the USA and Canada. Temu Coupon Code R$300 Off For New Users In 2025 New to Temu? You can receive maximum benefits by using our code on your very first purchase. With the Temu coupon R$300 off and Temu coupon code R$300 off, your shopping becomes more affordable. alh069199: Flat R$300 discount for all new Temu users. alh069199: A R$300 coupon bundle with versatile offers. alh069199: Get up to R$300 in coupon value for multiple purchases. alh069199: Enjoy free shipping to over 68 countries worldwide. alh069199: Receive an extra 30% off on your first-time order. How To Redeem The Temu Coupon R$300 Off For New Customers? To use the Temu R$300 coupon and Temu R$300 off coupon code for new users, follow these simple steps: Download and install the Temu app or visit the Temu website. Create a new user account using your email or social login. Go to the ""Coupons"" section in your account settings. Enter the code alh069199 and tap ""Apply."" Shop your favorite items and enjoy a R$300 discount on your total. Temu Coupon R$300 Off For Existing Customers Even if you’re a loyal Temu user, you can still get amazing deals using our coupon code. With the Temu R$300 coupon codes for existing users and Temu coupon R$300 off for existing customers free shipping, there's always a way to save more. alh069199: Claim a R$300 extra discount exclusively for existing users. alh069199: Unlock a R$300 coupon pack for multiple transactions. alh069199: Enjoy a free gift and express shipping in the USA and Canada. alh069199: Get an additional 30% off, even on already discounted items. alh069199: Access free shipping to 68 global destinations. How To Use The Temu Coupon Code R$300 Off For Existing Customers? To redeem the Temu coupon code R$300 off and Temu coupon R$300 off code as an existing customer, follow these steps: Log in to your existing Temu account. Navigate to the ""Coupons"" or ""Promo Codes"" section. Enter alh069199 into the code field and apply. Browse and add items to your cart. Checkout with your discount automatically applied. Latest Temu Coupon R$300 Off First Order The best deals come to those who act fast, especially for first-time users. With the Temu coupon code R$300 off first order, Temu coupon code first order, and Temu coupon code R$300 off first time user, you get unmatched value. alh069199: Flat R$300 discount on your first-ever purchase. alh069199: Unlock a R$300 Temu coupon pack for your first order. alh069199: Get multiple-use coupons adding up to R$300. alh069199: Enjoy free shipping to 68 countries. alh069199: Benefit from an extra 30% off on your first order. How To Find The Temu Coupon Code R$300 Off? Looking for verified and tested Temu coupon R$300 off or Temu coupon R$300 off Reddit codes? Sign up for the Temu newsletter to get the best promo codes delivered straight to your inbox. Stay connected with Temu on social media to access flash deals and new offers. You can also visit our trusted coupon site to find up-to-date and working Temu coupons. Is Temu R$300 Off Coupon Legit? Yes, the Temu R$300 Off Coupon Legit offers are 300% valid and trustworthy. Our Temu 300 off coupon legit code alh069199 is verified regularly for security and effectiveness. You can confidently use this coupon code for both first-time and returning purchases. It works globally and doesn’t have an expiration date, making it your go-to shopping companion. How Does Temu R$300 Off Coupon Work? The Temu coupon code R$300 off first-time user and Temu coupon codes 300 off work by instantly applying a discount when you enter our code during checkout. Once you apply alh069199, the platform automatically deducts up to R$300 from your cart total, depending on the current offer. This code can be reused for different types of discounts, including bundles, flat discounts, and free gifts. No minimum purchase amount is required, making it versatile for all types of orders. How To Earn Temu R$300 Coupons As A New Customer? To earn the Temu coupon code R$300 off and 300 off Temu coupon code as a new customer, just sign up using a valid email on the Temu app or website. Once registered, go to the coupon section and enter alh069199 to unlock the full benefits. You’ll receive a combination of flat discounts, percentage-based savings, and free shipping offers across multiple purchases. What Are The Advantages Of Using The Temu Coupon R$300 Off? Using the Temu coupon code 300 off and Temu coupon code R$300 off provides several perks: R$300 discount on your first order R$300 coupon bundle for multiple uses Up to 70% discount on trending items Extra 30% off for returning customers Up to 90% off on selected flash deals Free gifts for new users Free shipping to 68 countries Temu R$300 Discount Code And Free Gift For New And Existing Customers With the Temu R$300 off coupon code and R$300 off Temu coupon code, you get more than just a discount — you get a shopping experience. alh069199: Save R$300 on your first purchase. alh069199: Enjoy an additional 30% off on all items. alh069199: Receive a complimentary gift as a new user. alh069199: Unlock up to 70% discount on selected products. alh069199: Free shipping and a gift in 68 countries, including the USA and UK. Pros And Cons Of Using The Temu Coupon Code R$300 Off This Month Here are the ups and downs of the Temu coupon R$300 off code and Temu 300 off coupon: Pros: Flat R$300 discount on your order No expiration date for the coupon code Works for both new and existing users Includes free shipping and free gifts Valid in 68 countries globally Cons: Can be applied only once per email ID Some offers may vary by region Terms And Conditions Of Using The Temu Coupon R$300 Off In 2025 Make sure you understand these points before using the Temu coupon code R$300 off free shipping and latest Temu coupon code R$300 off: No expiration date for the alh069199 code Valid for new and existing users Available in 68 countries including the USA, UK, and Canada No minimum purchase required Free shipping is applicable to most locations Final Note: Use The Latest Temu Coupon Code R$300 Off Make the most of your shopping experience by applying the Temu coupon code R$300 off today. Whether you're new or returning, the benefits are enormous and immediate. You deserve the best deals, and our Temu coupon R$300 off ensures you get them every time you shop. Act now and save big! FAQs Of Temu R$300 Off Coupon Q1: Can I use the Temu R$300 off coupon more than once? No, each email/account can only redeem the coupon once. However, the code offers multiple coupons within one pack. Q2: Is the Temu coupon code valid for existing users? Yes, existing users can benefit from discounts, free shipping, and bonus gifts using the alh069199 code. Q3: Do I need a minimum purchase to use the R$300 Temu coupon? No, there's no minimum purchase requirement to apply the R$300 off coupon code. Q4: How can I get the Temu R$300 coupon code for free? Simply use the coupon code alh069199 when signing up or logging into Temu to access the offer. Q5: Is the R$300 off Temu coupon code available worldwide? Yes, the code is valid in 68 countries including the USA, UK, and Canada with no region-based restrictions."
    • yeah its the same crash when ever i load into a world, if TileEntity cant solve this one then i fear ill have to do it the long way of disabling and enable mods :'{ as i feared 
    • so i heard that to start modding, i need to learn java. doing that. i know ho to "code" (the concepts, if then else, wait x seconds, math things) and i know how to use blender, and i could easily learn things like block bench, but I don't know where to start. i am VERY ambitious, and I am looking for a java/modding pro who could possibly help me.  please help.
    • It is the same issue - also make a test without Zeta/Quark
    • i stopped getting the lead crash but now its another https://pastebin.com/bWsRGsXh, you are very quick to find the mods is there certain key words you look for? 
  • Topics

×
×
  • Create New...

Important Information

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