Jump to content

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


Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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 :)

Posted

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

 

Posted

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 )

Posted

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

 

Not at all. As i've said: new items, new blocks, few recipes added  :o.

 

Very strange then ???

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

Posted

Check the server.properties file. "allow-flight" needs to be set to true.

 

But the way he is describing the problem (Climbing on ladders, swimming etc) enabling flight would Solve-Hack the issue.

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

Posted

I need to physically reach the server to try the allow-flight hack. Maybe this eve?

 

I'll let you know. As Belpois says, it would be kinda of an "hack" anyway.

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

    • Please read the FAQ and post logs as described there.
    • Upon starting the server I get; [main/ERROR] [minecraft/Main]: Failed to start the minecraft server net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [     Framework (framework) has failed to load correctly §7java.lang.NoClassDefFoundError: net/minecraft/client/gui/components/toasts/Toast ] I suspect there is a (possibly a few) client-only mods installed on my server. Any help would be appreciated! (Yes I know there are a lot of mods...) Here is the crash log:   https://paste.ee/p/pRz5mhMl#s=0
    • That's basically what the failure does, my apologies for failing to specify.  It just tries again on the next tick until it detects the entities for that chunk are loaded, and then tries to load the entity.  From there it gets into different failure states depending on what goes wrong, but in short, if the entity fails to load once the entity list becomes available, the request is cleared and must be resubmitted by the end user.  There should be few cases where that actually happens. Yes, that is my understanding of forceloading.  That's why on a successful summon, it removes the forceload.  Otherwise it does just leave the chunks loaded long term. Thank you for your help, any knowledge is useful!  I don't often mess with forceloading and my prior experience is 1.16 so I'm also a bit out of my depth haha.
    • I will have to do more research about 1.18 chunk loading. You were unclear about how your code manages with the entity load failure. If you simply used a loop, I suggest submitting a tick task to the next tick which does the same thing, checking if the entities are loaded and if so teleporting the right one else submitting another tick task etc. Also I think forceloading permanently force loads the chunk, and it only starts to unload when you make a subsequent call to mark the chunk as not forceloaded. I may be completely wrong, I dont know much about 1.18, most of my experience is 1.20. Good luck I hope you figure it out after all this time 😅
    • i managed to fix it by reinstalling the modpack and re-add all the extra mods I've had previously.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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