Jump to content

[1.8] "flying is not allowed on this server". Is it my mod's fault?


ElDome

Recommended Posts

Hello guys.

 

Here i go again, and again i didn't find anything after a quick search, but maybe i suck at searching and i'm duplicating a post, so... Sorry for duplicating ;)

 

 

Is it Vanilla, or does the "flying is not allowed on this server" problem depends on something wrong with forge/my mod?

 

Some elements more:

 

1. I suspect a network/server workload problem, since playing on intranet never caused the problem. Before modding, anyway, it never happened regardless on the intranet/internet connection mode.

 

2. I know i can allow flying on the server, but i would preferably avoid

 

 

Thanks for help

Link to comment
Share on other sites

Hi

 

This message seems to arise when the player is out of contact with the ground (player doesn't collide with a solid block under their feet) for more than 80 C03PacketPlayer packets in a row.  Does your mod give the player extra high bounce or something?

 

A network load problem seems unlikely because the code looks like it counts the number of packets it receives.

 

Not sure how you could best troubleshoot this one; trial and error might be necessary?

 

-TGG

Link to comment
Share on other sites

Let's try to sort out a rule...

 

Elements:

 

1. NEVER happened while on intranet.

2. Clients used on Intranet/Internet are the same.

3. It happens when climbing a long ladder sequence or while swimming downwater. It always happens in these cases

Link to comment
Share on other sites

Can you post your code, somewhere so we can check it out?

 

This doesn't usually happen in vanilla or forge, unless your hovering in mid air for a long time without being in creative, it might be your mod but without seeing your code we can't really say.

I require Java, both the coffee and the code :)

Link to comment
Share on other sites

Are you messing with the player's bounding box by any chance?

 

If you know how to use conditional breakpoints on your debugger, you could try running the server in the debugger and putting a conditional breakpoint on this line:

NetHandlerPlayServer::processPlayer(C03PacketPlayer packetIn)
                if (!this.serverController.isFlightAllowed() && !this.playerEntity.capabilities.allowFlying && !worldserver.checkBlockCollision(axisalignedbb) && !this.playerEntity.capabilities.allowFlying) // breakpoint here

If you put a breakpoint there to stop when this.floatingTickCount == 80, then you can trace into worldserver.checkBlockCollision and see why your player's abb doesn't collide with it.

 

-TGG

 

Link to comment
Share on other sites

Sure Belpois.

 

I'll try to find a moment to push my project on github. It's quite a "straightforward" unefficient bounch of classes. Nothing more than some new block/item and a list of recipes.

 

I'll post when everything's up (it may happen within few hours as years :| life sucks :D )

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



×
×
  • Create New...

Important Information

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