Jump to content

Recommended Posts

Posted

I have a bug with the actual Minecraft Forge 4.0.0 build 200: I've rewrote my mod to the new forge build. However, spawning entities, rendering, interacting and such does work properly now for me. The only thing I have problems with is, that when I kill one of my entities, the game crashes sometimes (not everytime when I kill these) with this error:

 

  Reveal hidden contents

 

 

Here's the FML client log file:

 

  Reveal hidden contents

 

 

If I kill the same entities on a server, it doesn't happen, neither on the client nor on the server. On client-only, it's the same error and I dunno what's causing it.

 

Here's my mod_ file, if anybody needs it:

https://gist.github.com/4e3d7b2b13bb339601b7

 

BTW: My entity type implements IAnimal and uses currently the attackEntityFrom(...) method from the superclass (EntityCreature). Instead of this, there's no method in my entity class, which will be called on hit / death.

 

Some more infos:

  • Minecraft ver. 1.3.2 (final)
  • Minecraft Server ver. 1.3.2 (final)
  • MCP v.7.2

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I need to see your entity class, and anything that calls world.getEntitiesWithinAABBExcludingEntity if you do.

 

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

Posted
  On 8/17/2012 at 1:22 PM, LexManos said:

I need to see your entity class, and anything that calls world.getEntitiesWithinAABBExcludingEntity if you do.

 

Here ya go:

https://gist.github.com/f876fb64b62074d7791c

 

it is HUGE and it's messy (I've cleaned that up since I overtook the mod from KodaichiZero a bit). There are 3 lines where I called worldObj.getEntitiesWithinAABBExcludingEntity at line 643, 1210 and 1627. Even when I outcomment the code which uses this method and it crashes anyway.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted
  On 8/17/2012 at 1:35 PM, SanAndreasP said:

  Quote

I need to see your entity class, and anything that calls world.getEntitiesWithinAABBExcludingEntity if you do.

 

Here ya go:

https://gist.github.com/f876fb64b62074d7791c

 

it is HUGE and it's messy (I've cleaned that up since I overtook the mod from KodaichiZero a bit). There are 3 lines where I called worldObj.getEntitiesWithinAABBExcludingEntity at line 643, 1210 and 1627. Even when I outcomment the code which uses this method and it crashes anyway.

 

Remember, everything is called twice (server and client)

check if it's called in client world and don't execute the code in this method:

 

on top of the code:

if(world.isRemote){
return;
}

Posted
  On 8/17/2012 at 1:41 PM, pitman-87 said:

  Quote

  Quote

I need to see your entity class, and anything that calls world.getEntitiesWithinAABBExcludingEntity if you do.

 

Here ya go:

https://gist.github.com/f876fb64b62074d7791c

 

it is HUGE and it's messy (I've cleaned that up since I overtook the mod from KodaichiZero a bit). There are 3 lines where I called worldObj.getEntitiesWithinAABBExcludingEntity at line 643, 1210 and 1627. Even when I outcomment the code which uses this method and it crashes anyway.

 

Remember, everything is called twice (server and client)

check if it's called in client world and don't execute the code in this method:

 

on top of the code:

if(world.isRemote){
return;
}

 

Well, it has nothing to do with the list stuff, nor with code which are called twice. I checked my code again and found the crash maker. It's this:

 

if(FMLCommonHandler.instance().getSide().equals(Side.CLIENT))
FMLClientHandler.instance().getClient().effectRenderer.addEffect(new EntityDiggingFX(worldObj, a, b, c, 0.0D, 0.0D, 0.0D, Block.cloth, 0, teamCloth(getClayTeam())));

 

on line 2669 in the method attackEntityFrom();

 

Is there a similar way to spawn custom particles?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Sorry for DP, but I played around and did some code-fixing in my mod and I can clearly confirm it is the method

FMLClientHandler.instance().getClient().effectRenderer.addEffect( [new entityFX instance] );

 

I tried also following:

Minecraft.getMinecraft().effectRenderer.addEffect( [new entityFX instance] );

 

With or without checking if it's client-sided or not. I get often (not everytime) the error in the OP. If it doesn't crash I can see the particles properly.

 

