Jump to content

Mod loading twice with new Forge


laseromich

Recommended Posts

All mods who inside mineraft.jar (now i try only with IC2)  - loaded twice!  With old forge(3.1) forks fine

But mods in /mods/ folder load once

 

start.bat

 

Starting...

Digest(in hex format):: d4390abead656421827092657db977d4

27 achievements

182 recipes

Setting user: test, 170768728718069645134

LWJGL Version: 2.4.2

ш¦э 25, 2012 10:58:11 PM cpw.mods.fml.common.FMLCommonHandler beginLoading

INFO: Attempting early MinecraftForge initialization

ш¦э 25, 2012 10:58:11 PM cpw.mods.fml.common.FMLCommonHandler beginLoading

INFO: Completed early MinecraftForge initialization

2012-06-25 22:58:11 [iNFO] Forge Mod Loader version 2.2.78.153 for Minecraft 1.2.5 loading

2012-06-25 22:58:11 [iNFO] Loading mods from C:\Users\admin\Desktop\client90T\data\.minecraft\mods

2012-06-25 22:58:11 [iNFO] Forge Mod Loader has loaded 11 mods

WARNING: Found unknown Windows version: Windows 7

Attempting to use default windows plug-in.

Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin

MinecraftForge v3.3.8.152 Initialized

2012-06-25 22:58:11 [iNFO] MinecraftForge v3.3.8.152 Initialized

[iC2] Config loaded from C:\Users\admin\Desktop\client90T\data\.minecraft\config\IC2.cfg

[iC2] Using 32 audio sources.

[iC2] Config loaded from C:\Users\admin\Desktop\client90T\data\.minecraft\config\IC2.cfg

[iC2] Using 32 audio sources.

java.lang.IllegalArgumentException: Slot 249 is already occupied by ic2.common.BlockTex@2794106a wh

n adding ic2.common.BlockTex@69c1b372

        at pb.<init>(Block.java:251)

        at pb.<init>(Block.java:284)

        at ic2.platform.BlockCommon.<init>(BlockCommon.java:12)

        at ic2.common.BlockTex.<init>(BlockTex.java:30)

        at mod_IC2.load(mod_IC2.java:206)

        at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:351)

        at cpw.mods.fml.common.Loader.modInit(Loader.java:263)

        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:604)

        at cpw.mods.fml.client.FMLClientHandler.onLoadComplete(FMLClientHandler.java:203)

        at net.minecraft.client.Minecraft.a(Minecraft.java:426)

        at net.minecraft.client.Minecraft.run(Minecraft.java:735)

        at java.lang.Thread.run(Unknown Source)

2012-06-25 22:58:22 [sEVERE] A critical error has occurred.

java.lang.IllegalArgumentException: Slot 249 is already occupied by ic2.common.BlockTex@2794106a wh

n adding ic2.common.BlockTex@69c1b372

        at pb.<init>(Block.java:251)

        at pb.<init>(Block.java:284)

        at ic2.platform.BlockCommon.<init>(BlockCommon.java:12)

        at ic2.common.BlockTex.<init>(BlockTex.java:30)

        at mod_IC2.load(mod_IC2.java:206)

        at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:351)

        at cpw.mods.fml.common.Loader.modInit(Loader.java:263)

        at cpw.mods.fml.common.Loader.initializeMods(Loader.java:604)

        at cpw.mods.fml.client.FMLClientHandler.onLoadComplete(FMLClientHandler.java:203)

        at net.minecraft.client.Minecraft.a(Minecraft.java:426)

        at net.minecraft.client.Minecraft.run(Minecraft.java:735)

        at java.lang.Thread.run(Unknown Source)

2012-06-25 22:58:22 [sEVERE] 11 mods loaded

Minecraft Forge 3.3.8.152

FML v2.2.78.153

Forge Mod Loader version 2.2.78.153 for Minecraft 1.2.5

        mod_MinecraftForge : Initialized (minecraft.jar)

        mod_IC2 : Initialized (minecraft.jar)

        mod_MinecraftForge : Initialized (minecraft.jar)

        mod_IC2 : Pre-initialized (minecraft.jar)

        mod_RedPowerControl : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerCore : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerLighting : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerLogic : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerMachine : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerWiring : Pre-initialized (RedPowerAll.zip)

        mod_RedPowerWorld : Pre-initialized (RedPowerAll.zip)

 

 

 

ForgeModLoader-0.log

 

2012-06-25 22:58:11 [iNFO] Forge Mod Loader version 2.2.78.153 for Minecraft 1.2.5 loading

2012-06-25 22:58:11 [FINE] Attempting to load mods contained in the minecraft jar file and associated classes

2012-06-25 22:58:11 [FINE] Found a minecraft related file at C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar, loading

2012-06-25 22:58:11 [FINE] Found a mod class mod_MinecraftForge in file minecraft.jar, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_MinecraftForge found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_MinecraftForge loaded

2012-06-25 22:58:11 [FINE] Mod class mod_MinecraftForge loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_IC2 in file minecraft.jar, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_IC2 found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_IC2 loaded

2012-06-25 22:58:11 [FINE] Mod class mod_IC2 loaded successfully

2012-06-25 22:58:11 [FINE] Found a minecraft related file at C:\Users\admin\Desktop\client90T\data\.minecraft\bin\lwjgl.jar, loading

2012-06-25 22:58:11 [FINE] Found a minecraft related file at C:\Users\admin\Desktop\client90T\data\.minecraft\bin\jinput.jar, loading

2012-06-25 22:58:11 [FINE] Found a minecraft related file at C:\Users\admin\Desktop\client90T\data\.minecraft\bin\lwjgl_util.jar, loading

2012-06-25 22:58:11 [FINE] Found a minecraft related file at C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar, loading

2012-06-25 22:58:11 [FINE] Found a mod class mod_MinecraftForge in file minecraft.jar, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_MinecraftForge found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_MinecraftForge loaded

2012-06-25 22:58:11 [FINE] Mod class mod_MinecraftForge loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_IC2 in file minecraft.jar, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_IC2 found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_IC2 loaded

2012-06-25 22:58:11 [FINE] Mod class mod_IC2 loaded successfully

2012-06-25 22:58:11 [FINE] Minecraft jar mods loaded successfully

2012-06-25 22:58:11 [iNFO] Loading mods from C:\Users\admin\Desktop\client90T\data\.minecraft\mods

2012-06-25 22:58:11 [FINE] Found a zip or jar file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerControl in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerControl found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerControl loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerControl

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerControl loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerCore in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerCore found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerCore loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerCore

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerCore loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerLighting in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerLighting found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerLighting loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerLighting

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerLighting loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerLogic in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerLogic found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerLogic loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerLogic

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerLogic loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerMachine in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerMachine found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerMachine loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerMachine

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerMachine loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerWiring in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerWiring found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerWiring loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerWiring

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerWiring loaded successfully

2012-06-25 22:58:11 [FINE] Found a mod class mod_RedPowerWorld in file RedPowerAll.zip, attempting to load it

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerWorld found, loading

2012-06-25 22:58:11 [FINE] ModLoader BaseMod class mod_RedPowerWorld loaded

2012-06-25 22:58:11 [FINE] Failed to find mcmod.info file in RedPowerAll.zip for mod_RedPowerWorld

2012-06-25 22:58:11 [FINE] Mod class mod_RedPowerWorld loaded successfully

2012-06-25 22:58:11 [FINE] File RedPowerAll.zip loaded successfully

2012-06-25 22:58:11 [iNFO] Forge Mod Loader has loaded 11 mods

2012-06-25 22:58:11 [FINE] Beginning mod pre-initialization

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar

2012-06-25 22:58:11 [FINE] Reading existing configuration file for mod_MinecraftForge : mod_MinecraftForge.cfg

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.DISABLE_DARK_ROOMS found values default: false, configured: false, interpreted: false

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.SPAWNER_ALLOW_ON_INVERTED found values default: true, configured: true, interpreted: true

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.SPAWNER_MAKE_MORE_RANDOM found values default: false, configured: false, interpreted: false

2012-06-25 22:58:11 [FINE] Configuration for mod_MinecraftForge written to mod_MinecraftForge.cfg

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_IC2 found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar

2012-06-25 22:58:11 [FINE] Reading existing configuration file for mod_MinecraftForge : mod_MinecraftForge.cfg

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.DISABLE_DARK_ROOMS found values default: false, configured: false, interpreted: false

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.SPAWNER_ALLOW_ON_INVERTED found values default: true, configured: true, interpreted: true

2012-06-25 22:58:11 [FINEST] Configuration for mod_MinecraftForge.SPAWNER_MAKE_MORE_RANDOM found values default: false, configured: false, interpreted: false

2012-06-25 22:58:11 [FINE] Configuration for mod_MinecraftForge written to mod_MinecraftForge.cfg

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\bin\minecraft.jar

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_IC2 found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerControl found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerCore found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerLighting found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerLogic found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerMachine found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerWiring found or required. No file written

2012-06-25 22:58:11 [FINER] Pre-initializing C:\Users\admin\Desktop\client90T\data\.minecraft\mods\RedPowerAll.zip

2012-06-25 22:58:11 [FINE] No MLProp configuration for mod_RedPowerWorld found or required. No file written

2012-06-25 22:58:11 [FINE] Mod pre-initialization complete

2012-06-25 22:58:11 [FINE] Verifying mod dependencies are satisfied

2012-06-25 22:58:11 [FINE] All dependencies are satisfied

2012-06-25 22:58:11 [FINE] Sorting mods into an ordered list

2012-06-25 22:58:11 [FINE] Sorted mod list:

