v0.10.1.4
-Patreon Supporter Vanity Sets added. Thanks so much to our Golem level Patrons.
-Fix NPC Shop prices
-Added Update All Button to Mod Browser
-Many more informative error messages
-Fixed ModPacks having deleted mods
-Fixed some rare errors
-Fixed some ModItem/GlobalItem data loss bugs
-ModItem/GlobalItem/ModPlayer.OnConsumeAmmo
-ExampleMod
--ExampleWorm now fully functional
--CanEquipAccessory example
--Fixes
-Updated Translations
--French
--Chinese
-Patreon Supporter Vanity Sets added. Thanks so much to our Golem level Patrons.
-Fix NPC Shop prices
-Added Update All Button to Mod Browser
-Many more informative error messages
-Fixed ModPacks having deleted mods
-Fixed some rare errors
-Fixed some ModItem/GlobalItem data loss bugs
-ModItem/GlobalItem/ModPlayer.OnConsumeAmmo
-ExampleMod
--ExampleWorm now fully functional
--CanEquipAccessory example
--Fixes
-Updated Translations
--French
--Chinese
Solo-Ion
Dungeon Spirit
Loading textures at runtime like you are doing there is really not a good way to do it. If you are writing your own animation AI, you could just put both variations into the one texture and adjust your AI accordingly. But if you have no control over the animation, you'll need to load it in once when the mods are loaded then access it from there.I've spent the last day and a half trying to do this. I've looked at examplemods, tutorials, even the source code itself. I just want to at half health (5000 hp), have my boss change sprites. I know it's something simple or my code has one thing off, so if anyone can, please help me.
Here's the code that i've been using:
//Boss second stage texture
public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor)
{
if (npc.life <= 5000)
{
spriteBatch.Draw(mod.GetTexture("NPCs/Boss/BigBoy2"), npc.Center, null, Color.Red * (255f / 255f), 0f, new Vector2(100, 100), 3f, SpriteEffects.None, 0f);
}
return true;
}
I should also mention i'm new to this so ;p
In your main mod class, create something like this.
Code:
public static Texture2D[] nameOfTexture;
public override void Load()
{
nameOfTexture = GetTexture("NPCs/Boss/BigBoy2");
}
Code:
public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor)
{
if (npc.life <= 5000)
{
spriteBatch.Draw(YourModsName.nameOfTexture, npc.Center - Main.screenPosition, null, Color.Red * (255f / 255f), 0f, new Vector2(100, 100), 3f, SpriteEffects.None, 0f);
return false; //DON'T draw the normal boss texture
}
return true;
}
TheRiptideShark
Official Terrarian
the new update broke: keybinding, clear mod browser credentials button, and that all I have found so far.
I will let you know if I find more things that needs fixing.
I will let you know if I find more things that needs fixing.
Can you please elaborate? What keybinding? And how is it broken?the new update broke: keybinding, clear mod browser credentials button, and that all I have found so far.
For the button, how is it broken? Does it not work when clicked? Does it not display in the right language?
VanossGaming 2
Terrarian
there is a new update
how to download
how to download
JoeJoeTV
Skeletron Prime
Hello i have a problem with the new version:
I have following mods installed:
And it crashed on step: "setting up".
There is no log either it just stops responding and i have to close it
I have following mods installed:
HelpfulNPCs
OreConversion
OreSeeds
CookieMod
PortableStorage
TheOneLibrary
Avtomatmod
HamstarHelpers
BuildPlanner
SmeltableTools
ServerBrowser
MagicalThings
DiscordRP
IcePlus
BossChecklist
RecipeBrowser
GadgetBox
VeinMiner
BlockarozArmor
FabusMod
MechTransfer
WheresMyItems
TheLuggage
Wireless
WikiSearch
WhatAmmoDoesItShoot
ArmorHairDye
TPUnchained
ShaderLib
TerrariaPlus
telespells
SecretDyes
Project_C
NonResetTimer
MorePotions
MoreChestLoot
MoreAccessories
MoAddon
MaxStackPlus
MagicStorage
Lottery
ItemMagnet
ItemCustomizer
ItemChecklist
DNIWpnUpgr
FKTModSettings
DualWielding
dropyourweapon
Loot
JPANsBagsOfHoldingMod
SolutionsMod
EmojiSupport
CheatSheet
OreConversion
OreSeeds
CookieMod
PortableStorage
TheOneLibrary
Avtomatmod
HamstarHelpers
BuildPlanner
SmeltableTools
ServerBrowser
MagicalThings
DiscordRP
IcePlus
BossChecklist
RecipeBrowser
GadgetBox
VeinMiner
BlockarozArmor
FabusMod
MechTransfer
WheresMyItems
TheLuggage
Wireless
WikiSearch
WhatAmmoDoesItShoot
ArmorHairDye
TPUnchained
ShaderLib
TerrariaPlus
telespells
SecretDyes
Project_C
NonResetTimer
MorePotions
MoreChestLoot
MoreAccessories
MoAddon
MaxStackPlus
MagicStorage
Lottery
ItemMagnet
ItemCustomizer
ItemChecklist
DNIWpnUpgr
FKTModSettings
DualWielding
dropyourweapon
Loot
JPANsBagsOfHoldingMod
SolutionsMod
EmojiSupport
CheatSheet
And it crashed on step: "setting up".
There is no log either it just stops responding and i have to close it
TheRiptideShark
Official Terrarian
The keybinding are broken to the point if I try to edit any thing it locks up, which forces me to alt-f4 out of the game. ( I click on edit a key-bind, press any key, the game locks up the mouse, can't click anything, esc key doesn't do anything, so at that point alt-f4 is the only way to get out of the game) The button just crashes the game. In the case of the language it's English as it's all I understand. Sorry for the delayed response.Can you please elaborate? What keybinding? And how is it broken?
For the button, how is it broken? Does it not work when clicked? Does it not display in the right language?
This is my crash-log.
05/07/2018 08:56:55 AM
System.NullReferenceException: Object reference not set to an instance of an object.
at TerrariaOverhaul.Extensions.SetField(Type type, String fieldName, Object val, Object obj, Nullable`1 flags) in C:\Users\Merser\Documents\My Games\Terraria/ModLoader\Mod Sources\TerrariaOverhaul\Extensions.cs:line 1738
at TerrariaOverhaul.MethodSwapping.Interface_ModLoaderMenus(Main main, Int32 selectedMenu, String[] buttonNames, Single[] buttonScales, Int32[] buttonVerticalSpacing, Int32& offY, Int32& spacing, Int32& numButtons, Boolean& backButtonDown)
at Terraria.Main.DrawMenu(GameTime gameTime)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
TheRiptideShark
Official Terrarian
Keybinding now work, Clear mod-browsers credentials still crashes the game though. 
Your previous post mentions TerrariaOverhaul in the error, which is a hint that the bug is with that not tmodloader. I just verified and yeah, overhaul breaks the clear mod browser credentials button.Keybinding now work, Clear mod-browsers credentials still crashes the game though.![]()
Keathoran_Quake
Official Terrarian
I have downloaded it and extracted to my terraria folder in steam, however it wont load when I enter the game....
DiamondHawk8
Terrarian
Hey I was so hyped to use your software and once everthing loaded i got this message and i dont know how to fix it ive unstalled and reaenstalled the software and even terria nad it still wont work plz help
looks like you have an old mod. Hold shift, click continue, once you get to the main menu, update all your mods on the mod browser, then reload.Hey I was so hyped to use your software and once everthing loaded i got this message and i dont know how to fix it ive unstalled and reaenstalled the software and even terria nad it still wont work plz helpView attachment 200158
DiamondHawk8
Terrarian
I tried that then terraria closed and I got this messagelooks like you have an old mod. Hold shift, click continue, once you get to the main menu, update all your mods on the mod browser, then reload.
Try again.I tried that then terraria closed and I got this message
View attachment 200176
DiamondHawk8
Terrarian
Nope still wont workTry again.
That's odd, that error should only happen with an old herosmod, you updated it right? if it doesn't work, just disable it.Nope still wont work
thompsonjet2010
Terrarian
is there any good way to decompile the terraria.exe that comes with tmodloader and have the ability to rebuild it without errors?
would like to change lines in the code, THEN use tmodloader with mods.
yes, i own the game, have since it initially came out.
you have no hooks yet for what i like to do. much easier to do it my way than write code for hours
tried to decompile terraria fresh from a steam download, decompile says i need 1.3.5.1 to work.
tried to decompile terraria that came with tmodloader, says require terraria server not in same directory
i am
at creating code. can alter lines upon lines as long as it exists.
would like to change lines in the code, THEN use tmodloader with mods.
yes, i own the game, have since it initially came out.
you have no hooks yet for what i like to do. much easier to do it my way than write code for hours
tried to decompile terraria fresh from a steam download, decompile says i need 1.3.5.1 to work.
tried to decompile terraria that came with tmodloader, says require terraria server not in same directory
i am

DiamondHawk8
Terrarian
thats the problem i cant get into my terraria menu so i cant disable it or do anythingThat's odd, that error should only happen with an old herosmod, you updated it right? if it doesn't work, just disable it.
Holding shift bypasses loading mods. Or, just open \Documents\My Games\Terraria\ModLoader\Mods and delete problem mods.thats the problem i cant get into my terraria menu so i cant disable it or do anything
ColonelRockrits
Terrarian
Ugh...i just can't seem to get this Load Failed thing off my game...after this update and other major mods im trying to play with...(Overhaul, Calamity, Spirit, Thorium, Grealm) it happens 95% percent of the time and its unbearably unplayable...i tried deleting some resource mods i dont use and it wont go away...have i updated the tmodloader incorrectly or some mod update is causing this...D:<
Similar threads
- Replies
- 40
- Views
- 23K
- Replies
- 5
- Views
- 1K
- Replies
- 893
- Views
- 891K
- Sticky
- Replies
- 270
- Views
- 264K
- Locked
- Replies
- 234
- Views
- 48K
-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.