Jump to content

Recommended Posts

Posted

I made two threads over on the Minecraft Forums, but despite many people trying to help, nobody seems to be able to find a solution.

Does anyone here have any ideas?

Threads:

Player Rendering: LINK

 

GuiTextBoxes: LINK

Posted

I made two threads over on the Minecraft Forums, but despite many people trying to help, nobody seems to be able to find a solution.

Does anyone here have any ideas?

Threads:

Player Rendering: LINK

 

GuiTextBoxes: LINK

Posted

1. Cleanup your code (what's with commenting out //@Override anyway?)

2. Link all relevant classes.

3. Restate all your issues.

4. Post errors if present and make sure that ALL code you've linked is being CALLED (make prints).

 

P.S - Following up on threads that have few pages is just as time consuming as confusing.

1.7.10 is no longer supported by forge, you are on your own.

Posted

1. Cleanup your code (what's with commenting out //@Override anyway?)

2. Link all relevant classes.

3. Restate all your issues.

4. Post errors if present and make sure that ALL code you've linked is being CALLED (make prints).

 

P.S - Following up on threads that have few pages is just as time consuming as confusing.

1.7.10 is no longer supported by forge, you are on your own.

Posted

In the text boxes, everything is called, the problem at the moment is that I can't get it to type on multiple lines, but with the Player Rendering, everything is called up to the actual player rendering method (onPlayerBodyRender()), which is the problem.

Nothing is giving any errors at all.

@Override is commented out in the ComputerMod because it is going to be used when I set up a class to make it a lot cleaner to put all the methods in rather than remaking them all in every class, but I haven't got around to doing that yet so it is just commented out.

Posted

In the text boxes, everything is called, the problem at the moment is that I can't get it to type on multiple lines, but with the Player Rendering, everything is called up to the actual player rendering method (onPlayerBodyRender()), which is the problem.

Nothing is giving any errors at all.

@Override is commented out in the ComputerMod because it is going to be used when I set up a class to make it a lot cleaner to put all the methods in rather than remaking them all in every class, but I haven't got around to doing that yet so it is just commented out.

Posted

As to GUI - I don't see any attempt on your rendering multiline.

You need to make custom TextBox (probably extend normal one) and draw contained string using FontRenderer#drawSplitString.

Where is the problem?

 

As to player - I told you to link relevant classes, I can't find shit, your code and packages are too messed up (also - centralize your events and separate client from server/common).

 

Side note:

You creates shitload of API systems that don't even apply to vanilla/forge design. I recommend learning how vanilla/forge works before writing tons of API interfaces. That is your decision tho. :)

1.7.10 is no longer supported by forge, you are on your own.

Posted

As to GUI - I don't see any attempt on your rendering multiline.

You need to make custom TextBox (probably extend normal one) and draw contained string using FontRenderer#drawSplitString.

Where is the problem?

 

As to player - I told you to link relevant classes, I can't find shit, your code and packages are too messed up (also - centralize your events and separate client from server/common).

 

Side note:

You creates shitload of API systems that don't even apply to vanilla/forge design. I recommend learning how vanilla/forge works before writing tons of API interfaces. That is your decision tho. :)

1.7.10 is no longer supported by forge, you are on your own.

Posted

Leaving the textboxes aside for now, with the player rendering I think I have it working but I just need to know how I can actually rotate the player. What I want is for the player to be lying on it's front when using the glider, but I am not sure how to make the player model rotate.

 

What I have currently is:

public void preRenderTick(Minecraft mc, World world, float renderTick)

{

EntityHangGlider.updateGliders(world);

final AbstractClientPlayer player = Minecraft.getMinecraft().thePlayer;

if (!EntityHangGlider.isGliderDeployed(player))

{

player.limbSwing = 0f;

player.prevLimbSwingAmount = 0f;

player.limbSwingAmount = 0f;

GL11.glRotatef(90, 0, 0, 0);

}

}

 

How do I make the GL11.glRotatef() rotate the player? Currently it doesn't do anything

Posted

Leaving the textboxes aside for now, with the player rendering I think I have it working but I just need to know how I can actually rotate the player. What I want is for the player to be lying on it's front when using the glider, but I am not sure how to make the player model rotate.

 

What I have currently is:

public void preRenderTick(Minecraft mc, World world, float renderTick)

{

EntityHangGlider.updateGliders(world);

final AbstractClientPlayer player = Minecraft.getMinecraft().thePlayer;

if (!EntityHangGlider.isGliderDeployed(player))

{

player.limbSwing = 0f;

player.prevLimbSwingAmount = 0f;

player.limbSwingAmount = 0f;

GL11.glRotatef(90, 0, 0, 0);

}

}

 

How do I make the GL11.glRotatef() rotate the player? Currently it doesn't do anything

Posted

Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis

would do precisely nothing.

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

 

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

 

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

Posted

Well 90 degrees of rotation applied: 0% to the X axis, 0% to the Y axis, 0% to the Z axis

would do precisely nothing.

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

 

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

 

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

Posted

Oops! Not entirely sure how I managed to miss that. Thanks!

EDIT:

Game crashes now.

 

[17:03:39] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Exception ticking world

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:696) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_72]

Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_72]

at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_72]

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75) ~[RegionFile.class:?]

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64) ~[RegionFileCache.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60) ~[AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181) ~[ChunkProviderServer.class:?]

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287) ~[World.class:?]

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282) ~[World.class:?]