2012-06-25 22:58:11 [FINE] mod_MinecraftForge: minecraft.jar ()

2012-06-25 22:58:11 [FINE] mod_IC2: minecraft.jar ()

2012-06-25 22:58:11 [FINE] mod_MinecraftForge: minecraft.jar ()

2012-06-25 22:58:11 [FINE] mod_IC2: minecraft.jar ()

2012-06-25 22:58:11 [FINE] mod_RedPowerControl: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerCore: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerLighting: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerLogic: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerMachine: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerWiring: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] mod_RedPowerWorld: RedPowerAll.zip ()

2012-06-25 22:58:11 [FINE] Beginning mod initialization

2012-06-25 22:58:11 [FINER] Initializing mod_MinecraftForge

2012-06-25 22:58:11 [iNFO] MinecraftForge v3.3.8.152 Initialized

2012-06-25 22:58:11 [FINER] Initializing mod_IC2

2012-06-25 22:58:12 [FINER] Initializing mod_MinecraftForge

2012-06-25 22:58:12 [FINER] Initializing mod_IC2

2012-06-25 22:58:22 [sEVERE] A critical error has occurred.

java.lang.IllegalArgumentException: Slot 249 is already occupied by ic2.common.BlockTex@2794106a when adding ic2.common.BlockTex@69c1b372

at pb.<init>(Block.java:251)

at pb.<init>(Block.java:284)

at ic2.platform.BlockCommon.<init>(BlockCommon.java:12)

at ic2.common.BlockTex.<init>(BlockTex.java:30)

at mod_IC2.load(mod_IC2.java:206)

at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:351)

at cpw.mods.fml.common.Loader.modInit(Loader.java:263)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:604)

at cpw.mods.fml.client.FMLClientHandler.onLoadComplete(FMLClientHandler.java:203)

at net.minecraft.client.Minecraft.a(Minecraft.java:426)

at net.minecraft.client.Minecraft.run(Minecraft.java:735)

at java.lang.Thread.run(Unknown Source)

2012-06-25 22:58:22 [sEVERE] 11 mods loaded

Minecraft Forge 3.3.8.152

FML v2.2.78.153

Forge Mod Loader version 2.2.78.153 for Minecraft 1.2.5

mod_MinecraftForge : Initialized (minecraft.jar)

mod_IC2 : Initialized (minecraft.jar)

mod_MinecraftForge : Initialized (minecraft.jar)

mod_IC2 : Pre-initialized (minecraft.jar)

mod_RedPowerControl : Pre-initialized (RedPowerAll.zip)

mod_RedPowerCore : Pre-initialized (RedPowerAll.zip)

mod_RedPowerLighting : Pre-initialized (RedPowerAll.zip)

mod_RedPowerLogic : Pre-initialized (RedPowerAll.zip)

mod_RedPowerMachine : Pre-initialized (RedPowerAll.zip)

mod_RedPowerWiring : Pre-initialized (RedPowerAll.zip)

mod_RedPowerWorld : Pre-initialized (RedPowerAll.zip)

 

 

 

Link to comment
Share on other sites

My custom fix  in cpw/Loader.java

where your " for "  ~~ 356 string 

that will protect scan minecraft.jar twice for mods :/ 

 

 

 
          int minejar=0;
           for (int i=0; i<minecraftSources.length; i++) {
                if (minecraftSources[i].isFile()) {
		if (minecraftSources[i].getName().equals("minecraft.jar") ){	
			if (minejar < 1  )	{       minejar++;	attemptFileLoad(minecraftSources[i], SourceType.CLASSPATH);}
		}
		else{
			log.fine(String.format("Found a minecraft related file at %s, loading",minecraftSources[i].getName()));
			attemptFileLoad(minecraftSources[i], SourceType.CLASSPATH);
		}		

                } else if (minecraftSources[i].isDirectory()) {
                    log.fine(String.format("Found a minecraft related directory at %s, loading",minecraftSources[i].getAbsolutePath()));
                    attemptDirLoad(minecraftSources[i],"",SourceType.CLASSPATH);
                }
            }
        }
        log.fine("Minecraft jar mods loaded successfully");

you want ask for whaat that?

 

1- if  in minecraft.jar no mods, thay load MineForge - twice!  :\

2- if  in minecraft.jar mods thay load it twice too :D

Link to comment
Share on other sites

That's is some ugly ass code.

Anyways, this shouldn't be happening and you shouldn't need to edit any classes to stop it.

I can not reproduce your issues, I load things only once when they are in the jar.

Give me your EXACTLY installed files, and your EXACT install order.

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

lasero, what is going on here? You have the minecraft jar duplicated on your classpath somehow and that is causing your issue. The question is, why do you have minecraft.jar on the classpath twice? What launcher are you using that is doing that? I would suggest fixing the launcher...

Also, LCTrees is broken with recent forge. It won't work until the author updates the mod...

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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