Troubleshooting & Performance - mahjerion/Craft-to-Exile-2 GitHub Wiki

Troubleshooting General Client Issues

  • Reinstall latest Java 17.
  • Repair modpack installation.
  • Add the following to your Java args:

-XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m

  • Set RAM allocation to 6-8gb (unless your system only has 8 gb of RAM or less).
  • Ensure modpack is up to date.
  • Check your FPS Reducer (default key: End) to see if it's reducing FPS when not needed.
  • If you're crashing on an M1 Mac, try adding -Dfml.earlyprogresswindow=false to your JVM args.
  • If you're still getting bad performance, check here, here, and here.

Troubleshooting General Server/Joining Server Issues

  • If you're experiencing lag, use Crash Utilities (press F12) and Spark (/spark) in game to find the source. Here is a guide on finding the cause of lag spikes.

My server is crashing because of "A single server tick took x seconds".

  • This means you have extreme lag, to the point that the server shut itself down as a protective measure. In order to recover this, you must first disable the watchdog, and then investigate the source of the lag. The crash report/log does not usually provide the cause of the lag. To disable the watchdog: Open your server.properties and change max-tick-time to -1.

I keep getting "incomplete set of tags received from server" or "failed to synchronize registry data from server, closing connection" when trying to join a server.

  • Your server and client are out of date or have mismatched mods. Update/repair both. Ensure you haven't made any Jar file edits on either side. There may also be major script/config differences between them.

I can't load into my world, it just gets stuck loading forever.

  • Delete curios-server.toml in /world/serverconfigs/.

For no reason, I keep getting "connection refused" when joining a server consistently and I've tried everything else

  • This might be due to your JVM trying to use use IPv6 to connect. Try adding -Djava.net.preferIPv4Stack=true to your startup args.

I'm getting "EXCEPTION_ACCESS_VIOLATION" on bootup.

  • Update your graphics card drivers, If you're on a laptop make sure you're running with your dedicated GPU rather than your integrated GPU. Reinstall Java 17. This is generally a GPU driver failure. If you're on AMD, make sure you're on latest "WHQL Recommended" (aka stable) version.

I'm getting an error that says "Java HotSpot(TM) 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory".

Remove the JVM arguments at the end of user_jvm_args.txt that have to do with pages. (-XX:+UseLargePages -XX:LargePageSizeInBytes=2m). These should be the very last two arguments on the last line of the text document.

Tools/Extra Mods

  • MCA Selector allows you to remove corrupted chunks or import/export portions of worlds.
  • NBTExplorer allows you to remove broken NBT-related items, blocks, or entities that may be disconnecting you or breaking your world.
  • Observable allows you to visualize the blocks and areas that are causing lag. For reference: (1000us/t = 1ms). Anything sub 60us/t is generally normal.
    Over 200us/t should be looked into, fixed as needed.
    Over 600us/t should be looked into, fixed, or removed,
    Over 1000us/t = removal.

My backpacks have disappeared, how do I get them back?

  • Use /sophisticatedbackpacks list (playername) to list all the backpacks owned by a player. Then, you can click on the backpacks to receive them or use /sophisticatedbackpacks give

Optional Mods to Remove for Performance

You can also remove the following mods to improve client-side performance (delete the .jar in the mods folder). Removing these mods will not impact your ability to join CTE2 servers and will have minimal to no impact on gameplay. Bold italicized mods may be more impactful on performance, and removing them can be prioritized if you are facing issues.

  • 3D Skin Layers
  • AmbientSounds
  • Fallingleaves
  • Footprintparticle
  • Highlighter <-- new items in inventory will be highlighted
  • Highlight <-- selection highlight around blocks is more smooth
  • ItemPhysicLite
  • LegendaryTooltips
  • NoFog
  • PickUpNotifier
  • Soundphysics