Un fluide
-
j’ai refait le fluid de A à Z
sa crash toujours il indique la ligne :
if(Helium3.getBlockID() == -1)donc voila la classe principale :
package Universe.common; import Universe.Items.CopperIngot; import Universe.Items.SmallBatterie; import Universe.Items.TitaniumAxe; import Universe.Items.TitaniumHoe; import Universe.Items.TitaniumIngot; import Universe.Items.TitaniumNugget; import Universe.Items.TitaniumPickaxe; import Universe.Items.TitaniumSword; import Universe.blocks.AdvancedSolarPanel; import Universe.blocks.BasicSolarPanel; import Universe.blocks.BlockHelium3; import Universe.blocks.Compresseur; import Universe.blocks.CopperOre; import Universe.blocks.MoonPortal; import Universe.blocks.TitaniumOre; import Universe.dimension.moon.WorldProviderMoon; import Universe.entity.TileEntityAdvancedSolarPanel; import Universe.entity.TileEntityAdvancedSolarPanelOrient; import Universe.entity.TileEntityBasicSolarPanel; import Universe.entity.TileEntityBasicSolarPanelOrient; import Universe.entity.TileEntityCompresseur; import Universe.gui.GuiHandler; import Universe.world.generator.WorldGeneratorUniverse; import net.minecraft.block.Block; import net.minecraft.block.BlockFire; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.ForgeDirection; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidContainerRegistry; import net.minecraftforge.fluids.FluidRegistry; 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.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "UltimateUniverseMod", name = "Ultimate Universe Mod", version = "1.0.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class UniverseMain { @Instance("UltimateUniverseMod") public static UniverseMain instance; public static String UltimateUniverseMod; //Blocs Techne public static Block PanneauSolaireBasique; public static Block PanneauSolaireAdvanced; //CreativeTabs public static CreativeTabs UniverseTab = new CreativeTabUniverse("Universe"); //TitaniumKit public static Item TitaniumAxe; public static Item TitaniumSword; public static Item TitaniumPickaxe; public static Item TitaniumHoe; static EnumToolMaterial TitaniumAxeMaterial = EnumHelper.addToolMaterial("TAxe", 3, 4000, 8.0F, 8, 50); static EnumToolMaterial TitaniumSwordMaterial = EnumHelper.addToolMaterial("TSword", 3, 4000, 0.0F, 10, 50); static EnumToolMaterial TitaniumPickaxeMaterial = EnumHelper.addToolMaterial("TPickaxe", 3, 4000, 18.0F, 5, 50); static EnumToolMaterial TitaniumHoeMaterial = EnumHelper.addToolMaterial("THoe", 3, 4000, 2.0F, 5, 50); public static Item TitaniumStick; public static Item TitaniumNugget; public static Block CopperOre; public static Block CopperMoonOre; public static Item CopperIngot; public static Item TitaniumIngot; public static Block TitaniumOre; public static Item SmallBatterie; public static Block Compresseur; public static Block CompresseurOn, CompresseurOff; public static Block MoonPortal; // dimension moon public static int dimensionID = 4; public static Block MoonTurf; public static Block MoonStone; public static Block BlockPortalFire; public static Item PortalFlintAndSteel; public static BiomeGenBase MoonBiome; public static Item MoonPortalPlacer; //liquid public static Fluid Helium3; public static Block BlockHelium3; public static Item bucketHelium3; @SidedProxy(clientSide = "Universe.common.ClientProxy", serverSide = "Universe.common.CommonProxy") public static CommonProxy proxy; public static final int guiIdCompresseur = 0; @EventHandler public void PreInit(FMLPreInitializationEvent event) { //fluid Helium3 = new Fluid("heliumliquide").setDensity(4000).setViscosity(500).setTemperature(286).setLuminosity(10).setUnlocalizedName("hl"); FluidRegistry.registerFluid(Helium3); Helium3 = FluidRegistry.getFluid("Helium3Liquide"); //BlockFluid if(Helium3.getBlockID() == -1) { BlockHelium3 = new BlockHelium3(1019, Helium3, Material.water).setUnlocalizedName("hl"); GameRegistry.registerBlock(BlockHelium3, "fluidTutorial"); Helium3.setBlockID(BlockHelium3); } else { BlockHelium3 = Block.blocksList[Helium3.getBlockID()]; } //bucket fluid bucketHelium3 = new BucketHelium3(1020, BlockHelium3.blockID).setUnlocalizedName("bucketh3").setTextureName("universe:bucketh3").setContainerItem(Item.bucketEmpty); GameRegistry.registerItem(bucketHelium3, "BucketHelium3", "UltimateUniverseMod"); FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluidStack("heliumliquide", FluidContainerRegistry.BUCKET_VOLUME), new ItemStack(bucketHelium3), FluidContainerRegistry.EMPTY_BUCKET); MinecraftForge.EVENT_BUS.register(new TextureEvent()); MinecraftForge.EVENT_BUS.register(new BucketEvent()); //Block Dimension MoonPortal = new MoonPortal(999).setUnlocalizedName("MOOP"); GameRegistry.registerBlock(MoonPortal, "MOOP"); // Blocks PanneauSolaireBasique = new BasicSolarPanel(1000).setTextureName("universe:PanneauSolaireBasique").setUnlocalizedName("PSB"); GameRegistry.registerBlock(PanneauSolaireBasique, "PSB"); LanguageRegistry.addName(PanneauSolaireBasique,"Basic Solar Panel"); proxy.registerRender(); PanneauSolaireAdvanced = new AdvancedSolarPanel(1001).setTextureName("universe:AdvancedSolarPanel").setUnlocalizedName("PSA"); GameRegistry.registerBlock(PanneauSolaireAdvanced, "PSA"); LanguageRegistry.addName(PanneauSolaireAdvanced,"Advanced Solar Panel"); TitaniumOre = new TitaniumOre(1002).setHardness(1.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F).setTextureName("universe:titaniumOre").setUnlocalizedName("TO"); GameRegistry.registerBlock(TitaniumOre, "TO"); LanguageRegistry.addName(TitaniumOre,"Titanium Ore"); CopperOre = new CopperOre(1003).setHardness(1.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F).setTextureName("universe:copperOre").setUnlocalizedName("CO"); GameRegistry.registerBlock(CopperOre, "CO"); LanguageRegistry.addName(CopperOre,"Copper Ore"); CopperMoonOre = new CopperOre(1014).setHardness(1.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F).setTextureName("universe:copperMoonOre").setUnlocalizedName("CMO"); GameRegistry.registerBlock(CopperMoonOre, "CMO"); LanguageRegistry.addName(CopperMoonOre,"Moon Copper Ore"); //items TitaniumIngot = new TitaniumIngot(1004).setUnlocalizedName("TI").setTextureName("universe:titaniumIngot"); GameRegistry.registerItem(TitaniumIngot, "TI", "UltimateUniverseMod"); TitaniumNugget = new TitaniumNugget(1010).setUnlocalizedName("TN").setTextureName("universe:titaniumNugget"); GameRegistry.registerItem(TitaniumNugget, "TN", "UltimateUniverseMod"); //recipe TitaniumIngot CopperIngot = new CopperIngot(1005).setUnlocalizedName("CI").setTextureName("universe:copperIngot"); GameRegistry.registerItem(CopperIngot, "CI", "UltimateUniverseMod"); // recipe Copper ingot GameRegistry.addSmelting(1003, new ItemStack(Universe.common.UniverseMain.CopperIngot), 0.1F); //Outils Titane TitaniumAxe = new TitaniumAxe(1006, TitaniumAxeMaterial).setUnlocalizedName("TA").setTextureName("universe:titaniumAxe"); MinecraftForge.setToolClass(TitaniumAxe, "axe", 3); GameRegistry.registerItem(TitaniumAxe, "TitaniumAxe", "UltimateUniverseMod"); TitaniumSword = new TitaniumSword(1007, TitaniumSwordMaterial).setUnlocalizedName("TS").setTextureName("universe:titaniumSword"); MinecraftForge.setToolClass(TitaniumSword, "sword", 3); GameRegistry.registerItem(TitaniumSword, "TitaniumSword", "UltimateUniverseMod"); TitaniumPickaxe = new TitaniumPickaxe(1008, TitaniumPickaxeMaterial).setUnlocalizedName("TP").setTextureName("universe:titaniumPickaxe"); MinecraftForge.setToolClass(TitaniumPickaxe, "pickaxe", 3); GameRegistry.registerItem(TitaniumPickaxe, "TitaniumPickaxe", "UltimateUniverseMod"); TitaniumHoe = new TitaniumHoe(1009, TitaniumHoeMaterial).setUnlocalizedName("TH").setTextureName("universe:titaniumHoe"); MinecraftForge.setToolClass(TitaniumHoe, "hoe", 3); GameRegistry.registerItem(TitaniumHoe, "TitaniumHoe", "UltimateUniverseMod"); SmallBatterie = new SmallBatterie(1011).setUnlocalizedName("SB").setTextureName("universe:smallBatterie"); GameRegistry.registerItem(SmallBatterie, "SB", "UltimateUniverseMod"); CompresseurOff = new Compresseur(1012, false).setUnlocalizedName("COFF").setHardness(3.5F).setCreativeTab(UniverseTab).setTextureName("universe:Compresseur_off"); GameRegistry.registerBlock(CompresseurOff, "COFF"); CompresseurOn = new Compresseur(1013, true).setUnlocalizedName("CON").setHardness(3.5F).setLightValue(1.0F); GameRegistry.registerBlock(CompresseurOn, "CON"); registerBlock(CompresseurOff, "Compresseur"); registerBlock(CompresseurOn, "Compresseur Active"); GameRegistry.registerTileEntity(TileEntityCompresseur.class, "TileEntityComrpesseur"); NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler()); LanguageRegistry.instance().addStringLocalization("container.compresseur", "Compresseur"); MoonTurf = new Universe.blocks.MoonTurf(255).setHardness(1.0F).setStepSound(Block.soundGravelFootstep).setResistance(5.0F).setTextureName("universe:moonTurf").setUnlocalizedName("MOOT"); GameRegistry.registerBlock(MoonTurf, "MOOT"); LanguageRegistry.addName(MoonTurf,"Regolite"); MoonStone = new Universe.blocks.MoonStone(254).setHardness(3.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F).setTextureName("universe:moonStone").setUnlocalizedName("MOOS"); GameRegistry.registerBlock(MoonStone, "MOOS"); LanguageRegistry.addName(MoonStone,"Moon Stone"); MoonPortalPlacer = new MoonPortalPlacer(1017).setUnlocalizedName("Tutorial:TutorialPortalPlacer"); MoonBiome = new Universe.dimension.moon.BiomeGenMoon(25); } private void registerBlock(Block compresseurOn2, String string) { } @EventHandler public void Init(FMLInitializationEvent event) { //Registry GameRegistry.registerTileEntity(TileEntityBasicSolarPanel.class, "BasicSolarPanel"); proxy.registerTileEntityRender(); GameRegistry.registerTileEntity(TileEntityBasicSolarPanelOrient.class, "TileEntityBSolarPanelOrient"); GameRegistry.registerTileEntity(TileEntityAdvancedSolarPanel.class, "TileEntityAdvancedSolarPanel"); GameRegistry.registerTileEntity(TileEntityAdvancedSolarPanelOrient.class, "TileEntityAdvancedSolarPanelOrient"); //Generateur de minerais GameRegistry.registerWorldGenerator(new WorldGeneratorUniverse()); //DIMENSION DimensionManager.registerProviderType(dimensionID, WorldProviderMoon.class, true); DimensionManager.registerDimension(dimensionID, dimensionID); } @EventHandler public void PostInit(FMLPostInitializationEvent event) { } public static boolean canBlockCatchFire(World par1World, int par2, int i, int par4, ForgeDirection up) { // TODO Auto-generated method stub return false; } }
et le crash report au cas ou
–-- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 16/03/14 18:41 Description: Initializing game java.lang.NullPointerException at Universe.common.UniverseMain.PreInit(UniverseMain.java:139) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545) 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:313) 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.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) 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:313) 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:112) at cpw.mods.fml.common.Loader.loadMods(Loader.java:522) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183) at net.minecraft.client.Minecraft.startGame(Minecraft.java:473) at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at Universe.common.UniverseMain.PreInit(UniverseMain.java:139) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545) 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:313) 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.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) 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:313) 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:112) at cpw.mods.fml.common.Loader.loadMods(Loader.java:522) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183) at net.minecraft.client.Minecraft.startGame(Minecraft.java:473) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 928452552 bytes (885 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized UltimateUniverseMod{1.0.0} [Ultimate Universe Mod] (bin) Unloaded->Constructed->Errored Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 555/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
-
Helium3 = new Fluid(“heliumliquide”).setDensity(4000).setViscosity(500).setTemperature(286).setLuminosity(10).setUn?localizedName(“hl”);
FluidRegistry.registerFluid(Helium3);
Helium3 = FluidRegistry.getFluid(“Helium3Liquide”);
…
Ces deux trucs doivent être identique. Et pas de majuscule. -
Oh Oui Merci sa marche beaucoup mieux !
Merci pour le tuto -
Comment on fait si on veux que notre liquide se comporte comme l’eau (source infinie par exemple) ?
PS : tu peux donné le code (répondant à ma question) pour la 1.7 ou indiquer les modifs à faire. stp
-
non. cherche un peu dans le package net.minecraftforge.common.fluids
-
extends BlockFluidFinite et voila (ou un truc comme ça)
-
ça fait une flaque d’eau et non un block, ça ne résout toujours pas mon problème
-
Étrange faut que je regardes ça plus en détail quand j’aurai le temps.
-
Moi j’ai un bug à cette ligne :
blockSpectralFluid = new BlockSpectralFluid(spectralFluid, Material.water).setBlockName("blockSpectralFluid");
Et voila mon rapport
[17:09:50] [main/INFO] [GradleStart]: No arguments specified, assuming client. [17:09:50] [main/INFO] [GradleStart]: Extra: [] [17:09:50] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Portuar/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker] [17:09:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [17:09:50] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1231 for Minecraft 1.7.10 loading [17:09:50] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25 [17:09:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:09:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:09:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:09:50] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:09:51] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:09:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:09:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:09:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [17:09:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [17:09:51] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:09:52] [main/INFO]: Setting user: Player562 [17:09:52] [Client thread/INFO]: LWJGL Version: 2.9.1 [17:09:53] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:09:53] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1231 Initialized [17:09:53] [Client thread/INFO] [FML]: Replaced 182 ore recipies [17:09:53] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:09:53] [Client thread/INFO] [FML]: Searching D:\Desktop\SpectralCraft\eclipse\mods for mods [17:09:55] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:09:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at CLIENT [17:09:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at SERVER [17:09:55] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spectral Craft [17:09:55] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [17:09:55] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [17:09:55] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:09:55] [Client thread/INFO] [FML]: Applying holder lookups [17:09:55] [Client thread/INFO] [FML]: Holder lookups applied [17:09:55] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [17:09:55] [Client thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.85.1231} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.2.1231} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Spectralcraft{1.0.0} [Spectral Craft] (bin) Unloaded->Constructed->Errored [17:09:55] [Client thread/ERROR] [FML]: The following problems were captured during this phase [17:09:55] [Client thread/ERROR] [FML]: Caught exception from Spectralcraft java.lang.NullPointerException at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) ~[bin/:?] at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:95) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] [17:09:55] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Ooh. Shiny. Time: 31/10/14 17:09 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:95) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:95) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 922160392 bytes (879 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.85.1231 Minecraft Forge 10.13.2.1231 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.85.1231} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.2.1231} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Spectralcraft{1.0.0} [Spectral Craft] (bin) Unloaded->Constructed->Errored Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0 NVIDIA 344.11, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [17:09:55] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\SpectralCraft\eclipse\.\crash-reports\crash-2014-10-31_17.09.55-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Je comprend pas trop :s</init></init></init></init></init></init></init></init></init>
-
Car ton fluide est null.
Il doit être initialisé avant le bloc, c’est très important. -
Ce que j’ai fait !
spectralFluid = new Fluid("spectralFluid").setDensity(4000).setViscosity(500).setTemperature(286).setLuminosity(10).setUnlocalizedName("spectralFluid"); FluidRegistry.registerFluid(spectralFluid); spectralFluid = FluidRegistry.getFluid("spectralFluid"); blockSpectralFluid = new BlockSpectralFluid(spectralFluid, Material.water).setBlockName("blockSpectralFluid"); GameRegistry.registerBlock(blockSpectralFluid, "blockSpectralFluid"); spectralFluid.setBlock(blockSpectralFluid);
-
Pas de majuscule dans un nom de fluide, c’est ça qui cause problème.
Appelle ton fluide juste spectral et non spectralFluid -
Non sa ne fonctionne pas…
-
Toujours un npe ?
-
bah regarde
[18:01:33] [main/INFO] [GradleStart]: No arguments specified, assuming client. [18:01:33] [main/INFO] [GradleStart]: Extra: [] [18:01:33] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Portuar/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker] [18:01:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [18:01:33] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1231 for Minecraft 1.7.10 loading [18:01:33] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25 [18:01:33] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:01:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:01:33] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:01:33] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:01:34] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:01:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:01:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:01:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [18:01:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [18:01:34] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:01:35] [main/INFO]: Setting user: Player52 [18:01:36] [Client thread/INFO]: LWJGL Version: 2.9.1 [18:01:37] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:01:37] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1231 Initialized [18:01:37] [Client thread/INFO] [FML]: Replaced 182 ore recipies [18:01:37] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:01:37] [Client thread/INFO] [FML]: Searching D:\Desktop\SpectralCraft\eclipse\mods for mods [18:01:39] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:01:39] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at CLIENT [18:01:39] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Spectralcraft] at SERVER [18:01:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spectral Craft [18:01:39] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:01:39] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [18:01:39] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:01:39] [Client thread/INFO] [FML]: Applying holder lookups [18:01:39] [Client thread/INFO] [FML]: Holder lookups applied [18:01:39] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [18:01:39] [Client thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.85.1231} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.2.1231} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Spectralcraft{1.0.0} [Spectral Craft] (bin) Unloaded->Constructed->Errored [18:01:39] [Client thread/ERROR] [FML]: The following problems were captured during this phase [18:01:39] [Client thread/ERROR] [FML]: Caught exception from Spectralcraft java.lang.NullPointerException at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) ~[bin/:?] at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:94) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1231.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at GradleStart.bounce(GradleStart.java:107) [start/:?] at GradleStart.startClient(GradleStart.java:100) [start/:?] at GradleStart.main(GradleStart.java:55) [start/:?] [18:01:39] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Sorry :( Time: 31/10/14 18:01 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:94) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraftforge.fluids.BlockFluidBase.<init>(BlockFluidBase.java:60) at net.minecraftforge.fluids.BlockFluidClassic.<init>(BlockFluidClassic.java:27) at com.google.Portuar.SpectralCraft.common.block.BlockSpectralFluid.<init>(BlockSpectralFluid.java:19) at com.google.Portuar.SpectralCraft.SpectralCraft.preInit(SpectralCraft.java:94) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 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 GradleStart.bounce(GradleStart.java:107) at GradleStart.startClient(GradleStart.java:100) at GradleStart.main(GradleStart.java:55) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 922497920 bytes (879 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.85.1231 Minecraft Forge 10.13.2.1231 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.85.1231} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.2.1231} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1231.jar) Unloaded->Constructed->Pre-initialized Spectralcraft{1.0.0} [Spectral Craft] (bin) Unloaded->Constructed->Errored Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.4.0 NVIDIA 344.11, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [18:01:39] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\SpectralCraft\eclipse\.\crash-reports\crash-2014-10-31_18.01.39-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release ```</init></init></init></init></init></init></init></init></init>
-
Tu as bien changé sur les deux endroits ?
Car ça crash toujours sur :
this.fluidName = fluid.getName();
de la classe BlockFluidBase, donc ton fluide est toujours null … -
Ouai j’ai changé partout sur regarde :
spectral = new Fluid("spectralFluid").setDensity(4000).setViscosity(500).setTemperature(286).setLuminosity(10).setUnlocalizedName("spectralFluid"); FluidRegistry.registerFluid(spectral); spectral = FluidRegistry.getFluid("spectralFluid"); blockSpectralFluid = new BlockSpectralFluid(spectral, Material.water).setBlockName("blockSpectralFluid"); GameRegistry.registerBlock(blockSpectralFluid, "blockSpectralFluid"); spectral.setBlock(blockSpectralFluid);
package com.google.Portuar.SpectralCraft.common; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraftforge.client.event.TextureStitchEvent; import net.minecraftforge.event.entity.player.FillBucketEvent; import com.google.Portuar.SpectralCraft.SpectralCraft; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class FluidEvent { @SubscribeEvent public void onBucketFill(FillBucketEvent event) { Block id = event.world.getBlock(event.target.blockX, event.target.blockY, event.target.blockZ); int metadata = event.world.getBlockMetadata(event.target.blockX, event.target.blockY, event.target.blockZ); if(id == SpectralCraft.blockSpectralFluid && metadata == 0) { event.world.setBlockToAir(event.target.blockX, event.target.blockY, event.target.blockZ); event.result = new ItemStack(SpectralCraft.bucketSpectralFluid); } } @SubscribeEvent @SideOnly(Side.CLIENT) public void onPostTextureStitch(TextureStitchEvent.Post event) { if(event.map.getTextureType() == 0) { SpectralCraft.spectral.setIcons(SpectralCraft.blockSpectralFluid.getBlockTextureFromSide(1), SpectralCraft.blockSpectralFluid.getBlockTextureFromSide(2)); } } }
-
……
Tu n’as pas changé ce qui fallait changer.
new Fluid(“spectralFluid”)
->
new Fluid(“spectral”)spectral = FluidRegistry.getFluid(“spectralFluid”);
->
spectral = FluidRegistry.getFluid(“spectral”); -
Bon c’est fait mais sa crash encore :S
-
Encore le même crash ?