tModLoader Psycho!

Discussion in 'Released' started by hamstar, Aug 18, 2017.

  1. hamstar

    hamstar Steampunker

    Note: Requires Mod Helpers

    You are now being stalked by a deadly, souped-up psycho. That is all. Hilarity may ensue. Should liven up caving.

    New v1.4: A butcher now spawns above ground. If you hear a saw buzzing, go the other way!

    New v1.5: A deadly sniper now stalks you in the jungle. It's damage has been significantly increased over the usual sniper, but it may die in a few hits.

    Note: You may now ward away the psycho or butcher by being near a [​IMG] Star-in-a-Bottle (configurable).

    As usual, a config file is available here (e.g. to adjust spawn rate): Documents/My Games/Terraria/ModLoader/Mod Configs/Psycho Config.json

    Source available here. API now available.


    Requires tModLoader (0.10+). Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play.

    • Added error failsafe against psycho heals messages exceeding "Main.combatText" array bounds (?!)
    • Set sniper spawn stats to be config adjustable
    • Fixed psycho draw fx glitching (bad scaling)
    • Added visual special effect for psychos and butchers
    • Added small tension-inducing music loop when psycho near
    • Fixed music dimming effect when psycho near
    • Added AllPsychosAreInvincible and AllPsychosAlwaysInstaKill settings (default true)
    • Added SniperHardModeDamage (600) and SniperPreHardModeDamage (400)
    • Assorted internal refactoring
    • Fixed warding checks (AND, not OR)
    • Fixed possible problem with Butcher NPC spawns
    • Removed some fluff code from Butcher's AI code
    • Increased ButcherSpawnChance slightly
    • Added mod compatibility with Overhaul to prevent psycho "wandering" (uncloaks them prematurely)
    • Set butchers to only spawn at night
    • Fixed possible glitch with snipers affecting day/night state
    • Decreased Butcher spawn rate to 0.005
    • Restructured psycho NPC code into its own subfolder and separate classes for each psycho type
    • Modified behavior of butcher's night-time trickery to solve malfunction bug (causes premature nighttimes)
    • Fixed issue of loot tables being affected for all of the "psycho" npcs (not just the ones spawned for our use)
    • ButcherSpawnChance increased to 0.05
    • Cleared out some lingering snake case
    • Updated for MH v4.2.3
    • Switched snake case to camel case
    • Correctly implemented Mod.Call API
    • Set configs for required buffs to AND, not OR
    • Updated for MHv4
    • Added sniper spawn (with associated config stuff)
    • Updated mod recommendations to the new convention
    • Reduced butcher spawn rate a lot
    • Improved audio loop
    • Added butcher NPC spawns above ground (with sound effects and associated configs)
    • Restructured some code
    • Doubled spawn rate
    • Updated to Mod Helpers v2.0.2
    • Aded MP player load bug failsafe
    • Assorted refactoring to newer code standards
    • Refactored net protocols
    • Removed AltNpcInfo use (obsoleting)
    • Added support for Hamstar Helpers v1.2.0 issue report
    • Added API
    • Removed psycho Heart Lanterns as psycho wards.
    • Added Campfire + Star-in-a-Bottle (together) as the new psycho warders.
    • Refactored code for Hamstar's Helpers v1.1.0
    • Fixed minor psycho healing bug
    • Added heart lantern anti-psycho ward
    • Added mod browser icon
    • Reduced spawn rate
    • Config settings now correctly transmit from server
    • Raised psycho spawn chance slightly


    Last edited: May 30, 2019
  2. hamstar

    hamstar Steampunker

    Hopefully often enough to keep you on edge. Subject to further balance testing, of course.
    TheGeckoGamer likes this.
  3. hamstar

    hamstar Steampunker

    Edit: Had to reupload Hamstar's Helpers (wrong version). I can't put these on the mod browser yet until they're a bit more tested, though.

    Edit Edit:

    Also v1.0.1:
    • Config settings now correctly transmit from server
    • Raised psycho spawn chance slightly

    Attached Files:

    Last edited: Aug 19, 2017
  4. Fury

    Fury Lunatic Cultist

    Uh oh. It's time to do my best Jamie Lee impression...
    hamstar likes this.
  5. Virukino

    Virukino Terrarian

    Do they spawn in pre-hardmode?
  6. hamstar

    hamstar Steampunker

    Yep. They also heal 38~ life per second and are immune to lava, so don't think you're getting that knife drop easily!
    Last edited: Aug 19, 2017
  7. Virukino

    Virukino Terrarian

    I was actually thinking of dying every 10 minutes, or getting really close to beating an easy-mode boss that was difficult, and just getting stabbed in the face.
  8. hamstar

    hamstar Steampunker

    They don't spawn on the surface. Currently.
  9. Virukino

    Virukino Terrarian

    But still, a mid-hardmode monster in early -> late easymode is not an easy thing to deal with
    hamstar likes this.
  10. Indeed it does.
    Jetstream ∞ and hamstar like this.
  11. bootr bawss

    bootr bawss Skeletron Prime

    wow unique! I love it! definitely adds a spook factor into the game. once again you have amazed me with a cool mod, hamstar
    hamstar likes this.
  12. hamstar

    hamstar Steampunker

    • Reduced spawn rate

    Attached Files:

    Lunatic Lobbyist likes this.
  13. hamstar

    hamstar Steampunker

    Question: What might make a good way to ward psycho spawns in a given area? Campfires? Peace candles? Statues? Banners? Grandfather clocks? High light levels?
  14. bootr bawss

    bootr bawss Skeletron Prime

    maybe campfires harm it, as maybe a reference to Jason, being weak to fire
    hamstar likes this.
  15. hamstar

    hamstar Steampunker

    • Refactored code for Hamstar's Helpers v1.1.0
    • Fixed minor psycho healing bug
    • Added heart lantern anti-psycho ward
    • Added mod browser icon
    I'd wanted to use campfires, but they're practically a dime a dozen, so why wouldn't you have them plastered all around the map, then? Tell me if this seems like the right choice.

    Attached Files:

    Last edited: Sep 7, 2017
  16. orian34

    orian34 Golem

    Time to psych out!
  17. Loukenshrew

    Loukenshrew Terrarian

    Heart lanterns seem a pricy investment when you don't have a single HP boost and your best pickaxe is probably iron.
  18. Virukino

    Virukino Terrarian

    Maybe NPCs keep it away.
  19. hamstar

    hamstar Steampunker

    I can't decide on anything in-between, except maybe invisibility potions or total darkness (or also NPCs being present, as stated above). Maybe I'll just add those?

    The only other solution I can think of would be something custom, like a fallen star-crafted object of some kind that repels psychos within a radius (since fallen stars are available from the start, but difficult to amass).

    How about needing to be near both a campfire and a Star in a Bottle?