The Meaning of Life, the Universe, and Everything.
Join Date:
5/6/2011
Posts:
56
Minecraft:
misson20000
Member Details
I would like to edit my level.dat on linux, but I cannot find a program to do it. So I started experimenting. I'm running Ubuntu 10.04.
I renamed level.dat to level.gz. Then I extracted it. Now I have the unzipped file full of strings and binary code. So I run srtrings on it and I get:
The file without me running strings on it looks like this:
Data
thundering
LastPlayed3u�
Player
SleepTimer Motion?�m
�1뿵,sg�?�m
foodTickTimerXpLevelHealthiDimensionAir, Inventory
id!DamageCountSlotidEDamageCountSlotid.DamageCountSlotidDamageCountSlotidDamageCountSlotidDamageCountSlotidKDamageCountSlotidLDamageCountSlotiddDamageCountSloidDamageCountSlot idDamageCountSlot
idDamageCountSlot
id-DamageCountSlot
id2DamageCountSlot Pos@Rr����@P^��R��@(�DamageCountSlot
a��foodSaturationLevel@�
AttackTimeSleepingFire�� foodLevel
FallDistance=�XpTotal RotationË
�B��Score DeathTimeXp
RandomSeedn��]�>�GameType
MapFeaturesversionJ�TimeTraining
thunderTime=�SpawnX)SpawnY@SpawnZ���� LevelName
Trap Island
I"m pretty sure that a lot of the characters won't show up. So, my ultimate goal here is to have a shell file and I can run it, and it will toggle the game mode. I know there are programs out there, but they won't run on my computer. I'm currently working on a program like that, but if someone's alreadyh made a simple on I can use, can you please tell me?
The Meaning of Life, the Universe, and Everything.
Join Date:
5/6/2011
Posts:
56
Minecraft:
misson20000
Member Details
Ok. GUI works for me. I never knew that I could get mono working like that. The only problem is it gives me this big error when I run NBTEdit. It says
**
ERROR:mini-trampolines.c:341:mono_magic_trampoline: assertion failed: (*vtable_slot)
Stacktrace:
at System.Windows.Forms.ToolStripButton..cctor () <0xffffffff>
at System.Windows.Forms.ToolStripButton..cctor () <0x00014>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
at NBTedit.MainForm.InitializeComponent () <0xffffffff>
at NBTedit.MainForm.InitializeComponent () <0x005b4>
at NBTedit.MainForm..ctor () <0x0004b>
at (wrapper remoting-invoke-with-check) NBTedit.MainForm..ctor () <0xffffffff>
at NBTedit.Program.Main (string[]) <0x0010b>
at (wrapper runtime-invoke) NBTedit.Program.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono() [0x47b77f]
/lib/libpthread.so.0(+0xf8f0) [0x7ff3ce78d8f0]
/lib/libc.so.6(gsignal+0x35) [0x7ff3ce1aba75]
/lib/libc.so.6(abort+0x180) [0x7ff3ce1af5c0]
/lib/libglib-2.0.so.0(g_assertion_message+0x144) [0x7ff3cee0bbb4]
/lib/libglib-2.0.so.0(+0x65130) [0x7ff3cee0c130]
mono() [0x483c8a]
[0x403d1168]
Debug info from gdb:
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff3cd051700 (LWP 13148)]
[New Thread 0x7ff3cf490700 (LWP 13147)]
0x00007ff3ce78c93d in read () from /lib/libpthread.so.0
3 Thread 0x7ff3cf490700 (LWP 13147) 0x00007ff3ce78d11d in nanosleep ()
from /lib/libpthread.so.0
2 Thread 0x7ff3cd051700 (LWP 13148) 0x00007ff3ce78bb50 in sem_wait ()
from /lib/libpthread.so.0
* 1 Thread 0x7ff3cf487740 (LWP 13146) 0x00007ff3ce78c93d in read ()
from /lib/libpthread.so.0
Thread 3 (Thread 0x7ff3cf490700 (LWP 13147)):
#0 0x00007ff3ce78d11d in nanosleep () from /lib/libpthread.so.0
#1 0x0000000000556342 in ?? ()
#2 0x00007ff3ce7849ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ff3ce25e70d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7ff3cd051700 (LWP 13148)):
#0 0x00007ff3ce78bb50 in sem_wait () from /lib/libpthread.so.0
#1 0x00000000004e4aaa in ?? ()
#2 0x0000000000505035 in ?? ()
#3 0x0000000000570073 in ?? ()
#4 0x000000000058de21 in ?? ()
#5 0x00007ff3ce7849ca in start_thread () from /lib/libpthread.so.0
#6 0x00007ff3ce25e70d in clone () from /lib/libc.so.6
#7 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ff3cf487740 (LWP 13146)):
#0 0x00007ff3ce78c93d in read () from /lib/libpthread.so.0
#1 0x000000000047b8f4 in ?? ()
#2 <signal handler called>
#3 0x00007ff3ce1aba75 in raise () from /lib/libc.so.6
#4 0x00007ff3ce1af5c0 in abort () from /lib/libc.so.6
#5 0x00007ff3cee0bbb4 in g_assertion_message () from /lib/libglib-2.0.so.0
#6 0x00007ff3cee0c130 in g_assertion_message_expr ()
from /lib/libglib-2.0.so.0
#7 0x0000000000483c8a in ?? ()
#8 0x00000000403d1168 in ?? ()
#9 0x00007ff3cf2fedb0 in ?? ()
#10 0x0000000001c76538 in ?? ()
#11 0x00007ff3cf2fedb8 in ?? ()
#12 0x0000000040e12680 in ?? ()
#13 0x0000000001c76538 in ?? ()
#14 0x000000000048267e in ?? ()
#15 0x000000000041b0df in ?? ()
#16 0x0000000006003a86 in ?? ()
#17 0x0000000000000006 in ?? ()
#18 0x000000000053fbbe in ?? ()
#19 0x0000000000541901 in mono_get_method_full ()
#20 0x00000000005447f9 in ?? ()
#21 0x0000000000000001 in ?? ()
#22 0x000000000213a850 in ?? ()
#23 0x00ff000000000000 in ?? ()
#24 0x0000ffffffffffff in ?? ()
#25 0x7500726f7463632e in ?? ()
#26 0x41e000004f000000 in ?? ()
#27 0x6f697463656c6c6f in ?? ()
#28 0x4026000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
. I have no idea how Windows programs or NBTEdit work. Do you know what's wrong?
I renamed level.dat to level.gz. Then I extracted it. Now I have the unzipped file full of strings and binary code. So I run srtrings on it and I get:
The file without me running strings on it looks like this:
I"m pretty sure that a lot of the characters won't show up. So, my ultimate goal here is to have a shell file and I can run it, and it will toggle the game mode. I know there are programs out there, but they won't run on my computer. I'm currently working on a program like that, but if someone's alreadyh made a simple on I can use, can you please tell me?
Can't exactly use a shell script on that unfortunately, but at least you get a nice GUI.
Odd. I tried it again and it worked for some reason
notch: :biggrin.gif: