MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Probleme texture Flans

    Planifier Épinglé Verrouillé Déplacé Sans suite
    1.7.10
    3 Messages 2 Publieurs 721 Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • I Hors-ligne
      impuuu
      dernière édition par

      Bonjour j ai une probléme de texture sur les arme avec les source flans genre les texture d’arme sont totalement buggé

      Erreur:

      [20:28:57] [Client thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Failed to add recipe for : dwCasualLegs
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NullPointerException
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:236)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.flansmod.common.types.InfoType.addRecipe(InfoType.java:245)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.flansmod.common.types.InfoType.addRecipe(InfoType.java:157)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.flansmod.common.FlansMod.init(FlansMod.java:223)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.run(Minecraft.java:942)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.main.Main.main(Main.java:164)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
      [20:28:57] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(Unknown Source)
      

      erreur :

      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl1 to player class CriminalDemolitions but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m1887 to player class CriminalGunslinger but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwMedicBag to player class CriminalMedic but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class CriminalSniper but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m4Carbine to player class gignAssault1 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class gignDualWield1 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class gignSniper1 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k+flanMWSilencer to player class gignSniper2 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class kskSniper1 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class marineSniper1 but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class PETFumigator but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class PETShield but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class PETSniper but the item did not exist
      [20:41:27] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class sasSniper1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class spetsnazSniper1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add spas to player class SWATCombatMedic but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class SWATFumigator but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class SWATSniper but the item did not exist
      [20:41:28] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@cc9fb2d)
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl1 to player class CriminalDemolitions but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m1887 to player class CriminalGunslinger but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwMedicBag to player class CriminalMedic but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class CriminalSniper but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m4Carbine to player class gignAssault1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class gignDualWield1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class gignSniper1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k+flanMWSilencer to player class gignSniper2 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class kskSniper1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class marineSniper1 but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class PETFumigator but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class PETShield but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class PETSniper but the item did not exist
      [20:41:28] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class sasSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class spetsnazSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add spas to player class SWATCombatMedic but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class SWATFumigator but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class SWATSniper but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl1 to player class CriminalDemolitions but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m1887 to player class CriminalGunslinger but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwMedicBag to player class CriminalMedic but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class CriminalSniper but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add m4Carbine to player class gignAssault1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class gignDualWield1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class gignSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k+flanMWSilencer to player class gignSniper2 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class kskSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class marineSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class PETFumigator but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mp5k to player class PETShield but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class PETSniper but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class sasSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class spetsnazSniper1 but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add spas to player class SWATCombatMedic but the item did not exist
      [20:41:29] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add gl6 to player class SWATFumigator but the item did not exist
      [20:41:30] [Server thread/INFO] [STDOUT]: [com.flansmod.common.FlansMod:log:549]: [Flan's Mod] Tried to add mwBinoculars to player class SWATSniper but the item did not exist
      
      

      code flans:

      package com.flansmod.common;
      
      import java.io.BufferedReader;
      import java.io.File;
      import java.io.FileInputStream;
      import java.io.FileNotFoundException;
      import java.io.FileReader;
      import java.io.IOException;
      import java.io.InputStreamReader;
      import java.lang.reflect.Method;
      import java.util.ArrayList;
      import java.util.List;
      import java.util.zip.ZipEntry;
      import java.util.zip.ZipFile;
      import java.util.zip.ZipInputStream;
      
      import net.minecraft.block.material.Material;
      import net.minecraft.command.CommandHandler;
      import net.minecraft.entity.item.EntityItem;
      import net.minecraft.entity.monster.EntitySkeleton;
      import net.minecraft.entity.monster.EntityZombie;
      import net.minecraft.init.Items;
      import net.minecraft.item.ItemStack;
      import net.minecraftforge.common.ForgeChunkManager;
      import net.minecraftforge.common.config.Configuration;
      import net.minecraftforge.event.entity.item.ItemTossEvent;
      import net.minecraftforge.event.entity.living.LivingSpawnEvent;
      import net.minecraftforge.event.entity.player.PlayerDropsEvent;
      import cpw.mods.fml.client.event.ConfigChangedEvent;
      import cpw.mods.fml.common.FMLCommonHandler;
      import cpw.mods.fml.common.Mod;
      import cpw.mods.fml.common.Mod.EventHandler;
      import cpw.mods.fml.common.Mod.Instance;
      import cpw.mods.fml.common.SidedProxy;
      import cpw.mods.fml.common.event.FMLInitializationEvent;
      import cpw.mods.fml.common.event.FMLPostInitializationEvent;
      import cpw.mods.fml.common.event.FMLPreInitializationEvent;
      import cpw.mods.fml.common.event.FMLServerStartedEvent;
      import cpw.mods.fml.common.eventhandler.SubscribeEvent;
      import cpw.mods.fml.common.network.NetworkRegistry;
      import cpw.mods.fml.common.registry.EntityRegistry;
      import cpw.mods.fml.common.registry.GameRegistry;
      import cpw.mods.fml.relauncher.Side;
      
      import com.flansmod.common.driveables.EntityPlane;
      import com.flansmod.common.driveables.EntitySeat;
      import com.flansmod.common.driveables.EntityVehicle;
      import com.flansmod.common.driveables.EntityWheel;
      import com.flansmod.common.driveables.ItemPlane;
      import com.flansmod.common.driveables.ItemVehicle;
      import com.flansmod.common.driveables.PlaneType;
      import com.flansmod.common.driveables.VehicleType;
      import com.flansmod.common.driveables.mechas.EntityMecha;
      import com.flansmod.common.driveables.mechas.ItemMecha;
      import com.flansmod.common.driveables.mechas.ItemMechaAddon;
      import com.flansmod.common.driveables.mechas.MechaItemType;
      import com.flansmod.common.driveables.mechas.MechaType;
      import com.flansmod.common.guns.AAGunType;
      import com.flansmod.common.guns.AttachmentType;
      import com.flansmod.common.guns.BulletType;
      import com.flansmod.common.guns.EntityAAGun;
      import com.flansmod.common.guns.EntityBullet;
      import com.flansmod.common.guns.EntityGrenade;
      import com.flansmod.common.guns.EntityMG;
      import com.flansmod.common.guns.GrenadeType;
      import com.flansmod.common.guns.GunType;
      import com.flansmod.common.guns.ItemAAGun;
      import com.flansmod.common.guns.ItemAttachment;
      import com.flansmod.common.guns.ItemBullet;
      import com.flansmod.common.guns.ItemGrenade;
      import com.flansmod.common.guns.ItemGun;
      import com.flansmod.common.guns.boxes.BlockGunBox;
      import com.flansmod.common.guns.boxes.GunBoxType;
      import com.flansmod.common.network.PacketHandler;
      import com.flansmod.common.parts.ItemPart;
      import com.flansmod.common.parts.PartType;
      import com.flansmod.common.teams.ArmourBoxType;
      import com.flansmod.common.teams.ArmourType;
      import com.flansmod.common.teams.BlockArmourBox;
      import com.flansmod.common.teams.BlockSpawner;
      import com.flansmod.common.teams.ChunkLoadingHandler;
      import com.flansmod.common.teams.CommandTeams;
      import com.flansmod.common.teams.EntityFlag;
      import com.flansmod.common.teams.EntityFlagpole;
      import com.flansmod.common.teams.EntityGunItem;
      import com.flansmod.common.teams.EntityTeamItem;
      import com.flansmod.common.teams.ItemFlagpole;
      import com.flansmod.common.teams.ItemOpStick;
      import com.flansmod.common.teams.ItemTeamArmour;
      import com.flansmod.common.teams.Team;
      import com.flansmod.common.teams.TeamsManager;
      import com.flansmod.common.teams.TileEntitySpawner;
      import com.flansmod.common.tools.EntityParachute;
      import com.flansmod.common.tools.ItemTool;
      import com.flansmod.common.tools.ToolType;
      import com.flansmod.common.types.EnumType;
      import com.flansmod.common.types.InfoType;
      import com.flansmod.common.types.TypeFile;
      import com.flansmod.common.eventhandlers.PlayerDeathEventListener;
      
      @Mod(modid = FlansMod.MODID, name = "Flan's Mod", version = FlansMod.VERSION, acceptableRemoteVersions = "@ALLOWEDVERSIONS@", guiFactory = "com.flansmod.client.gui.config.ModGuiFactory")
      public class FlansMod
      {
      //Core mod stuff
      public static boolean DEBUG = false;
          public static Configuration configFile;
      public static final String MODID = "flansmod";
      public static final String VERSION = "@VERSION@";
      @Instance(MODID)
      public static FlansMod INSTANCE;
          public static int generalConfigInteger = 32;
          public static String generalConfigString = "Hello!";
          public static boolean addGunpowderRecipe = true;
          public static int teamsConfigInteger = 32;
          public static String teamsConfigString = "Hello!";
          public static boolean teamsConfigBoolean = false;
      @SidedProxy(clientSide = "com.flansmod.client.ClientProxy", serverSide = "com.flansmod.common.CommonProxy")
      public static CommonProxy proxy;
      //A standardised ticker for all bits of the mod to call upon if they need one
      public static int ticker = 0;
      public static long lastTime;
      public static File flanDir;
      public static final float soundRange = 50F;
      public static final float driveableUpdateRange = 200F;
      public static final int numPlayerSnapshots = 20;
      
      public static float armourSpawnRate = 0.25F;
      
      /** The spectator team. Moved here to avoid a concurrent modification error */
      public static Team spectators = new Team("spectators", "Spectators", 0x404040, '7');
      
      //Handlers
      public static final PacketHandler packetHandler = new PacketHandler();
      public static final PlayerHandler playerHandler = new PlayerHandler();
      public static final TeamsManager teamsManager = new TeamsManager();
      public static final CommonTickHandler tickHandler = new CommonTickHandler();
      public static FlansHooks hooks = new FlansHooks();
      
      //Items and creative tabs
      public static BlockFlansWorkbench workbench;
      public static BlockSpawner spawner;
      public static ItemOpStick opStick;
      public static ItemFlagpole flag;
      public static ArrayList <blockgunbox>gunBoxBlocks = new ArrayList<blockgunbox>();
      public static ArrayList <itembullet>bulletItems = new ArrayList<itembullet>();
      public static ArrayList <itemgun>gunItems = new ArrayList<itemgun>();
      public static ArrayList <itemattachment>attachmentItems = new  ArrayList<itemattachment>();
      public static ArrayList <itempart>partItems = new ArrayList<itempart>();
      public static ArrayList <itemplane>planeItems = new ArrayList<itemplane>();
      public static ArrayList <itemvehicle>vehicleItems = new ArrayList<itemvehicle>();
      public static ArrayList <itemmechaaddon>mechaToolItems = new ArrayList<itemmechaaddon>();
      public static ArrayList <itemmecha>mechaItems = new ArrayList<itemmecha>();
      public static ArrayList <itemaagun>aaGunItems = new ArrayList<itemaagun>();
      public static ArrayList <itemgrenade>grenadeItems = new ArrayList<itemgrenade>();
      public static ArrayList <itemtool>toolItems = new ArrayList<itemtool>();
      public static ArrayList <itemteamarmour>armourItems = new ArrayList<itemteamarmour>();
      public static ArrayList <blockarmourbox>armourBoxBlocks = new ArrayList<blockarmourbox>();
      public static CreativeTabFlan tabFlanGuns = new CreativeTabFlan(0), tabFlanDriveables = new CreativeTabFlan(1),
      tabFlanParts = new CreativeTabFlan(2), tabFlanTeams = new CreativeTabFlan(3), tabFlanMechas = new CreativeTabFlan(4);
      
      /** The mod pre-initialiser method */
      @EventHandler
      public void preInit(FMLPreInitializationEvent event)
      {
      log("Preinitialising Flan's mod.");
              configFile = new Configuration(event.getSuggestedConfigurationFile());
              syncConfig();
      
      //TODO : Load properties
      //configuration = new Configuration(event.getSuggestedConfigurationFile());
      //loadProperties();
      
      flanDir = new File(event.getModConfigurationDirectory().getParentFile(), "/Flan/");
      
      if (!flanDir.exists())
      {
      log("Flan folder not found. Creating empty folder.");
      log("You should get some content packs and put them in the Flan folder.");
      flanDir.mkdirs();
      flanDir.mkdir();
      }
      
      //Set up mod blocks and items
      workbench = (BlockFlansWorkbench)(new BlockFlansWorkbench(1, 0).setBlockName("flansWorkbench").setBlockTextureName("flansWorkbench"));
      GameRegistry.registerBlock(workbench, ItemBlockManyNames.class, "flansWorkbench");
      GameRegistry.addRecipe(new ItemStack(workbench, 1, 0), "BBB", "III", "III", 'B', Items.bowl, 'I', Items.iron_ingot );
      GameRegistry.addRecipe(new ItemStack(workbench, 1, 1), "ICI", "III", 'C', Items.cauldron, 'I', Items.iron_ingot );
      opStick = new ItemOpStick();
      GameRegistry.registerItem(opStick, "opStick", MODID);
      flag = (ItemFlagpole)(new ItemFlagpole().setUnlocalizedName("flagpole"));
      GameRegistry.registerItem(flag, "flagpole", MODID);
      spawner = (BlockSpawner)(new BlockSpawner(Material.iron).setBlockName("teamsSpawner").setBlockUnbreakable().setResistance(1000000F));
      GameRegistry.registerBlock(spawner, ItemBlockManyNames.class, "teamsSpawner");
      GameRegistry.registerTileEntity(TileEntitySpawner.class, "teamsSpawner");
      
      proxy.registerRenderers();
      
      //Read content packs
      readContentPacks(event);
      
      //Do proxy loading
      proxy.load();
      //Force Minecraft to reload all resources in order to load content pack resources.
      proxy.forceReload();
      
      log("Preinitializing complete.");
      }
      
      /** The mod initialiser method */
      @EventHandler
      public void init(FMLInitializationEvent event)
      {
      log("Initialising Flan's Mod.");
      
      //Initialising handlers
      packetHandler.initialise();
      NetworkRegistry.INSTANCE.registerGuiHandler(this, new CommonGuiHandler());
      
      // Recipes
      for (InfoType type : InfoType.infoTypes)
      {
      type.addRecipe();
      }
      if(addGunpowderRecipe)
      {
      ItemStack charcoal = new ItemStack(Items.coal, 1, 1);
      GameRegistry.addShapelessRecipe(new ItemStack(Items.gunpowder), charcoal, charcoal, charcoal, new ItemStack(Items.glowstone_dust));
      }
      log("Loaded recipes.");
      
      //Register teams mod entities
      EntityRegistry.registerGlobalEntityID(EntityFlagpole.class, "Flagpole", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityFlagpole.class, "Flagpole", 93, this, 40, 5, true);
      EntityRegistry.registerGlobalEntityID(EntityFlag.class, "Flag", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityFlag.class, "Flag", 94, this, 40, 5, true);
      EntityRegistry.registerGlobalEntityID(EntityTeamItem.class, "TeamsItem", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityTeamItem.class, "TeamsItem", 97, this, 100, 10000, true);
      EntityRegistry.registerGlobalEntityID(EntityGunItem.class, "GunItem", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityGunItem.class, "GunItem", 98, this, 100, 20, true);
      
      //Register driveables
      EntityRegistry.registerGlobalEntityID(EntityPlane.class, "Plane", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityPlane.class, "Plane", 90, this, 250, 3, false);
      EntityRegistry.registerGlobalEntityID(EntityVehicle.class, "Vehicle", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityVehicle.class, "Vehicle", 95, this, 250, 10, false);
      EntityRegistry.registerGlobalEntityID(EntitySeat.class, "Seat", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntitySeat.class, "Seat", 99, this, 250, 20, false);
      EntityRegistry.registerGlobalEntityID(EntityWheel.class, "Wheel", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityWheel.class, "Wheel", 103, this, 250, 20, false);
      EntityRegistry.registerGlobalEntityID(EntityParachute.class, "Parachute", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityParachute.class, "Parachute", 101, this, 40, 20, false);
      EntityRegistry.registerGlobalEntityID(EntityMecha.class, "Mecha", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityMecha.class, "Mecha", 102, this, 250, 20, false);
      
      //Register bullets and grenades
      //EntityRegistry.registerGlobalEntityID(EntityBullet.class, "Bullet", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityBullet.class, "Bullet", 96, this, 40, 100, false);
      EntityRegistry.registerGlobalEntityID(EntityGrenade.class, "Grenade", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityGrenade.class, "Grenade", 100, this, 40, 100, true);
      
      //Register MGs and AA guns
      EntityRegistry.registerGlobalEntityID(EntityMG.class, "MG", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityMG.class, "MG", 91, this, 40, 5, true);
      EntityRegistry.registerGlobalEntityID(EntityAAGun.class, "AAGun", EntityRegistry.findGlobalUniqueEntityId());
      EntityRegistry.registerModEntity(EntityAAGun.class, "AAGun", 92, this, 40, 500, false);
      
      //Register the chunk loader 
      //TODO : Re-do chunk loading
      ForgeChunkManager.setForcedChunkLoadingCallback(this, new ChunkLoadingHandler());
      
      //Config
              FMLCommonHandler.instance().bus().register(INSTANCE);
              //Starting the EventListener
              new PlayerDeathEventListener();
      log("Loading complete.");
      }
      
      /** The mod post-initialisation method */
      @EventHandler
      public void postInit(FMLPostInitializationEvent event)
      {
      packetHandler.postInitialise();
      
      hooks.hook();
      
      /* TODO : ICBM
      isICBMSentryLoaded = Loader.instance().isModLoaded("ICBM|Sentry");
      
      log("ICBM hooking complete.");
      */
      }
      
      @SubscribeEvent
      public void playerDrops(PlayerDropsEvent event)
      {
      for(int i = event.drops.size() - 1; i >= 0; i–)
      {
      EntityItem ent = event.drops.get(i);
      InfoType type = InfoType.getType(ent.getEntityItem());
      if(type != null && !type.canDrop)
      event.drops.remove(i);
      }
      }
      
      @SubscribeEvent
      public void playerDrops(ItemTossEvent event)
      {
      InfoType type = InfoType.getType(event.entityItem.getEntityItem());
      if(type != null && !type.canDrop)
      event.setCanceled(true);
      }
      
      /** Teams command register method */
      @EventHandler
      public void registerCommand(FMLServerStartedEvent e)
      {
      CommandHandler handler = ((CommandHandler)FMLCommonHandler.instance().getSidedDelegate().getServer().getCommandManager());
      handler.registerCommand(new CommandTeams());
      }
      
          @SubscribeEvent
          public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
              if(eventArgs.modID.equals(MODID))
                  syncConfig();
          }
      
      @SubscribeEvent
      public void onLivingSpecialSpawn(LivingSpawnEvent.CheckSpawn event)
      {
      double chance = event.world.rand.nextDouble();
      
      if(chance < armourSpawnRate && event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntitySkeleton)
      {
      if(event.world.rand.nextBoolean() && ArmourType.armours.size() > 0)
      {
      //Give a completely random piece of armour
      ArmourType armour = ArmourType.armours.get(event.world.rand.nextInt(ArmourType.armours.size()));
      if(armour != null && armour.type != 2)
      event.entityLiving.setCurrentItemOrArmor(armour.type + 1, new ItemStack(armour.item));
      }
      else if(Team.teams.size() > 0)
      {
      //Give a random set of armour
      Team team = Team.teams.get(event.world.rand.nextInt(Team.teams.size()));
      if(team.hat != null)
      event.entityLiving.setCurrentItemOrArmor(1, team.hat.copy());
      if(team.chest != null)
      event.entityLiving.setCurrentItemOrArmor(2, team.chest.copy());
      //if(team.legs != null)
      // event.entityLiving.setCurrentItemOrArmor(3, team.legs.copy());
      if(team.shoes != null)
      event.entityLiving.setCurrentItemOrArmor(4, team.shoes.copy());
      }
      }
      }
      
      /** Reads type files from all content packs */
      private void getTypeFiles(List <file>contentPacks)
      {
      for (File contentPack : contentPacks)
      {
      if(contentPack.isDirectory())
      {
      for(EnumType typeToCheckFor : EnumType.values())
      {
      File typesDir = new File(contentPack, "/" + typeToCheckFor.folderName + "/");
      if(!typesDir.exists())
      continue;
      for(File file : typesDir.listFiles())
      {
      try
      {
      BufferedReader reader = new BufferedReader(new FileReader(file));
      String[] splitName = file.getName().split("/");
      TypeFile typeFile = new TypeFile(typeToCheckFor, splitName[splitName.length - 1].split("\\.")[0]);
      for(;;)
      {
      String line = null;
      try
      {
      line = reader.readLine();
      } 
      catch (Exception e)
      {
      break;
      }
      if (line == null)
      break;
      typeFile.lines.add(line);
      }
      reader.close();
      }
      catch(FileNotFoundException e)
      {
      e.printStackTrace();
      }
      catch(IOException e)
      {
      e.printStackTrace();
      }
      }
      }
      }
      else
      {
      try
      {
      ZipFile zip = new ZipFile(contentPack);
      ZipInputStream zipStream = new ZipInputStream(new FileInputStream(contentPack));
      BufferedReader reader = new BufferedReader(new InputStreamReader(zipStream));
      ZipEntry zipEntry = zipStream.getNextEntry();
      do
      {
      zipEntry = zipStream.getNextEntry();
      if(zipEntry == null)
      continue;
      TypeFile typeFile = null;
      for(EnumType type : EnumType.values())
      {
      if(zipEntry.getName().startsWith(type.folderName + "/") && zipEntry.getName().split(type.folderName + "/").length > 1 && zipEntry.getName().split(type.folderName + "/")[1].length() > 0)
      {
      String[] splitName = zipEntry.getName().split("/");
      typeFile = new TypeFile(type, splitName[splitName.length - 1].split("\\.")[0]);
      }
      }
      if(typeFile == null)
      {
      continue;
      }
      for(;;)
      {
      String line = null;
      try
      {
      line = reader.readLine();
      } 
      catch (Exception e)
      {
      break;
      }
      if (line == null)
      break;
      typeFile.lines.add(line);
      }
      }
      while(zipEntry != null);
      reader.close();
                          zip.close();
      zipStream.close();
      }
      catch(IOException e)
      {
      e.printStackTrace();
      }
      }
      }
      }
      
      /** Content pack reader method */
      private void readContentPacks(FMLPreInitializationEvent event)
      {
      // Icons, Skins, Models
      // Get the classloader in order to load the images
      ClassLoader classloader = (net.minecraft.server.MinecraftServer.class).getClassLoader();
      Method method = null;
      try
      {
      method = (java.net.URLClassLoader.class).getDeclaredMethod("addURL", java.net.URL.class);
      method.setAccessible(true);
      } catch (Exception e)
      {
      log("Failed to get class loader. All content loading will now fail.");
      e.printStackTrace();
      }
      
      List <file>contentPacks = proxy.getContentList(method, classloader);
      
      if (!event.getSide().equals(Side.CLIENT))
      {
      //Gametypes (Server only)
      // TODO: gametype loader
      }
      
      getTypeFiles(contentPacks);
      
      for(EnumType type : EnumType.values())
      {
      Class typeClass = type.getTypeClass();
      for(TypeFile typeFile : TypeFile.files.get(type))
      {
      try
      {
      InfoType infoType = (typeClass.getConstructor(TypeFile.class).newInstance(typeFile));
      infoType.read(typeFile);
      switch(type)
      {
      case bullet : bulletItems.add((ItemBullet)new ItemBullet((BulletType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case attachment : attachmentItems.add((ItemAttachment)new ItemAttachment((AttachmentType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case gun : gunItems.add((ItemGun)new ItemGun((GunType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case grenade : grenadeItems.add((ItemGrenade)new ItemGrenade((GrenadeType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case part : partItems.add((ItemPart)new ItemPart((PartType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case plane : planeItems.add((ItemPlane)new ItemPlane((PlaneType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case vehicle : vehicleItems.add((ItemVehicle)new ItemVehicle((VehicleType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case aa : aaGunItems.add((ItemAAGun)new ItemAAGun((AAGunType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case mechaItem : mechaToolItems.add((ItemMechaAddon)new ItemMechaAddon((MechaItemType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case mecha : mechaItems.add((ItemMecha)new ItemMecha((MechaType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case tool : toolItems.add((ItemTool)new ItemTool((ToolType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case box : gunBoxBlocks.add((BlockGunBox)new BlockGunBox((GunBoxType)infoType).setBlockName(infoType.shortName)); break;
      case armour : armourItems.add((ItemTeamArmour)new ItemTeamArmour((ArmourType)infoType).setUnlocalizedName(infoType.shortName)); break;
      case armourBox : armourBoxBlocks.add((BlockArmourBox)new BlockArmourBox((ArmourBoxType)infoType).setBlockName(infoType.shortName)); break; 
      case playerClass : break;
      case team : break;
      default : log("Unrecognised type for " + infoType.shortName); break;
      }
      }
      catch(Exception e)
      {
      log("Failed to add " + type.name() + " : " + typeFile.name);
      e.printStackTrace();
      }
      }
      log("Loaded " + type.name() + ".");
      }
      Team.spectators = spectators;
      }
      
      public static PacketHandler getPacketHandler()
      {
      return INSTANCE.packetHandler;
      }
      
          public static void syncConfig() {
              //generalConfigInteger = configFile.getInt("Config Integer", Configuration.CATEGORY_GENERAL, generalConfigInteger, 0, Integer.MAX_VALUE, "An Integer!");
              //generalConfigString = configFile.getString("Config String", Configuration.CATEGORY_GENERAL, generalConfigString, "A String!");
              addGunpowderRecipe = configFile.getBoolean("Gunpowder Recipe", Configuration.CATEGORY_GENERAL, addGunpowderRecipe, "Whether or not to add the extra gunpowder recipe (3 charcoal + 1 lightstone)");
      
              //teamsConfigInteger = configFile.getInt("Config Integer", Configuration.CATEGORY_GENERAL, teamsConfigInteger, 0, Integer.MAX_VALUE, "An Integer!");
              //teamsConfigString = configFile.getString("Config String", Configuration.CATEGORY_GENERAL, teamsConfigString, "A String!");
              //teamsConfigBoolean = configFile.getBoolean("Config Boolean", Configuration.CATEGORY_GENERAL, teamsConfigBoolean, "A Boolean!");
      
              if(configFile.hasChanged())
                  configFile.save();
          }
      
      //TODO : Proper logger
      public static void log(String string) 
      {
      System.out.println("[Flan's Mod] " + string);
      }
      }
      
      ```</file></file></blockarmourbox></blockarmourbox></itemteamarmour></itemteamarmour></itemtool></itemtool></itemgrenade></itemgrenade></itemaagun></itemaagun></itemmecha></itemmecha></itemmechaaddon></itemmechaaddon></itemvehicle></itemvehicle></itemplane></itemplane></itempart></itempart></itemattachment></itemattachment></itemgun></itemgun></itembullet></itembullet></blockgunbox></blockgunbox>
      1 réponse Dernière réponse Répondre Citer 0
      • I Hors-ligne
        impuuu
        dernière édition par

        Aidez moi se probléme et tres chiant et je n’arrive pas a le reglé

        1 réponse Dernière réponse Répondre Citer 0
        • A Hors-ligne
          aciid
          dernière édition par

          je pense pas que se viens du mods, ça viens de tes packs que tu as mal faits

          1 réponse Dernière réponse Répondre Citer 0
          • 1 / 1
          • Premier message
            Dernier message
          Design by Woryk
          ContactMentions Légales

          MINECRAFT FORGE FRANCE © 2024

          Powered by NodeBB