Vai al contenuto
Il server del mese è
Visita la nostra nuova lista server!

Archiviato

Questa discussione è archiviata e chiusa a future risposte.

  • 0
Prometheus

Codice Nuova Schermata

Domanda

Ciao Modders!

Se non siete modders e non sapete come moddare, andatevene.

Allora...

Con MCP stavo creando un bottone per accedere ad alcuni comandi facilmente.

I bottoni li so creare, però se provo a copiare il codice della schermata di 'Opzioni' in modo da usarlo per i Comandi, lo provo e appeno clicco sul mio bottone mi dovrebbe portare a una schermata con i comandi, invece mi Crasha.

Quindi, perché?

Oppure mi dite come si crea una nuova schermata?

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

8 risposte a questa domanda

Recommended Posts

Error log?

---- Minecraft Crash Report ----

// Hey, that tickles! Hehehe!

Time: 22/12/12 19.14

Description: Updating screen events

java.lang.Error: Unresolved compilation problems:

The method displayGuiScreen(GuiScreen) in the type Minecraft is not applicable for the arguments (GuiInGameComandi)

The constructor GuiInGameComandi(GuiIngameMenu) is undefined

at net.minecraft.src.GuiIngameMenu.actionPerformed(GuiIngameMenu.java:76)

at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:118)

at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:192)

at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:171)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1494)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:843)

at net.minecraft.client.Minecraft.run(Minecraft.java:768)

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 net.minecraft.src.GuiIngameMenu.actionPerformed(GuiIngameMenu.java:76)

at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:118)

at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:192)

at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:171)

-- Affected screen --

Details:

Screen name: net.minecraft.src.GuiIngameMenu

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player144'/397, l='MpServer', x=45,30, y=5,55, z=241,30]]

Chunk stats: MultiplayerChunkCache: 225

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (113,64,310), Chunk: (at 1,4,6 in 7,19; contains blocks 112,0,304 to 127,255,319), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 9364 game time, 9364 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

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

