thomasfn Posted April 25, 2012 Posted April 25, 2012 Hi there. As most server owners have realised by now, it's too easy to grief in Tekkit using Equivalent Exchange tools and the damage is bad because it can't be rolled back by Bukkit plugins. Why? Because the EE tools don't route block break events through Bukkit, so poor old Bukkit has no idea any blocks are even being destroyed when someone right clicks your marble building with their morning star. I have decompiled EE and added code to the DM/RM tools which routes the correct events through Bukkit, and handles event cancellation correctly. What does this mean? It means any damage done by DM/RM tools can be fully rolled back by your favourite plugin without issue. It also means that plugins such as Towny or Residences will protect the world properly against the AoE effects of these tools. Patch Details Only the server requires the patch. The targeted version of Tekkit is 3.1.1, this patch may not work for any other version. The patch has been confirmed to work on Tekkit 3.1.2. The client doesn't need patching, so all your players don't need to do a thing. The patched tools are listed below: DM/RM Axe DM/RM Hammer DM/RM Pickaxe DM/RM Shears DM/RM Shovel Red Katar Red Morningstar Destruction Catalyst Hyperkinetic Lens Catalytic Lens Nova Catalyst Nova Cataclysm Tools which I've investigated and I will not be patching (for the time being) are: Philosophers Stone Evertide Amulet Volcanite Amulet Mercurial Eye Download Version 311a Mirror 1: http://www.sendspace.com/file/ffgdky Version 304a Mirror 1: http://www.sendspace.com/file/szcyxk Version 303a Mirror 1: http://www.sendspace.com/file/8p3048 The download is a zip file containing a number of .class files. Patching Instructions (Windows) Shut down the server. Backup the world and the mods folder. Extract all the class files from the download zip and copy them. Navigate to the "mods" folder inside the root directory of the server (where Tekkit.jar is) Open the zip file called "EE2ServerV1.4.5.1-bukkit-mcpc-1.2.5-r2.zip" (the name might be different but it should be pretty similar) Navigate to the "ee" folder within the zip file. Paste the patched class files. Bring up the server. FAQ All my EE items and blocks have vanished from the world! I hope you backed up your world like instructed. Delete your EE zip file, redownload tekkit and extract a fresh version of EE out and try again. I'm getting Java class not supported 5.1 major.minor errors! Make sure you have Java 1.7 installed. Will you patch [insert tool here]????? Probably not. I'll look into it, but unless it's a simply "I DESTROY BLOCKS" tool it's unlikely to happen. Other Stuff You'll want to go through and test all the tools to make sure the patch has worked correctly. It's possible I missed something. The original forum thread where I initially developed the patch can be found here: http://evolutionrd.beastnode.net/vb/showthread.php?529-Modding-the-mods-DM-RM-tools The original forum thread where this patch made an appearance on these forums can be found here: http://forums.technicpack.net/index.php/topic,8077.0.html I hope this helps! Disclaimer: I will not be held responsible for any damage that occurs on your server as a result of installing this patch. If you want to check the patch for malicious code, you are free to decompile the patched classes and have a look. I'd recommend www.showmycode.com for this. Echo_Silence 1 Quote
The_DarthMoogle Posted April 25, 2012 Posted April 25, 2012 This is genious. Gold stars all round Had no problems with the RM tools whatsover, although for some reason permanent Condensed Matter orbs have been appearing after changing modes with regular left click block breaking for some people. Could be to do with wubbish connections, and I saw nothing in there that explains it. Logging out and back in clears everything up though. Quote
thomasfn Posted April 25, 2012 Author Posted April 25, 2012 This is genious. Gold stars all round Had no problems with the RM tools whatsover, although for some reason permanent Condensed Matter orbs have been appearing after changing modes with regular left click block breaking for some people. Could be to do with wubbish connections, and I saw nothing in there that explains it. Logging out and back in clears everything up though. That's odd, and may be a side-effect of the patch being made out of decompiled code. If it's causing a severe problem (lag etc) then I'll take a look into it, but since the condensed matter orbs are a bit buggy in the unpatched mod anyway I don't think it's a major problem. Quote
Viderizer Posted April 25, 2012 Posted April 25, 2012 I added my both seprate downloads to a single RAR: http://valssi.fixme.fi/~viderizer/EEPatches.rar It contains: [li]Destruction Catalyst[/li] [li]Catalytic Lense[/li] Also adding the same disclaimer. I will not be held responsible for any damage that occurs on your server as a result of installing this patch. If you want to check the patch for malicious code, you are free to decompile the patched classes and have a look. I'd recommend www.showmycode.com for this. Quote
RyanTheAllmighty Posted April 25, 2012 Posted April 25, 2012 I cant thank you guys enough for this. I wish it had come sooner, but better late than never Going to make me feel more at ease now with my server :) Quote
RebelNode Posted April 25, 2012 Posted April 25, 2012 Needless to say we also got it on Evolution R&D now and it works great. RM pickaxe seems to have some problems to log, but found no bugs with other tools. Quote
thomasfn Posted April 25, 2012 Author Posted April 25, 2012 Ok I updated OP with a new version of the patch. This should fix RM pick and should hopefully fix an obscure error related to the patch. The download link is here. Quote
RyanTheAllmighty Posted April 26, 2012 Posted April 26, 2012 Not sure if you fixed this with the second patch but I got this error which crashed the server 2012-04-26 15:58:04 [sEVERE] java.lang.StackOverflowError 2012-04-26 15:58:04 [sEVERE] at java.text.FieldPosition.getFieldDelegate(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.text.SimpleDateFormat.format(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.text.DateFormat.format(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.text.Format.format(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at org.bukkit.craftbukkit.util.ShortConsoleLogFormatter.format(ShortConsoleLogFormatter.java:45) 2012-04-26 15:58:04 [sEVERE] at java.util.logging.StreamHandler.publish(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.util.logging.ConsoleHandler.publish(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.util.logging.Logger.log(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.util.logging.Logger.doLog(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at java.util.logging.Logger.log(Unknown Source) 2012-04-26 15:58:04 [sEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:480) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedTool.attemptBreak(ItemRedTool.java:29) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:242) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) 2012-04-26 15:58:04 [sEVERE] at ee.ItemRedPickaxe.doBreakS(ItemRedPickaxe.java:253) Quote
thomasfn Posted April 26, 2012 Author Posted April 26, 2012 Not sure if you fixed this with the second patch but I got this error which crashed the server - snip - Thanks, I will look into it. Can you tell me what action caused the error? Right clicking on an ore with the RM pick? What type of ore was it, and how big? Can you provide instructions on how to replicate the error? Edit: Nevermind, I found the problem and fixed it. Here's the latest patch: http://www.sendspace.com/file/ctz4wg. I also updated OP. Keep these bugs coming! Edit2: For those of you interested, the problem was caused when the pickaxe was searching for ores to mine on the right click function. The vein lead into protected area and the pickaxe just kept trying to mine the same block over and over instead of cancelling the entire function. Quote
RyanTheAllmighty Posted April 26, 2012 Posted April 26, 2012 Ahh awesome. Thanks for the big fixes so quickly :) Quote
RyanTheAllmighty Posted April 26, 2012 Posted April 26, 2012 Another quick error When usign the red matter morning star on Mega Impact mode fully charged, it boots off the player with Internal Server Error and gives this error in the console 23:07:47 [WARNING] Failed to handle packet: java.lang.ArrayIndexOutOfBoundsException java.lang.ArrayIndexOutOfBoundsException Quote
hunter712 Posted April 26, 2012 Posted April 26, 2012 Any chance we could get this working for things like Dynamite and Destruction Catalyst? Quote
RyanTheAllmighty Posted April 26, 2012 Posted April 26, 2012 Any chance we could get this working for things like Dynamite and Destruction Catalyst? The first post has these: Destruction Catalyst: http://valssi.fixme.fi/~viderizer/ItemCatalystStone.rar Catalytic Lens: http://valssi.fixme.fi/~viderizer/ItemHyperCatalyst.rar Quote
thomasfn Posted April 26, 2012 Author Posted April 26, 2012 Another quick error When usign the red matter morning star on Mega Impact mode fully charged, it boots off the player with Internal Server Error and gives this error in the console 23:07:47 [WARNING] Failed to handle packet: java.lang.ArrayIndexOutOfBoundsException java.lang.ArrayIndexOutOfBoundsException Left click or right click? Where abouts where you trying to use it, on a protected zone? Edit: Found and fixed, it was a copy paste error. Not sure why I didn't pick up on it when testing. New version here: http://www.sendspace.com/file/awqpfh Quote
Olas Posted April 26, 2012 Posted April 26, 2012 When I applied this fix, it removed all my players EE items from their chests and inventory. Is that normal? Quote
NormenKD Posted April 26, 2012 Posted April 26, 2012 If this really works (couldn't test it yet, not that i doubt you) it should be somehow put into the next release. Quote
Forum Administrators sct Posted April 26, 2012 Forum Administrators Posted April 26, 2012 When I applied this fix, it removed all my players EE items from their chests and inventory. Is that normal? Sounds like you screwed something up and EE failed to load. This is why you test before implementation but what do I know. Quote
RyanTheAllmighty Posted April 26, 2012 Posted April 26, 2012 If this really works (couldn't test it yet, not that i doubt you) it should be somehow put into the next release. I can guarantee you that it works 100%. You can log with Hawkeye and I assume other logging/rollback plugins. I can rollback all EE item damage. Stops people from using them to destroy WorldGuard regions and also protected areas with GriefPrevention plugin Quote
dwinget2008 Posted April 26, 2012 Posted April 26, 2012 Thanks for this, it looks awesome. Is there a way that you could also patch some of the IC2 items, such as nukes, all dynamite and tnt, mining laser and such. Also there seems to be issues with placing exorbitant amounts of lava and ice with the EE rings and amulets. Just wondering if you could look into that thanks for your hard work. Quote
thomasfn Posted April 26, 2012 Author Posted April 26, 2012 When I applied this fix, it removed all my players EE items from their chests and inventory. Is that normal? It's not normal no, and maybe you messed up the install which caused EE not to load correctly. Hopefully you have a backup. On this note, I recommend that all server admins make a backup of their world data and their EE mod zip before installing this patch. Quote
Viderizer Posted April 26, 2012 Posted April 26, 2012 Made a combined download with patches from me and thomasfn. This includes: [li]DM/RM Axe[/li] [li]DM/RM Hammer[/li] [li]DM/RM Hoe (Doesn't work on the tilled land, but works for the flowers and stuff it knocks off)[/li] [li]DM/RM Pickaxe[/li] [li]DM/RM Shears[/li] [li]DM/RM Shovel[/li] [li]Red Katar[/li] [li]Red Morningstar[/li] [li]Destruction Catalyst[/li] [li]Catalytic Lense[/li] Download ZIP (Version 4) Download RAR (Version 4) Quote
awesomebilly Posted April 27, 2012 Posted April 27, 2012 When I turn on High Impact mode with the red morning star I get disconnected from the server, if I spam the red morning star High Impact I crash my server. Quote
thomasfn Posted April 27, 2012 Author Posted April 27, 2012 When I turn on High Impact mode with the red morning star I get disconnected from the server, if I spam the red morning star High Impact I crash my server. Do you mean mega impact? Have you installed the most recent patch (version 4)? Can you provide any error logs? Do the crashes happen when you turn on the mode, or when you use the tool? Left click or right click? Quote
awesomebilly Posted April 27, 2012 Posted April 27, 2012 I will re-install tonight, it was Mega Impact mode when you use the right click special ability. I will validate this again tonight after a fresh EE install. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.