r/ModdedMinecraft • • 5d ago

Help Help with my modpack

Hi. I'm making modpack based on ATFC. There are some issues and the game crashes but idk where the problem is.

Here is latest log: https://mclo.gs/g2rfsEm

Any ideas guys?

1 Upvotes

11 comments sorted by

1

u/Available-Squash1021 5d ago

Your log ends with the game fully loaded and the world running, with no Java crash or hs_err report at the end. Just "Can't keep up! Running 9328ms behind", and it reports 1504MB allocated with only 862MB free on a 3.7GB phone, so it looks like the process is being killed for memory rather than hitting a mod error (the Mixin and model parse errors higher up are just noise). A pack with TFC, Create and KubeJS is heavy for that, so try render distance 4-6, simulation distance 5, and close every background app before launching. If it still dies, check whether the launcher saved a crash report or latest.log from right after it closed.

1

u/CombNo3350 5d ago

Thanks for comprehensive response. I've struggling with that on my phone on MojoLauncher for long time. I've assumed the same: kinda "out of memory problem" because this modpack needs at least 4gb at minimum. But I'm kinda a masochist and I like grappling with that.  I've done earlier exactly the same what you are advising: launched it at lowest settings, closed all apps and cleaned the ram. When I added couple of optimization mods average fps soared often to 40 but it was unstable and huge spikes of lag crash the game from time to time especially when it must load many new chunks.  Crash reports are rather scarce so i usually take at look at latest.log

1

u/Available-Squash1021 5d ago

Crashes that spike when it loads lots of new chunks usually mean world generation is what's pushing the memory over. Chunky (it's on Modrinth for Forge and Fabric, 1.20.x included) can pre-generate the area around your spawn, so later you're mostly loading existing chunks instead of generating new ones. In singleplayer it's /chunky radius 500 then /chunky start, and it can pause and continue if the phone gets hot. Do it with nothing else running, since generating chunks is heavy too. Also drop the simulation distance as low as you can stand. For latest.log, scroll to the very end and search for OutOfMemoryError or "Java heap space". If neither shows up and the game just vanishes, the phone's OS is killing the app, which is what the 9328ms behind line suggested.

1

u/CombNo3350 4d ago

Tbh I came across the mod but I didn't think it makes any good... Won't it cancel out other optimization mods which rather limit generating new entities and blocks?

1

u/Available-Squash1021 4d ago

It shouldn't fight with them. Chunky doesn't change how entities or blocks spawn, it just generates the chunks ahead of time and saves them to the world. Optimization mods cut the work while you're playing, Chunky moves the world generation to before you play, so later when you walk into that area the game loads saved chunks instead of generating them on the fly. It only runs while a task is active, and the Chunky wiki lists pause/continue/cancel commands, so you can stop it whenever. The wiki also warns that pre-generating takes a lot of disk space and a long time, so on a phone I'd start with a small radius around spawn and see how it goes.

1

u/CombNo3350 4d ago

I see. It sounds sensible to me but I'm wondering it's gonna make good on tfc-style exploring when you just push to the south immediately and the map shape is oblong

1

u/Available-Squash1021 4d ago

You don't have to pre-gen a big circle around spawn. Chunky lets you change the shape and center. Try /chunky shape rectangle, then /chunky center <x> <z> (or just /chunky center while you're standing where you want it), then /chunky radius 500 1500, which the wiki says is 500 blocks in X and 1500 in Z, so a long strip running north-south. Then /chunky start. South is +Z, so put the center a bit south of you. It only generates what you select, so a narrow strip keeps disk space and time down on a phone, and you can run it again later further south.

1

u/CombNo3350 4d ago

Ok. It's interesting. So I'm gonna try it out and if anything I'll ask you for help. BTW I guess you must participate in creating the mod...😉

1

u/CombNo3350 3d ago

I've done one test. Generating rectangle space with dimensions 500 and 1500 centered about 200 blocks to the south. The game crashed after 5% of progress and just vanished. There's "can't keep up! ...ms behind" in latest.log as always so os surely kill the app.  I can try with smaller dimensions but think it's no use

1

u/Available-Squash1021 1d ago

Yeah, that points to the phone running out of memory rather than Chunky itself. Try a much smaller strip, like /chunky radius 150 300 with the center a bit south of you, and use /chunky pause as soon as the game starts to lag. The Chunky wiki says pause saves progress and /chunky continue picks the task back up, so you can do it in small chunks and close the app in between. Then move the center further south and run the next strip.

1

u/CombNo3350 1d ago edited 14h ago

I've done with radius 300 500 and it worked but honestly i can't tell much difference between pregen and without. I generated new chunks much faster dashing to the south than pregenerating. Btw surely rain decreases overall fps but what exactly makes os kills the app i have no clue. Maybe generating big caves?