#exult@irc.freenode.net logs for 10 Apr 2016 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[01:02:31] <-- Darrenor64 has left IRC (Ping timeout: 244 seconds)
[01:03:44] --> Darrenor64 has joined #exult
[01:20:15] <-- Dominus has left IRC (Ping timeout: 276 seconds)
[01:20:21] --> DominusExult has joined #exult
[01:20:21] --- ChanServ gives channel operator status to DominusExult
[01:20:44] --- DominusExult is now known as Dominus
[02:41:54] --> GitHub has joined #exult
[02:41:55] <GitHub> [exult] marzojr pushed 7 new commits to master: https://git.io/vVSaD
[02:41:55] <GitHub> exult/master 2356a5c Marzo Sette Torres Junior: * all: Getting rid of -Wunused-parameter warnings by using a Boost-derived...
[02:41:55] <GitHub> exult/master 77737f7 Marzo Sette Torres Junior: * usecode/intrinsics.cc,usecoede/ucinternal.*: Intrinsics do not need either...
[02:41:55] <GitHub> exult/master 1935dbd Marzo Sette Torres Junior: * imagewin/ibuf16.h: Fixing bug found due to the -Wunused-parameter purge:...
[02:41:55] <-- GitHub has left #exult
[03:10:39] --> Malignant_Manor has joined #exult
[03:12:07] <Malignant_Manor> Marzo: looking through ShortcutBar_gump::onUserEvent(SDL_Event *event) I see ignore_unused_variable_warning(event);
[03:12:09] <Malignant_Manor> switch ((intptr_t)(event->user.data2)) {
[03:17:28] <Malignant_Manor> Were you able to use a script for unused events?
[04:09:49] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207])
[09:50:48] <-- Lightkey has left IRC (Ping timeout: 248 seconds)
[10:03:39] --> Lightkey has joined #exult
[10:59:38] <Marzo> Malignant_Manor: that was an error on my part
[11:00:33] --> GitHub has joined #exult
[11:00:33] <GitHub> [exult] marzojr pushed 1 new commit to master: https://git.io/vVSFt
[11:00:33] <GitHub> exult/master 6aa9ef2 Marzo Sette Torres Junior: Fixing error in -Wunused-parameter purge.
[11:00:33] <-- GitHub has left #exult
[14:19:10] --> Marzo_android has joined #exult
[15:07:56] <-- Marzo_android has left IRC (Quit: Bye)
[18:27:25] --> Malignant_Manor has joined #exult
[18:28:36] <Malignant_Manor> Marzo: I see what you mean about refactoring ShortcutBar_gump code. I really should have looked at the ShortcutBar_gump::onItemClicked coding that was done.
[18:29:31] <Malignant_Manor> I am using keyactions like you talked about. I have no idea why he/she just copy pasted code.
[18:31:00] <Malignant_Manor> I am redoing ActionUseFood to use the usecode function for SI (one good difference he/she had)
[18:36:05] <Malignant_Manor> I guess I never really looked at it too much beside getting it to work properly.
[18:47:15] <Dominus> The not using keyactions was how I solved my inability to make keyactions work...
[18:47:36] <Dominus> I did write this here at least twice already...
[18:51:01] <Dominus> Using the keyactions was my first idea but couldn't make it work and eventually gave up
[18:52:33] <Marzo> Malignant_Manor: I had specifically left ActionUseFood not using the SI function when I coded it
[18:52:37] <Malignant_Manor> The only one I had to do anything other than action(NULL) was the inventory.
[18:53:01] <Marzo> The idea was to have different keybindings in SI and BG, using different actions
[18:53:24] <Marzo> So one could implement the food function in a mod in BG and supply custom keys for it
[18:54:33] <Malignant_Manor> Marzo: Ah. Well, you can already do usecode function calls.
[18:54:45] <Marzo> Now to make several locations use the (brand new) uintptr exult_type instead of long so Windows-64 can be done at some point
[18:54:47] <Dominus> Malignant_Manor: i don't know why it didn't work anymore. Probably something I did wrong and at the time needing to built it with xcode only was a big nuisance
[18:55:38] <Malignant_Manor> Marzo: If SI uses ActionUseFood do you want me to change it to use the usecode function?
[18:55:41] <Marzo> And the idea I have for the shortcutbar is to maybe modify the keybindings files to allow specification of shortcuts
[18:56:18] <Marzo> That way, you can customize the shortcutbar to your liking, and a mod can (say) add a keyring icon in BG
[18:57:00] <Malignant_Manor> Having a parameter single/double click?
[18:57:49] <Marzo> Some icons allow double-clicking for different actions?
[18:58:01] <Malignant_Manor> Most of them do
[18:58:19] <Marzo> Hm, then something else may be needed
[18:58:57] <Marzo> In any case, I will go on vacation friday; I will look into it when I am back
[18:59:13] <Malignant_Manor> Marzo: http://pastebin.com/yG8uerHJ
[18:59:47] <Malignant_Manor> Marzo: Is it okay if I get rid of the redundant data now?
[18:59:59] <Malignant_Manor> It would certainly be easier to read.
[19:00:27] <Marzo> Sure, go ahead
[19:02:34] <Malignant_Manor> I think you redoing the code is a major reason I didn't get into it much.
[19:03:32] <Malignant_Manor> We should make a healing icon. Double click could be mana potion.
[19:05:32] <Malignant_Manor> The disk/menu button would probably be better to use the esc key binding so there is an easy way to close all gumps.
[19:39:46] <Malignant_Manor> Dominus:, Marzo : are there any healing items besides bandages and potions?
[19:39:56] <Malignant_Manor> I'm wondering about adding ActionUseHealingItems
[19:40:11] <Dominus> Malignant_Manor: food
[19:40:25] <Malignant_Manor> Food heals hp?
[19:40:28] <Dominus> I'm not really in favor of a healing button
[19:40:36] <Dominus> I think it does
[19:40:59] <Dominus> Especially not one that uses the spellbook
[19:41:13] <Dominus> As for esc function, please no ;)
[19:41:29] <Dominus> On the desktop not everything needs a button IMO
[19:42:02] <Dominus> And on iOS there is a dedicated esc button overlayed that gets used a lot
[19:42:03] <Malignant_Manor> Well, it would close gumps when clicking the disk, it would close the gumps if open. Otherwise it would open the menu.
[19:42:29] <Dominus> Hmmm
[19:42:39] <Dominus> Maybe yes then
[19:42:55] <Malignant_Manor> I didn't know about the overlay.
[19:43:57] <Malignant_Manor> ActionUseHealingItems wouldn't use the spellbook for healing. It would just search for items that heal. I imagine inventory management of them is a pain on phones.
[19:48:25] <Malignant_Manor> Dominus: The healing button could be an optional addition when Marzo makes buttons soft coded.
[19:49:24] <Malignant_Manor> It could just have the bandage or healing potion as a button that calls ActionUseHealingItems
[19:57:36] <Dominus> Malignant_Manor: you could use the feed button double click
[19:57:52] <Malignant_Manor> for healing?
[19:58:22] <Dominus> Which would mean coming up with a better icon showing both feed and healing
[19:58:24] <Dominus> Yes
[19:58:50] <Malignant_Manor> Would you be willing to make one?
[19:58:51] <Dominus> Feeding and healing could work well together
[19:59:34] <Dominus> Yes, I could give it a try. Any idea of how it should look?
[20:00:20] <Dominus> Maybe the feed icon over the typical redcross icon...
[20:00:49] <Dominus> Will have to try and see if I can make something that looks useable
[20:02:43] <Dominus> Marzo: while you are about to kill beos, I'm planning to get rid of the ifdef SDL >=1.3 stuff. No need for that in between SDL that never saw a release anyway
[20:02:59] <Malignant_Manor> A heart may look nice but would be hard.
[20:03:31] <Dominus> Lanica only added it for his iOS stuff that got solved in the real ios port
[20:03:56] <Dominus> Malignant_Manor: a heart could be doable there already is one...
[20:04:17] <Malignant_Manor> It would take up a lot of screen to use it though
[20:04:40] <Malignant_Manor> maybe not
[20:04:51] <Dominus> The one from the paperdoll should be useable
[20:04:55] <Malignant_Manor> it really isn't too much of a difference from the healing
[20:05:00] <Malignant_Manor> I mean food
[20:05:51] <Dominus> A mixture of both feed and heart or just the heart (which could work,too)
[20:21:23] <Malignant_Manor> Whatever you think looks best. Unfortunately, healing potions don't have a check to stop you from wasting them. I can try to fake one.
[20:22:33] <Marzo> Maybe the healing icon could have bandages and potions as an icon
[20:22:45] <Marzo> Tap once, use bandages; tap twice, use potions
[20:25:03] <Malignant_Manor> Dominus wants to combine it for less buttons.
[20:26:04] <Malignant_Manor> And it could be a key too.
[20:29:56] <Marzo> Making things more complicated: tap once for food, twice for bandages, long press for healing :-p
[20:31:31] <Malignant_Manor> Marzo: the sourceforge seven towers usecode links go to the .ca address
[20:41:03] <Marzo> Fixed
[20:41:06] --> GitHub has joined #exult
[20:41:06] <GitHub> [exult-web] marzojr pushed 1 new commit to master: https://git.io/vVHTS
[20:41:06] <GitHub> exult-web/master fb5d869 Marzo Sette Torres Junior: * seventowers/*: Fixing a few links. Fixing a few changelog entries.
[20:41:06] <-- GitHub has left #exult
[20:41:12] <Marzo> MAy require a ctrl+f5
[20:46:26] <Marzo> Another possibility: the heart button presents a menu (bandages, potions, food) when pressed
[20:47:06] <Marzo> The menu may either be an overlay ShortcutBar that covers the standard one or a vertical menu with selections
[20:52:00] <Malignant_Manor> In Nuvie, we have a popup shortcut menu.
[20:52:28] <Malignant_Manor> It only works from a key press atm so no icon that calls it.
[20:54:02] <Dominus> Marzo: the menu is a good idea
[20:54:45] <Dominus> Malignant_Manor: the iOS item menu code in iphone_gumps can be used for that
[20:54:59] <Malignant_Manor> The period key, if you have an Ultima 6 engine game if you want to see it. The two Worlds of Ultima games are free on GOG. The save icon is blank on those games.
[20:55:01] <Dominus> It already does give a menu
[20:55:02] <Marzo> Another idea: in desktop, allow a right click to trigger what a double-tap does on non-desktop
[20:56:32] <Malignant_Manor> It's weird that I know usecode mouse intercepts better than the Exult engine.
[20:57:05] <Dominus> Malignant_Manor, Marzo: the menu as being done by the iphone_gumps.cc https://www.dropbox.com/s/s9ul2tfywu1hzy6/Datei%2014.03.16%2C%2017%2023%2014.png?dl=0
[22:17:45] <Malignant_Manor> Marzo:, Dominus: do you think we need a don't waste message for potions?
[22:31:38] <Marzo> This is the reason why I suggested all those things: so that you only use potions when you need to
[22:31:50] <Marzo> s/need/want/
[22:32:26] <Malignant_Manor> Marzo: I already coded it so that it will use potions only if targeting an actor not at max health
[22:32:36] <Marzo> I am now thinking of a way to make a quick spell menu in which you can quickly cast some spells
[22:32:47] <Marzo> That works
[22:33:58] <Malignant_Manor> Marzo: so don't leave a message and just silently not use it?
[22:34:13] <Marzo> Yeah, I guess it is better
[22:34:29] <Malignant_Manor> http://pastebin.com/sTLv6HER
[22:54:30] --> GitHub has joined #exult
[22:54:30] <GitHub> [exult] malignantmanor pushed 1 new commit to master: https://git.io/vVH3X
[22:54:30] <GitHub> exult/master 84fc064 Malignant Manor: * keyactions.cc: Fix double feeding in ActionUseFood. Add...
[22:54:30] <-- GitHub has left #exult
[22:57:01] <Malignant_Manor> ShortcutBar_gump::onItemClicked should have else if (!doubleClicked)
[22:57:20] <Malignant_Manor> for case SB_ITEM_NOTEBOOK but it doesn;t really matter much
[22:59:58] <Malignant_Manor> Also is_party_item in the ShortcutBar_gump files should probably go somewhere else.
[23:02:49] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207])