Jump to content

[Fixed!] ForgeModLoader Zip file failed to read "mymod" properly, it will be


Bandayd

Recommended Posts

Hi, I'm new to modding with forge and I've created a mod that works great, and I've even ran the recompile and reobfuscate to create my .class files etc... (which I might add took me a long time to figure out, you might want to include those steps in your tutorials, they all cut off before the exporting step)  I've even created a mcmod.info file.

 

My question is, if I drag my mod into a subfolder of the "mods" folder on the server, it works just great!, however, if I zip the folder into a .zip file.  I get the following error from the server....

2012-09-01 13:45:53 [WARNING] [ForgeModLoader] Zip file KIOD_Server.zip failed to read properly, it will be ignored

 

And then of course.... my mod does nothing.  So my question is:

How do I package my mod into a zip file in such a way that minecraftforge will play nice with it? :-)  And also, is there a place that details how I should package it?

 

Thanks for your time, and for creating forge, I'm very impressed with what you guys have done and can't wait to see what you guys do next! :-D

Link to comment
Share on other sites

Here is the full log from the server:

 

2012-09-01 14:29:44 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading

2012-09-01 14:29:45 [iNFO] [sTDOUT] 195 recipes

2012-09-01 14:29:45 [iNFO] [sTDOUT] 27 achievements

2012-09-01 14:29:45 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2012-09-01 14:29:45 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2012-09-01 14:29:45 [iNFO] [ForgeModLoader] Searching C:\Users\jmeadows\AppData\Roaming\- minecraft server - 1.3.2\mods for mods

2012-09-01 14:29:46 [WARNING] [ForgeModLoader] Zip file KIOD.zip failed to read properly, it will be ignored

2012-09-01 14:29:46 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 2 mods to load

2012-09-01 14:29:46 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 2 mods

 

 

Are you saying I need to update?  I just updated yesterday or the day before?

 

Also, you should know, I don't have anything else goofy on my server, it's just a vanilla server, with minecraftforge loaded in it :-)

Link to comment
Share on other sites

ok now I'm getting this...

 

2012-09-01 14:36:56 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.171.348 for Minecraft client:1.3.2, server:1.3.2 loading

2012-09-01 14:36:57 [iNFO] [sTDOUT] 195 recipes

2012-09-01 14:36:57 [iNFO] [sTDOUT] 27 achievements

2012-09-01 14:36:57 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2012-09-01 14:36:57 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2012-09-01 14:36:57 [iNFO] [ForgeModLoader] Searching C:\Users\jmeadows\AppData\Roaming\- minecraft server - 1.3.2\mods for mods

2012-09-01 14:36:57 [iNFO] [ForgeModLoader] The mod container minecraft_server.jar appears to be missing an mcmod.info file

2012-09-01 14:36:57 [WARNING] [ForgeModLoader] Zip file KIOD.zip failed to read properly, it will be ignored

java.lang.RuntimeException: Empty reference at cpw.mods.fml.common.versioning.VersionParser.parseVersionReference(VersionParser.java:32)

        at cpw.mods.fml.common.ModMetadata.processReferences(ModMetadata.java:144)

        at cpw.mods.fml.common.ModMetadata.<init>(ModMetadata.java:117)

        at cpw.mods.fml.common.MetadataCollection.parseModMetadataList(MetadataCollection.java:72)

        at cpw.mods.fml.common.MetadataCollection.parse10ModInfo(MetadataCollection.java:64)

        at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:35)

        at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:36)

        at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:30)

        at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:47)

        at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:103)

        at cpw.mods.fml.common.Loader.identifyMods(Loader.java:317)

        at cpw.mods.fml.common.Loader.loadMods(Loader.java:437)

        at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:77)

        at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

        at ft.b(DedicatedServer.java:49)

        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)

        at ep.run(SourceFile:539)

2012-09-01 14:36:57 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 2 mods to load

2012-09-01 14:36:57 [sEVERE] [ForgeModLoader] FML has found a non-mod file minecraft_server.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

2012-09-01 14:36:57 [sEVERE] [ForgeModLoader] FML has found a non-mod file KIOD.

zip in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

2012-09-01 14:36:58 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 2 mods

2012-09-01 14:36:59 [iNFO] [ForgeModLoader] MinecraftForge v4.0.0.243 Initialized

 

 

But keep in mind, the mod loads great if I just throw it in a folder, the thing is, I don't want my users to have to deal with that, they should be able to just throw a zip in there to make things easy and simple for them. :-)

Link to comment
Share on other sites

You were right! thank you very much!  But now, I have yet another question....

