Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Chunk forgets about the player if they stop moving
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Draco18s

Chunk forgets about the player if they stop moving

By Draco18s, June 13, 2013 in Support & Bug Reports

  • Reply to this topic
  • Start new topic

Recommended Posts

Draco18s    2414

Draco18s

Draco18s    2414

  • Reality Controller
  • Draco18s
  • Members
  • 2414
  • 15998 posts
Posted June 13, 2013

Not sure this is Forge's problem, or a vanilla thing, but I noticed it because of Mystcraft (as Mystcraft uses the chunk.hasEntities function to apply potion effects in some dimensions).

 

I have already reported this to XCompWiz who says that the problem is not occurring inside his code.

 

In order to (easily) reproduce the behavior:

1) Install Mystcraft

2) Place book binder block, put leather in upper left slot, add to the central black area:

  • Linking panel (page).  Must be farthest left
  • Diamond ore block (page).  Must be left of next page
  • Tendrils (page)

(All mystcraft items can be found in Mystcraft's creative tabs)

3) remove book from upper left slot

4) Right-click with the book, click the black panel to teleport to new dimension

5) Stand still under the open sky.  Looking around is ok, moving is not.

6) Check inventory for status effects, if not affected by any, repeat steps 1-5.

7) After about 30 seconds you'll stop getting afflicted with the potion effect and it takes walking across a chunk boundary to reset it.

  • Quote

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.

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8958 posts
Posted June 14, 2013

Do you have ChickenChunks installed?

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

Draco18s    2414

Draco18s

Draco18s    2414

  • Reality Controller
  • Draco18s
  • Members
  • 2414
  • 15998 posts
Posted June 14, 2013

Do you have ChickenChunks installed?

 

No.  Just Forge, Mystcraft, and originally my own mod

 

My mod only adds blocks and environmental effects similar to Mystcraft's Scorching--which relies on the chunk update and chunk.hasEntitites--it was actually my mod that allowed me to notice the behavior, as I was waiting for a long-term effect to complete and I was watching the counter go up and then stop and I was trying to figure out why.  Then I noticed that Mystcraft's potion effects had the same thing happen (I'd noticed it before, but it was so transitory as I was constantly moving, that I attributed it to the RNG).

 

So then I started making sure there was no random behavior at all, that all (living)entities in all chunks were being processed and it would still "time out."

  • Quote

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.

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8958 posts
Posted June 14, 2013

Chunk.hasEntities only refers to entities that it must save to disc, this does not deal with anything besides that.

And consdiering that Players are not saved to the Chunk but are instead given it's own file, this flag would be set to false if there are no other vail saveable entities.

It seems that you should simply be checking

for (int x = 0; x < chunk.entityLists.length; x++)

  if chunk.entityLists[x].length > 0

 

Less efficent yes, but thats how the flag works.

 

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

Draco18s    2414

Draco18s

Draco18s    2414

  • Reality Controller
  • Draco18s
  • Members
  • 2414
  • 15998 posts
Posted June 18, 2013

Thanks, re-reported back to XCW.

  • Quote

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.

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • kiou.23
      Block Rotate

      By kiou.23 · Posted 16 minutes ago

      That's usually the case, always try to understand the code before copy and pasting, or else you'll get a lot of headaches later in the code's life
    • Varzac
      Forge jar file not opening

      By Varzac · Posted 42 minutes ago

      I ran Jarfix and then tried installing again with the same results. Nothing happening I even tried using winrar, but as you said nothing happened
    • BeardlessBrady
      [1.16.4] Null when OpenGUI

      By BeardlessBrady · Posted 47 minutes ago

      Ah.. Thats what I get for stopping half way through and not double checking, thanks!
    • poopoodice
      [1.16.4] Null when OpenGUI

      By poopoodice · Posted 1 hour ago

      https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/blocks/vending/VendingTile.java#L68 This should not be null.
    • -MCS_Gaming-
      Matchmaking System?

      By -MCS_Gaming- · Posted 1 hour ago

      I'm making an fps style mod and want to implement a matchmaking system, but I have absolutely no idea where to begin. Would anyone be able to give me some pointers as to how I would go about doing this?
  • Topics

    • ehbean
      10
      Block Rotate

      By ehbean
      Started 7 hours ago

    • Varzac
      3
      Forge jar file not opening

      By Varzac
      Started 13 hours ago

    • BeardlessBrady
      2
      [1.16.4] Null when OpenGUI

      By BeardlessBrady
      Started 1 hour ago

    • -MCS_Gaming-
      0
      Matchmaking System?

      By -MCS_Gaming-
      Started 1 hour ago

    • Nyko
      1
      [1.16.5] Beacon Overwrite (Screen Error)

      By Nyko
      Started 16 hours ago

  • Who's Online (See full list)

    • DieGo901yt
    • The_Deadly_Taco
    • brok4d
    • kiou.23
    • JackRaidenPH
    • NullDev
    • Jeldrik
    • ehbean
    • -MCS_Gaming-
    • Top_DawgsPM
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Chunk forgets about the player if they stop moving
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community