Forced entities: 92 total; [EntityCreeper['Creeper'/137, l='MpServer', x=37,56, y=46,00, z=292,00], EntityItem['item.tile.sapling.spruce'/136, l='MpServer', x=46,19, y=87,13, z=244,13], EntityBat['Pipistrello'/139, l='MpServer', x=37,50, y=53,10, z=296,25], EntityBat['Pipistrello'/138, l='MpServer', x=35,75, y=52,10, z=296,25], EntityBat['Pipistrello'/141, l='MpServer', x=39,75, y=34,10, z=321,13], EntityZombie['Zombi'/140, l='MpServer', x=38,50, y=35,00, z=318,97], EntityItem['item.tile.sapling.spruce'/133, l='MpServer', x=45,81, y=87,13, z=239,88], EntityItem['item.tile.sapling.spruce'/133, l='MpServer', x=45,81, y=87,13, z=239,88], EntitySpider['Ragno'/132, l='MpServer', x=39,97, y=25,00, z=170,03], EntityItem['item.tile.sapling.spruce'/135, l='MpServer', x=43,66, y=88,13, z=242,53], EntityItem['item.tile.sapling.spruce'/134, l='MpServer', x=44,88, y=88,13, z=243,88], EntityPig['Maiale'/152, l='MpServer', x=50,53, y=71,00, z=171,03], EntityItem['item.item.bone'/154, l='MpServer', x=55,13, y=12,13, z=192,16], EntityItem['item.item.arrow'/155, l='MpServer', x=55,13, y=12,13, z=192,16], EntityCreeper['Creeper'/156, l='MpServer', x=56,00, y=38,00, z=245,53], EntityZombie['Zombi'/157, l='MpServer', x=54,41, y=18,00, z=305,94], EntityPig['Maiale'/151, l='MpServer', x=49,63, y=71,00, z=172,75], EntityPig['Maiale'/171, l='MpServer', x=71,50, y=71,00, z=236,49], EntityPig['Maiale'/170, l='MpServer', x=69,16, y=78,00, z=165,50], EntityPig['Maiale'/175, l='MpServer', x=67,55, y=73,00, z=242,38], EntityBat['Pipistrello'/174, l='MpServer', x=73,22, y=24,27, z=245,22], EntityPig['Maiale'/173, l='MpServer', x=64,19, y=72,00, z=229,50], EntityPig['Maiale'/172, l='MpServer', x=70,19, y=72,00, z=238,94], EntityPig['Maiale'/41, l='MpServer', x=-33,53, y=64,00, z=169,92], EntityItem['item.tile.sapling.spruce'/134, l='MpServer', x=44,88, y=88,13, z=243,88], EntityItem['item.tile.sapling.spruce'/135, l='MpServer', x=43,66, y=88,13, z=242,53], EntitySkeleton['Scheletro'/178, l='MpServer', x=72,50, y=14,00, z=302,50], EntityZombie['Zombi'/179, l='MpServer', x=64,70, y=41,62, z=292,30], EntityPig['Maiale'/176, l='MpServer', x=77,31, y=74,00, z=261,50], EntityPig['Maiale'/177, l='MpServer', x=76,88, y=72,00, z=274,06], EntityPig['Maiale'/63, l='MpServer', x=-23,03, y=63,00, z=168,09], EntitySpider['Ragno'/182, l='MpServer', x=71,28, y=47,00, z=308,50], EntityItem['item.tile.sapling.spruce'/136, l='MpServer', x=46,19, y=87,13, z=244,13], EntitySpider['Ragno'/180, l='MpServer', x=64,08, y=41,95, z=294,04], EntityClientPlayerMP['Player144'/397, l='MpServer', x=45,30, y=5,55, z=241,30], EntitySkeleton['Scheletro'/181, l='MpServer', x=69,50, y=48,00, z=299,50], EntitySkeleton['Scheletro'/68, l='MpServer', x=-26,34, y=33,00, z=312,38], EntitySkeleton['Scheletro'/69, l='MpServer', x=-25,63, y=33,00, z=309,31], EntitySkeleton['Scheletro'/70, l='MpServer', x=-26,56, y=33,00, z=309,69], EntitySkeleton['Scheletro'/71, l='MpServer', x=-27,25, y=33,00, z=313,25], EntityPig['Maiale'/64, l='MpServer', x=-21,53, y=64,00, z=171,69], EntityItem['item.item.rottenFlesh'/201, l='MpServer', x=88,28, y=68,13, z=281,88], EntityBat['Pipistrello'/65, l='MpServer', x=-27,41, y=18,10, z=183,75], EntityCreeper['Creeper'/200, l='MpServer', x=87,50, y=43,00, z=241,50], EntityBat['Pipistrello'/66, l='MpServer', x=-23,25, y=51,10, z=192,25], EntityZombie['Zombi'/203, l='MpServer', x=90,53, y=19,00, z=310,91], EntityPig['Maiale'/67, l='MpServer', x=-29,34, y=64,00, z=202,47], EntityZombie['Zombi'/202, l='MpServer', x=95,56, y=20,00, z=312,44], EntityCreeper['Creeper'/197, l='MpServer', x=83,63, y=57,00, z=213,97], EntitySpider['Ragno'/196, l='MpServer', x=87,31, y=56,00, z=215,22], EntityCreeper['Creeper'/199, l='MpServer', x=89,69, y=42,00, z=240,50], EntityBat['Pipistrello'/198, l='MpServer', x=88,76, y=59,26, z=217,27], EntitySkeleton['Scheletro'/195, l='MpServer', x=87,50, y=55,00, z=194,09], EntityPig['Maiale'/222, l='MpServer', x=122,88, y=67,00, z=234,53], EntityPig['Maiale'/223, l='MpServer', x=123,97, y=66,00, z=232,06], EntityPig['Maiale'/81, l='MpServer', x=-15,75, y=68,00, z=319,50], EntityBat['Pipistrello'/216, l='MpServer', x=96,94, y=47,10, z=234,38], EntityPig['Maiale'/217, l='MpServer', x=102,69, y=63,00, z=302,06], EntityZombie['Zombi'/218, l='MpServer', x=100,56, y=19,00, z=317,09], EntityZombie['Zombi'/93, l='MpServer', x=11,03, y=39,00, z=176,47], EntityZombie['Zombi'/92, l='MpServer', x=-0,48, y=42,00, z=187,72], EntityPig['Maiale'/95, l='MpServer', x=15,91, y=70,00, z=186,13], EntityCreeper['Creeper'/214, l='MpServer', x=98,50, y=16,00, z=203,50], EntityPig['Maiale'/94, l='MpServer', x=12,00, y=72,00, z=187,31], EntitySpider['Ragno'/215, l='MpServer', x=99,06, y=16,00, z=205,22], EntityPig['Maiale'/89, l='MpServer', x=13,59, y=70,00, z=173,06], EntityCreeper['Creeper'/90, l='MpServer', x=6,03, y=42,00, z=183,50], EntityPig['Maiale'/102, l='MpServer', x=3,13, y=69,00, z=237,41], EntityPig['Maiale'/103, l='MpServer', x=11,81, y=70,00, z=241,81], EntityPig['Maiale'/100, l='MpServer', x=9,09, y=69,00, z=235,47], EntityPig['Maiale'/101, l='MpServer', x=9,59, y=70,00, z=228,16], EntityItem['item.item.arrow'/155, l='MpServer', x=55,13, y=12,13, z=192,16], EntityCreeper['Creeper'/98, l='MpServer', x=9,00, y=22,00, z=208,59], EntityCreeper['Creeper'/99, l='MpServer', x=12,50, y=22,00, z=209,50], EntityItem['item.item.bone'/154, l='MpServer', x=55,13, y=12,13, z=192,16], EntityPig['Maiale'/96, l='MpServer', x=9,47, y=73,00, z=183,47], EntitySpider['Ragno'/97, l='MpServer', x=7,91, y=21,00, z=204,75], EntityCreeper['Creeper'/110, l='MpServer', x=16,50, y=22,00, z=213,50], EntityCreeper['Creeper'/111, l='MpServer', x=26,50, y=30,00, z=247,00], EntityItem['item.item.rottenFlesh'/201, l='MpServer', x=88,28, y=68,13, z=281,88], EntitySpider['Ragno'/228, l='MpServer', x=123,17, y=12,00, z=318,75], EntityPig['Maiale'/227, l='MpServer', x=114,53, y=66,00, z=287,31], EntitySkeleton['Scheletro'/106, l='MpServer', x=11,47, y=28,00, z=316,44], EntityCreeper['Creeper'/104, l='MpServer', x=5,97, y=33,00, z=257,47], EntityCreeper['Creeper'/224, l='MpServer', x=122,50, y=57,00, z=248,50], EntitySpider['Ragno'/105, l='MpServer', x=2,75, y=31,00, z=318,56], EntityPig['Maiale'/117, l='MpServer', x=27,84, y=63,00, z=305,75], EntityPig['Maiale'/116, l='MpServer', x=25,09, y=63,00, z=302,97], EntityPig['Maiale'/115, l='MpServer', x=29,72, y=63,00, z=299,13], EntityPig['Maiale'/114, l='MpServer', x=18,19, y=63,00, z=301,72], EntityZombie['Zombi'/113, l='MpServer', x=20,50, y=30,00, z=281,50], EntityBat['Pipistrello'/112, l='MpServer', x=24,22, y=36,10, z=254,75]]

