github tModLoader/tModLoader v0.9.2

latest releases: v2024.05.1.8, v2024.05.1.7, v2024.05.1.6...
pre-release7 years ago

Several improvements all around.

Misc Features
-ModCommands replace the ChatInput hook (ChatInput no longer exists)
-TagSerializable - allows easy serialization of classes into TagCompound
-Autoload Effects (.xnb) from the folder "Effects/" (allows for shaders)

New Hooks
-Mod PreSaveAndQuit -- Called when user clicks SaveAndQuit
-Mod HijackSendData -- Use with extreme caution.
-ModItem/GlobalItem PickAmmo -- Allows ammo item control over projectile spawned.
-ModItem/GlobalItem UseTimeMultiplier -- Allows you to change the effective useTime of an item.
-ModItem/GlobalItem MeleeSpeedMultiplier -- Allows you to change the effective useAnimation of an item.
-ModItem/GlobalItem CanPickup and ExtraPickupSpace -- for special pickup considerations
-ModTile AnimateIndividualTile -- Special animation per tile
-ModTile/GlobalTile SpecialDraw -- Draw Extras specially
-ModTile/GlobalTile FloorVisuals -- Allows for special things if standing on a tile.
-ModTile/GlobalTile PlaceInWorld -- Allows you to do something when this tile is placed.
-ModWall/GlobalWall PlaceInWorld -- Allows you to do something when this wall is placed.
-ModWorld PostDrawTiles -- Draw overlay
-ModProjectile/GlobalProjectile CutTiles -- Cut tiles, useful for lasers/etc. (see ExampleLaser)
-ModProjectile/GlobalProjectile GrapplePullSpeed -- Grapple miss retreat speed
-UIElement now has right click functionality

Changed Hooks
-ModTile/GlobalTile.DrawEffects
-ModProjectile/GlobalProjectile.TileCollideStyle
-ModItem/GlobalItem.VerticalWingSpeeds
-ModItem/GlobalItem.WingUpdate
-ModItem/GlobalItem.HorizontalWingSpeeds

Bug Fixes
-Mods are now correctly sorted, fixing many cross-platform bugs. (Such as ItemIDs out of sync, causing items to magically transform)
-Fixed an potential issue with trap projectiles
-Alternate Currency Tooltip fix
-The bug when player is killed by mod projectile
-Some Tile framing bugs
-GetWeaponDamage does not work for melee
-ModPlayer.GetWeaponKnockback not working for melee weapons
-World loading crash upon pressing a ModHotKey during loading
-Better memory management
-"type == SoundLoader.customSoundType " chat message spawn
-EquipTexture-only wings crash on logic
-Items in recipegroups now register as Material
-Player.DropItems removing ModItem/ItemInfo Data
Mod Browser
-"Hotness" sort
-Mod Browser more responsive, no more duplicate entries
-Mod Browser and Mods menu will now notify of Mod dependencies
-Downgrade label to warn if Mod Browser version is less than current mod version
-View in Mod Browser button for Mod Packs -- Easily download mods from ModPacks you find on internet

Useful Stuff
-NextEnum and PreviousEnum
-Main.rand.NextBool
-Main.rand.NextFloat(maxValue)
-Main.rand.NextFloat(minValue, maxValue)
-Main.NewText(string, Color) overload
-NPCSpawnHelper for simplifying Spawn Conditions.
-Terraria.ID.NetmodeID for easy netMode value access (e.g. if (Main.netMode = NetmodeID.MultiplayerClient))
-Terraria.ID.LangID for easy language value access (e.g. if (Lang.lang == LangID.English))
-Terraria.ID.MountID now has const values for vanilla mounts
-Added some modder-error protections.
-Prevent modding mistake of duplicate ModItems with same name
-Escape now exits from mod-related menus back towards the main menu
-Very simple commandline mod browser in tmodloaderserver.
-Mod.Properties defaults to all True.
-GOG -> menu for steamid entry and a clear credentials button in settings

Don't miss a new tModLoader release

NewReleases is sending notifications on new releases.