TehKittyCat got McRegion working with Bukkit, here are the steps:
Quote from TehKittyCat »
I have managed to get McRegion running on bukkit. Feel free to add it and/or use it for future versions, I didn't post as I was unsure if you would agree. I have no guarantee of the stability and if Bukkit ever patches go.class you'd have to patch it, but currently they don't, so in theory it should work the same as on vanilla.
The steps(see below for the actual commands):
1) Applied McRegion to a vanilla minecraft_server.jar
2) Used their rules file for renaming with jarjar for its custom minecraft_server.jar on it. The rules for 1.2_01 are at https://github.com/Bukkit/Bukkit-Minecr ... /1.2.rules.
3) Unzipped minecraft_server-renamed.jar.
4) Then decompiled the resulting ChunkLoader.class(your go.class w/ their renaming).
5) I then added 'package net.minecraft.server;' to the top of RegionFile.java and RegionFileCache.java from RegionTool's src and to ChunkLoader.class, otherwise it won't find the needed classes.
6) Then I compiled them with CraftBukkit's jar in the classpath.
7) I had to move them to the right package. With this done you could just distribute the files as now.
8) Finally, I added them into CraftBukkit's jar. Note the fix, replacing ChunkLoader.class invalidates the CRC for it.
Here are the commands used(note jarjar.jar and jad.exe were already in path, you can find a linux jad, I just used their existing exe):
wget -q http://bamboo.lukegb.com/browse/BUKKIT- ... APSHOT.jar -O craftbukkit-o.jar
#Build #48:Newer builds are borked(unrelated to mcregion)wget -q http://artifacts.lukegb.com/artifactory ... APSHOT.jar -O craftbukkit-o.jar
wget -q --no-check-certificate https://github.com/Bukkit/Bukkit-Minecr ... /1.2.rules
wget -q http://minecraft.net/download/minecraft ... 5064970752 -O minecraft_server.jar
wget -q http://mod.ifies.com/f/110114/mcregion_ ... 1.2_01.zip -O mcregion.zip
wget -q http://mod.ifies.com/f/110106/RegionTool_source.zip -O mcregion-src.zip
unzip mcregion.zip
unzip mcregion-src.zip
zip minecraft_server.jar go.class
java -jar jarjar.jar process 1.2.rules minecraft_server.jar minecraft_server-renamed.jar
unzip -d mc minecraft_server-renamed.jar
wine jad.exe -safe -ff -nonlb -dead -o -s .java -d . mc/ChunkLoader.class
echo "package net.minecraft.server;"|cat - ChunkLoader.java > /tmp/out && mv /tmp/out ChunkLoader.java
echo "package net.minecraft.server;"|cat - RegionFile.java > /tmp/out && mv /tmp/out RegionFile.java
echo "package net.minecraft.server;"|cat - RegionFileCache.java > /tmp/out && mv /tmp/out RegionFileCache.java
javac -cp craftbukkit-o.jar {ChunkLoader,RegionFile,RegionFileCache}.java
mkdir -p net/minecraft/server;cp -v {ChunkLoader.class,RegionFileCache.class,'RegionFile$ChunkBuffer.class',RegionFile.class} net/minecraft/server
zip -rv craftbukkit-o.jar net
zip -F craftbukkit-o.jar --out craftbukkit.jar
Quote from TehKittyCat »
I've made it into a full script, just note jarjar and jad are scripted into my path.
echo "Using package net.minecraft.server for McRegion, allowing direct linking to CraftBukkit."
echo "package net.minecraft.server;"|cat - ChunkLoader.java > /tmp/out && mv /tmp/out ChunkLoader.java
echo "package net.minecraft.server;"|cat - RegionFile.java > /tmp/out && mv /tmp/out RegionFile.java
echo "package net.minecraft.server;"|cat - RegionFileCache.java > /tmp/out && mv /tmp/out RegionFileCache.java
echo "Compiling McRegion, with CraftBukkit as classpath for linking."
javac -cp craftbukkit-o.jar {ChunkLoader,RegionFile,RegionFileCache}.java
echo "Packaging the new McRegion"
mkdir -p net/minecraft/server
mv {ChunkLoader.class,RegionFileCache.class,'RegionFile$ChunkBuffer.class',RegionFile.class} net/minecraft/server
echo "Zipping the new McRegion as 'mcregion_srv.zip', ready for distributing as McRegion for Bukkit."
zip -9qr mcregion_srv.zip net
echo "Applying McRegion to CraftBukkit, resulting in 'craftbukkit.jar', this step can be used at anytime as long as the new McRegion is available."
zip -qr craftbukkit-o.jar net
zip -qF craftbukkit-o.jar --out craftbukkit.jar
echo "Cleaning..., but keeping 'net/' so it can be used to update CraftBukkit independently."
rm -r {ChunkLoader,RegionFile,RegionFileCache}.java craftbukkit-o.jar go.class rules mcregion{,-src}.zip minecraft_server{,-renamed}.jar
I have not tried this, but hopefully it'll help others.
Does this only work for linux? Specifically the script I mean.
Right, what he actually implemented, IIRC, was your FastRender, wasn't it? Improving how the chunk queue is handled and updated as you turn around? At least, supposedly...
Whoops then... I just read that on the wiki. >.>
Rollback Post to RevisionRollBack
"If the human brain were so simple that we could understand it, we would be so simple that we couldn't."
I curiously can't seem to get this to work. I sure THINK I've followed all the instructions right, though I suppose I must be doing something wrong. Tried this on a fresh install and everything. Everytime I try and load a world, I get this error:
--- BEGIN ERROR REPORT 55e38209 --------
Generated 1/21/11 1:21 AM
Minecraft: Minecraft Beta 1.2_01
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_20, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 9500M GS/PCI/SSE2 version 3.3.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -120
at dn.k(dn.java:1596)
at dn.j(dn.java:1540)
at net.minecraft.client.Minecraft.i(SourceFile:1215)
at net.minecraft.client.Minecraft.run(SourceFile:679)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT f7f33b78 ----------
I curiously can't seem to get this to work. I sure THINK I've followed all the instructions right, though I suppose I must be doing something wrong. Tried this on a fresh install and everything. Everytime I try and load a world, I get this error:
Quite confused.
You're trying to load a world that was used with a mod that adds new blocks. The crashing is unrelated to McRegion.
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
Mods loaded:
ModLoader Beta 1.2_01
mod_Arrows 1.2v1
mod_chisel Beta 1.2
mod_mocreatures 2.1_01
mod_SpawnerGUI Beta 1.2
mod_Stackables Beta 1.2_01
mod_Tortoise 2.1_01
mod_Minerals r15
--- BEGIN ERROR REPORT 7315de42 --------
Generated 1/21/11 2:38 AM
Minecraft: Minecraft Beta 1.2_01
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce GT 335M/PCI/SSE2 version 3.1 NVIDIA 188.55, NVIDIA Corporation
java.lang.NullPointerException
at al.a(SourceFile:53)
at al.a(SourceFile:28)
at oc.a(oc.java:107)
at oc.a(oc.java:101)
at h.a(h.java:260)
at ll.c(ll.java:335)
at ll.b(ll.java:269)
at net.minecraft.client.Minecraft.run(SourceFile:705)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 84ea74e7 ----------
I ran the map after I accidentally let minecraft "update" which broke and reset all my mods and I loaded up this level for a split second then said "**** close close close" and now I try it and well... it crashes and breaks when I hit a specific area in my map aka, my base. I'd have to say that MCReigon is what's causing it to crash because the save has some of Notch's dirty save data in it and it also has yours too.
Edit: Also, I can load up any of my other saves just fine, perfectly even. It's only this one where if I go into a specific area it crashes.
I curiously can't seem to get this to work. I sure THINK I've followed all the instructions right, though I suppose I must be doing something wrong. Tried this on a fresh install and everything. Everytime I try and load a world, I get this error:
Quite confused.
You're trying to load a world that was used with a mod that adds new blocks. The crashing is unrelated to McRegion.
This would make sense. I'm using Shockah's Minerals! mod, so that could be it. However, I only get this problem when I add McRegion. If I restore to my most immediate backup, everything works fine.
Is it a conflict specifically between these two mods?
So I just threw this down on my brand new, redownloaded minecraft. Nothing was added, no new blocks, nothing. And it crashes! This is what I get:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 1/21/11 12:38 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_21, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Radeon Xpress Series (Omega 3.8.442) version 2.1.7169 Release, ATI Technologies Inc.
java.lang.SecurityException: SHA1 digest error for dn.class
at sun.security.util.ManifestEntryVerifier.verify(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at mr.a(SourceFile:34)
at by.a(SourceFile:91)
at net.minecraft.client.Minecraft.a(SourceFile:444)
at dz.a(SourceFile:186)
at by.a(SourceFile:69)
at by.e(SourceFile:116)
at by.d(SourceFile:104)
at net.minecraft.client.Minecraft.i(SourceFile:1106)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c47a5521 ----------
I installed it and all my gui (not the block in my hand) was gone, i guess it conflicts with some other things then :tongue.gif:
ill just restore to backup, but still D:
I just noticed that when using the regiontool.jar the DIM-1 folder (Nether) never really packs or unpacks right unless you specifically tell it to do that folder. Not that big of a deal just a minor annoyance.
seem to of lost all my work because of the update, its come appareant that its because of mcregion.
will i get it all back when this is updated?
First, you should still have your world intact (that is, the region folder is still there). I would back it up though. Second, MCregion works with 1.2_02 just fine. Third...this is why you should always back up your save files.
oddly, if you run the taskmanager, i see minecraft at 580 000kb (so half a gb of ram) then it increases (even when the game is pauesd) gradually, up to 600 000, 650 000, after 2-3 minutes it hits 800 000kb of ram usage and lags out, my comp only has a gb of ram :S
is there like a lock-loop glitch that happened when it updated to 1.2 beta?
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
Mods loaded:
ModLoader Beta 1.2_02v2
mod_bowlmilk Beta 1.2
mod_butterchurn Beta 1.2
mod_cheeseburguer Beta 1.2
mod_cheesemaker Beta 1.2
mod_chisel Beta 1.2
mod_coral Beta 1.2
mod_FunctionalBooks fix for 1.2_01
mod_mocreatures 2.5.2
mod_PlasticCraft v1.2 (for b1.2_01)
mod_scrambledeggs Beta 1.2
mod_TheAlchemist Beta 1.2_01
--- BEGIN ERROR REPORT 9e3d6a35 --------
Generated 22.01.11 19:42
Minecraft: Minecraft Beta 1.2_02
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce GTX 580/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -78
at dn.k(dn.java:1596)
at dn.j(dn.java:1540)
at net.minecraft.client.Minecraft.i(SourceFile:1238)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 3a095ae9 ----------
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
Mods loaded:
ModLoader Beta 1.2_02v2
mod_bowlmilk Beta 1.2
mod_butterchurn Beta 1.2
mod_cheeseburguer Beta 1.2
mod_cheesemaker Beta 1.2
mod_chisel Beta 1.2
mod_coral Beta 1.2
mod_FunctionalBooks fix for 1.2_01
mod_mocreatures 2.5.2
mod_PlasticCraft v1.2 (for b1.2_01)
mod_scrambledeggs Beta 1.2
mod_TheAlchemist Beta 1.2_01
--- BEGIN ERROR REPORT 9e3d6a35 --------
Generated 22.01.11 19:42
Minecraft: Minecraft Beta 1.2_02
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_23, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce GTX 580/PCI/SSE2 version 4.1.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -78
at dn.k(dn.java:1596)
at dn.j(dn.java:1540)
at net.minecraft.client.Minecraft.i(SourceFile:1238)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 3a095ae9 ----------
Maybe I've overmodded my Minecraft :3
im geting the same error and i dont have any mods other then this one and optimine, whats wrong?
Does this only work for linux? Specifically the script I mean.
Whoops then... I just read that on the wiki. >.>
"If the human brain were so simple that we could understand it, we would be so simple that we couldn't."
Try this. This should work.
viewtopic.php?f=25&t=120160&p=2090963#p2061688
--- BEGIN ERROR REPORT 55e38209 --------
Generated 1/21/11 1:21 AM
Minecraft: Minecraft Beta 1.2_01
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_20, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 9500M GS/PCI/SSE2 version 3.3.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -120
at dn.k(dn.java:1596)
at dn.j(dn.java:1540)
at net.minecraft.client.Minecraft.i(SourceFile:1215)
at net.minecraft.client.Minecraft.run(SourceFile:679)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT f7f33b78 ----------
Quite confused.
You're trying to load a world that was used with a mod that adds new blocks. The crashing is unrelated to McRegion.
I ran the map after I accidentally let minecraft "update" which broke and reset all my mods and I loaded up this level for a split second then said "**** close close close" and now I try it and well... it crashes and breaks when I hit a specific area in my map aka, my base. I'd have to say that MCReigon is what's causing it to crash because the save has some of Notch's dirty save data in it and it also has yours too.
Edit: Also, I can load up any of my other saves just fine, perfectly even. It's only this one where if I go into a specific area it crashes.
This would make sense. I'm using Shockah's Minerals! mod, so that could be it. However, I only get this problem when I add McRegion. If I restore to my most immediate backup, everything works fine.
Is it a conflict specifically between these two mods?
--- BEGIN ERROR REPORT a1dce528 --------
Generated 1/21/11 12:38 PM
Minecraft: Minecraft Beta 1.2_02
OS: Windows XP (x86) version 5.1
Java: 1.6.0_21, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Radeon Xpress Series (Omega 3.8.442) version 2.1.7169 Release, ATI Technologies Inc.
java.lang.SecurityException: SHA1 digest error for dn.class
at sun.security.util.ManifestEntryVerifier.verify(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at mr.a(SourceFile:34)
at by.a(SourceFile:91)
at net.minecraft.client.Minecraft.a(SourceFile:444)
at dz.a(SourceFile:186)
at by.a(SourceFile:69)
at by.e(SourceFile:116)
at by.d(SourceFile:104)
at net.minecraft.client.Minecraft.i(SourceFile:1106)
at net.minecraft.client.Minecraft.run(SourceFile:642)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c47a5521 ----------
ill just restore to backup, but still D:
[simg]http://www.JezzaWebs.com.au/MineCraft/DiamondsV1/Image.php?Name=iWaste[/simg]
You have just read this. You are also manually breathing.
First, you should still have your world intact (that is, the region folder is still there). I would back it up though. Second, MCregion works with 1.2_02 just fine. Third...this is why you should always back up your save files.
is there like a lock-loop glitch that happened when it updated to 1.2 beta?
Maybe I've overmodded my Minecraft :3
Twitter; Github;
im geting the same error and i dont have any mods other then this one and optimine, whats wrong?