java - Mod Making, crash on drawing things to the screen? -


i'm making hacked client/cheats game called minecraft. compiled mods, , when try turn on, crash report on wherever drawing hack name screen.

i can't tell wrong, works in eclipse not in game. wrong code?

if(client.flight){             var8.drawstring("flight",guiscreen.width-var8.getstringwidth("flight")-1,arrayseperator,0xccff33);             arrayseperator+=11;         }         if(client.sneak){             var8.drawstring("sneak",guiscreen.width-var8.getstringwidth("sneak")-1,arrayseperator,0x007700);             arrayseperator+=11;         }         if(client.nofall){             var8.drawstring("nofall",guiscreen.width-var8.getstringwidth("nofall")-1,arrayseperator,0xff0000);             arrayseperator+=11;         }         if(client.sprint){             var8.drawstring("speed",guiscreen.width-var8.getstringwidth("speed")-1,arrayseperator,0x99ccff);             arrayseperator+=11;         }         if(client.killaura){             var8.drawstring("kill aura",guiscreen.width-var8.getstringwidth("kill aura")-1,arrayseperator,0xe11a1a);             arrayseperator+=11;         }         if(client.brightness){             var8.drawstring("brightness",guiscreen.width-var8.getstringwidth("brightness")-1,arrayseperator,0xccff33);             mc.gamesettings.gammasetting = 10000;             arrayseperator+=11;         }else{             mc.gamesettings.gammasetting = 1;         }         if(client.speedmine){             var8.drawstring("cleany consuela",guiscreen.width-var8.getstringwidth("cleany consuela")-1,arrayseperator,0xf4df76);             arrayseperator+=11;         }         if(client.instant){             var8.drawstring("instant",guiscreen.width-var8.getstringwidth("instant")-1,arrayseperator,0xf4df76);             arrayseperator+=11;         }         if(client.tracers){             var8.drawstring("tracers",guiscreen.width-var8.getstringwidth("tracers")-1,arrayseperator,0xff0000);             arrayseperator+=11;         } 

it's in right place; perfect. when try turning on crashes on var8.drawstring lines.

here's stacktrace/crash report:

ava.lang.incompatibleclasschangeerror: expected static field awe.g @ avj.a(guiingame.java:370) @ bfe.b(sourcefile:700) @ atv.s(sourcefile:686) @ atv.d(sourcefile:619) @ net.minecraft.client.main.main.main(sourcefile:101) 

a detailed walkthrough of error, code path , known details follows:


-- head -- stacktrace: @ avj.a(guiingame.java:370)

-- affected level -- details: level name: mpserver players: 1 total; [bdi['ostrichparty101'/11, l='mpserver', x=-757.69, y=4.62, z=1605.43]] chunk stats: multiplayerchunkcache: 441 level seed: 0 level generator: id 01 - flat, ver 0. features enabled: false level generator options: level spawn location: world: (-744,4,1570), chunk: (at 8,0,2 in -47,98; contains blocks -752,0,1568 -737,255,1583), region: (-2,3; contains chunks -64,96 -33,127, blocks -1024,0,1536 -513,255,2047) level time: 799 game time, 799 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: 1 total; [bdi['ostrichparty101'/11, l='mpserver', x=-757.69, y=4.62, z=1605.43]] retry entities: 0 total; [] server brand: vanilla server type: integrated singleplayer server stacktrace: @ bdd.a(sourcefile:284) @ atv.b(sourcefile:1761) @ atv.d(sourcefile:633) @ net.minecraft.client.main.main.main(sourcefile:101)

the changes have made client code have made incompatible minecraft runtime library. since works in eclipse, ide must using different version of library. recompile library , of dependencies , deploy them runtime environment.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -