• For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
  • 1.4 will bring many changes to the PC version. We strongly advise making plans to back up your worlds and players prior to updating your game. More details here.
  • Begin your search for Journey's End information here and here. Please report bugs and issues for Journey's End here.
  • For issues you find with the Mobile 1.3 update, please follow this link and give as much detail as possible. This is the speediest way to get info to DR Studios to look at your issue. Also, some troubleshooting hints here.

Tool [Patcher] Terraria Tweaker 2 | SUPERCHARGE YOUR TERRARIA! (1.4 compatible!)

Slaughter Lord

Terrarian
I plan on reading through the plugin tutorial/wiki very soon so I can make a few (or maybe 1 combined) plugins, but before I do, could you verify if what i'm wanting to do is possible through the plugin system? I'd feel a lot better knowing it's possible before i start and would have no problem trucking through the learning process.

The functions i'm wanting to implement are:
  1. Hotkey to swap the items from the hotbar with the items from 1 of the inventory rows (ideally the row directly below).
  2. Double press hotbar slot # key to swap the corresponding hotbar item with the item in the inventory that is directly below it.
  3. (similar to the plugin that deltaone already made) Hotkey to swap only armor with it's vanity slots and/or Hotkey to swap only accessories with their vanity slots. Ideally it would not swap items with empty vanity slots. In a perfect world, i'd be able to customize on the fly which items get swapped, but that sounds unlikely or would be just too complicated for me.
  4. And finally, another Hotkey to enable/disable the "Autopause" game setting.
Would greatly appreciate verification on any of these, just off the top of your head. Thanks for reading.
 

TiberiumFusion

Official Terrarian
I plan on reading through the plugin tutorial/wiki very soon so I can make a few (or maybe 1 combined) plugins, but before I do, could you verify if what i'm wanting to do is possible through the plugin system? I'd feel a lot better knowing it's possible before i start and would have no problem trucking through the learning process.

The functions i'm wanting to implement are:
  1. Hotkey to swap the items from the hotbar with the items from 1 of the inventory rows (ideally the row directly below).
  2. Double press hotbar slot # key to swap the corresponding hotbar item with the item in the inventory that is directly below it.
  3. (similar to the plugin that deltaone already made) Hotkey to swap only armor with it's vanity slots and/or Hotkey to swap only accessories with their vanity slots. Ideally it would not swap items with empty vanity slots. In a perfect world, i'd be able to customize on the fly which items get swapped, but that sounds unlikely or would be just too complicated for me.
  4. And finally, another Hotkey to enable/disable the "Autopause" game setting.
Would greatly appreciate verification on any of these, just off the top of your head. Thanks for reading.
1. The next tutorial video (coming soon) will demonstrate how to convert a TranscendPlugin from TerrariaPatcher to work with TTPlugins and Terraria Tweaker 2. The video will show the process using the Hotbar Swap plugin as an example, which I believe is the same as or very similar to the functionality you're describing.
2. It should be pretty easy to achieve this after watching the tutorial mentioned in point 1.
3. Similar to #2. Will depend on what you specifically want as you put it together.
4. The Persistent Savedata Demo plugin (find it on the wiki) shows how to detect when key combos are pressed or held down. Pick a target method that only runs once per update cycle (like Terraria.Main.DoUpdate), then patch that method with some code that checks hotkeys and reacts accordingly.
 

Slaughter Lord

Terrarian
1. The next tutorial video (coming soon) will demonstrate how to convert a TranscendPlugin from TerrariaPatcher to work with TTPlugins and Terraria Tweaker 2. The video will show the process using the Hotbar Swap plugin as an example, which I believe is the same as or very similar to the functionality you're describing.
2. It should be pretty easy to achieve this after watching the tutorial mentioned in point 1.
3. Similar to #2. Will depend on what you specifically want as you put it together.
4. The Persistent Savedata Demo plugin (find it on the wiki) shows how to detect when key combos are pressed or held down. Pick a target method that only runs once per update cycle (like Terraria.Main.DoUpdate), then patch that method with some code that checks hotkeys and reacts accordingly.
Great! Thanks for the confirmation and additional info. I know you've put a lot of effort into your wiki/tutorials, and I am pretty confident i'll be able to figure things out using it/them. I really appreciate it!
 

Nancok

