Jump to content

Change Minecraft load directory


Recommended Posts

I am working on a Minecraft launcher to auto-install all my server's mods automatically. Everything installs and runs, but it loaded from .minecraft instead of my folder... So I made a mod that overrides Minecraft.java(Only way I know how to do it) to change the directory for the folder. It changed the directory fine. But, after forge is done setting up, I get an odd error...

 

 

Here's the log...

 

 


Setting game location to debuglocation!
2013-07-08 21:30:03 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.2.684 for Minecraft 1.5.2 loading
2013-07-08 21:30:03 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_02, running on Windows Vista:amd64:6.0, installed at C:\Program Files\Java\jre7
2013-07-08 21:30:10 [iNFO] [ForgeModLoader] Found valid fingerprint for Minecraft Forge. Certificate fingerprint de4cf8a3f3bc15635810044c39240bf96804ea7d
2013-07-08 21:30:29 [iNFO] [sTDOUT] 229 recipes
2013-07-08 21:30:30 [iNFO] [sTDOUT] 27 achievements
2013-07-08 21:30:30 [iNFO] [Minecraft-Client] Setting user: stumblinbear
2013-07-08 21:30:30 [iNFO] [sTDOUT] (Session ID is 2535cc853bfaba68b194394f4028f3e100f06181)
2013-07-08 21:30:30 [iNFO] [sTDERR] Client asked for parameter: server
2013-07-08 21:30:30 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-07-08 21:30:31 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchMethodError: net.minecraftforge.client.ForgeHooksClient.createDisplay()V
2013-07-08 21:30:31 [iNFO] [sTDERR]    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:380)
2013-07-08 21:30:31 [iNFO] [sTDERR]    at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
2013-07-08 21:30:31 [iNFO] [sTDERR]    at net.minecraft.client.Minecraft.run(Minecraft.java:734)
2013-07-08 21:30:31 [iNFO] [sTDERR]    at java.lang.Thread.run(Unknown Source)

 

 

 

 

I do NOT want to use MultiMC... I already looked through their source to see how they did it and came up with nothing... Can anyone help?

Link to comment
Share on other sites

I advise dropping any plans of custom launchers with the new official launcher.

Find a way to install your modpack as a profile in the new launcher.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
    • It is an issue with quark - update it to this build: https://www.curseforge.com/minecraft/mc-mods/quark/files/3642325
  • Topics

×
×
  • Create New...

Important Information

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