#nuvie@irc.freenode.net logs for 21 Aug 2012 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage

[02:33:34] <SugarCube> Sure!
[03:14:41] <-- Dominus1 has left IRC (Read error: Connection reset by peer)
[03:14:54] --> Dominus has joined #nuvie
[03:43:36] --> Kirben_ has joined #nuvie
[03:43:59] <-- Kirben has left IRC (Ping timeout: 260 seconds)
[06:23:45] --> Dominus1 has joined #nuvie
[06:24:24] <-- Dominus has left IRC (Ping timeout: 260 seconds)
[11:25:36] --> Yuv422 has joined #nuvie
[11:45:57] --> TheCycoONE has joined #nuvie
[12:05:37] <-- Yuv422 has left IRC (Quit: Yuv422)
[13:43:53] <-- Kirben_ has left IRC ()
[15:04:18] --> Dominus has joined #nuvie
[15:04:18] <-- Dominus1 has left IRC (Read error: Connection reset by peer)
[16:13:06] <-- Dominus has left IRC (Read error: Connection reset by peer)
[16:13:29] --> Dominus has joined #nuvie
[17:44:28] <-- Dominus has left IRC (Read error: Connection reset by peer)
[17:47:06] --> Dominus has joined #nuvie
[20:54:49] <-- TheCycoONE has left IRC (Quit: And then there were n-1)
[21:20:38] --> Malignant_Manor has joined #nuvie
[21:33:05] --> Yuv422 has joined #nuvie
[21:53:15] <Malignant_Manor> Nuvie is missing xp loss for party members reaching 0 hp.
[21:53:38] <Malignant_Manor> The formula includes some random number.
[21:54:10] <Yuv422> there should be a karma loss
[21:54:18] <Yuv422> if there also an exp loss
[21:54:31] <Malignant_Manor> There already is a karma loss in the lua.
[21:54:46] <Malignant_Manor> I found out the reason why far away npcs never do their schedule.
[21:55:01] <Malignant_Manor> I didn't test the karma loss to see if it worked.
[21:55:07] <Yuv422> let me check the original
[21:55:35] <Malignant_Manor> The schedule update for far away npcs was never implemented.
[21:56:02] <Malignant_Manor> if abs(actor.x - var_C) > 0x27 or abs(actor.y - var_A) > 0x27 then
[21:56:08] <Malignant_Manor> if actor.wt >= 0x83 and actor.wt <= 0x86 then
[21:56:13] <Malignant_Manor> --actor_move_to_sched_loc
[21:57:44] <Yuv422> hehe whoops
[21:57:53] <Yuv422> just looking at the exp reset
[21:58:50] <Malignant_Manor> Yeah, karma loss is working on party member death.
[22:01:26] <Malignant_Manor> I am in the middle of tying to find the best fix for a bug where equipped items aren't unequipped with move, drop, and drag and drop.
[22:01:41] <Yuv422> the new exp should be the (base_str+base_dex+base_int+unk_142+base_dmg+base_hp)/4
[22:03:02] <Malignant_Manor> Unfortunately, because of msg scroll line length I may hard code it at the start for the amulet.
[22:03:35] <Malignant_Manor> What is unk_142? Is that the random number?
[22:03:59] <Malignant_Manor> It would have to be.
[22:04:43] <Yuv422> there's no random number
[22:04:56] <Yuv422> but all those values are based on the actor type
[22:06:19] <Yuv422> I just never labeled that array in my asm
[22:06:24] <Yuv422> let me check what it is
[22:08:28] <Yuv422> exp_related see actor_hit()
[22:08:32] <Malignant_Manor> I guess I should have tested multiple times on the same actor.
[22:08:35] <Yuv422> in the big table in actor.lua
[22:09:20] <Yuv422> it is the last column in actor_tbl
[22:11:58] <Malignant_Manor> So Beh Lem would be the only traditional party member where it would be more than 0.
[22:13:08] <Yuv422> yeah looks like it
[22:14:50] <Malignant_Manor> Is that base damage of the dead actor or the attack that killed the actor?
[22:25:58] <Malignant_Manor> The formula doesn't seem to work properly.
[22:27:22] <Malignant_Manor> Avatar killed had 457 xp and had 274 after being killed by Lord British.
[22:29:10] <Malignant_Manor> Next death is 178, after that 97, then 43, then 17, then 5, then 1, and finally 0.
[22:32:58] <Yuv422> yeah sorry that calc I gave before was for exp gain
[22:33:08] <Yuv422> I miss-read my notes
[22:42:10] <Yuv422> it looks like it might be related to player karma
[22:44:21] <Yuv422> http://pastebin.com/HR3yePKi
[22:45:40] <Malignant_Manor> The xp loss seems to be lost on resurrection.
[22:46:08] <Malignant_Manor> I lost some karma and saw Iolo's hp drop when raised.
[22:48:05] <Malignant_Manor> It seems each point of lower karma, 4 xp are lost.
[22:49:53] <Yuv422> it looks like you don't lose xp if your karma is 98 or higher
[22:54:57] <Malignant_Manor> 0 karma makes you lose all xp.
[22:55:51] <Yuv422> I'll trace out that asm and let you know what the algorithm is
[22:55:59] <Yuv422> I've got to go now though
[22:56:03] <Yuv422> cya
[22:56:04] <-- Yuv422 has left IRC (Quit: Yuv422)
[22:56:06] <Malignant_Manor> bye
[23:14:37] <-- Malignant_Manor has left IRC (Quit: ChatZilla [Firefox 14.0.1/20120713134347])
[23:34:24] --> Kirben has joined #nuvie