Jump to content

Recommended Posts

Posted

SO I decided to ad worldgen to my beastmaster mod! But before I do lets discuss experiences. Ice and Fire is a mod is a dragon mod that adds only small structures to the worldgen such as an underground sphere as a cave with a single dragon in it. Yet if I play a world with it it lags. Meanwhile traveller's dream a worldgen mo or biomes o plenty that spawns over 200 biomes, with 2200 structures with trees lags only a little and comparable to vanilla performance.  I want to know what these worldgens do so i can implement it and spawn my structures without lag.

Posted

Some are written more efficiently?

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

Ice and Fire mod's dragons spawn in those caves. I don't think it's directly related to world gen on that one. Because after the dragon moves, it breaks a lot of blocks, causing a lot of block updates, which maybe the main reason for the lag on that one. It's a resource hungry mod, that's for sure.

Useful Tools - Early game items for your building and farming needs.

 

Posted (edited)
8 minutes ago, Crare1 said:

Ice and Fire mod's dragons spawn in those caves. I don't think it's directly related to world gen on that one. Because after the dragon moves, it breaks a lot of blocks, causing a lot of block updates, which maybe the main reason for the lag on that one. It's a resource hungry mod, that's for sure.

I disagree, I checked their code an they spawn as part of the structure Directly from IWorldGenerator. And Traveller's dream  supposedly a more resource hungry mod since 22000+ structures! and iceandfire got a few.

Edited by Kiljaeden053
Posted

@Draco18s You'd need to verify this but is Vanilla still generating when the +X, +Z and +ZX chunks are loaded, because then Kiljaeden053 might want to give this a read:

 

 

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
16 minutes ago, Draco18s said:

Some are written more efficiently?

I want to know how to efficiently write the worldgen code.  Instead of a direct IWorldGenerator to ChunkGenerator? I would like to hear your suggestions.

Posted
1 minute ago, Kiljaeden053 said:

I disagree, I checked their code an they spawn as part of the structure Directly from IWorldGenerator

I'm not here to disagree with you, nor trying to defend the mod. Just saying the block updates caused after the generation might be the problem for the lag.

Useful Tools - Early game items for your building and farming needs.

 

Posted (edited)
4 minutes ago, _Cruelar_ said:

@Draco18s You'd need to verify this but is Vanilla still generating when the +X, +Z and +ZX chunks are loaded, because then Kiljaeden053 might want to give this a read:

4 minutes ago, _Cruelar_ said:

@Draco18s You'd need to verify this but is Vanilla still generating when the +X, +Z and +ZX chunks are loaded, because then Kiljaeden053 might want to give this a read:

 

 

 

This is exactly what I'm talking about! I have become even happier and content with my life after uninstalling iceandfire because of the lag and enjoy the simple realistic worldgen of traveller's dream.

Edited by Kiljaeden053
Posted
2 minutes ago, Crare1 said:

I'm not here to disagree with you, nor trying to defend the mod. Just saying the block updates caused after the generation might be the problem for the lag.

Oh I see it now thank you! After reading the code, they add at least 245 air blocks for the structure after the generator has been loaded. Looks like the efficient way to generate is to spawn the structure while generating.

Posted (edited)

Please be aware I haven't worked with worldgen in 1.14+ and Crare1s point might still stand as I don't have any experience with ice and fire, I never played it.

(Sorry a bit late)

Edited by _Cruelar_

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
2 minutes ago, _Cruelar_ said:

Please be aware I haven't worked with worldgen in 1.14+ and Crare1s point might still stand as I don't have any experience with ice and fire, I never played it.

(Sorry a bit late)

It's okay thank you! In a server with ice and fire I used hacks, one of the hacks are called(chunk finder). I use these to locate new chunks players have generated and ultimately fin their base for griefing or visiting. But that server was different lots of new chunks are spawned already with no base found. The WOrldgen Runaway from that mod seems to be the answer.

Posted

Please don't grief people or use hacks on public servers, it's unfair and leaves the victims frustrated behind. Try to be polite and help others instead there's enough fun in that.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
1 hour ago, _Cruelar_ said:

Please don't grief people or use hacks on public servers, it's unfair and leaves the victims frustrated behind. Try to be polite and help others instead there's enough fun in that.

That's what I do, instead of griefing them I make friends with them. If you grief theyll simply find out and ban/hate me. 

