Jump to content

0xC6607Eo1

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by 0xC6607Eo1

  1. I believe that the first option in the box that pops up changes spawnHostileMobs from private to public. Can someone clarify? I've been confused by this too. Thanks! Thats for the MCP only as I understand, cause it should work without it. I saw the ChickenBone's AccessTransformer I don't understand how he did it. but the mod makers just need to use it and it should work. But how, I have no idea ..
  2. I believe that the first option in the box that pops up changes spawnHostileMobs from private to public. Can someone clarify? I've been confused by this too. Thanks! Thats for the MCP only as I understand, cause it should work without it. I saw the ChickenBone's AccessTransformer I don't understand how he did it. but the mod makers just need to use it and it should work. But how, I have no idea ..
  3. Mhm. Mhm-.. I'm just asking why is the transformer dosen't work, the code seems to be okay and I'm just testing some stuff. In one of my progress that I have deleted I had a problem with the AccessTransformer, and I couldn't get it to work properly. It has loaded the cfg and evertyhing, I have withdrawed the code from the srg file but it didn't transform it to a public insted of a protected. I'm just trying to understand why the code isn't effected.
  4. Mhm. Mhm-.. I'm just asking why is the transformer dosen't work, the code seems to be okay and I'm just testing some stuff. In one of my progress that I have deleted I had a problem with the AccessTransformer, and I couldn't get it to work properly. It has loaded the cfg and evertyhing, I have withdrawed the code from the srg file but it didn't transform it to a public insted of a protected. I'm just trying to understand why the code isn't effected.
  5. Using the tutorial's AccessTransformer: package il.steamcraft.asm; import java.io.IOException; import java.lang.reflect.Method; import cpw.mods.fml.common.asm.transformers.AccessTransformer; public class SteamcraftAccessTransformer extends AccessTransformer { private static SteamcraftAccessTransformer instance; public SteamcraftAccessTransformer() throws IOException { super(); instance = this; this.readMapFile("Steamcraft_at.cfg"); } private void readMapFile(String name) { System.out.println("Steamcraft Transformer Map: "+name); try { Method e = AccessTransformer.class.getDeclaredMethod("readMapFile", new Class[]{String.class}); e.setAccessible(true); e.invoke(this, new Object[]{name}); } catch(Exception ex) { throw new RuntimeException(ex); } } } And I'm using the basic stuff: LoadingPlugin and DummyContainer. I have execluded for Eclipse to run the transformer, but I have exported it and it loads fine. I'm using the following Steamcraft_at.cfg : #World public aab.E #FD:World/field_72985_G #spawnHostileMobs Its for testing purposes, and I can't get it to work. Just results in a crash when I try to change the spawnHostileMobs in the DummyContainer @Subscribe public void onServerStarting(FMLServerStartingEvent ev) { ev.getServer().worldServerForDimension(0).spawnHostileMobs = false; } Crashlog: 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_ABOUT_TO_START to SERVER_STOPPED. Loading cannot continue 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{5.1.28.659} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{7.7.1.659} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available SCASM{SC0.3} [steamcraft ASM] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available SC{SC0.3} [steamcraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available. 2013-04-19 22:47:12 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:134) 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:800) 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:468) 2013-04-19 22:47:12 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:530) 2013-04-19 22:47:12 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) I have checked and yes, when I remove the code of the hostileMobs it works fine. So whats the problem over here ? EDIT: Forgot this crashlog: 2013-04-20 00:58:05 [sEVERE] [ForgeModLoader] A fatal exception occurred during the server starting event java.lang.Error: Unresolved compilation problem: The field World.spawnHostileMobs is not visible at il.steamcraft.asm.SteamcraftContainer.onServerStarting(SteamcraftContainer.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.serverStarting(Loader.java:739) at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:314) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) As you can see, it dosen't apply towards the spawnHostileMobs and I can't understand why. Also the code executes the Steamcraft_at.cfg : 2013-04-19 22:47:04 [iNFO] [sTDOUT] Reading mapFile Steamcraft_at.cfg
  6. Using the tutorial's AccessTransformer: package il.steamcraft.asm; import java.io.IOException; import java.lang.reflect.Method; import cpw.mods.fml.common.asm.transformers.AccessTransformer; public class SteamcraftAccessTransformer extends AccessTransformer { private static SteamcraftAccessTransformer instance; public SteamcraftAccessTransformer() throws IOException { super(); instance = this; this.readMapFile("Steamcraft_at.cfg"); } private void readMapFile(String name) { System.out.println("Steamcraft Transformer Map: "+name); try { Method e = AccessTransformer.class.getDeclaredMethod("readMapFile", new Class[]{String.class}); e.setAccessible(true); e.invoke(this, new Object[]{name}); } catch(Exception ex) { throw new RuntimeException(ex); } } } And I'm using the basic stuff: LoadingPlugin and DummyContainer. I have execluded for Eclipse to run the transformer, but I have exported it and it loads fine. I'm using the following Steamcraft_at.cfg : #World public aab.E #FD:World/field_72985_G #spawnHostileMobs Its for testing purposes, and I can't get it to work. Just results in a crash when I try to change the spawnHostileMobs in the DummyContainer @Subscribe public void onServerStarting(FMLServerStartingEvent ev) { ev.getServer().worldServerForDimension(0).spawnHostileMobs = false; } Crashlog: 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_ABOUT_TO_START to SERVER_STOPPED. Loading cannot continue 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{5.1.28.659} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{7.7.1.659} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available SCASM{SC0.3} [steamcraft ASM] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available SC{SC0.3} [steamcraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available 2013-04-19 22:47:12 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available. 2013-04-19 22:47:12 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:134) 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:800) 2013-04-19 22:47:12 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:468) 2013-04-19 22:47:12 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:530) 2013-04-19 22:47:12 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) I have checked and yes, when I remove the code of the hostileMobs it works fine. So whats the problem over here ? EDIT: Forgot this crashlog: 2013-04-20 00:58:05 [sEVERE] [ForgeModLoader] A fatal exception occurred during the server starting event java.lang.Error: Unresolved compilation problem: The field World.spawnHostileMobs is not visible at il.steamcraft.asm.SteamcraftContainer.onServerStarting(SteamcraftContainer.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.serverStarting(Loader.java:739) at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:314) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) As you can see, it dosen't apply towards the spawnHostileMobs and I can't understand why. Also the code executes the Steamcraft_at.cfg : 2013-04-19 22:47:04 [iNFO] [sTDOUT] Reading mapFile Steamcraft_at.cfg
  7. I asked something about the String. You go into a hole other way, regrading a question that I have understood before and I really didn't care and never asked. I asked why the STRING that returns the warning, regrads towards the mods folder. but I have already got it, and saw that it requires the folder mods, inside the jar. Wrong. So very very wrong. LexManos wrong? I dobut that. I tried LexManos's answer, and its right. he ment in general it goes into a jar. I work without textures inside MCP, cause I dont have time to be dealing with them over there. I just fix them after an pre-release.
  8. I asked something about the String. You go into a hole other way, regrading a question that I have understood before and I really didn't care and never asked. I asked why the STRING that returns the warning, regrads towards the mods folder. but I have already got it, and saw that it requires the folder mods, inside the jar. Wrong. So very very wrong. LexManos wrong? I dobut that. I tried LexManos's answer, and its right. he ment in general it goes into a jar. I work without textures inside MCP, cause I dont have time to be dealing with them over there. I just fix them after an pre-release.
  9. Mhm, so I got it all wrong. Why in the warning string it reffers to mods ? mods/Steamcraft/textures/blocks/BlockTest.png
  10. Mhm, so I got it all wrong. Why in the warning string it reffers to mods ? mods/Steamcraft/textures/blocks/BlockTest.png
  11. I'm using the new Icon system, its really simple to get but I came across a problem during PostInit when it loads a block. It can't find the icon when its clearly there, and retruns a stupid warning: 2013-04-19 21:01:22 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file mods/Steamcraft/textures/blocks/BlockTest.png, but that file does not exist. Ignoring. C:\Users\Admin\Desktop\steamcraft_src\jars\mods\Steamcraft\textures\blocks\BlockTest.png Clearly exists as I can enter it. ((I'm marking the place of the texture, not the texture itself.)) I'm using "Steamcraft:BlockTest" just a stock one, seems to be working fine for everyone. Am I placing the texture in the wrong place, or is something jammed with my code ? Thanks alot !
  12. I'm using the new Icon system, its really simple to get but I came across a problem during PostInit when it loads a block. It can't find the icon when its clearly there, and retruns a stupid warning: 2013-04-19 21:01:22 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file mods/Steamcraft/textures/blocks/BlockTest.png, but that file does not exist. Ignoring. C:\Users\Admin\Desktop\steamcraft_src\jars\mods\Steamcraft\textures\blocks\BlockTest.png Clearly exists as I can enter it. ((I'm marking the place of the texture, not the texture itself.)) I'm using "Steamcraft:BlockTest" just a stock one, seems to be working fine for everyone. Am I placing the texture in the wrong place, or is something jammed with my code ? Thanks alot !
  13. I'm starting to use nested classes towards my mod, just for fun and testing. I'm actually trying to make nested classes of the configs, networkmod, proxy's and other stuff into one big mod file. Its possible, altought there is a simply way, I want to try nested classes. I get this error after I attempt to run the mod: java.lang.IllegalAccessException: Class cpw.mods.fml.common.network.NetworkModHandler can not access a member of class il.steamcraft.common.Steamcraft$NetworkHandler with modifiers "" while its trying to 'tryCreatingPacketHandler()'. I'm using this as my NetworkHandler nest. static class NetworkHandler implements IPacketHandler, IGuiHandler { @Override public void onPacketData(INetworkManager INM, Packet250CustomPayload packet, Player player) {} @Override public Object getServerGuiElement(int var1, EntityPlayer EP, World W, int x, int y, int z) { return null; } @Override public Object getClientGuiElement(int var1, EntityPlayer EP, World W, int x, int y, int z) { return null; } } Nothing special, just a stock code. And I'm using this above my main class @Mod(modid = Steamcraft.SteamcraftInfo.ModID, version = Steamcraft.SteamcraftInfo.Version) @NetworkMod(channels = { Steamcraft.SteamcraftInfo.ModID }, packetHandler = Steamcraft.NetworkHandler.class, clientSideRequired=true) public class Steamcraft { Could anyone help me with this, and please correct me if its 'impossible' due to Forge constructor pre-requests.
  14. I'm starting to use nested classes towards my mod, just for fun and testing. I'm actually trying to make nested classes of the configs, networkmod, proxy's and other stuff into one big mod file. Its possible, altought there is a simply way, I want to try nested classes. I get this error after I attempt to run the mod: java.lang.IllegalAccessException: Class cpw.mods.fml.common.network.NetworkModHandler can not access a member of class il.steamcraft.common.Steamcraft$NetworkHandler with modifiers "" while its trying to 'tryCreatingPacketHandler()'. I'm using this as my NetworkHandler nest. static class NetworkHandler implements IPacketHandler, IGuiHandler { @Override public void onPacketData(INetworkManager INM, Packet250CustomPayload packet, Player player) {} @Override public Object getServerGuiElement(int var1, EntityPlayer EP, World W, int x, int y, int z) { return null; } @Override public Object getClientGuiElement(int var1, EntityPlayer EP, World W, int x, int y, int z) { return null; } } Nothing special, just a stock code. And I'm using this above my main class @Mod(modid = Steamcraft.SteamcraftInfo.ModID, version = Steamcraft.SteamcraftInfo.Version) @NetworkMod(channels = { Steamcraft.SteamcraftInfo.ModID }, packetHandler = Steamcraft.NetworkHandler.class, clientSideRequired=true) public class Steamcraft { Could anyone help me with this, and please correct me if its 'impossible' due to Forge constructor pre-requests.
  15. Just gonna bump over here. Changed the hole topic, to ask something else. Sorry for any inconvines.
  16. It's something with the DummyModConatiner for me. after I changed DummyModContainer it had been fixed. The problem is it's using an @Override that overrides my thing from return true; to return false; I'm gonna try some stuff, altought nothing worked for now.
  17. Have you changed something with the names or places after reob` ? It seems like your loader is trying to get something from 'tutorial.generic.generic' that means from folder -> tutorial/generic/generic.class Take a look if you haven't mistaken with where it should look at, or if you have copied files wrongly. edit: nevermind saw your fix.
  18. http://pastebin.com/C2SQGJ9s You can check it out overthere
  19. Hey, I'm currently just playing around with the AccessTransformer to see if I can get it to work in some other ways and not like everyone did. Cause how everyone did dosen't work for me tough, so my question is I have copied the source file of AccessTransformer from Forge and did some modifications for myself. Now, how can I actually make it apply to a field ? I have took a look at transformer(String name, byte[] bytes) but I cannot understand how I can opperate it towards the readMapFile. Let's say my file is reading 'public yc.E' and it makes the hole readMapFile and it adds it to the mapping with: modifiers.put(descriptor.get(0).replace('/', '.'), m); How can I use the transformer onto it and make it actually change the yc.E to public insted of it being protected yc.E is spawnHostileMobs (It's a test) in 1.4.6 (I'm using it cause I don't feel like upgrading, its mostly the same. I'll upgrade later.) I have understood that name is the current location of the field or class of it like 'World.spawnHostileMobs' but I have no idea what is how to find the correct bytes onto the class file. I'll need some advanced support overhere, mostly from the Forge developers or experienced onces. Thanks alot.
  20. There is nothing in my ModContainer except a super(new ModMetadata()); and it extends DummyModContainer. I dont see any problem over there.
  21. I have tried this on MCP and reguler Minecraft. both logs return the same, do you have any ideas about it ?
  22. public boolean registerBus(EventBus var1, LoadController var2) { var1.register(this); return true; } Yeah, its return true; still the same.
  23. Hey, I have a coremod that I just named SuperUser cause it changes things that we're complied by the byte code of java. The only thing I came across that it disabled it self: Mod SuperUser has been disabled through configuration disabled trought configuration, why is that. I haven't inserted any config that may disable it. If it's automated to disable by Minecraft where can I reject it and make it run for aslong as the Minecraft is open ? Thanks alot.
  24. The only problem is, I do not need ContainerFurnace. I need BlockFurnace because the achivement is given trought the Block not Container because its an act after smelting alot of stuff and makes an explosion. but I dont know how to get the EntityPlayer to the Block to give on the one that I gave him the achivement. * Container I dont need, because nothing is happening there * I need an EntityPlayerMP sniffer that will be given on accessing the Furance and that it will send it to the Block with a convertion to a EntityPlayer
×
×
  • Create New...

Important Information

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