GithubHelp home page GithubHelp logo

Log Spam with BoP about bedrockores HOT 9 CLOSED

mightypirates avatar mightypirates commented on May 31, 2024
Log Spam with BoP

from bedrockores.

Comments (9)

fnuecke avatar fnuecke commented on May 31, 2024 1

Fixed in 2867bd8 (will be in version 1.1.0).

Thanks for persisting and bearing with me ^^;

from bedrockores.

fnuecke avatar fnuecke commented on May 31, 2024

Are you sure you used the BoP generation setting when testing with BoP only? Because those loggings are just plain old System.out.printlns in their generator, and that has nothing to do with this mod.

from bedrockores.

fnuecke avatar fnuecke commented on May 31, 2024

In fact, there's already an issue on this on their issue tracker, and looks like that doesn't involve Bedrock Ores, as expected.

from bedrockores.

Thiana avatar Thiana commented on May 31, 2024

Yes, I created the exact same world. With BoP alone, there is no log spam. With BoP+Bedrock Ores, spam. Perhaps @Darkmega18 is also running Bedrock Ores? I dont know if they tested BoP in isolation.

I just reran the tests. Here are the full logs of me creating the world, flying to another island then exiting.

You can see the world settings are identical but with BedrockOres it spams that debug statement 43 times in 11 seconds.

from bedrockores.

fnuecke avatar fnuecke commented on May 31, 2024

Doubtful; and even if Bedrock Ores triggers it somehow, it's still just a plain println call, which is never a good thing to leave in a mod, because it'll always spam the log sooner or later. It's up to BoP to fix this. They probably just forgot to remove that after debugging.

from bedrockores.

Thiana avatar Thiana commented on May 31, 2024

Adubbz sent me back.

The issue is because Bedrock Ores is repeatedly creating new instances of the chunk generator rather than using the chunkGenerator field in ChunkProviderServer or caching it.

See https://github.com/MightyPirates/BedrockOres/blob/a991d6c920619b36733c5771a29e5bccd07da0ca/src/main/java/li/cil/bedrockores/common/world/Retrogen.java#L100

This is a bug on their side, under normal circumstances this should only ever be called once which is why the println is where it is.

from bedrockores.

fnuecke avatar fnuecke commented on May 31, 2024

Interesting; it's a totally fair point that this should be cached, will fix!
(But I still don't agree with printlns :P)

from bedrockores.

Darkmega18 avatar Darkmega18 commented on May 31, 2024

I was indeed using bedrock ores. but it was occuring even before I had found said mod and installed it.

from bedrockores.

fnuecke avatar fnuecke commented on May 31, 2024

Guess some other mod re-created the IChunkGenerator, too, then. TBF, that shouldn't really be a problem unless BoP is present and logspams :P (it's just less efficient than caching it.) So it's easy to "do it wrong".

from bedrockores.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.