• PC NEWS: 1.4.2.3 update is out! More info here. Report bugs here
  • CONSOLE 1.4 NEWS: The current plan is to have Terraria: Journey's End out for Xbox and PlayStation in Q3 2021 (Jul-Sep). Switch will follow shortly afterwards. More info here. Stay up to date with console news here
  • MOBILE NEWS: Stay up to date with the latest mobile news here. Report mobile bugs here

tModLoader Mod Helpers

hamstar

Steampunker
Yay, thank you kindly!
On closer inspection, player.SpawnX is world coordinates. The reason for checking >= 0 is because Terraria sets it to -1 by default, meaning the player has no spawn (bed) explicitly set, I believe. If the town portal is erroneously positioning, it's because of another reason.

How often does this occur?
 

hamstar

Steampunker
Should work pretty well then. It also seems like it could be expanded in all kinds of really interesting ways, which is always a good thing!

Is there any chance you'd be willing to supply public JSON output for some of the data? I'd love to integrate some of it into my tModLoader: Browserfied project. What exactly that would include, I'm not entirely sure. Off the top of my head I can think of listing servers that use a particular mod, or at least showing the amount that do with a link to a page on your site that effectively does the same thing.
https://script.google.com/macros/s/AKfycbzQl2JmJzdEHguVI011Hk1KuLktYJPDzpWA_tDbyU_Pk02fILUw/exec

Also, the mod is up: https://forums.terraria.org/index.php?threads/server-browser-early-beta.68346
 
Last edited:

FlashBombTheGepgun

Skeletron Prime
For some reason i get an in game error that hamstar's helpers in not up to date when i already updated it in the mod browser. Should i do anything about this?
 

hamstar

Steampunker
For some reason i get an in game error that hamstar's helpers in not up to date when i already updated it in the mod browser. Should i do anything about this?
Can you describe this a bit? Does your Logs.txt say anything? Try submitting an issue report via the control panel, alternatively (it should forward some Logs.txt stuff).
 

FlashBombTheGepgun

Skeletron Prime
Can you describe this a bit? Does your Logs.txt say anything? Try submitting an issue report via the control panel, alternatively (it should forward some Logs.txt stuff).
Sorry for the kinda late reply.
I'm not getting the error anymore, i guess it was a one time thing.
Thanks anyways though.
 

Tituxs

Terrarian
Heyyyyyyyyy, everytime i open server browser, it seems to freeze for a couple seconds and then in the background it says that the game has crashed
Logs:
Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at HamstarHelpers.UIHelpers.Elements.UIDialog.Update(GameTime game_time)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)
[doublepost=1523170360,1523170133][/doublepost]
Heyyyyyyyyy, everytime i open server browser, it seems to freeze for a couple seconds and then in the background it says that the game has crashed
Logs:
Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at HamstarHelpers.UIHelpers.Elements.UIDialog.Update(GameTime game_time)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)
or this if you like it more:
 

Attachments

  • Runtime Error.txt
    838 bytes · Views: 192

hamstar

Steampunker
Heyyyyyyyyy, everytime i open server browser, it seems to freeze for a couple seconds and then in the background it says that the game has crashed
Logs:
Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at Terraria.UI.UIElement.Update(GameTime gameTime)
at HamstarHelpers.UIHelpers.Elements.UIDialog.Update(GameTime game_time)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)
[doublepost=1523170360,1523170133][/doublepost]
or this if you like it more:
Are you getting this with the latest mod versions? I added some counter measures to this in Server Browser v1.0.1.1
 

Tituxs

