Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I am trying to add a config to my mod Additional Crafting but Even if I use then same code from the tutorial I get this error and I know my class is there so I can't figure out whats the matter.

 

 

2013-05-11 22:44:44 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue

2013-05-11 22:44:44 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML [Forge Mod Loader] (coremods) Unloaded->Constructed

Forge [Minecraft Forge] (coremods) Unloaded->Constructed

AdditionalCrafting [Additional Crafting] (chibill) Unloaded->Errored

2013-05-11 22:44:44 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-05-11 22:44:44 [sEVERE] [ForgeModLoader] Caught exception from AdditionalCrafting

java.lang.ClassNotFoundException: chibill.AdditionalCrafting.Base

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

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

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)

at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

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

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

Caused by: java.lang.NullPointerException

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)

... 32 more

2013-05-11 22:44:55 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: chibill.AdditionalCrafting.Base

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)

2013-05-11 22:44:55 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)

2013-05-11 22:44:55 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

2013-05-11 22:44:55 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: chibill.AdditionalCrafting.Base

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-05-11 22:44:55 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)

2013-05-11 22:44:55 [iNFO] [sTDERR] ... 5 more

2013-05-11 22:44:55 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-05-11 22:44:55 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)

2013-05-11 22:44:55 [iNFO] [sTDERR] ... 32 more

 

 

It seems like it can't find the class: chibill.AdditionalCrafting.Base. Does this class even exists?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  • Author

Yes it does that's the base class of my whole mod and it sees my mod before it crashs.

  • Author

This is the only code that is relay could cause it.

 

@Mod.PreInit
  public void preInit(FMLPreInitializationEvent event)
  {
    System.out.println("Starting confifuration of Additional Crafting!");
    Configuration config = new Configuration(event.getSuggestedConfigurationFile());

    config.load();

    boolean wasRead = true;

    Property Blocks_Start_ID = config.getBlock("StartBlockID", 1225);
    Blocks_Start_ID.comment = "The Starting ID for Blocks, Will have up to 10 added to this.";
    int B_Start_ID = Blocks_Start_ID.getInt();

    this.IronStairs = B_Start_ID;
    this.GlassStairs = (B_Start_ID + 1);
    this.GoldStairs = (B_Start_ID + 2);
    this.LapisStairs = (B_Start_ID + 3);

    if (!wasRead)
    {
      config.save();
    }
    System.out.println("Finish reading and prossesing the config for Additional Crafting!");
  }

Bump

 

Try this config code:

In a class called ModNameConfig:

    static int tauriteID;
    static int tauriteClothID;

    public static Item taurite;
    public static Item tauriteCloth;

    public static Configuration config;

    public static void load(Configuration config) {
        config = configuration;
        config.load();
        tauriteID = config.get(Configuration.CATEGORY_ITEM, "Taurite ID", 1100)
                .getInt();
        tauriteClothID = config.get(Configuration.CATEGORY_ITEM,
                "Taurite Cloth ID", 1101).getInt();

        taurite = new ItemTaurite(tauriteID, "taurite")
                .setCreativeTab(CreativeTabs.tabMaterials);
        tauriteCloth = new ItemTauriteCloth(tauriteClothID, "tauriteCloth")
                .setCreativeTab(CreativeTabs.tabMaterials);
        config.save();
    }

 

In your base class in the pre init method:

    ModNameConfig.loadConfig(new Configuration(event
                .getSuggestedConfigurationFile()));

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Does not work eqlipes puts red lines under the varables at the top ans the void in the functuion.

