Git Product home page Git Product logo

mod-fungible's Introduction

Fungible

This mod, with help of some mixin hacks, speeds up game and world loading times by selectively bricking parts of the game. Do not use outside the development environment - it will cause world corruption when upgrading save data. With this mod it takes about 8s to launch the game and load into a world, compared to the average 19s to do the same on vanilla. It also silences the annoying auth exception that takes focus away from the game log in IDEA.

Included hacks:

Name Desc Credit
DataBreaker 2: Electric Boogaloo Brick DataFixerUpper mostly made myself, by i did look at how SuperCoder7979 did it
Narratorn't Brick the Narrator library (is it faster? idk)
ShutAuth Brick game auth (this is to prevent that annoying exception on startup)
SpawnChunksBeGone Skips spawn chunk loading (copied from TBPlugin)
FadeYeet Yeets resource reload fade out animation
ProfileUnkeyed Skips message key pair request (to prevent another exception on startup) jacg311
I-know-what-im-doing Skip Accessibility-Onboarding & Experimental World Screens jacg311

Credits:

SuperCoder7979 (i taken a look at DataBreaker)

Configuration:

You can selectively disable optimizations via the config file.
Place a file called fungible.properties in the config folder.
All values are true (enabled) by default.

# all available optimizations
dfu=false
narrator=true
auth=true
screen_fade=false
screen_skip=true

mod-fungible's People

Contributors

magistermaks avatar

Stargazers

Daomephsta avatar にゃんちゃん avatar  avatar Flamarine Elixirium avatar SHsuperCM avatar Nyako avatar Moritz Ruth avatar  avatar Abbie avatar Bendi avatar Andrew Grant avatar

Watchers

 avatar

Forkers

jacg311

mod-fungible's Issues

Crash when startup 1.2+MC1.19.2

Description: Initializing game

java.lang.RuntimeException: Mixin transformation of com.mojang.text2speech.Narrator failed
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427)
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323)
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
        at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
        at net.minecraft.client.util.NarratorManager.<init>(NarratorManager.java:28)
        at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:647)
        at net.minecraft.client.main.Main.main(Main.java:184)
        at net.minecraft.client.main.Main.main(Main.java:56)
        at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
        at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
        at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
        at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422)
        ... 12 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinPreProcessorException: Attach error for fungible.mixins.json:NarratorMixin from mod fungible during activity: [Transform -> Method getNarrator()Lcom/mojang/text2speech/Narrator; -> INVOKESPECIAL -> com/mojang/text2speech/NarratorDummy::<init>:()V]
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:313)
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:277)
        at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1289)
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:294)
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421)
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403)
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
        ... 15 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.mojang.text2speech.NarratorDummy
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMemberReference(MixinPreProcessorStandard.java:786)
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMethod(MixinPreProcessorStandard.java:772)
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transform(MixinPreProcessorStandard.java:738)
        at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:307)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: com.mojang.text2speech.NarratorDummy
        ... 25 more

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.