If I use this instead:

this.worldObj.spawnParticle("reddust", a, b, c, 0.0D, 0.0D, 0.0D);

 

it doesn't crash but it doesn't show any particles either.

 

 

Also I tried this whole thing on a dedicated server.

It doesn't crash in any case with any method, but it doesn't show me particles either.

 

So did I do something wrong or is this a bug?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

just a heads up, you'll need to change the package that your mod file is in, as of build 204 FML with crash if there are any files in the net.minecraft.src or a sub-package of it

Posted
  On 8/18/2012 at 10:21 PM, Viper283 said:

just a heads up, you'll need to change the package that your mod file is in, as of build 204 FML with crash if there are any files in the net.minecraft.src or a sub-package of it

 

I did that already (FML spammed me because of that). Package is now SanAndreasP.mods.ClaySoldierMod, but that didn't solve my problem. I still get the same error. :/

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

at net.minecraft.src.World.getCollidingBoundingBoxes(World.java:1466)

You'll see a collection on this line, that is being itterated over.

Somewhere inside of that loop, you are modifying the thing that's being itterated over.

You're gunna have to figure out what your in code is called, that edit that collection.

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

Posted
  On 8/19/2012 at 1:48 AM, LexManos said:

at net.minecraft.src.World.getCollidingBoundingBoxes(World.java:1466)

You'll see a collection on this line, that is being itterated over.

Somewhere inside of that loop, you are modifying the thing that's being itterated over.

You're gunna have to figure out what your in code is called, that edit that collection.

 

If it would be so easy :/

I've tried everything now...

- outcomment all code with "boundingBox" and "axisalignedbb" doesn't work

- outcomment all overridden methods (such as onUpdate() aso.) except attackEntityFrom(...), which now spawns only the particles and returns super.attackEntityFrom(...) (the rest inside it is outcommented)

- create a completely new entity, which spawns continously particles and isn't related to anything in my mod (except the spawn item)

 

It crashes with the same error.

 

- using the worldObj.spawnParticle(...) in the new entity, which doesn't crash, but doesn't spawn anything either.

 

Has this something to do with the worldObj field? Because both particle spawn things uses it. This is the spawning item code, if it's necessary:

https://gist.github.com/9088b8e72638205dd129

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Okay, I think I solved the problem now. As I thought it was the worldObj field from the entity I've used. I'm using now Minecraft.getMinecraft().theWorld instead and no crash so far.

Here's the code which I'm using to spawn custom digging particles now:

 

