#exult@irc.freenode.net logs for 14 Mar 2016 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:00:11] --> Malignant_Manor has joined #exult
[00:01:23] <Malignant_Manor> Dominus: I'm guessing you didn't try to build with SDL 1.2.
[00:01:44] <Dominus> I mentioned the other day that it doesn't work on SDL 1.2x :)
[00:03:09] <Malignant_Manor> Well, the patch doesn't check for SDL version and not use the code
[00:03:48] <Dominus> Marzo: I'm glad the mods don't care about svn or git, they just look out for the version number... saves me from rebundling them now :)
[00:05:14] <Dominus> Malignant_Manor: yes, I know. the patch isn't meant for integrating in Exult in this state anyway. it was meant as a way to show and hopefully get help (initially) with fixing some lingering problems.
[00:08:34] --> Kirben has joined #exult
[00:08:35] --- ChanServ gives channel operator status to Kirben
[00:08:56] <Malignant_Manor> if (is_party_item(485) && GAME_SI) return true; if (!is_party_item(485) && GAME_SI) return true;
[00:10:04] <Malignant_Manor> It seems like the ShortcutBar_gump::update_gump() will always be true in SI
[00:10:35] <Dominus> don't ask me... without those it wouldn't update the shortcut bar when you remove the keyring
[00:11:10] <Dominus> same with the damn spellbook
[00:11:37] <Dominus> obviously I did something wrong there... :)
[00:13:26] <Malignant_Manor> Well, things that remove items from the party should tell it to update or when you change the resolution.
[00:14:57] --> GitHub has joined #exult
[00:14:57] <GitHub> [exult-web] DominusExult pushed 1 new commit to master: https://git.io/vaC5j
[00:14:57] <GitHub> exult-web/master 4c97e46 DominusExult: two dead links on SevenTowers
[00:14:57] <-- GitHub has left #exult
[00:16:48] <Malignant_Manor> update_gump is probably in a loop constantly checking multiple things.
[00:17:02] <Dominus> well, you can manually move those items away and not just scripts...
[00:17:25] <Dominus> yes, it's not efficient
[00:17:46] <Malignant_Manor> Yeah, SI will constantly create and destroy buttons.
[00:17:47] <Dominus> especially when the spellbook check just keeps it *true* all the time...
[00:18:09] <Malignant_Manor> Yeah that too
[00:18:54] --> GitHub has joined #exult
[00:18:54] <GitHub> [exult] marzojr pushed 1 new commit to master: https://git.io/vaCdu
[00:18:54] <GitHub> exult/master 0cb023c Marzo Sette Torres Junior: Some readme updates. Also, updagint Keyring textmsg.txt.
[00:18:54] <-- GitHub has left #exult
[00:22:28] <Dominus> Malignant_Manor: thanks for pointing that out. I didn't think that through, was just happy it worked somewhat. I have no idea how to check when it *was* there and isn't anymore...
[00:37:09] <Malignant_Manor> Dominus: I get a compile error. http://pastebin.com/WPX8bWmv
[00:38:56] <Malignant_Manor> I'm not seeing where the iphone gump and flx would get built
[00:39:30] <Dominus> makefile.am
[00:39:41] <Dominus> data/makefile.am
[00:40:52] <Dominus> no idea how that is handled with the mingw makefile
[00:43:25] <Malignant_Manor> Shouldn't stuff go in Makefile.common?
[00:47:00] <Dominus> hmm, seems the mingw makefile needs that
[00:50:07] <Dominus> so, for mingw you need to add those to makefile.common.
[00:51:37] <Dominus> to GUMPS_OBJS the iphone_gump.o and the whole EXULT_IPHONE_FLX_OBJECTS = from the data/makefile.am
[00:58:36] <-- Rottingbeef has left IRC ()
[01:05:30] --> Rottingbeef has joined #exult
[01:13:35] <Malignant_Manor> Exult crashes on starting BG
[01:15:42] <Malignant_Manor> That might have been screwed up since it crashed from not having the flx copied
[01:15:59] <Malignant_Manor> It is running in gdb after starting a new game
[01:16:34] <Malignant_Manor> The music note hanging happens in SDL2 too.
[01:18:23] <Malignant_Manor> The peace/war icon does change when toggled.
[01:22:58] <Malignant_Manor> The gump seems to extend too far south. The peace/war icon updates when it is forced by having the spellbook.
[01:24:25] <Malignant_Manor> Dominus: I get a red x instead of a targeting icon when double clicking the target icon to teleport cheat. Is that supposed to happen?
[01:26:31] <Dominus> Yes, on the iphone most mouse cursors are eliminated and I wanted to differ between target and teleport cheat
[01:27:36] <Dominus> Extends too far south (25 pixels instead of 20 that the bar has) is also iphone specific to allow more finger tap error margin
[01:28:45] <Dominus> Also peace/war icon changing is important for iOS because you don't have the read arrow cursor to tell when in combat mode
[01:29:30] <Dominus> How do you force war/peace by having the spellbook? I don't understand
[01:29:48] <Malignant_Manor> The spellbook always forces an update.
[01:30:02] <Malignant_Manor> If your party has one.
[01:31:56] <Malignant_Manor> Dominus: maybe the save icon should open the game menu
[01:32:13] <Malignant_Manor> It does
[01:32:28] <Malignant_Manor> Double click is save menu
[01:34:37] <Dominus> Yes, it might be good to turn that around. The iOS version does have a transparent ESC button on the lower left since that is so important in Exult without a keyboard ;)
[01:34:40] <Malignant_Manor> I think my build changes screw up non-SDL2 builds (which yours currently does anyway)
[01:34:52] <Dominus> But that also opens the game menu
[01:35:54] <Dominus> How do you like the transparent icons?
[01:35:57] <Malignant_Manor> We really need to get this to work with SDL1.2
[01:37:00] <Malignant_Manor> It is hard to see what some things are at times
[01:37:03] <Dominus> I think the *onky* sdl2 stuff is in the mouse click stuff of the shortcut bar
[01:37:26] <Dominus> Yes, transparency is great with good lightning
[01:37:44] <Dominus> At night in the games it sucks...
[01:37:59] <Malignant_Manor> Well, it also sucks against some objects
[01:40:16] <Dominus> Well, enough of thos criticism... I need to sleep ;)
[01:40:23] <Malignant_Manor> Dominus: You should probably add this to a patch or feature request tracker.
[01:40:39] <Dominus> But tell me more of what you find ;)
[01:41:09] <Dominus> And please tell me what you needed to change additionally in makefile.common etc...
[01:41:22] <Dominus> But good night for now
[01:41:39] <Malignant_Manor> I'll upload a patch somewhere later.
[01:43:09] <Malignant_Manor> I needed to change Makefile.mingw too and the data/Makefile.mingw. I will need to update the Windows installer too.
[01:47:07] <Malignant_Manor> Dominus: a menu (and cfg option if it doesn't have one) needs to be made. Maybe more than one because you have transparency and position.
[01:49:09] --> frob has joined #exult
[01:53:51] <-- frob has left IRC (Ping timeout: 260 seconds)
[02:05:31] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 45.0/20160303134406])
[02:57:35] --> DominusExult has joined #exult
[02:57:35] --- ChanServ gives channel operator status to DominusExult
[02:59:59] <-- Dominus has left IRC (Ping timeout: 250 seconds)
[02:59:59] --- DominusExult is now known as Dominus
[03:32:31] <-- Kirben has left IRC (Quit: System Meltdown)
[06:03:44] <-- Lightkey has left IRC (Ping timeout: 248 seconds)
[06:15:47] --> Malignant_Manor has joined #exult
[06:16:31] --> Lightkey has joined #exult
[06:17:11] <Malignant_Manor> Dominus: , Marzo : I want to remove the ShortcutBar_Gump from iphone. Would adding the shaoes to shortcutbar.flx or exult.flx be better?
[06:18:07] <Malignant_Manor> SDL 1.2 was easy to get compiled the only issue is that SDL 2.0.2 was used for double clicks on the gump so only single clicks work in SDL 1.2 at the moment.
[06:18:58] <Malignant_Manor> I will work on it more tomorrow. I have a list of TODOs. http://pastebin.com/F94H6xpT
[06:21:48] <Malignant_Manor> Add to that list, use flx.h defines instead of index numbers for shape references
[06:39:52] <Malignant_Manor> I didn't test outline_color well. I don't get the palettes I'll just use the special pixels.
[06:39:55] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 45.0/20160303134406])
[06:42:43] --> ttarrant has joined #exult
[07:03:28] <Dominus> Malignant on iOS I do have real options https://github.com/litchie/exult-ios/blob/master/gumps/iphoneOptions_gump.cc
[07:03:34] <Dominus> https://github.com/litchie/exult-ios/blob/master/gumps/iphoneOptions_gump.h
[07:03:42] --> Philantrop_ has joined #exult
[07:03:42] <-- Philantrop_ has left IRC (Changing host)
[07:03:43] --> Philantrop_ has joined #exult
[07:04:19] <Dominus> It's the iOS gump that replaces QUIT on the in game options gump
[07:05:04] <Dominus> (IOS has no real "quit this app" function outside of the task switcher)
[07:09:37] <Dominus> And I think adding buttons to exult.flx is better than another flx
[07:13:54] <Dominus> Ultimatively, litchie, who did the bulk of the initial shortcut code, might have made a big error making the bar "independent".
[07:13:55] <-- ParuNexus has left IRC (*.net *.split)
[07:13:55] <-- Philantrop has left IRC (*.net *.split)
[07:13:56] <-- Dark-Star has left IRC (*.net *.split)
[07:14:04] --- Philantrop_ is now known as Philantrop
[07:14:39] --> ParuNexus has joined #exult
[07:14:39] --> Dark-Star has joined #exult
[07:15:22] <Dominus> It should probably be "registered" with gump_manager and everything would just work like it does for the face_stats bar
[07:16:18] <Dominus> No more needs for the hoops I needed to jump through for the shortcut handle events all over the place
[07:16:43] <Dominus> But that was beyond my knowledge
[07:19:32] <Dominus> Missing_button_bar is badly named... If you haven't got special items like spellbook or jawbone you can either have a greyed out button or just show no button at all.
[07:21:38] <Dominus> That cfg name did make sense once at 1 or 2am... ;)
[11:38:54] <Marzo> Malignant_Manor: When/If you read the log: I think putting the shortcut bar shapes in Exult.flx is probably better
[14:08:47] <Dominus> wjp, marzo, did the move of our web stuff to git and syncing back mess up the forum? Reading is ok, but posting hangs on blank page http://exult.sourceforge.net/forum/post.php
[14:14:15] <Marzo> Hm, I may have done something wrong on the merge
[14:14:22] <Marzo> Will check when I am back from work
[15:07:57] <-- ttarrant has left IRC (Quit: I'm off)
[15:09:42] <Dominus> no problem :)
[15:18:34] <Dominus> malignant, to fix the larger click area of the shortcut bar, you have to tweak the height variable in iphone_gumps.cc around line 331.
[15:19:51] <Dominus> but you might then need to tweak buttonItems[i].rect = new Rectangle(x, y, barItemWidth, height); as well. I had some issues that everything got screwy with that variable. Don't know if I fixed it later differently.
[15:21:41] --> Malignant_Manor has joined #exult
[15:22:14] <Dominus> or you need to leave the height variable but hardcode the rectangle to use 20...
[15:22:55] <Malignant_Manor> It would be better to have pixel perfect but that probably won't be feasible without a rewrite.
[15:24:56] <Dominus> hi
[15:25:37] <Dominus> yes, as I wrote, the shortcut bar code is probably a bit borked
[15:26:43] <Dominus> as in, it works but shoudl probably be done differently
[15:26:54] <Malignant_Manor> We really should only be using the transparent shapes from the flx
[15:28:16] <Dominus> there are two special cases: 1. the peace/war icon from BG doesn't have a transparent background
[15:28:40] <Dominus> 2. the keyring has the color cycling thing going which really is a no no on the shortcut bar
[15:29:31] <Dominus> and I think one other had color cycling originally
[15:33:49] <Dominus> SI spellbook has color cycling
[15:34:03] <Dominus> and something was off with the jawbone as well
[15:34:19] <Dominus> the disk icon of bg also needed some transparency
[15:35:28] <Dominus> hence https://github.com/litchie/exult-ios/commit/70ad495f5da681eb85a0d583434cb27f75550e02 when I started to replace the in game icons with tweaked ones
[16:01:39] <Malignant_Manor> The SDL_iPhoneKeyboard functions that I had to exclude with #ifdef __IPHONEOS__ don't seem to be used.
[16:02:05] <Malignant_Manor> Do you plan on adding the keyboard stuff?
[16:02:47] <Dominus> no
[16:03:01] <Dominus> it didn't work well or almost not at all
[16:03:36] <Dominus> that's why there is the shortcut bar and the cheat screen which uses the native keyboard
[16:04:13] <Dominus> I had to heavily rearrange the cheat screen so the information and input is on the upper half of the screen :)
[16:07:24] <Malignant_Manor> Dominus: what is the item menu stuff?
[16:08:12] <Dominus> when you tap anywhere on the screen a simple menu pops up with items you can interact near that spot
[16:08:24] <Dominus> then you chose the object and you have again several options
[16:09:18] <Dominus> for small iphone screen it's actually useful when you can't manage that one object
[16:09:25] <Malignant_Manor> So the solution to tiny objects; fat fingers.
[16:09:31] <Dominus> for bigger screens it is harder to use
[16:09:38] <Dominus> I mean more useless
[16:09:57] <Dominus> actually no, fat fingers are the problem :)
[16:10:34] <Dominus> in the iOS fork is an option to toggle that item menu thing
[16:15:53] <Dominus> basically with the shortcut menu, the iOS stuff is a good start point for general mobile porting
[16:16:19] <Dominus> if anyone would resurrect the native Android port, the iOS stuff is a good starting point
[16:16:47] <Malignant_Manor> Well, it is best to use Exult and SDL of Android.
[16:16:50] <Dominus> the movement is not yet that good. only via d-pad, no different speed settings
[16:17:12] <Dominus> it would need a good finger thing...
[16:18:28] <Malignant_Manor> Jeff wanted to do something in Java and probably target Android. He also liked the idea of getting for acquainted with the Exult code.
[16:19:12] <Malignant_Manor> His rewrite might have something that could be added.
[16:23:03] <Dominus> https://www.dropbox.com/s/s9ul2tfywu1hzy6/Datei%2014.03.16%2C%2017%2023%2014.png?dl=0
[16:23:28] <Dominus> https://www.dropbox.com/s/my7efvbpbz4tctd/Datei%2014.03.16%2C%2017%2023%2042.png?dl=0
[16:24:28] <Dominus> It's a bit more refined in the ios fork. Since the originsl code didn't keep it in the visible area of the screen
[16:24:45] <Dominus> So the cancel button was often gone...
[16:25:06] <Dominus> (And you couldn't easily cancelwithout it)
[16:42:14] <Malignant_Manor> crap, there is already a notebook shape in the flx.
[16:43:18] <Malignant_Manor> I think I will rename them sb_notebook.shp, etc.
[16:53:18] <Malignant_Manor> I think TRANSPARENTMENU_SHP will move to exult.flx as well.
[17:00:02] <Malignant_Manor> No more need to use the iPhone flx in other OS
[17:06:07] <Malignant_Manor> Dominus, could you please delete the frames that aren't needed for transparency/color cycling issues and upload them? adding sb_ to the file name would be nice.
[17:07:19] <Malignant_Manor> oh, and please make a note of removed frames.
[17:10:28] <Dominus> What else do you need?
[17:10:31] <Dominus> ;)
[17:11:01] <Dominus> It'll be a bit... 4-5 hours probably
[17:11:12] <Dominus> If gimp still works
[17:14:08] <Malignant_Manor> I think that is it for now. I have to work very slowly because there is not anything nice to commit yet.
[17:15:18] <Dominus> Oh you can commit a lot but you shouldn't push ;)
[17:15:48] <Malignant_Manor> After I get the icons to show with the game shapes and put the Shortcut_Gump by itself, I think I can commit even though the update is wrong.
[17:16:42] <Malignant_Manor> Damn, I need to make clean and install again.
[17:17:26] <Malignant_Manor> using Makefile.mingw does not update well when things change.
[17:20:23] <Dominus> Oh that's bad. I still have the learnt reaction to first make clean and make again when something isn't what I expect it to be...
[17:20:41] <Dominus> From when I still was using Windows
[17:21:08] <Dominus> Do you still have that slow machine you were complaining about ages ago?
[17:21:49] <Dominus> And is it easy to deactivate the hqx and xbr scalers in the makefile.mingw?
[17:22:26] <Malignant_Manor> Laptop atm, but it has a slow laptop hardrive and am not sure if it is only using one cpu atm.
[17:23:02] <Malignant_Manor> That only saves maybe a minute.
[17:24:02] <Malignant_Manor> It is done compiling so not too bad.
[17:25:16] <Dominus> Hmm normally not compiling those scalers speeds things up a lot...
[17:25:38] <Malignant_Manor> I'm not using optimization or debuging
[17:25:43] <Dominus> Can you do 'make -j9'?
[17:26:06] <Malignant_Manor> I can try. I am used to single core.
[17:26:11] <Dominus> Which should speed things up as well
[17:26:33] <Dominus> But sorry for distracting you from the actual task... ;)
[17:26:38] <Malignant_Manor> I should probably try and fix the updating.
[17:27:04] <Malignant_Manor> I will move the ShortcutBar first.
[17:28:50] <Malignant_Manor> You will probably have to re-add headers to the iPhone build.
[17:31:19] <Dominus> Yes, definitely when the shortcut bar gets adopted from here ti there
[17:34:44] <Dominus> Another bug of the bar: when you use the notebook the sb rectangle bleeds through and you can't click anywhere on the book in this area
[17:38:35] <Dominus> Actually I fixed that somewhat but the close click on the checkmark will register as click on the sb
[17:50:39] <Malignant_Manor> trying -j9 only used one core. I then ctrl-c cancelled and now it is stuck.
[17:51:07] <Malignant_Manor> Hopefully this doesn't break the repository like it has in svn.
[17:51:23] <Malignant_Manor> well, task manager killing
[17:59:16] <Dominus> Ok, I feel guilty...
[19:03:37] <Dominus> Malignant_Manor: https://www.dropbox.com/s/hg2kurqnn33jrwj/shortcutbarshp.zip?dl=0
[19:03:43] <Dominus> https://www.dropbox.com/s/hg2kurqnn33jrwj/shortcutbarshp.zip?dl=1
[19:04:16] <Malignant_Manor> Marzo: do you know how to check Ireg_game_obj creation/moving a shapenum?
[19:04:58] <Malignant_Manor> Dominus: I have combat and item destruction checks working.
[19:06:00] <Dominus> Malignant_Manor: in the txt file I write which frame got deleted and the frame number of remaining frames *before* deletion. In case of Spellbook: sb_spellbook -0, -3, 1=transparant BG, 2 greyed out BG, 4=transparant SI, 5=greyed out SI
[19:06:38] <Dominus> which means that now 0=transparant BG, 1=greyed out BG, 2=trans SI, 3=greyed out
[19:07:11] <Dominus> great for having the destruction working. looking forward on how that was done
[19:36:08] --> ttarrant has joined #exult
[20:01:36] <Malignant_Manor> Dominus: contain.cc has add and remove from container functions that I used for checking shapenum
[21:33:02] <Malignant_Manor> Dominus: I'll have more time to work on the initial commit later. I need to get the new shapes working and figure out how I want the highlight handled. I might try to mess with the bar click rectangle.
[21:34:41] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 45.0/20160303134406])
[21:41:20] <-- ttarrant has left IRC (Ping timeout: 248 seconds)
[22:59:38] --> Malignant_Manor has joined #exult
[23:03:07] <Malignant_Manor> Trying to install libs to get Exult studio to build screwed up expack. Sigh, MinGW sucks