Terrarian
Hey, so now, when i update the mod, it says server busy, try again. Now, i just want to ask if this is normal, or it`s something wrong with my tmodloader.
 

Alucard_I

Official Terrarian
I don't think I understand what this mod does... Is it a collection of functions to use for modders? Is it a server-oriented collection of commands to have an easier control over it?
 

hamstar

Steampunker
v1.4.5 out with an overhaul of PacketProtocol, complete with commenting. Still refining this, but it would be very recommended if people started using it for net code stuff instead of ModPacket.

Also added an inbox function.

I don't think I understand what this mod does... Is it a collection of functions to use for modders? Is it a server-oriented collection of commands to have an easier control over it?
It is not a server mod, but it has helper functions for server-side use.
 

Winn

Terrarian
It should be. Send me any errors you come across, if you think it isn't.
It's weird, I load up Terraria perfectly normal until I enable Hamstar's Helpers, it CTDs my game without an error upon the world finishing loading.
 

denismart87

Terrarian
Getting this crash when activate Hamstar mod and trying to start world.


0:000:00000 - 000015.40 UNHANDLED crash? True
Sender: Terraria.exe
Message: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
at HamstarHelpers.TmlHelpers.BuildPropertiesEditor.<GetBuildPropertiesForModFile>b__0 (System.Reflection.Assembly t) [0x00000] in <1c3279d88698493596bda2fae94f749e>:0
at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () [0x00059] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00062] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at System.Linq.Enumerable.Count[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0004b] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at HamstarHelpers.TmlHelpers.BuildPropertiesEditor.GetBuildPropertiesForModFile (Terraria.ModLoader.IO.TmodFile modfile) [0x0006c] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.UIHelpers.Elements.UIModData..ctor (HamstarHelpers.UIHelpers.UITheme theme, System.Nullable`1[T] idx, Terraria.ModLoader.Mod mod, System.Boolean will_draw_own_hover_elements) [0x0005c] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.ControlPanel.UIControlPanel.CreateModListItem (System.Int32 i, Terraria.ModLoader.Mod mod) [0x0001a] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.ControlPanel.UIControlPanel.<LoadModListAsync>b__0 (System.Object _) [0x00028] in <1c3279d88698493596bda2fae94f749e>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x0000e] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
 

hamstar

Steampunker
Getting this crash when activate Hamstar mod and trying to start world.


0:000:00000 - 000015.40 UNHANDLED crash? True
Sender: Terraria.exe
Message: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
at HamstarHelpers.TmlHelpers.BuildPropertiesEditor.<GetBuildPropertiesForModFile>b__0 (System.Reflection.Assembly t) [0x00000] in <1c3279d88698493596bda2fae94f749e>:0
at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () [0x00059] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00062] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at System.Linq.Enumerable.Count[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0004b] in <5f01f5aacbb346938d6f9b4e69d4383a>:0
at HamstarHelpers.TmlHelpers.BuildPropertiesEditor.GetBuildPropertiesForModFile (Terraria.ModLoader.IO.TmodFile modfile) [0x0006c] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.UIHelpers.Elements.UIModData..ctor (HamstarHelpers.UIHelpers.UITheme theme, System.Nullable`1[T] idx, Terraria.ModLoader.Mod mod, System.Boolean will_draw_own_hover_elements) [0x0005c] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.ControlPanel.UIControlPanel.CreateModListItem (System.Int32 i, Terraria.ModLoader.Mod mod) [0x0001a] in <1c3279d88698493596bda2fae94f749e>:0
at HamstarHelpers.ControlPanel.UIControlPanel.<LoadModListAsync>b__0 (System.Object _) [0x00028] in <1c3279d88698493596bda2fae94f749e>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x0000e] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <1170fb08300b4d0db71c1d1db8555768>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <1170fb08300b4d0db71c1d1db8555768>:0
You are using the latest version, right? Just making sure. I recall seeing this before, and assumed this got fixed...
 

denismart87

Terrarian
Yep my friend. I upgraded this mod 4 times (thank it can help). And I remade ma world without any mods, just with HamstarHelpers. And I made new clean character, and anyway it crashes((

I use MacBook Pro with MacOS 10.13.4 (may be it helps you)
 
Last edited:

hamstar

Steampunker
Yep my friend. I upgraded this mod 4 times (thank it can help). And I remade ma world without any mods, just with HamstarHelpers. And I made new clean character, and anyway it crashes((

I use MacBook Pro with MacOS 10.13.4 (may be it helps you)
Try the latest version (v1.4.6.1).
 
Top Bottom