Jump to content

Teotoo

Members
  • Posts

    18
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Teotoo's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I moved registerModEntity after registerglobalid. It still crashes. Updated forge to 1.4, still crashes. What am I doing wrong? It's still happening. Full log from starting to crashing: FML Log: EDIT: Fixed - the issue was me being a complete noob, and forgetting to register a certain entity.
  2. Yeah, I'm still having the issue. Changing the order of things has done nothing. 2012-09-08 23:40:18 [iNFO] [sTDOUT] Skipping Entity with id 0 2012-09-08 23:40:19 [iNFO] [sTDERR] java.lang.NullPointerException 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:743) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:139) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:75) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:101) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.src.WorldClient.tick(WorldClient.java:66) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1777) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:834) 2012-09-08 23:40:19 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:764) 2012-09-08 23:40:19 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:662)
  3. A tile entity? Even though both Jimmynator and myself aren't using blocks? (His I believe is for the player, mine is for a mob)
  4. The issue isn't that the items aren't being rendered, rather, the itemstacks added aren't updating the inventory - if you add one, it's added to the gui, so it looks like it's in the inventory, but if you click it and move it out the inventory gui, it disappears. Also you keep a copy of the item in your hand. But hey, thanks for trying
  5. I'm quite surprised no one has answered this yet. I've looked in all the vanilla mc container classes, player's inventory class, the related gui classes; there's nothing they have that mine don't. I've even removed some of my own features- nada. It's been 4 days, i'm surprised no one has anything constructive that might even point us in the right direction. $10 donation from me via paypal to the first person to solve this.
  6. Damn, posted into the wrong area of the forum >< Should probably go to sleep having driven for the best part of 20 hours.
  7. Hi all, I'm getting a crash ever-so-often, for which the log says: "Skipping Entity with id 0". Full log: 2012-09-01 16:28:22 [iNFO] [sTDOUT] Skipping Entity with id 0 2012-09-01 16:28:23 [iNFO] [sTDERR] java.lang.NullPointerException 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:743) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:139) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:75) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:101) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.src.WorldClient.tick(WorldClient.java:66) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1777) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:834) 2012-09-01 16:28:23 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:764) 2012-09-01 16:28:23 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:662) //~~ I forcibly close the game here, as it appears blackscreened&/frozen (waiting a while for minecraft to show it's own log in the gui shows nothing different) 2012-09-01 16:28:24 [iNFO] [sTDERR] Someone is closing me! AL lib: ALc.c:1352: exit(): closing 1 Device AL lib: ALc.c:1329: alcCloseDevice(): destroying 1 Context AL lib: alSource.c:2361: alcDestroyContext(): deleting 32 Source(s) AL lib: alBuffer.c:1081: exit(): deleting 15 Buffer(s) I'm using Forge build 243, FML version 3.0.171.348 - it's been happening for a few versions now. I'm assuming it's something to do with my entity spawning? My spawn code: private void addSpawns() { //mobs is an array of my entity classes, spawnrate is an integer variable (5). for(Class mob: mobs) { addFriendly(mob, spawnrate, 1, 1); } //more spawns in a similar fashion, snipped here. } private void addFriendly(Class<? extends EntityLiving> mob, int rarity, int lowestgroup, int largestgroup) { EntityRegistry.addSpawn(mob, rarity, lowestgroup, largestgroup, EnumCreatureType.creature, WorldType.base12Biomes); } derp, forgot half the code: private void registerEntities() { addMobLocale("TimberWolf", "Timber Wolf"); EntityRegistry.registerGlobalEntityID(EntityTimberWolf.class, "TimberWolf", ModLoader.getUniqueEntityId(), Color.ORANGE.hashCode(), Color.GRAY.hashCode()); } private void addMobLocale(String name, String secondname) { name = name.replaceAll(" ", ""); LanguageRegistry.instance().addStringLocalization("entity."+name+".name", "en_US", secondname); } I've no idea if it's relevant, but mob spawning is ridiculously/tediously sparse in comparison to ModLoader's spawning - yet I'm using the same values. Thanks, ~T.
  8. Take a look in GameRegistry. It's a case of registering a handler.
  9. Had any luck fixing it? I've not yet found anything. If I do, I'll post the answer here.
  10. Colliding without the colliding box; have you considered putting a test in getCollisionBoundingBoxFromPool for cloudWalk? so perhaps something like: public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { if (!cloudWalk) { return null; //fall to your death. } else { return AxisAlignedBB.getBoundingBox(par2, par3, par4, par2 + 1, par3 + 1, par4 + 1); //i.e a solid cloud. } } So unless you have cloudWalk, you cant fall. At the very least, this should solve issue#3. As for issue#2, perhaps you could make it so players aren't given cloudWalk until after spawning? Perhaps add something like if (world.worldInfo.getWorldTime < youllhavetocheckwhattheworldtimeisafewsecondsafterspawn) { cloudWalk = true; } //i can see this being a little bit dodgey though Alternatively, perhaps you could see if you can find a way to get number of generated chunks, and if it's > 8 or 16 or something, then apply cloudWalk? As for issue#1, you're not moving the player, so maybe it will be fixed? Just my 2 cents. Apologies if it's useless, I'm quite tired.
  11. I too have this exact issue! Something that happens to me (that I don't think you said) is that when I click to place the item, it wont "drop" the item into the inventory - it will put 2x as much as how many I place in, and i'll still be holding the item. I've re-written my classes twice now, to no avail. Perhaps the answer is something to do with packet handling?
  12. [me=Teotoo]facepalms[/me] Wow. How'd I miss that. Thanks!
  13. As the ID parameter in player.openGui()? If yes, it sounds like I wouldn't be able to have multiple gui's...Unless I was to make a meta-gui, I suppose. Or am I being incredibly stupid?
  14. The issue is that (at least it would appear that) you can't call a gui with parameters to acquire the instance of a specific entity - I'm perfectly aware that that's how it should be done, but how do you grab the instance of the entity the player is interacting with? If it was a tile entity, yes, you could simply do TileEntity te = world.getBlockTileEntity(x, y, z); and then check it's an instance of your own tile entity, and that's fine, but from what i've seen, there's no way to get a specific instance of a mob entity. I suppose you could use world.getEntitiesWithinAABB, and check for instances of the mob, but that would mess up if there was more than one instance of the mob. Which is why I looked into EntityMinecart, but that uses EntityPlayer's displaychest method.
  15. I'm using Forge version 4.0.0.232, if I recall correctly. It's very weird, no? I even copy&pasted your code (replacing the gui class), and it didn't work - so it's definitely not my typing >< Interestingly again, it was working, but now I get errors in vanilla minecraft classes when opening the guis. (not even a mention of any of my classes, or FML/Forge classes). I think I'll use Forge Version 217, and see if that fixes things. Edit: Just tried it with forge 217, it didn't make any difference to FMLClientHandler. It's rather frustrating that I'm getting given no error messages. I'm gonna redownload everything, and see if that helps.
×
×
  • Create New...

Important Information

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