• 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.4 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!)

TiberiumFusion

Official Terrarian
Hi, Is there a way for me to modify the attribute (damage) of a specific attack move from a boss npc (e.g moon lord laser, fishron tornado)? Or is it yet to be implemented? Also wondering if we could modify how a specific enemy npc's damage and life is affected by the difficulty of a world (e.g lowering clown's damage in Master mode)?
You could write a plugin in order to do that.
 

Blitztein

Terrarian
Hi, Is there a way for me to modify the attribute (damage) of a specific attack move from a boss npc (e.g moon lord laser, fishron tornado)?
There is no pre-made tweak that can do that for you, but you can write a plugin that changes attributes of certain projectiles (i.e. Damage). Just find the internal name of the projectile attack (Either look it up online or use a decompiler), then set a new value to the desired variable, in this case, Damage. For the damages dealt by hotboxes (running into the boss), you can just set their damage by using the Omnipatcher.
Also wondering if we could modify how a specific enemy npc's damage and life is affected by the difficulty of a world (e.g lowering clown's damage in Master mode)?
There is a multiplier that is calculated after getting the base stat of an AI. You can look it up, but for reference, Journey mode is 0.5x, Normal mode is 1x, Expert mode is 2x, and Master modr is 3x. If you are tweaking hp and damage stats, it's important to keep in mind of the multiplier, as it may drastically change gameplay on different difficulties.

If you want a specific enemy's hp or damage stat to increase or decrease in a specific difficulty, you can use a plug-in to check the world difficulty, and changing the stats of the desired entity if the specific difficulty is present.
 

Gaelyte

Terrarian
Ok so I finished the 1.2 of RecipeHelper and here it is with some new usages :
  1. NewRecipe.New
  2. newRecipe.SetIngridients
  3. newRecipe.SetCraftingStation
  4. Many newRecipe.Need/DownedSometing, I’ll let you read them, I don’t want to write them a second time
  5. NewRecipe.MaxRequirements
  6. If you add a bool requirement that already exists in an Existing Recipe, the requirement is removed instead
  7. existingRecipe.AddCraftingStationCondition
  8. existingRecipe.EditCraftingStation
  9. existingRecipe.RemoveCraftingStation
  10. Deleting in existingRecipes should now work
  11. newRecipe.Hidden

But I'm done for today with this plugin so I'll not provide the doc for now, I think the names are obvious enough anyway
 

Attachments

Phoenix-Mask

Terrarian
Would it be possible to add an option that changes the timer between the waves of the old ones army? For those that need healing it might help to heal up but aside from that it kinda steals time
 

TiberiumFusion

Official Terrarian
i cant seem to able to find the terraria.exe file
There are several ways to quickly open the Terraria installation folder.
1. In Steam, right click Terraria -> Properties -> Game Files -> Browse Local Game Files
2. In Terraria Tweaker 2, click on the Terraria path displayed on the Dashboard
3. In TTApplicator, click on the "Terraria path found" readout in the status bar at the bottom left
4. Start Terraria, then in Task Manager, right click on the Terraria.exe process and choose Open File Location
 

Slaughter Lord

Terrarian
@TiberiumFusion (in case forums bug out on notifications. Happens to me a lot)
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.
I've been meaning to ask you if this was still in the works or has it been shelved?
 

TiberiumFusion

Official Terrarian
@TiberiumFusion (in case forums bug out on notifications. Happens to me a lot)


I've been meaning to ask you if this was still in the works or has it been shelved?
Yes, that tutorial is still in the works, but, unfortunately, TT2 is not very popular right now, so it's pretty low on my priority list as of now. When the 1.4.1 update comes out, I will most likely finish that tutorial and also release a planned update for TTPlugins, after the obligatory 1.4.1 compatibility update is complete.
I can say though that the TranscendPlugins to TTPlugins conversation is pretty simple. The key thing for converting a TranscendPlugins plugin is finding which hook it uses (provided by TerrariaPatcher), finding what Terraria method that hook is attached to, and then creating a TTPlugin that simply patches that method with the plugin code. You'll have to refer to TerrariaPatcher's source for the list of hooks. That's pretty much all there is to it and is what the tutorial video will demonstrate. Depending on the specific plugin you want to covert, however, you may need to adapt the plugin code as necessary to work with 1.4 (since TerrariaPatcher was never updated for 1.4).
 

Slaughter Lord

