• PC NEWS: 1.4.2.3 update is out! More info here. Report bugs here
  • Journey's End on Xbox and PlayStation!: Get all the info by clicking here. As of Oct 19 a new patch has been released. Click here for Known Issues and FAQ. For any other bugs, report them (with as much detail as possible) here.
  • MOBILE NEWS: Stay up to date with the latest mobile news here. Report mobile bugs here

Standalone [1.3] tModLoader - A Modding API

Quethed

Terrarian
(I know I didn't do frames yet) help! it removes 2 from the inventory instead of 1
also, incase of possible confusion, how do you set it to only work while in reach
also I cant just use createTile because this will cover multiple items

for(int s=0;s<50;s++){
if(player.inventory.type==28){
if(WorldGen.PlaceTile(Player.tileTargetX, Player.tileTargetY, 13)){
player.inventory.stack--;
return true;
}
}
}

Got amount working by accedent
still need help with range
 
Last edited:

Maxoxpower

Terrarian
? Most mod authors including me update their mods with tmodloader/terraria?
is it hard to update a mod? :O

what happen if a mod autor won't update? i know thorium/antiaris/calamity and big major content will but ( i really want dead spirit mod to be updated and some smaller like wireless / gamble npc ) can't play without it :p )
 

Quethed

Terrarian
is it hard to update a mod? :O

what happen if a mod autor won't update? i know thorium/antiaris/calamity and big major content will but ( i really want dead spirit mod to be updated and some smaller like wireless / gamble npc ) can't play without it :p )
It is not hard, but it can be time consuming. mod authors discontinue their mods for:
gave up,
working on other mod (like the author of tremer),
quit terraria (most likely what happened to crystilium),
considers mod complete,
considers coding hard,
says they will come back but they don't,
physicly unable to continue,
quit terraria community,
author dead (in theory),
lack of time,
possibly other reasons.

You can even fall under multiple things on this list.
 
Last edited:
I've got a strange problem that keeps happening. After about 2-3 days, I'll load up the game and it will present me with the language select page again. After that my mods load and then my character is there but when I load up the world, it says something about world not loading (forgot what it says) then it lets me load the backup and then it just gives me the message
Index was outside the bounds of the array.
at Terraria.Player.Spawn()
at Terraria.WorldGen.do_playWorldCallBack(Object threadContext)
at Terraria.WorldGen.playWorldCallBack(Object threadContext)
What is happening? And how can I fix it?
 

Maxoxpower

Terrarian
It is not hard, but it can be time consuming. mod authors discontinue their mods for:
gave up,
working on other mod (like the author of tremer),
quit terraria (most likely what happened to crystilium),
considers mod complete,
considers coding hard,
says they will come back but they don't,
physicly unable to continue,
quit terraria community,
author dead (in theory),
lack of time,
possibly other reasons.

You can even fall under multiple things on this list.
i supose big mod like crystilium could came back just to update their mod and nothing else.... well..i guess...i hope :O
 

Quethed

Terrarian
i supose big mod like crystilium could came back just to update their mod and nothing else.... well..i guess...i hope :O
Graydee
Made Crystalium and Spirit mods.
I cant see when she was on last, but recent activity is blank.
because of the disappearance, crystalium and spirit took the blow. sure both have other devs but a big one for both is gone.
 

Maxoxpower

Terrarian
Graydee
Made Crystalium and Spirit mods.
I cant see when she was on last, but recent activity is blank.
because of the disappearance, crystalium and spirit took the blow. sure both have other devs but a big one for both is gone.
i just tell her about it and she just answer me with : potential yes about updating . they are hope i guess!
:)
 

Quethed

Terrarian
on discord of course!
???I have no idea what that is???
The answer is still good enough.
I would like to trade with the parent mod of slime biome. worldgen for textures.
(A big reason why I made slime biome is because I liked crystalium, and wanted my own biome mod)
(I am also trying to say that the world gen of crystalium is the most buggy and unstable ever)
 

Halo_