Does not work eqlipes puts red lines under the varables at the top ans the void in the functuion.

 

    public static void load(Configuration config) {
        config = configuration;

 

Probably because you have a parameter which is named the same as a variable and trying to set it with a non-existant variable.

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.

Does not work eqlipes puts red lines under the varables at the top ans the void in the functuion.

 

    public static void load(Configuration config) {
        config = configuration;

 

Probably because you have a parameter which is named the same as a variable and trying to set it with a non-existant variable.

 

Yup.  Do this instead:

 

public static void load(Configuration config) {
        this.config = config;

 

It's still better to use different names for both, but that will work.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

That does not change anything Is there another place to look for a tutural? The one on the wiki errors out.

Read through my config code and any other code you feel like here:

 

https://github.com/ModderPenguin/MinePG

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

if you want, you can look through the pre-init method of my mod. here's the code

 

@PreInit
public void CodeLyokoPreLoad(FMLPreInitializationEvent preevt)
{
    	Configuration config = new Configuration(preevt.getSuggestedConfigurationFile());
	config.load();

	// Blocks
	BlockIds.LYOKO_TOWER = config.getBlock("lyokoTower", BlockIds.LYOKO_TOWER_DEFAULT).getInt();
	BlockIds.LYOKO_TOWER_BASE = config.getBlock("lyokoTowerBase", BlockIds.LYOKO_TOWER_BASE_DEFAULT).getInt();
	BlockIds.LYOKO_GRASS = config.getBlock("lyokoGrass", BlockIds.LYOKO_GRASS_DEFAULT).getInt();
	BlockIds.LYOKO_STONE = config.getBlock("lyokoStone", BlockIds.LYOKO_STONE_DEFAULT).getInt();
	BlockIds.LYOKO_SAND = config.getBlock("lyokoSand", BlockIds.LYOKO_SAND_DEFAULT).getInt();
	BlockIds.LYOKO_ICE = config.getBlock("lyokoIce", BlockIds.LYOKO_ICE_DEFAULT).getInt();
	BlockIds.LYOKO_LOG = config.getBlock("lyokoLog", BlockIds.LYOKO_LOG_DEFAULT).getInt();
	BlockIds.LYOKO_SEA_BLOCK = config.getBlock("lyokoSeaBlock", BlockIds.LYOKO_SEA_BLOCK_DEFAULT).getInt();
	BlockIds.LYOKO_SEA_FLOWING = config.getBlock("lyokoSeaFlowing", BlockIds.LYOKO_SEA_FLOWING_DEFAULT).getInt();
	BlockIds.LYOKO_SEA_STILL = config.getBlock("lyokoSeaStill", BlockIds.LYOKO_SEA_STILL_DEFAULT).getInt();
	BlockIds.LYOKO_VIRTUAL_BLOCK = config.getBlock("lyokovirtualblock", BlockIds.LYOKO_VIRTUAL_BLOCK_DEFAULT).getInt();
	BlockIds.LYOKO_CARTHAGE = config.getBlock("lyokoCarthage", BlockIds.LYOKO_CARTHAGE_DEFAULT).getInt();
	BlockIds.LYOKO_ORE = config.getBlock("lyokoOre", BlockIds.LYOKO_ORE_DEFAULT).getInt();
	BlockIds.LYOKO_ICE_PORTAL = config.getBlock("lyokoPolarPortal", BlockIds.LYOKO_ICE_PORTAL_DEFAULT).getInt();
	BlockIds.LYOKO_DESERT_PORTAL = config.getBlock("lyokoDesertPortal", BlockIds.LYOKO_DESERT_PORTAL_DEFAULT).getInt();
	BlockIds.LYOKO_FOREST_PORTAL = config.getBlock("lyokoForestPortal", BlockIds.LYOKO_FOREST_PORTAL_DEFAULT).getInt();
	BlockIds.LYOKO_MOUNTAIN_PORTAL = config.getBlock("lyokoMountainPortal", BlockIds.LYOKO_MOUNTAIN_PORTAL_DEFAULT).getInt();
	BlockIds.LYOKO_CARTHAGE_PORTAL = config.getBlock("lyokoCarthagePortal", BlockIds.LYOKO_CARTHAGE_PORTAL_DEFAULT).getInt();
	BlockIds.LYOKO_URANIUM_ORE = config.getBlock("lyokoUraniumOre", BlockIds.LYOKO_URANIUM_ORE_DEFAULT).getInt();
	BlockIds.LYOKO_SUPER_CALC = config.getBlock("lyokoSuperCalculator", BlockIds.LYOKO_SUPER_CALC_DEFAULT).getInt();
	BlockIds.LYOKO_LEAD_ORE = config.getBlock("lyokoLeadOre", BlockIds.LYOKO_LEAD_ORE_DEFAULT).getInt();
	BlockIds.LYOKO_MARABOUNTA = config.getBlock("marabounta", BlockIds.LYOKO_MARABOUNTA_DEFAULT).getInt();
	BlockIds.TOWER_CONSOLE = config.getBlock("towerConsole", BlockIds.TOWER_CONSOLE_DEFAULT).getInt();
	BlockIds.TOWER_FLOOR = config.getBlock("towerWall", BlockIds.TOWER_FLOOR_DEFAULT).getInt();
	BlockIds.CABLE = config.getBlock("cable", BlockIds.CABLE_DEFAULT).getInt();

	// Items
	ItemIds.WEAPON_LYOKO_1 = config.getItem("weaponLyoko1", ItemIds.WEAPON_LYOKO_1_DEFAULT).getInt();
	ItemIds.WEAPON_LYOKO_2 = config.getItem("weaponLyoko2", ItemIds.WEAPON_LYOKO_2_DEFAULT).getInt();
	ItemIds.WEAPON_LYOKO_3 = config.getItem("weaponLyoko3", ItemIds.WEAPON_LYOKO_3_DEFAULT).getInt();
	ItemIds.WEAPON_LYOKO_4 = config.getItem("weaponLyoko4", ItemIds.WEAPON_LYOKO_4_DEFAULT).getInt();
	ItemIds.WEAPON_LYOKO_5 = config.getItem("weaponLyoko5", ItemIds.WEAPON_LYOKO_5_DEFAULT).getInt();
	ItemIds.WEAPON_LYOKO_6 = config.getItem("weaponLyoko6", ItemIds.WEAPON_LYOKO_6_DEFAULT).getInt();
	ItemIds.ITEM_SKID = config.getItem("itemLyoko1", ItemIds.ITEM_SKID_DEFAULT).getInt();
	ItemIds.ITEM_OVERBOARD = config.getItem("itemOverboard", ItemIds.ITEM_OVERBOARD_DEFAULT).getInt();
	ItemIds.ITEM_QUANTUM_MATRIX = config.getItem("itemQuantumMatrix", ItemIds.ITEM_QUANTUM_MATRIX_DEFAULT).getInt();
	ItemIds.ITEM_QUANTUM_CONTAINMENT_CELL = config.getItem("itemQuantumContainmentCell", ItemIds.ITEM_QUANTUM_CONTAINMENT_CELL_DEFAULT).getInt();
	ItemIds.NOT_USED4 = config.getItem("itemLyoko5", ItemIds.NOT_USED4_DEFAULT).getInt();
	ItemIds.NOT_USED5 = config.getItem("itemLyoko6", ItemIds.NOT_USED5_DEFAULT).getInt();
	ItemIds.NOT_USED6 = config.getItem("itemLyoko7", ItemIds.NOT_USED6_DEFAULT).getInt();
	ItemIds.NOT_USED7 = config.getItem("itemLyoko8", ItemIds.NOT_USED7_DEFAULT).getInt();
	ItemIds.NOT_USED8 = config.getItem("itemLyoko9", ItemIds.NOT_USED8_DEFAULT).getInt();
	ItemIds.NOT_USED9 = config.getItem("itemLyoko10", ItemIds.NOT_USED9_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_URANIUM = config.getItem("itemLyokoUranium", ItemIds.ITEM_LYOKO_URANIUM_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_11 = config.getItem("itemLyoko11", ItemIds.ITEM_LYOKO_11_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_12 = config.getItem("itemLyoko12", ItemIds.ITEM_LYOKO_12_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_13 = config.getItem("itemLyoko13", ItemIds.ITEM_LYOKO_13_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_14 = config.getItem("itemLyoko14", ItemIds.ITEM_LYOKO_14_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_15 = config.getItem("itemLyoko15", ItemIds.ITEM_LYOKO_15_DEFAULT).getInt();
	ItemIds.AELITA_ARMOR_HELMET = config.getItem("aelitaArmorHelmet", ItemIds.AELITA_ARMOR_HELMET_DEFAULT).getInt();
	ItemIds.AELITA_ARMOR_CHEST = config.getItem("aelitaArmorChest", ItemIds.AELITA_ARMOR_CHEST_DEFAULT).getInt();
	ItemIds.AELITA_ARMOR_PANTS = config.getItem("aelitaArmorPants", ItemIds.AELITA_ARMOR_PANTS_DEFAULT).getInt();
	ItemIds.AELITA_ARMOR_BOOTS = config.getItem("aelitaArmorBoots", ItemIds.AELITA_ARMOR_BOOTS_DEFAULT).getInt();
	ItemIds.ODD_ARMOR_HELMET = config.getItem("oddArmorHelmet", ItemIds.ODD_ARMOR_HELMET_DEFAULT).getInt();
	ItemIds.ODD_ARMOR_CHEST = config.getItem("oddArmorChest", ItemIds.ODD_ARMOR_CHEST_DEFAULT).getInt();
	ItemIds.ODD_ARMOR_PANTS = config.getItem("oddArmorPants", ItemIds.ODD_ARMOR_PANTS_DEFAULT).getInt();
	ItemIds.ODD_ARMOR_BOOTS = config.getItem("oddArmorBoots", ItemIds.ODD_ARMOR_BOOTS_DEFAULT).getInt();
	ItemIds.ULRICH_ARMOR_HELMET = config.getItem("ulrichArmorHelmet", ItemIds.ULRICH_ARMOR_HELMET_DEFAULT).getInt();
	ItemIds.ULRICH_ARMOR_CHEST = config.getItem("ulrichArmorChest", ItemIds.ULRICH_ARMOR_CHEST_DEFAULT).getInt();
	ItemIds.ULRICH_ARMOR_PANTS = config.getItem("ulrichArmorPants", ItemIds.ULRICH_ARMOR_PANTS_DEFAULT).getInt();
	ItemIds.ULRICH_ARMOR_BOOTS = config.getItem("ulrichArmorBoots", ItemIds.ULRICH_ARMOR_BOOTS_DEFAULT).getInt();
	ItemIds.YUMI_ARMOR_HELMET = config.getItem("yumiArmorHelmet", ItemIds.YUMI_ARMOR_HELMET_DEFAULT).getInt();
	ItemIds.YUMI_ARMOR_CHEST = config.getItem("yumiArmorChest", ItemIds.YUMI_ARMOR_CHEST_DEFAULT).getInt();
	ItemIds.YUMI_ARMOR_PANTS = config.getItem("yumiArmorPants", ItemIds.YUMI_ARMOR_PANTS_DEFAULT).getInt();
	ItemIds.YUMI_ARMOR_BOOTS = config.getItem("yumiArmorBoots", ItemIds.YUMI_ARMOR_BOOTS_DEFAULT).getInt();
	ItemIds.WILLIAM_ARMOR_HELMET = config.getItem("williamArmorHelmet", ItemIds.WILLIAM_ARMOR_HELMET_DEFAULT).getInt();
	ItemIds.WILLIAM_ARMOR_CHEST = config.getItem("williamArmorChest", ItemIds.WILLIAM_ARMOR_CHEST_DEFAULT).getInt();
	ItemIds.WILLIAM_ARMOR_PANTS = config.getItem("williamArmorPants", ItemIds.WILLIAM_ARMOR_PANTS_DEFAULT).getInt();
	ItemIds.WILLIAM_ARMOR_BOOTS = config.getItem("williamArmorBoots", ItemIds.WILLIAM_ARMOR_BOOTS_DEFAULT).getInt();
	ItemIds.DATA_FRAGMENT = config.getItem("dataFragment", ItemIds.DATA_FRAGMENT_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_URANIUM_CELL = config.getItem("itemLyokoUraniumCell", ItemIds.ITEM_LYOKO_URANIUM_CELL_DEFAULT).getInt();
	ItemIds.ITEM_LYOKO_DEPLETED_URANIUM = config.getItem("itemLyokoDepletedUranium", ItemIds.ITEM_LYOKO_DEPLETED_URANIUM_DEFAULT).getInt();

        enableAdminPowers = config.get(Configuration.CATEGORY_GENERAL, "enableAdminPowers", false).getBoolean(false);

	DimensionIds.ICE = config.get(Configuration.CATEGORY_GENERAL, "polarSectorID", DimensionIds.ICE_DEFAULT).getInt();
	DimensionIds.MOUNTAIN = config.get(Configuration.CATEGORY_GENERAL, "mountainSectorID", DimensionIds.MOUNTAIN_DEFAULT).getInt();
	DimensionIds.FOREST = config.get(Configuration.CATEGORY_GENERAL, "forestSectorID", DimensionIds.FOREST_DEFAULT).getInt();
	DimensionIds.DESERT = config.get(Configuration.CATEGORY_GENERAL, "desertSectorID", DimensionIds.DESERT_DEFAULT).getInt();
	DimensionIds.CARTHAGE = config.get(Configuration.CATEGORY_GENERAL, "carthageSectorID", DimensionIds.CARTHAGE_DEFAULT).getInt();

	config.save();
}

 

and here's the file if you want it.

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/CodeLyoko.java

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.