
- TMODLOADER STEAM NEW INSTANCE MOD
- TMODLOADER STEAM NEW INSTANCE UPDATE
- TMODLOADER STEAM NEW INSTANCE CODE
Player.showItemIcon2 -> Player.cursorItemIconID. Player.showItemIcon -> Player.cursorItemIconEnabled. Item.owner -> ayerIndexTheItemIsReservedFor. Item.hairDye -> short to int (Many changes to related methods aswell). Item.dye -> byte to int (Many changes to related methods aswell). Item.prefix -> byte to int (Many changes to related methods aswell). Item.thrown -> While normally removed in 1.4, it is reimplemented by tML through Damage Classes (detailed further below). Player.hideVisual -> Player.hideVisibleAccessory. (changed from string to automatically assigned auto-incrementing int) Non-Static Fields / Constants / Properties Item.IsNotTheSameAs -> Item.IsNotSameTypePrefixAndStack. Item.IsTheSameAs -> removed, use item.type = compareItem.type directly. Player.Spawn -> Player.Spawn(PlayerSpawnContext). Main.campfire and similar environmental flags are now in Main.SceneMetrics and slightly renamed, e.g. ID.ItemUseStyleID has a few renamed fields ( HoldingOut becomes Shoot) and alot more use styles to choose from. Main.maxInventory -> Main.InventorySlotsTotal. Regex for replacing ModTranslation.AddTranslation uses: \bGameCulture\.(+)+ -> GameCulture.FromCultureName(GameCulture.CultureName.$1) Main.worldRate -> siredWorldTilesUpdateRate. Main.tileValue -> Main.tileOreFinderPriority. Main.quickBG -> Main.instantBGTransitionCounter. Main.dresserX/Y -> Main.interactedDresserTopLeftX/Y. emLockoutTime -> Main.timeItemSlotCannotBeReusedFor. Main.*Texture -> GameContent.TextureAssets.*.Value. Regex: Main.font(\w+)] -> GameContent.FontAssets.$1.Value Main.font* -> GameContent.FontAssets.*.Value. TileDrawing.IsTileDangerous(Player, Tile, ushort) -> TileDrawing.IsTileDangerous(int, int, Player). Was changed to: SoundEffectInstance instance = Sound. Example from a ModSound SoundEffectInstance instance = sound. Main.PlaySoundInstance(SoundEffectInstance) -> completely removed. Main.IsTileSpelunkable(Tile) -> Main.IsTileSpelunkable(int, int). Main.PlaySound -> SoundEngine.PlaySound -> in the Terraria.Audio namespace. Main.NPCAddHeight(int) -> Main.NPCAddHeight(NPC). ) -> PopupText.NewText(PopupTextContext, Item. Renamed or Moved Members Namespaces / Classes After that, you are ready to open Visual Studio and begin working on updating your code. TMODLOADER STEAM NEW INSTANCE MOD
Next, visit the mod sources menu in game and click on the upgrade. The first thing you need to do is copy your mod sources into the ModLoader/Beta/Mod Sources/ folder. V0.12 updates tModLoader to Terraria 1.4.
TMODLOADER STEAM NEW INSTANCE UPDATE
When a tModLoader update requires rewriting code, we will present the information here.
TMODLOADER STEAM NEW INSTANCE CODE
This page contains guides for migrating your code to new methods and functionality of newer tModLoader versions.