Posted
2 hours ago, _Cruelar_ said:

You'd need to verify this but is Vanilla

Investigations of vanilla code is what results in the +8,+8.

Worldgen is threaded and different as of 1.14, so I'm not entirely sure how true it still is, but I haven't had time to investigate.

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 (edited)
4 hours ago, Kiljaeden053 said:

I disagree, I checked their code an they spawn as part of the structure Directly from IWorldGenerator. And Traveller's dream  supposedly a more resource hungry mod since 22000+ structures! and iceandfire got a few.

@Crare1 is probably right here. The lag you are experiencing might not have to do with world gen at all. There is no way to tell without a profiler/mods that profile lags. My bad I didn't see the reply.

 

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted

Aditional Info: Ice and fire dragons are asleep in the cave when they spawn so they don't do block break update at all.  My world is set to spawn only large dragons from unerground which is calm unless disturbed. Smaller dragons spawn at the top and will destroy everything set a lot of blocks on fire when isturbed.

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

    • You would have better results asking a more specific question. What have you done? What exactly do you need help with? Please also read the FAQ regarding posting logs.
    • Hi, this is my second post with the same content as no one answered this and it's been a long time since I made the last post, I want to make a client-only mod, everything is ok, but when I use shaders, none of the textures rendered in RenderLevelStageEvent nor the crow entity model are rendered, I want them to be visible, because it's a horror themed mod I've already tried it with different shaders, but it didn't work with any of them and I really want to add support for shaders Here is how i render the crow model in the CrowEntityRenderer<CrowEntity>, by the time i use this method, i know is not the right method but i don't think this is the cause of the problem, the renderType i'm using is entityCutout @Override public void render(CrowEntity p_entity, float entityYaw, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) { super.render(p_entity, entityYaw, partialTick, poseStack, bufferSource, packedLight); ClientEventHandler.getClient().crow.renderToBuffer(poseStack, bufferSource.getBuffer(ClientEventHandler.getClient().crow .renderType(TEXTURE)), packedLight, OverlayTexture.NO_OVERLAY, Utils.rgb(255, 255, 255)); } Here renderLevelStage @Override public void renderWorld(RenderLevelStageEvent e) { horrorEvents.draw(e); } Here is how i render every event public void draw(RenderLevelStageEvent e) { for (HorrorEvent event : currentHorrorEvents) { event.tick(e.getPartialTick()); event.draw(e); } } Here is how i render the crow model on the event @Override public void draw(RenderLevelStageEvent e) { if(e.getStage() == RenderLevelStageEvent.Stage.AFTER_ENTITIES) { float arcProgress = getArcProgress(0.25f); int alpha = (int) Mth.lerp(arcProgress, 0, 255); int packedLight = LevelRenderer.getLightColor(Minecraft.getInstance().level, blockPos); VertexConsumer builder = ClientEventHandler.bufferSource.getBuffer(crow); Crow<CreepyBirdHorrorEvent> model = ClientEventHandler .getClient().crow; model.setupAnim(this); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, packedLight, OverlayTexture.NO_OVERLAY, alpha); builder = ClientEventHandler.bufferSource.getBuffer(eyes); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, 15728880, OverlayTexture.NO_OVERLAY, alpha); } } How i render the model public static void renderModelInWorld(Model model, Vector3f pos, Vector3f offset, Camera camera, PoseStack matrix, VertexConsumer builder, int light, int overlay, int alpha) { matrix.pushPose(); Vec3 cameraPos = camera.getPosition(); double finalX = pos.x - cameraPos.x + offset.x; double finalY = pos.y - cameraPos.y + offset.y; double finalZ = pos.z - cameraPos.z + offset.z; matrix.pushPose(); matrix.translate(finalX, finalY, finalZ); matrix.mulPose(Axis.XP.rotationDegrees(180f)); model.renderToBuffer(matrix, builder, light, overlay, Utils .rgba(255, 255, 255, alpha)); matrix.popPose(); matrix.popPose(); } Thanks in advance
    • Same issue - I have no idea
    • I am trying to develop a modpack for me and my friends to use on our server. Does anyone know how to develop a modpack for a server or could they help take a look at my modpack to potentially help at all?
    • un server de armas realista.  
  • Topics

×
×
  • Create New...

Important Information

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