Terrarian
Yes, that tutorial is still in the works, but, unfortunately, TT2 is not very popular right now, so it's pretty low on my priority list as of now. When the 1.4.1 update comes out, I will most likely finish that tutorial and also release a planned update for TTPlugins, after the obligatory 1.4.1 compatibility update is complete.
I can say though that the TranscendPlugins to TTPlugins conversation is pretty simple. The key thing for converting a TranscendPlugins plugin is finding which hook it uses (provided by TerrariaPatcher), finding what Terraria method that hook is attached to, and then creating a TTPlugin that simply patches that method with the plugin code. You'll have to refer to TerrariaPatcher's source for the list of hooks. That's pretty much all there is to it and is what the tutorial video will demonstrate. Depending on the specific plugin you want to covert, however, you may need to adapt the plugin code as necessary to work with 1.4 (since TerrariaPatcher was never updated for 1.4).
Okay thanks man. I'm pretty disappointed in myself for not learning the plugin system (i.e., being lazy). But i've been using the fact that you're making a tutorial for converting TranscendPlugins as an excuse to continue being lazy. Feel kinda bad considering everything you've put together to teach how to make plugins.
On another note, I promoted Terraria Tweaker 2 on the TModLoader thread recently in response to some people complaining that TModLoader hasn't been updated. I'm under the impression that the majority of ppl just don't know of TT2. I just don't see why anyone interested in modding Terraria wouldn't be using it.
 

Gaelyte

Terrarian
Okay thanks man. I'm pretty disappointed in myself for not learning the plugin system (i.e., being lazy). But i've been using the fact that you're making a tutorial for converting TranscendPlugins as an excuse to continue being lazy. Feel kinda bad considering everything you've put together to teach how to make plugins.
On another note, I promoted Terraria Tweaker 2 on the TModLoader thread recently in response to some people complaining that TModLoader hasn't been updated. I'm under the impression that the majority of ppl just don't know of TT2. I just don't see why anyone interested in modding Terraria wouldn't be using it.
Yeah I try to talk about TT2 each time I read or hear "modded Terraria is 1.3.5.3"
 

TiberiumFusion

Official Terrarian
I'm under the impression that the majority of ppl just don't know of TT2. I just don't see why anyone interested in modding Terraria wouldn't be using it.
I'd say that's probably true. On top of that, modding interest in Terraria right now seems a lot lower than it was during the 1.3 era, so that indiscriminately brings down interest in all the patchers, mods, trainers, tools, etc. And tModLoader is so established as it's own thing by now that people don't think of it as contemporary anymore to traditional patchers like TerrariaPatcher or TT2.

On another note, I promoted Terraria Tweaker 2 on the TModLoader thread recently in response to some people complaining that TModLoader hasn't been updated.
Yeah I try to talk about TT2 each time I read or hear "modded Terraria is 1.3.5.3"
Much appreciated :happy:
 

TiberiumFusion

Official Terrarian
Don't do this.

When is the next update? It's been a while :I
1.4.1 literally released less than 12 hours ago. I don't know what has changed yet, but I'll bet 90% of everything is still compatible so far and needs absolutely no updating.
Terraria Tweaker is not very popular right now. When there is sufficient interest and demand, there will be a compatibility update for 1.4.1 and a subsequent planned feature update for TTPlugins.
 

Mail

Terrarian
Terraria Tweaker 2 patches Terraria instead of replacing it like TModLoader so it never completely breaks after an update!

I would like to report that most of my plugins still work and can be used immediately after updating to 1.4.1.0

This is the strongest advantage of Terraria Tweaker 2 over TModLoader. 1.4.1.1 will definitely come soon, and most plugins will work on it without having to wait for Terraria Tweaker 2 to be updated. You don't need to bother TiberiumFusion after every update. Even if a built-in mod feature breaks after an update, you can reproduce it with a plugin.

The only plugin of mine I can confirm is broken is the best-prefix mod, which broke because they added new weapons and fixed having two versions of the deadly prefix on some weapons.

My main plugin that I suggest everyone tries: (Thanks TiberiumFusion for TT2 otherwise I would lose this quality of life fix!)
 

Slaughter Lord

Terrarian
Terraria Tweaker 2 patches Terraria instead of replacing it like TModLoader so it never completely breaks after an update!

I would like to report that most of my plugins still work and can be used immediately after updating to 1.4.1.0

This is the strongest advantage of Terraria Tweaker 2 over TModLoader. 1.4.1.1 will definitely come soon, and most plugins will work on it without having to wait for Terraria Tweaker 2 to be updated. You don't need to bother TiberiumFusion after every update. Even if a built-in mod feature breaks after an update, you can reproduce it with a plugin.

The only plugin of mine I can confirm is broken is the best-prefix mod, which broke because they added new weapons and fixed having two versions of the deadly prefix on some weapons.

My main plugin that I suggest everyone tries: (Thanks TiberiumFusion for TT2 otherwise I would lose this quality of life fix!)
Sweet, thanks for the report man. You answered most of what I was reading the comments to find out about. Glad to know your PreClick Weapon Use plugin isn't affected by 1.4.1
 

JumpingCucumber

Terrarian
it's shutdown after few seconds of terraria logo:

Code:
14.10.2020 13:27:19 (357) :: [APPX] Program settings loaded (this is the first message to have the possibility of being logged via Trace after settings load). Bloop.
14.10.2020 13:27:19 (360) :: [APPX] Terraria Tweaker 2 by TiberiumFusion. TT2 version: 2.3.1405.1, release date: July 31, 2020 (Official Release), targeted Terraria version: 1.4.0.5
14.10.2020 13:27:19 (399) :: [IO--] Successfully parsed Tweak List (C:\Users\User\AppData\Roaming\Terraria Tweaker 2\Tweak Lists\Tweak List 1.ttl) Tweak List 1, T34zzTbORW2fHyFolitPfEX9g62buCBl
14.10.2020 13:27:19 (404) :: [IO--] Successfully parsed Tweak List (C:\Users\User\AppData\Roaming\Terraria Tweaker 2\Tweak Lists\Tweak List 2.ttl) Tweak List 2, TUuQBxpJkuQLlyqprMGQXSwb5dQoVtEi
14.10.2020 13:27:19 (406) :: [BRWS] Found Active Tweak List: Tweak List 1, ID: T34zzTbORW2fHyFolitPfEX9g62buCBl
14.10.2020 13:27:19 (545) :: [MNPN] Assigning References
14.10.2020 13:27:19 (545) :: [MNPN] Adjusting title
14.10.2020 13:27:19 (592) :: [MAIN] 'Is Terraria Running' checker thread starting...
14.10.2020 13:27:19 (670) :: [MAIN] User's (adjusted) screen height is 834
14.10.2020 13:27:19 (672) :: [MAIN] Screen set to full height (800)
14.10.2020 13:27:19 (673) :: [APTC] Found patch status for [P01]: True
14.10.2020 13:27:19 (695) :: [MNPN] Requested to switch to page 0
14.10.2020 13:27:19 (730) :: [IO--] Locating Terraria assembly
14.10.2020 13:27:19 (730) :: [MAIN] Determining if it is time for an update check...
14.10.2020 13:27:20 (126) :: [IN--] Completed caching important data
14.10.2020 13:27:20 (126) :: [TVER] Scanning for Terraria assemblies in: C:\Program Files (x86)\Steam\steamapps\common\Terraria
14.10.2020 13:27:20 (225) :: [MAIN] It is now time for an update check
14.10.2020 13:27:20 (225) :: [MAIN] Checking for updates (setting: At launch)
14.10.2020 13:27:20 (225) :: [IN--] Checking for updates
14.10.2020 13:27:20 (396) :: [MAIN] Got clean download of updates.xml after 171ms
14.10.2020 13:27:20 (433) :: [MAIN] Check for updates result: False, False, 1, 2.3.1405.1, 1, 1.2.1405.0, 1
14.10.2020 13:27:20 (531) :: [IO--] Successfully read and loaded stats file
14.10.2020 13:27:20 (683) :: [TVER] Found Terraria assembly at: C:\Program Files (x86)\Steam\steamapps\common\Terraria\Terraria.exe
14.10.2020 13:27:20 (784) :: [TVER] Scanning for Terraria assemblies in: C:\Program Files (x86)\Steam\steamapps\common\tModLoader
14.10.2020 13:27:20 (800) :: [TVER] Found Terraria assembly at: C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoader.exe
14.10.2020 13:27:20 (888) :: [TVER] Found Terraria assembly at: C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoaderServer.exe
14.10.2020 13:27:21 (226) :: [IL--] Loaded and ready
14.10.2020 13:27:21 (874) :: [IL--] Performing assembly tests
14.10.2020 13:27:21 (877) :: [ILe-] Error! Failed to locate Terraria.Main.TerrariaTweakerWasHere field!
14.10.2020 13:27:21 (890) :: [IL--] Size test results (Pass); size: 17580032, ver: 1.4.1.0
14.10.2020 13:27:21 (890) :: [IL--] Assembly tests results are in and about to be returned
14.10.2020 13:27:22 (339) :: [IO--] Successfully saved existing stats file
14.10.2020 13:27:22 (412) :: [MNPN] Page transition complete
14.10.2020 13:27:23 (396) :: [IO--] Successfully saved existing stats file
14.10.2020 13:27:24 (501) :: [IO--] Received request to execute a tweaked launch of tweaklist ID: T34zzTbORW2fHyFolitPfEX9g62buCBl, Title: Tweak List 1
14.10.2020 13:27:58 (756) :: [MAIN] Performing graceful shutdown
14.10.2020 13:27:59 (826) :: [IO--] Successfully saved existing settings file
14.10.2020 13:28:00 (882) :: [IO--] Successfully saved existing stats file
14.10.2020 13:28:01 (383) :: [MAIN] Killing sidebar
14.10.2020 13:28:01 (383) :: [MAIN] Aborting ITR Thread
14.10.2020 13:28:01 (394) :: [MAIN] The application is milliseconds from shutdown
 
Top Bottom