Skeletron Prime
An update to my random bunch of recipees using Gaelyte's plugin (includes the default lava charm recipee made by Gaelyte)
  • Anklet of the Wind: Vine x2 | Rich Mahogany x50 | Leaf Wand > Made in Tinkerer's Workbench
    [*]Life Crystal: Crimtane/Demonite Bar x10 | Shadow Scale/Tissue Sample x3 > Made in any Anvil
    [*]Fisherman's Guide: Atlantic Cod | Salmon | Tuna | Red Snapper | Neon Tetra | Trout | Rock Lobster | Flounder | Bass | Shrimp | (basically every common fish) > Made in Tinkerer's Workbench
    [*]Sextant: Amber: x3 | Glass x2 > Made in Tinkerer's Workbench
    [*]Weather Radio: Cloud x10 | Tin Can > Made in Tinkerer's Workbench
    [*]Paint Sprayer: Toolbelt | Paintbrush | Paint Roller > Made in Tinkerer's Workbench
    [*]Extendo Grip: Toolbelt | Grappling Hook > Made in Tinkerer's Workbench
    [*]Portable Cement Mixer: Toolbelt | Water Bucket | Hardened Sand Wall x400 > Made in Tinkerer's Workbench
    [*]Brick Layer: Toolbelt | Red Brick x200 > Made in Tinkerer's Workbench
    [*]Ruby to Diamond and viceversa > Made in Crystal Ball
    [*]Pain Necklace to Band of Starpower and viceversa > Made in Tinkerer's Workbench
    [*]Dart Rifle to Dart Pistol and viceversa > Made in Crystal Ball
    [*]Chain Guillotine to Fetid Baghnakhs and viceversa > Made in Crystal Ball
    [*]Clinger Staff to Health Drain and viceversa > Made in Crystal Ball
    [*]Putrid Scent to Flesh Knuckles and viceversa > Made in Crystal Ball
    [*]Amber to Glass > Made in Glass Kiln (for no real reason) *UPDATED*
THE NEW RECIPES
  • Brain of Confusion to Worm Scarf and viceversa > Made in Tinkerer's Workbench (thx for the reminder pigman065)
  • Red/Blue/Green/Purple Counterweight: Ash x40 | Red/Blue/Green/Purple Dye > Made in Glass Kiln
  • Shiny Red Balloon: Cloud x50 | Featherfall Potion > Made in Tinkerer's Workbench (because making extra worlds to get a balloon isn't worth it)
  • Cloud in a Bottle: Cloud x60 | Bottle > Made in Tinkerer's Workbench (sucks when the chests refuse to give you one)
  • Tinkerer's Workshop: Iron/Lead Bar x15 | Wood 30 | Silk | Gold Coin x10 > Made in the Workbench (such a big part of progression is locked behind an specific event and NPC, well, i say :red: that, throw some materials and money on a workbench, put on a blindfold and let the fairy goblins do their magic)
  • Hand Warmer: Silk x25 | Living Fire Block x5 > Made in Loom (nobody wants to change their PC's clock just to get this useless thing)
  • Sorcerer/Warrior/Summoner/Ranger Emblem to any other class' Emblem > Made in Tinkerer's Workbench
  • Necromantic Scroll: Book | Soul of Night x30 | Temple Key > Made in a Tombstone (main class accesory locked behind an event, no thank you)
  • Blindfold: Ancient Cloth x25 > Made in Loom (just shortens the dessert grind)
  • Band of Regeneration: Life Crystal | Fallen Star x2 > Made in an Anvil
  • Aglet: Iron/Lead Bar x10 | Chain > Made in an Anvil
  • Water Walking Boots: Water Walking Potion x5 | Hermes Boots > Made in Tinkerer's Workbench (too rare for their worth)
  • Flying Carpet: Silk x30 | Feather x40 > Made in Tinkerer's Workbench
  • Ice Skates: Water Walking Boots | Ice Block x20 | Iron/Lead Bar x4 > Made in Tinkerer's Workbench (same, but also part of a big crafting tree)
  • Living Fire Block: Lava Bucket | Ash x10 > Made in Hellforge (it looks cool)
  • Hermes Boots: Wood Greaves | Acorn x20 | Sunflower x5 > Made in an Anvil :)red: playing without this)
Edit: changed necromantic scroll's recipe to only be craftable after Plantera has been defeated (nobody uses the key anyway)
 

Attachments

deltaone

Terrarian
Do you need to change the order of the unlocks ? Because you could do it with a prefix method setting CompletionPercent to 0.6 if it's at least 0.2 then set the correct one with a postfix
Unlock only molecart, they available when all rails already laid ;)
In plans - disable underground restrictions (but i don't know how to disable this check, plz help me :) , enable molecart earlier through craft (demonite ore) or bestiary percent (~20%) ...
Sometimes need to change opcodes, need way to do it ...


Teleport Minions plugin
"T" - teleport all minions to cursor
 

Attachments

Last edited:

Terri

Terrarian
Can I adjust the the value of mana (default: 20) that's being encreased by Mana Crystals with this? I couldn't find a way to change that value in the Omnipatcher tweak section.

Sorry if it's something obvious. I'm new to this impressive-looking mod and may have missed it.

EDIT: Is there another tool that can use Large World Support with 1.4? It says it needs something like TerraCustom, but it's still on 1.3 and waiting for tModloader to upgrade.
 
Last edited:

TiberiumFusion

Official Terrarian
Anyone know, where checking restrictions (only underground laying) for Digging Molecart ?

@TiberiumFusion
Supported ? Now to use ? ))))


