[ModLoader] Основы программирования для Minecraft
#101
Posted 04.09.2011 - 08:08
#103
Posted 04.09.2011 - 08:59
03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader initFINE: ModLoader Beta 1[paste][/paste]7[paste][/paste]3 Initializing[paste][/paste][paste][/paste][paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Adding mods from C:\Documents and Settings\Apelsinoviy_kot\Application Data\[paste][/paste]minecraft\mods\gui03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Directory found[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Adding mods from C:\Documents and Settings\Apelsinoviy_kot\Application Data\[paste][/paste]minecraft\mods\MineColony 0[paste][/paste]7rc11[paste][/paste]zip03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Zip found[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutLumberjack[paste][/paste]png,30)[paste][/paste] 82 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutMiner[paste][/paste]png,54)[paste][/paste] 81 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutWarehouse[paste][/paste]png,76)[paste][/paste] 80 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutFarmer[paste][/paste]png,77)[paste][/paste] 79 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutBank[paste][/paste]png,78)[paste][/paste] 78 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutBuilder[paste][/paste]png,85)[paste][/paste] 77 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutCitizen[paste][/paste]png,100)[paste][/paste] 76 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutTownHall[paste][/paste]png,101)[paste][/paste] 75 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/terrain[paste][/paste]png,/Block_hutMarket[paste][/paste]png,111)[paste][/paste] 74 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_scepterGold[paste][/paste]png,38)[paste][/paste] 129 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_scepterSteel[paste][/paste]png,46)[paste][/paste] 128 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_moneyGold[paste][/paste]png,61)[paste][/paste] 127 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_moneySilver[paste][/paste]png,62)[paste][/paste] 126 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_moneyBronze[paste][/paste]png,91)[paste][/paste] 125 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addOverrideFINER: addOverride(/gui/items[paste][/paste]png,/gui/Item_dividers[paste][/paste]png,101)[paste][/paste] 124 left[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addModFINE: Mod Loaded: "mod_MineColony MineColony 0[paste][/paste]6 beta" from mod_MineColony[paste][/paste]class03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Adding mods from C:\Documents and Settings\Apelsinoviy_kot\Application Data\[paste][/paste]minecraft\mods\mob03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Directory found[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Adding mods from C:\Documents and Settings\Apelsinoviy_kot\Application Data\[paste][/paste]minecraft\mods\sppcommands03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromModFolderFINER: Directory found[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromClassPathFINER: Adding mods from C:\Documents and Settings\Apelsinoviy_kot\Application Data\[paste][/paste]minecraft\bin\minecraft[paste][/paste]jar03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader readFromClassPathFINER: Zip found[paste][/paste]03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addModFINE: Mod Loaded: "mod_XRay 13[paste][/paste]3" from mod_XRay[paste][/paste]class03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader addModFINE: Mod Loaded: "mod_TooManyItems 1[paste][/paste]7[paste][/paste]2 2011-07-01" from mod_TooManyItems[paste][/paste]class03[paste][/paste]09[paste][/paste]2011 21:30:55 ModLoader AddAllRenderersFINE: Initialized
#105
Posted 04.09.2011 - 09:21
#106
Posted 05.09.2011 - 16:43
Все делал по инструкции но тут застрял. Запускаю файл decompile.bat. Появляется консоль , создаются папки но в них ничего почти нечего нет. Там где должны быть коды там нет не чего.6. Запускаем decompile.bat.
#107
Posted 05.09.2011 - 17:44
#108
Posted 05.09.2011 - 18:12
Ждк стоит в путе прописано C:\Program Files\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\3dsmax5\backburner2\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_26\binНе забыл ли ты поставить JDK? Прописал PATH? Скорее всего кривой клиент заливаешь (или тот который в шапке?).
#109
Posted 05.09.2011 - 19:38
#110
Posted 06.09.2011 - 22:18
#111
Posted 07.09.2011 - 11:46
#112
Posted 07.09.2011 - 11:49
#115
Posted 07.09.2011 - 16:14
#116
Posted 07.09.2011 - 17:50
#117
Posted 07.09.2011 - 21:02
== MCP v4[paste][/paste]3 ==[21:57] java[paste][/paste]lang[paste][/paste]NoClassDefFoundError: Start[21:57] Caused by: java[paste][/paste]lang[paste][/paste]ClassNotFoundException: Start[21:57] at java[paste][/paste]net[paste][/paste]URLClassLoader$1[paste][/paste]run(URLClassLoader[paste][/paste]java:202)[21:57] at java[paste][/paste]security[paste][/paste]AccessController[paste][/paste]doPrivileged(Native Method)[21:57] at java[paste][/paste]net[paste][/paste]URLClassLoader[paste][/paste]findClass(URLClassLoader[paste][/paste]java:190)[21:57] at java[paste][/paste]lang[paste][/paste]ClassLoader[paste][/paste]loadClass(ClassLoader[paste][/paste]java:306)[21:57] at sun[paste][/paste]misc[paste][/paste]Launcher$AppClassLoader[paste][/paste]loadClass(Launcher[paste][/paste]java:301)[21:57] at java[paste][/paste]lang[paste][/paste]ClassLoader[paste][/paste]loadClass(ClassLoader[paste][/paste]java:247)[21:57] Could not find the main class: Start[paste][/paste] Program will exit[paste][/paste][21:57] Exception in thread "main"java[paste][/paste]lang[paste][/paste]NoClassDefFoundError: StartCaused by: java[paste][/paste]lang[paste][/paste]ClassNotFoundException: Startat java[paste][/paste]net[paste][/paste]URLClassLoader$1[paste][/paste]run(URLClassLoader[paste][/paste]java:202)at java[paste][/paste]security[paste][/paste]AccessController[paste][/paste]doPrivileged(Native Method)at java[paste][/paste]net[paste][/paste]URLClassLoader[paste][/paste]findClass(URLClassLoader[paste][/paste]java:190)at java[paste][/paste]lang[paste][/paste]ClassLoader[paste][/paste]loadClass(ClassLoader[paste][/paste]java:306)at sun[paste][/paste]misc[paste][/paste]Launcher$AppClassLoader[paste][/paste]loadClass(Launcher[paste][/paste]java:301)at java[paste][/paste]lang[paste][/paste]ClassLoader[paste][/paste]loadClass(ClassLoader[paste][/paste]java:247)Could not find the main class: Start[paste][/paste] Program will exit[paste][/paste]Exception in thread "main"Для продолжения нажмите любую клавишу [paste][/paste] [paste][/paste] [paste][/paste]И еще при рекомпиляции выдает консоль 6 ошибок :
== MCP v4[paste][/paste]3 ==> Recompiling client[paste][/paste][paste][/paste][paste][/paste]"C:\Program Files\Java\jdk1[paste][/paste]6[paste][/paste]0_26\bin\javac[paste][/paste]exe" -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft[paste][/paste]jar;jars/bin/jinput[paste][/paste]jar;jars/bin/lwjgl[paste][/paste]jar;jars/bin/lwjgl_util[paste][/paste]jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*[paste][/paste]java src/minecraft\net\minecraft\isom\*[paste][/paste]java src/minecraft\net\minecraft\src\*[paste][/paste]java conf/patches/*[paste][/paste]java failed[paste][/paste]Return code : 1== ERRORS FOUND ==src\minecraft\net\minecraft\src\mod_gcc[paste][/paste]java:3: cannot find symbolsymbol: class BaseModpublic class mod_gcc extends BaseMod^src\minecraft\net\minecraft\src\mod_gcc[paste][/paste]java:16: cannot find symbolsymbol : variable ModLoaderlocation: class net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]mod_gccModLoader[paste][/paste]RegisterBlock(newblock);^src\minecraft\net\minecraft\src\mod_gcc[paste][/paste]java:17: cannot find symbolsymbol : variable ModLoaderlocation: class net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]mod_gccModLoader[paste][/paste]AddName(newblock, "Whitestone");^src\minecraft\net\minecraft\src\mod_gcc[paste][/paste]java:18: cannot find symbolsymbol : variable ModLoaderlocation: class net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]mod_gccModLoader[paste][/paste]AddRecipe(new ItemStack(newblock, 1), new Object[]{ "##", "##", Character[paste][/paste]valueOf('#'), Block[paste][/paste]dirt});^src\minecraft\net\minecraft\src\mod_gcc[paste][/paste]java:19: cannot find symbolsymbol : variable ModLoaderlocation: class net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]mod_gccnewblock[paste][/paste]blockIndexInTexture = ModLoader[paste][/paste]addOverride("/terrain[paste][/paste]png", "/textur/java[paste][/paste]png");^src\minecraft\net\minecraft\src\WorldProviderSky[paste][/paste]java:28: cannot find symbolsymbol : class ChunkProviderSkylocation: class net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]WorldProviderSkyreturn new ChunkProviderSky(worldObj, worldObj[paste][/paste]getRandomSeed());^6 errors==================> Done in 5[paste][/paste]59 seconds> Recompiling server[paste][/paste][paste][/paste][paste][/paste]!! Can not find server sources !!Для продолжения нажмите любую клавишу [paste][/paste] [paste][/paste] [paste][/paste]Вот сам код :
package net[paste][/paste]minecraft[paste][/paste]src; public class mod_gcc extends BaseMod{ public static Block newblock = new Stonewhite(101, 0)[paste][/paste]setHardness(3[paste][/paste]0F)[paste][/paste]setResistance(0[paste][/paste]3F)[paste][/paste]setLightValue(0[paste][/paste]5F)[paste][/paste]setBlockName("newblock"); public String Version() { return "1[paste][/paste]7_03"; } public mod_gcc(){ModLoader[paste][/paste]RegisterBlock(newblock);ModLoader[paste][/paste]AddName(newblock, "Whitestone");ModLoader[paste][/paste]AddRecipe(new ItemStack(newblock, 1), new Object[]{ "##", "##", Character[paste][/paste]valueOf('#'), Block[paste][/paste]dirt});newblock[paste][/paste]blockIndexInTexture = ModLoader[paste][/paste]addOverride("/terrain[paste][/paste]png", "/textur/java[paste][/paste]png");}}
#118
Posted 07.09.2011 - 21:15
#119
Posted 07.09.2011 - 21:30
Mods loaded: 1ModLoader Beta 1[paste][/paste]7[paste][/paste]3 Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem[paste][/paste]If you wish to report this, please copy this entire text and email it to support@mojang[paste][/paste]com[paste][/paste]Please include a description of what you did when the error occured[paste][/paste]--- BEGIN ERROR REPORT e9df3db --------Generated 08[paste][/paste]09[paste][/paste]11 7:41Minecraft: Minecraft Beta 1[paste][/paste]7[paste][/paste]3OS: Windows XP (x86) version 5[paste][/paste]1Java: 1[paste][/paste]6[paste][/paste]0_26, Sun Microsystems Inc[paste][/paste]VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc[paste][/paste]LWJGL: 2[paste][/paste]4[paste][/paste]2OpenGL: Intel 855GM version 1[paste][/paste]3[paste][/paste]0 - Build 4[paste][/paste]14[paste][/paste]10[paste][/paste]4308, Inteljava[paste][/paste]lang[paste][/paste]ExceptionInInitializerError at sun[paste][/paste]reflect[paste][/paste]NativeConstructorAccessorImpl[paste][/paste]newInstance0(Native Method) at sun[paste][/paste]reflect[paste][/paste]NativeConstructorAccessorImpl[paste][/paste]newInstance(NativeConstructorAccessorImpl[paste][/paste]java:39) at sun[paste][/paste]reflect[paste][/paste]DelegatingConstructorAccessorImpl[paste][/paste]newInstance(DelegatingConstructorAccessorImpl[paste][/paste]java:27) at java[paste][/paste]lang[paste][/paste]reflect[paste][/paste]Constructor[paste][/paste]newInstance(Constructor[paste][/paste]java:513) at java[paste][/paste]lang[paste][/paste]Class[paste][/paste]newInstance0(Class[paste][/paste]java:355) at java[paste][/paste]lang[paste][/paste]Class[paste][/paste]newInstance(Class[paste][/paste]java:308) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]ModLoader[paste][/paste]addMod(ModLoader[paste][/paste]java:224) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]ModLoader[paste][/paste]readFromClassPath(ModLoader[paste][/paste]java:1022) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]ModLoader[paste][/paste]init(ModLoader[paste][/paste]java:687) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]ModLoader[paste][/paste]AddAllRenderers(ModLoader[paste][/paste]java:121) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]RenderManager[paste][/paste]<init>(RenderManager[paste][/paste]java:65) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]RenderManager[paste][/paste]<clinit>(RenderManager[paste][/paste]java:158) at net[paste][/paste]minecraft[paste][/paste]client[paste][/paste]Minecraft[paste][/paste]startGame(Minecraft[paste][/paste]java:138) at net[paste][/paste]minecraft[paste][/paste]client[paste][/paste]Minecraft[paste][/paste]run(Minecraft[paste][/paste]java:435) at java[paste][/paste]lang[paste][/paste]Thread[paste][/paste]run(Thread[paste][/paste]java:662)Caused by: java[paste][/paste]lang[paste][/paste]ArrayIndexOutOfBoundsException: 7668 at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]Block[paste][/paste]<init>(Block[paste][/paste]java:46) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]Block[paste][/paste]<init>(Block[paste][/paste]java:75) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]Stonewhite[paste][/paste]<init>(Stonewhite[paste][/paste]java:11) at net[paste][/paste]minecraft[paste][/paste]src[paste][/paste]mod_gcc[paste][/paste]<clinit>(mod_gcc[paste][/paste]java:6) [paste][/paste][paste][/paste][paste][/paste] 15 more--- END ERROR REPORT fe45a632 ----------
#120
Posted 07.09.2011 - 22:59
4 user(s) are reading this topic
0 members, 4 guests, 0 anonymous users