Retry entities: 0 total; []

Stacktrace:

at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:411)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2428)

at net.minecraft.client.Minecraft.run(Minecraft.java:784)

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

-- System Details --

Details:

Minecraft Version: 1.4.5

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_07, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 901307520 bytes (859 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 15543 (870408 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used

Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]

IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63

LWJGL: 2.8.5

OpenGL: GeForce GT 620M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation

Is Modded: Very likely; Jar signature invalidated

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: 1269 (71064 bytes; 0 MB) allocated, 16 (896 bytes; 0 MB) used

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

Non so, non è che mi fai vedere la classe completa?

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

Non so, non è che mi fai vedere la classe completa?

Il codice della schermata fatta da me?

L'ho eliminata, però i bottoni erano questi:

this.controlList.add(new GuiButton(100, this.width / 2 - 152, this.height / 6 + 96 - 6, 150, 20, var1.translateKey("Modalità Survival")));

this.controlList.add(new GuiButton(101, this.width / 2 + 2, this.height / 6 + 96 - 6, 150, 20, var1.translateKey("Modalità Creativa")));

this.controlList.add(new GuiButton(102, this.width / 2 - 152, this.height / 6 + 120 - 6, 150, 20, var1.translateKey("Abilita/Disabilita pioggia/neve")));

this.controlList.add(new GuiButton(103, this.width / 2 + 2, this.height / 6 + 120 - 6, 150, 20, var1.translateKey("Seed")));

this.controlList.add(new GuiButton(104, this.width / 2 + 2, this.height / 6 + 144 - 6, 150, 20, var1.translateKey("Tempesta")));

this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey("Setta lo Spawn-Point")));

}

/**

* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).

*/

protected void actionPerformed(GuiButton par1GuiButton)

{

switch (par1GuiButton.id)

{

case 100:

this.mc.thePlayer.sendChatMessage("/gamemode 1")

case 101:

this.mc.thePlayer.sendChatMessage("/gamemode 0")

case 102:

this.mc.thePlayer.sendChatMessage("/toggledownfall")

case 103:

this.mc.thePlayer.sendChatMessage("/seed")

case 104:

this.mc.thePlayer.sendChatMessage("/weather thunder 100")

case 200:

this.mc.thePlayer.sendChatMessage("/spawnpoint")

}

}

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti
Messaggio Automatico

Questa discussione è stata sposta da"[url='http://www.minecraftitalia.net/forum/index.php?showforum=10']Mods[/url]" a "[url='http://www.minecraftitalia.net/forum/index.php?showforum=187']Domande e Consigli[/url]".

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

×
×
  • Crea Nuovo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.