When I load the mod in the client, and I go the loading screen, click on the mods button and click on my mod, I get this...

 

KeepItemsOnDeath_Server

Version: 1.3.2

Mod State: Available

No mod information found

Ask your mod to provide a mcmod.info file

 

here is the contents of my mcmod.info file, is there something I'm doing wrong?

 

[
{
  "modid": "KeepItemsOnDeath",
  "name": "Keep Items on Death",
  "description": "A simple mod that allows you to NOT lose everything when you die. :-)",
  "version": "1.0",
  "mcversion": "1.3.2",
  "authors": [
    "Bandayd",
    "glider521al"
  ],
  "credits": "Authored by Bandayd, based on an original mod by glider521al",
  "parent":""
}
]

 

I put in a description, it should be showing up there I would think, since I clearly have created a mcmod.info file right? :-)

Link to comment
Share on other sites

I had the same little problem and solved it.

 

Your "modid" in your mcmod.info must be identical to your "modid" in the @Mod annotation in your mod class

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

ok, thank you SanAndreasP, that fixed it, what about the Authors tag though?

 

I have stuff in it and it's not showing up either?  Any advice there?

 

Here is my latest version of the file (it hasn't changed much):

 

{
  "modinfoversion": 2,
  "modlist" : 
[
{
  "modid": "KeepItemsOnDeath",
  "name": "Keep Items on Death",
  "description": "A simple mod that allows you to NOT lose everything when you die. :-)",
  "version": "1.0",
  "mcversion": "1.3.2",
  "authors": [
  "Bandayd",
  "glider521al"
  ],
  "credits": "Authored by Bandayd, based on an original mod by glider521al",
  "parent":""
}
]
}

Link to comment
Share on other sites

You have to insert 2 spaces before the author names, like:

{
  "modinfoversion": 2,
  "modlist" : 
[
{
  "modid": "KeepItemsOnDeath",
  "name": "Keep Items on Death",
  "description": "A simple mod that allows you to NOT lose everything when you die. :-)",
  "version": "1.0",
  "mcversion": "1.3.2",
  "authors": [
    "Bandayd",
    "glider521al"
  ],
  "credits": "Authored by Bandayd, based on an original mod by glider521al",
  "parent":""
}
]
}

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

I'm sorry but it still doesn't work for me.  I even tried copying and pasting your exact code. :-(

I would even be content if you could find another mod that DOES populate the author field properly.  That way I could steal... I mean copy the mcmod.info file from them, and see if I can get it working on mine.

 

I've tried copying and pasting your code you said should work.  I've also tried putting 2 spaces in my original version.  I've even tried putting in tabs instead of spaces for indenting.

 

Here is my ForgeModLoader-client-0.log file:

 

2012-09-02 08:59:40 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] All core mods are successfully located

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Discovering coremods

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir

 

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir

 

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir

 

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Running coremod plugins

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Validating minecraft

2012-09-02 08:59:40 [FINEST] [ForgeModLoader] Minecraft validated, launching...

2012-09-02 08:59:41 [iNFO] [sTDOUT] 27 achievements

2012-09-02 08:59:41 [iNFO] [sTDOUT] 195 recipes

2012-09-02 08:59:42 [iNFO] [sTDOUT] Setting user: Player, 1

2012-09-02 08:59:42 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

2012-09-02 08:59:42 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2012-09-02 08:59:42 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\bin\lwjgl.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\bin\jinput.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\bin\lwjgl_util.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\jmeadows\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\lib\argo-2.25.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\lib\guava-12.0.1.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Skipping known library file C:\Users\jmeadows\AppData\Roaming\.minecraft\lib\asm-all-4.0.jar

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully

2012-09-02 08:59:42 [iNFO] [ForgeModLoader] Searching C:\Users\jmeadows\AppData\Roaming\.minecraft\mods for mods

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a candidate zip or jar file [1.3.2]ReiMinimap_v3.2_05.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a candidate zip or jar file BattleTowers_1.3.2.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a candidate zip or jar file InvTweaks-1.43b-1.3.2.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a candidate zip or jar file KIOD.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Found a candidate mod directory rei_minimap

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining file [1.3.2]ReiMinimap_v3.2_05.zip for potential mods

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Located mcmod.info file in file [1.3.2]ReiMinimap_v3.2_05.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Identified a BaseMod type mod mod_ReiMinimap

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining file BattleTowers_1.3.2.zip for potential mods

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Located mcmod.info file in file BattleTowers_1.3.2.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Identified a FMLMod type mod atomicstryker.battletowers.common.AS_BattleTowersCore

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining file InvTweaks-1.43b-1.3.2.zip for potential mods

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Located mcmod.info file in file InvTweaks-1.43b-1.3.2.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Identified a BaseMod type mod mod_InvTweaks

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining file KIOD.zip for potential mods

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Located mcmod.info file in file KIOD.zip

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Identified a FMLMod type mod mod_OnUpdateEventHookClass

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Examining directory rei_minimap for potential mods

2012-09-02 08:59:42 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Received a system property request ''

2012-09-02 08:59:42 [FINE] [ForgeModLoader] System property request managing the state of 0 mods

2012-09-02 08:59:42 [FINE] [ForgeModLoader] After merging, found state information for 0 mods

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied

2012-09-02 08:59:42 [FINE] [ForgeModLoader] All mod requirements are satisfied

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Sorting mods into an ordered list

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Mod sorting completed successfully

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Mod sorting data:

2012-09-02 08:59:42 [FINE] [ForgeModLoader] mod_ReiMinimap(mod_ReiMinimap): [1.3.2]ReiMinimap_v3.2_05.zip ()

2012-09-02 08:59:42 [FINE] [ForgeModLoader] ASBattleTowers(Battle Towers): BattleTowers_1.3.2.zip ()

2012-09-02 08:59:42 [FINE] [ForgeModLoader] mod_InvTweaks(mod_InvTweaks): InvTweaks-1.43b-1.3.2.zip ()

2012-09-02 08:59:42 [FINE] [ForgeModLoader] KeepItemsOnDeath(Keep Items on Death): KIOD.zip ()

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod FML

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod Forge

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Enabling mod mod_ReiMinimap

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod mod_ReiMinimap

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Enabling mod ASBattleTowers

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod ASBattleTowers

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Enabling mod mod_InvTweaks

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod mod_InvTweaks

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Enabling mod KeepItemsOnDeath

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Activating mod KeepItemsOnDeath

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod FML

2012-09-02 08:59:42 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod FML

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod Forge

2012-09-02 08:59:42 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod Forge

2012-09-02 08:59:42 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod mod_ReiMinimap

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Reading existing configuration file for mod_ReiMinimap : mod_ReiMinimap.cfg

2012-09-02 08:59:42 [FINE] [ForgeModLoader] MLProp configuration file for mod_ReiMinimap found but not required. Attempting to rename file to mod_ReiMinimap.cfg.bak

2012-09-02 08:59:42 [FINE] [ForgeModLoader] Unused MLProp configuration file for mod_ReiMinimap renamed UNSUCCESSFULLY to mod_ReiMinimap.cfg.bak

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into mod_ReiMinimap

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod mod_ReiMinimap

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod ASBattleTowers

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into ASBattleTowers

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod ASBattleTowers

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod mod_InvTweaks

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Reading existing configuration file for mod_InvTweaks : mod_InvTweaks.cfg

2012-09-02 08:59:43 [FINE] [ForgeModLoader] MLProp configuration file for mod_InvTweaks found but not required. Attempting to rename file to mod_InvTweaks.cfg.bak

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Unused MLProp configuration file for mod_InvTweaks renamed UNSUCCESSFULLY to mod_InvTweaks.cfg.bak

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into mod_InvTweaks

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod mod_InvTweaks

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 to mod KeepItemsOnDeath

2012-09-02 08:59:43 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into KeepItemsOnDeath

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@f7e6be6 delivered to mod KeepItemsOnDeath

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod FML

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod FML

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod Forge

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod Forge

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod mod_ReiMinimap

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod mod_ReiMinimap

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod ASBattleTowers

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod ASBattleTowers

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod mod_InvTweaks

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod mod_InvTweaks

2012-09-02 08:59:43 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 to mod KeepItemsOnDeath

2012-09-02 08:59:43 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPreInitializationEvent@1914dd04 delivered to mod KeepItemsOnDeath

2012-09-02 08:59:43 [iNFO] [sTDOUT] Starting up SoundSystem...

2012-09-02 08:59:43 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2012-09-02 08:59:43 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2012-09-02 08:59:43 [iNFO] [sTDOUT] OpenAL initialized.

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 to mod KeepItemsOnDeath

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLInitializationEvent@623d4993 delivered to mod KeepItemsOnDeath

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 to mod KeepItemsOnDeath

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLPostInitializationEvent@5a87c958 delivered to mod KeepItemsOnDeath

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod FML

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod Forge

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod mod_ReiMinimap

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod ASBattleTowers

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod mod_InvTweaks

2012-09-02 08:59:44 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 to mod KeepItemsOnDeath

2012-09-02 08:59:44 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLLoadCompleteEvent@6fc2a644 delivered to mod KeepItemsOnDeath

2012-09-02 08:59:44 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 6 mods

2012-09-02 09:00:08 [iNFO] [sTDOUT] Stopping!

2012-09-02 09:00:08 [iNFO] [sTDOUT] SoundSystem shutting down...

2012-09-02 09:00:09 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

 

 

 

it doesn't say anything about an error reading the author, so I don't think it's any help :-\

 

but yeah, maybe if you could find a mod that actually loads the Authors properly (other than forge which is hardcoded in :-P) that I could simply copy the mcmod.info file from.  I think that would be easiest.  Either that, or if you have any other ideas, because I'm sorry, the two spaces didn't fix it :-(

 

P.S. I'm not sure if it's intentional, but your signature shows up like this...

 

public class SAP_Signature extends Signature {
      public SAP_Signature(Forum forum) {
            try {
                  forum.loadSignatureFromURL("http://www.signature.com/?usr=sanandreasp")
            } catch(MalformedURLException e) {
                  forum.getLogger().throwException(e, "Cannot load Signature");
            } catch(IOException e) {
                  forum.getLogger().throwException(e, "Signature image corrupt");
            }
      }
}

 

 

And it doesn't show an image.  It's possible that you're trying to show people how to set that up, in which case, no worries. I just wanted you to know it wasn't loading the image, or executing the code. :-P

Link to comment
Share on other sites

If it's still not working, try this: http://json.parser.online.fr/

It's a parser where you can insert your mcmod.info content and it'll shows you errors and you can correct them.

 

If you still can't figure out how to do it, here's my mcmod.info file from the Clay Soldiers Mod:

 

[
{
  "modid": "ClaySoldiersMod",
  "name": "Clay Soldiers Mod",
  "description": "Tiny soldiers out of clay, which will fight for your entertainment. They can be upgraded by various items and have their own mounts.",
  "version": "8.0",
  "mcversion": "1.3.2",
  "url": "http://www.minecraftforum.net/topic/964897-",
  "updateUrl": "",
  "authors": [
    "KodaichiZero",
"SanAndreasP",
"SilverChiren"
  ],
  "credits": "",
  "logoFile": "logo_csm.png",
  "screenshots": [
  ],
  "parent":"",
  "dependencies": [
  ]
}
]

 

 

PS: My signature is supposed to be like this, it's just a joke :D

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Nope, still no dice, sorry :-(

 

I tried the parser, which read correctly as soon as I put my original code in. :-\

 

The only thing I could think of was, the JSON parser took out the indentation (it removed any spaces on the left side).  So just for the sake of being thorough I copied it out of there and pasted it into my zip file, still no dice, the Author is still showing up as blank like this picture shows:

 

width=800 height=476http://jaredscodingshack.abits.biz/Author%20not%20showing%20up.png[/img]

 

Here's the updated code I was using in order to get this picture:

 

{

  "modinfoversion": 2,

  "modlist" :

[

{

  "modid": "KeepItemsOnDeath",

  "name": "Keep Items on Death",

  "description": "A simple mod that allows you to NOT lose everything when you die. :-)",

  "version": "1.0",

  "mcversion": "1.3.2",

  "url": "http://adf.ly/CTNHg",

  "authors": [

  "Bandayd",

  "glider521al"

  ],

  "credits": "Authored by Bandayd, based on an original mod by glider521al",

  "screenshots": [

    "shot1.png",

    "shot2.png",

    "shot3.png",

    "shot4.png"

  ],

  "parent":""

}

]

}

 

 

I'm starting to think that forge's json parser for the author field is possibly broken? :-\

 

Here's the link for the mod if anybody else wants to toy around with it and prove me wrong, but I can't think of anything else I haven't tried.  I'd even be open to only listing one author if that's what I have to do in order to get it working??? :-\

 

Again, thanks SanAndreasP for your continued help and patience with me :-)

Link to comment
Share on other sites

first of all I'd like to say THANK YOU cpw for your lightning-quick response speed!  exactly 30 seconds between my post and your answer.  That has to be some kind of record!!! :-P

 

Secondly.... IT'S FIXED!!!! Thanks cpw for finding my problem! That WAS what was wrong :-)

 

I had orignally taken my mcmod.info file format from this page:

https://github.com/cpw/FML/wiki/FML-mod-information-file

 

Which I took the liberty of correcting, is that where I should have gotten that from?  Or is there another more official page showing the format of the mcmod.info files?

 

Thanks again both cpw and SanAndreasP for both of your help getting me completely fixed :-D

 

 

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • 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;     }  
  • Topics

×
×
  • Create New...

Important Information

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