Terrarian
for some reason it gives me this, what have I done?!

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Unable to create the graphics device. ---> Microsoft.Xna.Framework.Graphics.DeviceLostException: Exception of type 'Microsoft.Xna.Framework.Graphics.DeviceLostException' was thrown.
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.CreateDevice(GraphicsAdapter adapter, PresentationParameters presentationParameters)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice..ctor(GraphicsAdapter adapter, GraphicsProfile graphicsProfile, PresentationParameters presentationParameters)
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
at Microsoft.Xna.Framework.GraphicsDeviceManager.GameWindowScreenDeviceNameChanged(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameWindow.OnScreenDeviceNameChanged()
at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_ScreenChanged(Object sender, EventArgs e)
at Microsoft.Xna.Framework.WindowsGameForm.OnScreenChanged()
at Microsoft.Xna.Framework.WindowsGameForm.UpdateScreen()
at Microsoft.Xna.Framework.WindowsGameForm.Form_LocationChanged(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnLocationChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Microsoft.Xna.Framework.WindowsGameForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Terraria
Assembly Version: 1.3.5.1
Win32 Version: n/a
CodeBase: file:///C:/Users/Richard/Desktop/Terrariamods.exe
----------------------------------------
ReLogic
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase: file:///C:/Users/Richard/Desktop/Terrariamods.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.Xna.Framework.Game
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Game/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Game.dll
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.dll
----------------------------------------
Microsoft.Xna.Framework.Graphics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Graphics/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Graphics.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.Xna.Framework.Xact
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Xact/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Xact.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 10.0.0.0
Win32 Version: n/a
CodeBase: file:///C:/Users/Richard/Desktop/Terrariamods.exe
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.Xna.Framework.Input.Touch
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Xna.Framework.Input.Touch/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Input.Touch.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Steamworks.NET
Assembly Version: 9.1.0.0
Win32 Version: n/a
CodeBase: file:///C:/Users/Richard/Desktop/Terrariamods.exe
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

Jofairden

Duke Fishron
tModLoader
???I have no idea what that is???
The answer is still good enough.
I would like to trade with the parent mod of slime biome. worldgen for textures.
(A big reason why I made slime biome is because I liked crystalium, and wanted my own biome mod)
(I am also trying to say that the world gen of crystalium is the most buggy and unstable ever)
We have a discord server, Discord is a chat and voice chat app where you can talk with other people.
The link to the server is here: https://www.tmodloader.net/discord
 

kowalskiy

Terrarian
One question, I have not found any way to set the modloader folder anywhere else than on default route. Thing is I would like to change it to drive D instead of C (its a small capacity SSD and would like to keep it as clean as possible). I searched on the wiki and forums but didn't find anything (or maybe found it but didn't know to recognize it).

Thanks in advance and Cheers for the great work!
 

jopojelly

Retinazer
tModLoader
One question, I have not found any way to set the modloader folder anywhere else than on default route. Thing is I would like to change it to drive D instead of C (its a small capacity SSD and would like to keep it as clean as possible). I searched on the wiki and forums but didn't find anything (or maybe found it but didn't know to recognize it).

Thanks in advance and Cheers for the great work!
You do that via Steam. After that, you need to read the readme.txt and do that manual install into that new folder that you moved your Terraria install to. (It's just copy and paste the files from the zip into that folder.)
 

kowalskiy

Terrarian
You do that via Steam. After that, you need to read the readme.txt and do that manual install into that new folder that you moved your Terraria install to. (It's just copy and paste the files from the zip into that folder.)

I reinstalled terraria just in case. It's located in "D:\Steam\steamapps\common\Terraria". After this I extract the contents of the zip file and so far so good.
But the folder where mods are stored keeps happening in "C:\Users\myself\Documents\My Games\Terraria\ModLoader\Mods" and this last one is the folder that I would like to move to D:, for instance, "D:\ModLoader\Mods"

Not sure if that is what you meant but I hope I explained myself better now.
 
Top Bottom