#nuvie@irc.freenode.net logs for 23 Feb 2013 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[01:52:33] <-- Dominus has left IRC (Read error: Connection reset by peer)
[01:53:04] --> Dominus has joined #nuvie
[02:08:31] <-- Dominus has left IRC (Read error: Connection reset by peer)
[02:08:51] <-- Kirben has left IRC ()
[02:08:51] --> Dominus has joined #nuvie
[02:12:43] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331])
[02:32:56] <-- Dominus has left IRC (Read error: Connection reset by peer)
[02:33:02] --> DominusExult has joined #nuvie
[02:33:25] --> Yuv422 has joined #nuvie
[03:10:25] <-- SugarCube has left IRC (Ping timeout: 248 seconds)
[03:24:15] --> SugarCube has joined #nuvie
[03:25:05] --> Malignant_Manor has joined #nuvie
[03:26:57] <Malignant_Manor> Yuv422: I hope you can find some time to look at the spell_poison_actor and actor_int_check formulas.
[03:27:14] <Yuv422> hey Malignant_Manor
[03:27:58] <Malignant_Manor> I know in the original engine, I didn't seem to be able to fail in triggering a status effect if the caster's intelligence was 30 even if the defender's intelligence was also 30.
[03:28:15] <Malignant_Manor> I'm adding X-ray mode cheat
[03:28:35] <Malignant_Manor> Getting it to toggle properly was a bit of a pain.
[03:28:50] <Malignant_Manor> I haven't tested the code yet though.
[03:32:35] <Yuv422> here's the actor_int_check function from the original game
[03:32:36] <Yuv422> http://pastebin.com/5nBmse3T
[03:33:58] <Malignant_Manor> Is the poison check the same except for the stat change for the defender?
[03:37:08] <Yuv422> here's the poison saving roll
[03:37:10] <Yuv422> http://pastebin.com/Yg9sh4QQ
[03:40:13] <Malignant_Manor> I don't really know assembly.
[03:40:52] <Yuv422> I'm just reversing the poison logic again now
[03:42:26] <Yuv422> if( ((defender_stat / 2) + 0x1e - attacker_int_adj / 2) > random(1, 30))
[03:42:26] <Yuv422> return 1;
[03:44:44] <Yuv422> hmm
[03:45:04] <Yuv422> maybe I've got the if condition wrong in nuvie
[03:45:10] <Yuv422> in spell_poison_actor
[03:45:43] <Malignant_Manor> I know the second division statement is wrong
[03:45:52] <Malignant_Manor> based on that
[03:47:03] <Yuv422> yeah I've got the second divide wrong in the code above
[03:47:33] <Malignant_Manor> The code in chat is wrong?
[03:48:49] <Yuv422> yeah
[03:48:52] <Yuv422> should be
[03:48:52] <Yuv422> if( (((defender_stat / 2) + 0x1e - attacker_int_adj) / 2) > random(1, 30))
[03:48:52] <Yuv422> return 1;
[03:49:34] <Malignant_Manor> That looks the same as above so the lua is wrong
[03:52:00] <Yuv422> wait
[03:52:10] <Yuv422> zero return is poisoned
[03:52:14] <Yuv422> in the original
[03:53:55] <Yuv422> so the nuvie code looks right to me
[03:55:17] <Malignant_Manor> /2 is outside the parenthesis in the Nuvie poison code.
[03:55:55] <Yuv422> yeah that's right
[03:56:08] <Yuv422> it is on the whole expression
[03:56:21] <Yuv422> but it should probably have a math.floor on it
[03:56:56] <Yuv422> because it is integer arithmetic in the original code
[03:57:32] <Yuv422> like this
[03:57:33] <Yuv422> if (math.floor((math.floor(actor_str_adj(foe) / 2) + 0x1e) - actor_int_adj(attacker)) / 2) <= math.random(1, 0x1e) then
[03:59:22] <Yuv422> if math.floor((math.floor(actor_str_adj(foe) / 2) + 0x1e) - actor_int_adj(attacker)) / 2) <= math.random(1, 0x1e) then
[04:01:04] <Yuv422> argh
[04:01:07] <Yuv422> like this
[04:01:07] <Yuv422> if math.floor((math.floor(actor_str_adj(foe) / 2) + 0x1e - actor_int_adj(attacker)) / 2) <= math.random(1, 0x1e) then
[04:03:22] <Malignant_Manor> That's weird
[04:03:58] <Yuv422> ?
[04:05:46] <Malignant_Manor> (60 str/2 +30 - 0 int)/2 <= math.random(1, 30)
[04:06:25] <Malignant_Manor> Best case scenario means you fail pretty much always
[04:06:48] <Malignant_Manor> Unless I am reading it wrong.
[04:16:53] <Malignant_Manor> Go ahead and make the change. I'm probably not thinking right.
[04:53:38] <Yuv422> gotta go for a bit
[04:53:42] <-- Yuv422 has left IRC (Quit: Yuv422)
[05:43:19] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331])
[05:44:43] <-- DominusExult has left IRC (Read error: Connection reset by peer)
[05:44:49] --> Dominus has joined #nuvie
[07:21:47] <-- Dominus has left IRC (Read error: Connection reset by peer)
[07:21:53] --> DominusExult has joined #nuvie
[07:27:14] <-- DominusExult has left IRC (Read error: Connection reset by peer)
[07:28:54] --> Dominus has joined #nuvie
[20:45:48] <Dominus> Malignant: I'm not up to date with all keyboard shortcuts of nuvie, but wouldn't it be better to assign cheat keys at least one modifier as well? Talking about x for xray.
[20:46:29] <Dominus> so you don't accidentally hit it
[20:54:58] --> Malignant_Manor has joined #nuvie
[20:55:12] <Dominus> he he
[20:55:39] <Malignant_Manor> Dominus: Cheats are off by default. Trying to remember which key is exiting and x-ray would be a pain.
[20:56:03] <Dominus> ha - didn't think of the exiting thing
[20:56:54] <Dominus> you got a point there. Still I dislike cheat keys that are without modifiers...
[20:57:21] <Dominus> (why I hate the unfinished keyboard stuff in Pentagram that doesn't allow any modifiers anymore...)
[20:57:24] <Malignant_Manor> Canceling a menu adds issues. I've already accidentally hit Eric's Alt-Q exit without dialog button when trying to hit Alt-W unlimited casting cheat.
[20:57:58] <Malignant_Manor> I kind of want that key gone.
[20:58:17] <Malignant_Manor> Nuvie already has millions of keys to remember.
[20:58:54] <Dominus> you may be able to put an ifdef around the alt-q to make it OS X only
[20:58:56] <Malignant_Manor> I still need to add 9 doll gump hotkeys.
[20:59:29] <Dominus> Alt+q translates to cmd-q on OS X and there it is a standard key to exit a program
[20:59:35] <Malignant_Manor> keybindings are in a txt file.
[21:00:06] <Malignant_Manor> I can easily add Alt-Q test to disable it in patchkeys.txt
[21:00:22] <Malignant_Manor> I just need to do it.*is being lazy*
[21:03:37] <Malignant_Manor> Having easily customized key bindings is nice.
[21:04:07] <Malignant_Manor> I need to separate keys to specific games someday.
[21:06:02] <Malignant_Manor> I will do differently than Exult and only put game specific keys in separate files.
[21:08:11] <Dominus> maybe take a look at pentagrams game specific bindings (except for the no modifiers part :)). I think that allows what you plan
[21:18:46] <Malignant_Manor> It's basically the use_item hot keys that are the issue.
[21:19:49] <Malignant_Manor> All it takes is to load an extra file for each game. That's likely better than having u6_create_item se_create_item, and md_create_item
[21:20:47] <Dominus> sounds right
[21:34:02] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331])
[23:31:18] --> Kirben has joined #nuvie
[23:55:55] --> Malignant_Manor has joined #nuvie