if(FMLCommonHandler.instance().getSide().isClient())
    Minecraft.getMinecraft().effectRenderer.addEffect( new EntityDiggingFX(Minecraft.getMinecraft().theWorld /* use this instead of this.worldObj */, X, Y, Z, 0.0D, 0.0D, 0.0D, Block.cloth, 0, teamCloth(getDataWatcherShort("clayTeam"))));

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

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

    • Short Term Loans Online: A Reliable Source of Fast Cash   If you are experiencing financial difficulties, you don't have to worry about this challenge. This is the quickest and best method for handling financial catastrophes. You can pick short term loans online without reluctance, and you can apply for the payday loan you want online and have it the same day without any issues. With two to four weeks to repay the loan, you may often borrow between $100 and $1000 without having to offer any collateral.   As implied by the title, those with bad credit histories—defaults, arrears, foreclosure, late or missed payments, judgments against you, insolvency or IVA, etc.—are welcome to apply for online short term loans without having to go through any challenging procedures. Interest rates are a bit high in comparison to other loans. A thorough internet search can be used to determine the greatest rate for a financed loan.   You don't have to waste your precious time searching the internet for short term funding payday loans. In just a few minutes, you can apply for the finance you desire by completing a brief online application. The lender will approve the loan once he has verified that you have provided accurate information on this brief form. This loan is carefully deposited into your bank account in the least amount of time. You can utilize the money in a number of ways without running into any problems. Usually, the money can be used to settle debts like credit card balances, overdue bank overdrafts, tuition or school fees for children, energy bills, housing costs, and more.   Loans Lucre makes it simple to apply for short term loans online, so there's no need to drive across town. Additionally, you won't have to wait weeks for a response from us. Additionally, having bad credit shouldn't be a deal-breaker. We evaluate your entire financial history rather than just your FICO score. We approve many debtors who had been rejected by banks.   Once you are approved, Loans Lucre puts your online installment loans directly into your bank account, giving you instant access to your funds. The repayment plan is broken down into simple, reasonably priced monthly installments. Loans Lucre also rejects rollovers. Instead, we help borrowers get back on track when they encounter difficulties with the repayment process. Borrowers who regularly make their payments on time are eligible for lower annual percentage rates (APRs) on their subsequent these loans. That is truly win-win!   You will be communicating with the lender whether you apply for online personal loans through a cash advance broker or directly from the lender. The cost and duration of the transaction will be increased by any third parties you deal with through the direct lender. This will lead to a faulty perception of the "instant approval" of your payday loan, in addition to raising the cost of your transaction. When asking for a payday loan, it is therefore essential that you work with a trustworthy direct lender; a lender with a solid online reputation and satisfied clients is a wise choice.   You can apply for a short term loans online through internet platforms in addition to conventional lenders. A quicker and more convenient application process is frequently provided by these platforms. In the end, it is feasible to get a $500 loan with low credit or no credit at all, but it will need effort and careful evaluation of your financial possibilities. The lender's requirements will always determine approval, so be careful to give accurate information and look into several lenders to determine which one best suit your needs. https://loanslucre.com/  
    • Apply For Fast Cash Loans Online Today To Get Money Right Away   Do you have to deal with your money issues right away? You don't need to go anywhere because you can get fast cash loans online with just a computer and an internet connection. This suggests that you don't need to waste any time applying for these loans. All you have to do is fill out the form accurately and submit it to the lender online. They will check it and determine whether to approve the loan within the specified time frame. The money is moved to your bank account shortly after approval.   The same-day financing loan facility offers the most beneficial cash assistance in quantities ranging from $100 to $1000, with a flexible payback period of 2-4 weeks from the date of acceptance. You can use the borrowed funds to cover your child's tuition or school fees, small vacation expenses, past credit card payments, laundry costs, minor house repairs, your mother's checkups, and other emergencies.   To be qualified for same day funding loans, you must meet specific conditions regardless of your credit score—fair or low. A valid proof of domicile and proof of residence for the last 12 months, a current bank account with an SSN, being employed permanently with a monthly wage of at least $1000, and being at least eighteen years of age are prerequisites. If you satisfy the qualifications, you can apply for same-day payday loans directly without undergoing a credit check if you have bankruptcy, CCJs, IVAs, foreclosure, arrears, or defaults. As a result, getting a loan is fairly easy in the current credit market.   You must complete an application with information about your bank account and job in order to apply for a fast cash loan online from a physical payday lender. You also need to provide the lender with postdated checks that will be deposited on the scheduled repayment date. In return, you get paid right away.   Applicants can apply for same day payday loans at any time, from the comfort of their homes, eliminating the need to travel across town to a payday loan outlet. However, online payday lenders do not frequently provide same-day loans. Instead, payouts are made straight into borrowers' bank accounts via the Automated Clearing House (ACH) system; processing for this method takes at least one business day.   You must think about if you can pay back the loan in full within the allotted time because same day payday loans may have payback periods as little as one week or ten days. If you are unable to pay the full amount due, the lender might accept a token payment from you. The remaining sum will be restructured as a rollover, which is a new loan with fresh interest and administrative costs and the same short payback period. After a few rollovers, a significant number of little payday loans accumulate to the point that debtors still owe more than they originally borrowed, even after making consistent payments for months or years.   You should be ready to submit the required paperwork and supporting proof when applying for a payday loans online same day with bad credit. Usually, lenders will evaluate your present financial state, work status, and loan-repayment capacity. Many lenders specialize in bad credit loans and are willing to take on the risk of lending to those with poor credit, despite the difficulties presented by a low credit score. This implies that you are not automatically denied a loan because of poor credit or no credit at all. https://nuevacash.com/
    • I have removed stevekunglib and it is still crashing again https://pastebin.com/9vE8pji0
    • It looks like an issue with stevekunglib or a mod requiring it
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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