Standalone [1.3] tModLoader - A Modding API

ok so i have been using this to play the tremor mod remastered and it was working fine until my computer forced me to update to windows 10 and now it always crashes when i load my large worlds with this error:

Exception of type 'System.OutOfMemoryException' was thrown.
at Terraria.UI.Chat.ChatLine..ctor()
at Terraria.Main.DrawMenu(GameTime gameTime)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)

Edit: forgot to mention that it only crashes when its a large world and it crashes when i try to create large worlds too but i can play on my small worlds just fine
 
I've been playing the Thorium mod with a friend, and chests seem to not register when you use the loot all button. Not that big of an issue, but can still be troublesome.

Edit: Deposit all does a similar glitch, but it gets rid of all the items instead. Learned that the hard way :(
 
Last edited:
So how would I go about making an NPC say something special the first time you talk to them? Like how the bound NPC's work? Would I need to make a bool variable to be triggered to false when talking to the npc to disallow further access to that dialogue? Would that variable stay false even after reloading the world?
 
So how would I go about making an NPC say something special the first time you talk to them? Like how the bound NPC's work? Would I need to make a bool variable to be triggered to false when talking to the npc to disallow further access to that dialogue? Would that variable stay false even after reloading the world?
Vanilla npc have separate choices if they are homeless, so just check npc.homeless in GetChat to return the "you saved me" dialogue.
[DOUBLEPOST=1457497193,1457497174][/DOUBLEPOST]
I've been playing the Thorium mod with a friend, and chests seem to not register when you use the loot all button. Not that big of an issue, but can still be troublesome.

Edit: Deposit all does a similar glitch, but it gets rid of all the items instead. Learned that the hard way :(
We know, it's fixed in the next release.
[DOUBLEPOST=1457497556][/DOUBLEPOST]
Also... This isnt really a question, but do you ever plan to make a tutorial on segmented NPCS?
Maybe I could.
Wrong question: how do I make it so only one pickaxe can mine it (modded)?
I'm not sure you can. You can try CanKillTile and check the inventory of the player to see if they are using the item

https://github.com/bluemagic123/tMo...-cankilltileint-i-int-j-ref-bool-blockdamaged
 
well how do I make it require a certain pickaxe power than?
 
well how do I make it require a certain pickaxe power than?
Look on the tModLoader GitHub wiki under ModTile, there you will find everything you need for that.
 
This confoooseee meeee...
public int minPick where does this go
I know its a field
 
This confoooseee meeee...
public int minPick where does this go
I know its a field
That's a variable already present in the ModTile class which can be set in the SetDefaults function of your ModTile.
 
does the public int still go into the set defaults aswell?
 
does the public int still go into the set defaults aswell?
No...
That's only for variable declaration, which (like mentioned before) is already done.
 
Alright thanks so much!
[DOUBLEPOST=1457522760,1457522225][/DOUBLEPOST]Is there a way to make a new "class', so it doesnt say throwing damage or whatever but "custom name" damage?
 
For what endershot is asking is this it here
public virtual bool CanKillTile(int i, int j, ref bool blockDamaged)
and how can i use this to set a pickaxe power.
 
For what endershot is asking is this it here
public virtual bool CanKillTile(int i, int j, ref bool blockDamaged)
and how can i use this to set a pickaxe power.
I already figured it out :/
I just set a pickaxe requirement and made a pickaxe with that power
 
Could you show me ?
 
(on pickaxe)
item.pick = 310;
(On tile)
minPick = 300;
 
so
item.pick = 310 (Power ?)
and MinPick (power is 300?)
 
Item pick is the pickaxes power

MinPick is the minium pickaxe power required to mine
 
The pickaxe works and everything just i cant move left if im mining right, so how would i make it so i can move both ways and mine. With being stuck on one way each time.

And how would i go about animating furnaces. I have the sprite file set up for it.
 
Last edited:
Hello everyone. I have a question. Is this good for newbie modders? I really wanted to make small mod, not big as Necro or Avalon mods. Problem is that Im completely new to modding. I can't even draw sprites properly but Im training. Is this program for launching mods only or also creating? By creating I mean that I can write items properties
not using such thing as Json etc. but using this program? Thanks for help. Im still gonna read documentation.
 
Back
Top Bottom