Need to change 0.6 => 0.2 ...
Currently, this is not possible with the TTPlugins. The way I see it, if you understand the CLR and can write IL by hand, there's no need to use something like a usercode plugin system. I chose to skip over transpiler patches for the initial TTPlugins release to save time.
That said, however, I do agree that having access to Harmony's transpiler functions in TTPlugins would be very nice. So, I currently have plans to support Harmony's transpilers in the next version of TTPlugins.

Can I adjust the the value of mana (default: 20) that's being encreased by Mana Crystals with this? I couldn't find a way to change that value in the Omnipatcher tweak section.
Mana stars have unique logic and thus the "max mana added when consumed" number cannot be modified with the Omnipatcher, unfortunately.
You could write a plugin that does this, however. It could be something as simple picking a Terraria.Player.ItemCheck method to patch to check when a mana star is used and add/remove mana points to your liking.

EDIT: By the way, is there a way to adjust the values for the Large World Support tweak? I'd really like to the keep the large width but not the height.
There is not. However, you could write a plugin that recreates the Large World Support effect to your own desired parameters.
Though, I'm not sure why you would need the Large World Support tweak to work less well (i.e. have a smaller max world size). Any world that is 2XL wide but only 1XL tall will work just fine with Large World Support enabled. You may save some memory by leaving the maximum world height unchanged, but the resulting performance gain will be rather small.
 

Terri

Terrarian
Thanks for the reply. I changed my post after realizing that Large World Support by itself doesn't change the world's size. I really wanted to do a big-sized vanilla 1.4 run (never done it before but always found large worlds too small) while waiting for tModLoader. Is it possible somehow or do I have to wait for tModLoader anyway (TerraCustom's author said he'll only update it then)?
 

TiberiumFusion

Official Terrarian
Thanks for the reply. I changed my post after realizing that Large World Support by itself doesn't change the world's size. I really wanted to do a big-sized vanilla 1.4 run (never done it before but always found large worlds too small) while waiting for tModLoader. Is it possible somehow or do I have to wait for tModLoader anyway (TerraCustom's author said he'll only update it then)?
Unfortunately, I know almost nothing about the world generation process or how to generate worlds with a custom width & height. I would expect it to be as easy as changing a few parameters that define the world's height and width (i.e. something you could probably do with a plugin), but Terraria is made out of spit, duct tape, and ugly programming that defies all good reason, so it may not be as easy as changing a few numbers. It'd be worth a try, though, if you've got the time for it. I've been considering adding world generation tweaks to Terraria Tweaker, but I don't have the time to do so right now.
 

Gaelyte

Terrarian
Unfortunately, I know almost nothing about the world generation process or how to generate worlds with a custom width & height. I would expect it to be as easy as changing a few parameters that define the world's height and width (i.e. something you could probably do with a plugin), but Terraria is made out of spit, duct tape, and ugly programming that defies all good reason, so it may not be as easy as changing a few numbers. It'd be worth a try, though, if you've got the time for it. I've been considering adding world generation tweaks to Terraria Tweaker, but I don't have the time to do so right now.
The generation depends on the height and width of the map, but things like floating islands would be rarer
 

deltaone

Terrarian
Currently, this is not possible with the TTPlugins. The way I see it, if you understand the CLR and can write IL by hand, there's no need to use something like a usercode plugin system. I chose to skip over transpiler patches for the initial TTPlugins release to save time.
That said, however, I do agree that having access to Harmony's transpiler functions in TTPlugins would be very nice. So, I currently have plans to support Harmony's transpilers in the next version of TTPlugins.

As quick fix - make virtual method in HPlugins with arg type cecil AssemblyDefinition ...
 

Terri

Terrarian
The generation depends on the height and width of the map, but things like floating islands would be rarer
I don't suppose you'd be interested in making such a plugin? I don't know the engine well enough to do something like that.

By the way, I also had a question regarding your Recipe Helper plugin. While it's very useful for adding new stuff already, is there any chance that I can replace (tweak) original recipes with it?
 

Coleby

