SiriMoel / pharmacokinetics

DRINK ALL THE MAGIC LIQUIDS!!!
1 stars 0 forks source link

player is invulnerable #1

Closed CrazyAmphibian closed 2 days ago

CrazyAmphibian commented 2 days ago

description

the player is invulnerable to all forms of damage, including but not limited to: status effects, midas, projectiles, and melee

expected behavior

i take damage

what happened

i didn't take damage

steps to reproduce

load the game up and do something that would have you take damage while having this mod enabled

noita-20241128-020059-1014415056-00003328

SiriMoel commented 2 days ago

I cannot seem to recreate this but I will continue to look into it - what other mods do you have enabled?

CrazyAmphibian commented 2 days ago

i disabled all other mods before submitting the issue

CrazyAmphibian commented 2 days ago

opened in dev executable for more debugging

getting the following errors upon loading a world:

Mod enabled: pharmacokinetics 3373139694
Error loading lua script - file doesn't exist: mods/pharmacokinetics/files/scripts/utils.lua
Error loading lua script - file doesn't exist: mods/pharmacokinetics/files/scripts/pharma.lua  

and dumping some acid on myself

Error loading lua script - file doesn't exist: mods/souls/files/scripts/utils.lua
Error loading lua script - file doesn't exist: mods/souls/files/scripts/souls.lua
Lua error - [string "mods/pharmacokinetics/files/scripts/player_da..."]:6: attempt to call global 'HeldItem' (a nil value)                                                                                                                        Stack traceback:
[string "mods/pharmacokinetics/files/scripts/player_da..."]:6: in function <[string "mods/pharmacokinetics/files/scripts/player_da..."]:4> 

maybe you forgot to commit local files to the repo?

CrazyAmphibian commented 2 days ago

aha!

you're calling the wrong mod directory, \@files/scripts/player_damage_handler.lua:1 so users without the souls mod enabled won't see this bug.

dofile_once("mods/souls/files/scripts/utils.lua")
dofile_once("mods/souls/files/scripts/souls.lua")
SiriMoel commented 2 days ago

bit of a moldos moment, mb - will be fixed now

SiriMoel commented 2 days ago

fix pushed to workshop

CrazyAmphibian commented 2 days ago

881100_963