tes3mp-scripts icon indicating copy to clipboard operation
tes3mp-scripts copied to clipboard

Issue when using kanaRevive with TES3MP 0.8

Open xRiseless opened this issue 3 years ago • 3 comments

When i trying to use kanaRevive script with tes3mp 0.8 server i got this error:

[2022-02-17 14:49:23] [ERR]: .\server\scripts\logicHandler.lua:679: bad argument #1 to 'lower' (string expected, got nil)
[2022-02-17 14:49:23] [ERR]: [Script]: Server crash from script error!

How i can fix this?

xRiseless avatar Feb 17 '22 11:02 xRiseless

Hi, I think I've found a fix for this. I haven't tested it extensively but AFAICT it works, if you run into any more issues let me know.

Replace line 107 with these two lines: local objData = { refId = scriptConfig.recordRefId, count = 1, charge = -1, enchantmentCharge = -1, soul = -1} local uniqueIndex = logicHandler.CreateObjectAtLocation(cellDescription, location, objData, "place")

Then replace line 304 (the one with OnDeathTimeExpiration) with the following: OnDeathTimeExpiration(pid, Players[pid].accountName)

jb5n avatar Mar 31 '22 04:03 jb5n

@jb5n Me and my friend were waiting for this mod to be updated before moving to 0.8.0 so we'll try it out and I'll post any issues here if I have them. Thanks for doing this.

Xaflu avatar Apr 04 '22 00:04 Xaflu

Hi, I'm running a server for personal use and encountered the same problem with a different line:

[2022-08-04 00:16:44] [ERR]: .\server\scripts\logicHandler.lua:706: bad argument #1 to 'lower' (string expected, got nil) [2022-08-04 00:16:44] [ERR]: [Script]: Server crash from script error! I used @jb5n 's lines in the kanaRevive script, but upon dying the server disconnects and crashes still. I guess there was some sort of update to the logicHandler for TES3MP which causes problems with the Revive script? Any help is greatly appreciated!

EDIT: So it was my bad, your adapted code worked flawlessly despite other lines. I just inserted the lines without deleting the previous one completely.

Karanor avatar Aug 03 '22 22:08 Karanor