Terrarian
An update to my random bunch of recipees using Gaelyte's plugin (includes the default lava charm recipee made by Gaelyte)
  • Anklet of the Wind: Vine x2 | Rich Mahogany x50 | Leaf Wand > Made in Tinkerer's Workbench
    [*]Life Crystal: Crimtane/Demonite Bar x10 | Shadow Scale/Tissue Sample x3 > Made in any Anvil
    [*]Fisherman's Guide: Atlantic Cod | Salmon | Tuna | Red Snapper | Neon Tetra | Trout | Rock Lobster | Flounder | Bass | Shrimp | (basically every common fish) > Made in Tinkerer's Workbench
    [*]Sextant: Amber: x3 | Glass x2 > Made in Tinkerer's Workbench
    [*]Weather Radio: Cloud x10 | Tin Can > Made in Tinkerer's Workbench
    [*]Paint Sprayer: Toolbelt | Paintbrush | Paint Roller > Made in Tinkerer's Workbench
    [*]Extendo Grip: Toolbelt | Grappling Hook > Made in Tinkerer's Workbench
    [*]Portable Cement Mixer: Toolbelt | Water Bucket | Hardened Sand Wall x400 > Made in Tinkerer's Workbench
    [*]Brick Layer: Toolbelt | Red Brick x200 > Made in Tinkerer's Workbench
    [*]Ruby to Diamond and viceversa > Made in Crystal Ball
    [*]Pain Necklace to Band of Starpower and viceversa > Made in Tinkerer's Workbench
    [*]Dart Rifle to Dart Pistol and viceversa > Made in Crystal Ball
    [*]Chain Guillotine to Fetid Baghnakhs and viceversa > Made in Crystal Ball
    [*]Clinger Staff to Health Drain and viceversa > Made in Crystal Ball
    [*]Putrid Scent to Flesh Knuckles and viceversa > Made in Crystal Ball
    [*]Amber to Glass > Made in Glass Kiln (for no real reason) *UPDATED*
THE NEW RECIPES
  • Brain of Confusion to Worm Scarf and viceversa > Made in Tinkerer's Workbench (thx for the reminder pigman065)
  • Red/Blue/Green/Purple Counterweight: Ash x40 | Red/Blue/Green/Purple Dye > Made in Glass Kiln
  • Shiny Red Balloon: Cloud x50 | Featherfall Potion > Made in Tinkerer's Workbench (because making extra worlds to get a balloon isn't worth it)
  • Cloud in a Bottle: Cloud x60 | Bottle > Made in Tinkerer's Workbench (sucks when the chests refuse to give you one)
  • Tinkerer's Workshop: Iron/Lead Bar x15 | Wood 30 | Silk | Gold Coin x10 > Made in the Workbench (such a big part of progression is locked behind an specific event and NPC, well, i say :red: that, throw some materials and money on a workbench, put on a blindfold and let the fairy goblins do their magic)
  • Hand Warmer: Silk x25 | Living Fire Block x5 > Made in Loom (nobody wants to change their PC's clock just to get this useless thing)
  • Sorcerer/Warrior/Summoner/Ranger Emblem to any other class' Emblem > Made in Tinkerer's Workbench
  • Necromantic Scroll: Book | Soul of Night x30 | Temple Key > Made in a Tombstone (main class accesory locked behind an event, no thank you)
  • Blindfold: Ancient Cloth x25 > Made in Loom (just shortens the dessert grind)
  • Band of Regeneration: Life Crystal | Fallen Star x2 > Made in an Anvil
  • Aglet: Iron/Lead Bar x10 | Chain > Made in an Anvil
  • Water Walking Boots: Water Walking Potion x5 | Hermes Boots > Made in Tinkerer's Workbench (too rare for their worth)
  • Flying Carpet: Silk x30 | Feather x40 > Made in Tinkerer's Workbench
  • Ice Skates: Water Walking Boots | Ice Block x20 | Iron/Lead Bar x4 > Made in Tinkerer's Workbench (same, but also part of a big crafting tree)
  • Living Fire Block: Lava Bucket | Ash x10 > Made in Hellforge (it looks cool)
  • Hermes Boots: Wood Greaves | Acorn x20 | Sunflower x5 > Made in an Anvil :)red: playing without this)
Edit: changed necromantic scroll's recipe to only be craftable after Plantera has been defeated (nobody uses the key anyway)
You may need to take a look at your script, because I can craft a Warrior's Emblem for free.
105600_20200816131412_1.png
 

Gaelyte

Terrarian
I don't suppose you'd be interested in making such a plugin? I don't know the engine well enough to do something like that.

By the way, I also had a question regarding your Recipe Helper plugin. While it's very useful for adding new stuff already, is there any chance that I can replace (tweak) original recipes with it?
Of course, look at the Existing Recipe part of the doc
And I could tweak the map creation once I'm done with RecipeHelper and TTPlugins to tweak TerrariaServer, if I still think about it
 
Top Bottom