thomasfn

Patch for EE mining tools - no more griefing with them!

Recommended Posts

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.

Share this post


Link to post
Share on other sites

This is genious. Gold stars all round :D

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.

Share this post


Link to post
Share on other sites

This is genious. Gold stars all round :D

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.