Jump to content

1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)


Recommended Posts

Posted

My code didn't have any errors though xD

----> in progress of magic mod now :P

Except it did. It didn't work properly, right? That is the definition of having errors. What you mean is "it compiled", but just because some piece of code compiles doesn't mean it is not faulty.

 

I know, I'm just an innocent victim  ::)
What? :o

 

void utils is a coremod.
Ehm, no it isn't.

 

If it was faulty it would crash the game since my updates are so high (functional imo). It didn't show up as any errors on eclipse but I had to manually go into forge through start menu to access the crash log I couldn't access it through forge on eclipse.

 

My definition of errors is red on the screen.  :)

 

(you know I'm innocent mannn, cmon)

 

then how come it uses a hidden vanilla block you don't have access to?

Posted

Ehm, if it wasn't faulty you wouldn't have come here reporting that it doesn't work. Seriously?

well its working now, I was referring to the working one >.<, yeesh, gimme' a break here.

 

What? Apart from the fact that that is not the definition of a coremod, where in the heck do you see that? Link please, the code is on Github after all.

 

I don't know how to access the phantom block personally.

Posted

You are talking about the black/pink checkerboard? In that case, that is a [texture[/i], not a block. And I have no idea what it has to do with Void Utils still or how that makes Void Utils a coremod.

 

maybe microsoft can put it to a vote :P

Posted

I give up. Either you are intentionally talking nonsense or not, but either way, I have no clue what you are saying. At all.

 

Pretty sure he's referring to this. You know the bug that occurs when a block exists on the server but not on the client? If you walk into the block you get stuck. He believes that is a block in its own right, rather than a bug.

Posted
My definition of errors is red on the screen.

Eclipse can highlight syntax and semantic errors, but it can't predict very many runtime errors. Code can be faulty simply by trying to use a pointer before it points to something. Eclipse can sometimes warn you where that's likely, but not always (Eclipse can't predict that a method will return null).

 

Anyway, there are many ways for programmers to make promises and then break them at runtime. These broken promises are faulty code even if not the kind of faults that Eclipse can detect and show in red.

 

Take away lessons:

 

1) When you don't know how to use a method, use Eclipse to show you all references to it. Look at how Minecraft and Forge use it.

 

2) Learn how to set breakpoints and run your mod in the debugger. Just as Eclipse gives you red to highlight syntax errors, it also gives you a debugger to step through code and into method calls so you can see what the frick-frack is actually going on when (or just before) it fails at runtime.

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

My definition of errors is red on the screen.

Eclipse can highlight syntax and semantic errors, but it can't predict very many runtime errors. Code can be faulty simply by trying to use a pointer before it points to something. Eclipse can sometimes warn you where that's likely, but not always (Eclipse can't predict that a method will return null).

 

This kind of error is what the industry calls a runtime exception and is still an error.

 

There are also logic errors where there is nothing wrong syntactically nor does a runtime exception occur, but the function does not performed the assumed duty that it has been given.

 

Eg:

/**adds two numbers and returns the sum**/

int add(int a, int b) { return 5; }

 

Which is why there are things called unit tests.

 

The fact that I, Jeffry, and D7 are all posting the posts we do in response to you says that you're wrong.

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

64150236.jpg

 

 

Sorry, but this had to be done. I know I'm not the only one thinking this...

 

Either you are intentionally talking nonsense or not, but either way, I have no clue what you are saying. At all.

 

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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



×
×
  • Create New...

Important Information

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