at net.minecraft.world.World.getBlockState(World.java:820) ~[World.class:?]

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72) ~[blockGrass.class:?]

at net.minecraft.block.Block.randomTick(Block.java:431) ~[block.class:?]

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430) ~[WorldServer.class:?]

at net.minecraft.world.WorldServer.tick(WorldServer.java:221) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690) ~[MinecraftServer.class:?]

... 4 more

[17:03:39] [server thread/ERROR]: This crash report has been saved to: F:\Mods\FurnitureMod1.8.9\run\.\crash-reports\crash-2016-05-29_17.03.39-server.txt

[17:03:39] [server thread/INFO]: Stopping server

[17:03:39] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:529]: ---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 29/05/16 17:03

Description: Exception ticking world

 

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.set(Unknown Source)

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75)

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287)

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282)

at net.minecraft.world.World.getBlockState(World.java:820)

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72)

at net.minecraft.block.Block.randomTick(Block.java:431)

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430)

at net.minecraft.world.WorldServer.tick(WorldServer.java:221)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)

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

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.set(Unknown Source)

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75)

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287)

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282)

at net.minecraft.world.World.getBlockState(World.java:820)

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72)

at net.minecraft.block.Block.randomTick(Block.java:431)

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430)

at net.minecraft.world.WorldServer.tick(WorldServer.java:221)

 

-- Affected level --

Details:

Level name: New World

All players: 1 total; [EntityPlayerMP['Player60'/25, l='New World', x=817.23, y=4.15, z=1456.83]]

Chunk stats: ServerChunkCache: 1058 Drop: 0

Level seed: 2502455063590012429

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: 685.00,4.00,1260.00 - World: (685,4,1260), Chunk: (at 13,0,12 in 42,78; contains blocks 672,0,1248 to 687,255,1263), Region: (1,2; contains chunks 32,64 to 63,95, blocks 512,0,1024 to 1023,255,1535)

Level time: 5390 game time, 5390 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 172602 (now: false), thunder time: 52366 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)

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

Posted

Oops! Not entirely sure how I managed to miss that. Thanks!

EDIT:

Game crashes now.

 

[17:03:39] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Exception ticking world

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:696) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_72]

Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_72]

at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_72]

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75) ~[RegionFile.class:?]

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64) ~[RegionFileCache.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60) ~[AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84) ~[ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181) ~[ChunkProviderServer.class:?]

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287) ~[World.class:?]

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282) ~[World.class:?]

at net.minecraft.world.World.getBlockState(World.java:820) ~[World.class:?]

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72) ~[blockGrass.class:?]

at net.minecraft.block.Block.randomTick(Block.java:431) ~[block.class:?]

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430) ~[WorldServer.class:?]

at net.minecraft.world.WorldServer.tick(WorldServer.java:221) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690) ~[MinecraftServer.class:?]

... 4 more

[17:03:39] [server thread/ERROR]: This crash report has been saved to: F:\Mods\FurnitureMod1.8.9\run\.\crash-reports\crash-2016-05-29_17.03.39-server.txt

[17:03:39] [server thread/INFO]: Stopping server

[17:03:39] [Client thread/INFO]: [net.minecraft.init.Bootstrap:printToSYSOUT:529]: ---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 29/05/16 17:03

Description: Exception ticking world

 

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.set(Unknown Source)

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75)

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287)

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282)

at net.minecraft.world.World.getBlockState(World.java:820)

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72)

at net.minecraft.block.Block.randomTick(Block.java:431)

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430)

at net.minecraft.world.WorldServer.tick(WorldServer.java:221)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)

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

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.set(Unknown Source)

at net.minecraft.world.chunk.storage.RegionFile.<init>(RegionFile.java:75)

at net.minecraft.world.chunk.storage.RegionFileCache.createOrLoadRegionFile(SourceFile:64)

at net.minecraft.world.chunk.storage.AnvilChunkLoader.chunkExists(AnvilChunkLoader.java:60)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:100)

at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:84)

at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:181)

at net.minecraft.world.World.getChunkFromChunkCoords(World.java:287)

at net.minecraft.world.World.getChunkFromBlockCoords(World.java:282)

at net.minecraft.world.World.getBlockState(World.java:820)

at net.minecraft.block.BlockGrass.updateTick(BlockGrass.java:72)

at net.minecraft.block.Block.randomTick(Block.java:431)

at net.minecraft.world.WorldServer.updateBlocks(WorldServer.java:430)

at net.minecraft.world.WorldServer.tick(WorldServer.java:221)

 

-- Affected level --

Details:

Level name: New World

All players: 1 total; [EntityPlayerMP['Player60'/25, l='New World', x=817.23, y=4.15, z=1456.83]]

Chunk stats: ServerChunkCache: 1058 Drop: 0

Level seed: 2502455063590012429

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: 685.00,4.00,1260.00 - World: (685,4,1260), Chunk: (at 13,0,12 in 42,78; contains blocks 672,0,1248 to 687,255,1263), Region: (1,2; contains chunks 32,64 to 63,95, blocks 512,0,1024 to 1023,255,1535)

Level time: 5390 game time, 5390 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 172602 (now: false), thunder time: 52366 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:690)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:605)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:152)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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