RedPower Tweaks 4

RedPower Tweaks is a Minecraft Forge coremod that addresses a few inconveniences with RedPower 2 prerelease 6. The tweaks are described below.

This mod was written completely independent of Eloraam and RedPower and is not "official" in any meaning of the word. Do not bug #redpower with questions about it or post in the RedPower forum thread. If you cannot figure out how to set up RedPower Tweaks yourself, then you do not deserve to use it.

If you wish to report a bug or request a feature, please use the area provided by PasteHTML.com for comments. I have also created a Twitter account for the project, for those of you interested in hearing about updates.

News

Apr 17, 2013: Two months after the last news item, I regret to inform everybody that I'm stopping development of RedPower Tweaks. I've lost interest in modding and Minecraft in general, and have a number of other responsibilities that are beginning to get in the way. Have fun Minecrafting!

Feb 17, 2013: I'm proud to announce the addition of a second member to the RedPower Tweaks team. His additions include the autoassign tweak, the backplane and RAM duplication tweaks, and most importantly the canvas bag item duplication tweak. This marks the release of version 4. Also, a bug with RedPower fluid pipes and Railcraft has come to our attention as well. We intend to have this one fixed for the version 5 release of RedPower Tweaks.

Feb 9, 2013: Spent today fixing the previously mentioned bug. I was relieved to find that the fix would be quite simple. This addition marks the release of version 3 of RedPower Tweaks.

Feb 6, 2013: A new bug has been brought to my attention:

[22:30:33] <Hawk777> If the author of rptweaks is here, question regarding same. Any plans to improve it to stop RP from crashing on right-clicking an IC with a GUI while holding a block?
I had initially planned on leaving RedPower Tweaks as-is (which is why there is no backplane fix right now,) but any bug that can result in a crash is a severe enough bug to warrant an RPTweaks update. This is the first I've heard of this bug, and I have confirmed that it does indeed exist. Since this classifies as a denial of service vulnerability, and a dangerously simple one at that, I will get to work on a fix as soon as possible.

Downloading

RedPower Tweaks 4 can be downloaded here. This file goes in the .minecraft/coremods folder.

If you are afraid to download and run a coremod from an anonymous source (a perfectly understandable sentiment), you may download the source code here for inspection purposes. Or feel free to decompile RedPower Tweaks. I don't particularly care.

If you wish to enable or disable certain tweaks, then put this into a file called rptweaks.conf in your .minecraft/config folder.

There is no license on this code, in source or binary form, since there is no copyright on it. (Who would want to take credit for something like this anyway?) This means that RedPower Tweaks can be included in any modpack, public or private, without needing my explicit permission.

The Tweaks

Canvas Bag Item Duplication

This bug is a bit of a big deal. The fix removes the ability to use the number keys to move items around while having a canvas bag GUI open. It is a quick and dirty fix to a very exploitable bug. Hopefully Eloraam comes up with an official, proper fix soon. This tweak cannot be disabled.

There is no picture to demonstrate this fix, since there is nothing to show.

Autoassign

Fixes a bug in RedPower's autoassign feature. This tweak is disabled by default. There is no picture to demonstrate this fix, since there is nothing to show.

Screwdriver

It's no secret that the screwdrivers are broken in pr6. Indeed, it is one of the most well-known and disappointing problems with pr6. Not being able to change the bus IDs of the various RedPower control components significantly reduces the number of things you can do with RedPower computers.

This tweak restores the expected behavior of the screwdriver when used on RedPower control components.

Creative Mode Drops

Anybody who has played with RedPower in creative mode for any period of time has probably run in to this problem. You are creating a complicated machine full of frames, tubes, and wires, but have to clean up the items scattered everywhere, and your inventory slowly fills up with RedPower items.

This tweak suppresses certain item drops in creative mode. This is the most hackish of all the tweaks. It works by analyzing the call stack to determine whether an item drop should be canceled or not, since canceling all item drops in creative is not a good idea (items in filters, disks in disk drives, etc.) Care was taken to ensure that things such as project tables and disk drives dropped their contents without themselves being dropped as items.

IO Expander, Backplane, and RAM Duplication

When an IO expander, backplane, or RAM module is broken, whether in creative or survival, two are dropped as items. This tweak brings the drop count back to 1.

Clear Project Table Crafting Grid

This was the tweak that kicked off the whole project. This tweak works by essenitally shift-clicking each item in the crafting grid when the button is clicked. (In actuality, it works by calling transferStackInSlot for each slot in the crafting grid, but the effect is the same.)

This tweak is disabled by default, since it is by far the most intrusive tweak of them all

Logic GUI Crash

This tweak fixes a particular crash with GUI-having logic elements: when attempting to open the GUI for a timer or state cell while holding a block, the game would crash. There is no option to disable this tweak.

About

It should be noted that the goal here is not to interfere with Eloraam's vision for RedPower. I'm fairly certain I would have been able to add a tweak that disables volcanoes and rubber trees during world gen. However, Eloraam explicitly left this out of the configuration file, and I don't doubt that she could have added an option for that. It would have been disrespectful of me to add such a tweak, so I didn't.

The goal, rather, is to provide a temporary solution to a few things that make RedPower less than it could be, until Eloraam is able to address them herself. She is a very busy person, but there are still people who want to be able to use RedPower to its full potential.


I'm aware that decompiling and reverse engineering RedPower is against Eloraam's copyright. However, sometimes the wording of an agreement does not reflect the spirit and intent of that agreement. The intent of what I have done is to allow players to use RedPower to its full potential once again for the benefit of the community and I cannot imagine Eloraam's agreement was intended to counter this.

Drop it like it's hot