[00:10:44] --> phao has joined #gemrb
[00:18:18] <-- mcphail has left IRC (Ping timeout: 276 seconds)
[00:20:39] --> mcphail has joined #gemrb
[01:45:25] <-- phao has left IRC (Ping timeout: 276 seconds)
[07:29:47] --> edheldil has joined #gemrb
[09:00:31] <-- mcphail has left #gemrb
[09:31:54] <-- edheldil has left IRC (Ping timeout: 248 seconds)
[09:37:13] <-- Eli2_ has left IRC (Ping timeout: 244 seconds)
[09:37:44] --> Eli2_ has joined #gemrb
[10:27:27] --> GeneralDuke has joined #gemrb
[10:30:45] <-- Drakkar has left IRC (Ping timeout: 246 seconds)
[10:31:32] --> Drakkar has joined #gemrb
[11:36:24] --> hiphish has joined #gemrb
[11:37:21] <hiphish> Hello everyone. I have been trying to get GemRB to work on OS X. I downloaded the built binary and have Icewind Dale installed
[11:37:58] <hiphish> When I try to launch the game I get an error: "Fatal Error in Code: No video driver available"
[11:38:03] <hiphish> Any idea?
[11:38:40] <hiphish> I'm on OS X 10.11.3 on an early 2009 iMac (Nvidia 9400M)
[11:39:59] <fuzzie> hm, not other than it being misbuilt..
[11:40:01] <hiphish> The documentation does not list where I can find the config and log files on OS X.
[11:40:09] <fuzzie> might want to wait until lynx wakes
[11:40:35] <hiphish> Is he the Mac maintainer?
[11:41:31] --- hiphish is now known as HiPhish
[11:46:56] <HiPhish> While I'm here, what is the standard procedure for modding the games with GemRB on non-Windows?
[11:47:42] <HiPhish> I know the EXE is just WeiDU.exe renamed to the mod's name, so is there are a Mac-version of WeiDU.exe that's up to date?
[11:54:33] <lynxlynxlynx> i'm back, give me five
[11:59:01] <lynxlynxlynx> these builds have not been tested a lot yet, since they're pretty new
[11:59:50] <lynxlynxlynx> and yes, there is a native weidu for mac, just go to its website
[11:59:54] --> phao has joined #gemrb
[12:01:04] <HiPhish> So the one on the website is up to date? OK, I'll give it a try when I get the GemRB working.
[12:01:44] <HiPhish> Are there any logs I can post to help finding the issue in the build?
[12:01:54] <lynxlynxlynx> GemRB.log in the game dir
[12:02:20] <lynxlynxlynx> but your error is from the os, so the log will likely be useless
[12:02:43] <lynxlynxlynx> do you have clang and other building tools?
[12:03:03] <HiPhish> I have clang
[12:03:48] <HiPhish> Oh, so the log is written where the game data is? I have the game under /Application Support/GemRB, could that be a problem?
[12:04:16] <lynxlynxlynx> can't see why, but i don't know much about osx
[12:05:43] <HiPhish> /Library/ApplicationSupport is where program resources should be placed that are meant to be available to all users. User-specific stuff goes into ~/Library/ApplicationSupport
[12:07:04] <lynxlynxlynx> if you can't write there, the log will be written to the save dir (usually under same path), cache dir or whatever /tmp would be for you
[12:07:34] <lynxlynxlynx> you can set most of these paths in the config
[12:08:04] <HiPhish> It is writable because I created the directory, but it might not be for other users (not an issue in my case). Where do I find the config?
[12:12:32] <lynxlynxlynx> we try many paths for that too
[12:12:51] <lynxlynxlynx> two samples are bundled (GemRB.cfg.sample)
[12:13:18] <lynxlynxlynx> you need to set GamePath and GameType
[12:16:44] <HiPhish> OK, so what about the issue with the video driver? Should I wait for someone to look into it?
[12:17:25] <lynxlynxlynx> did you find the log?
[12:18:17] <HiPhish> yes, but it's useless as you said: No video driver available
[12:18:41] <HiPhish> [Core]: GemRB Core Initialization...
[12:18:41] <lynxlynxlynx> just after trying to load the sdl driver?
[12:18:49] <lynxlynxlynx> ok
[12:18:50] <HiPhish> [Core]: Initializing Video Driver...
[12:18:55] <HiPhish> [Core/FATAL]: No Video Driver Available.
[12:18:59] <HiPhish> [Cocoa Wrapper]: Unable to initialize core. Terminating.
[12:19:07] <HiPhish> That's all that's in the file
[12:21:06] <lynxlynxlynx> looking at the build log
[12:21:59] <lynxlynxlynx> SDLVideo is built
[12:22:56] <lynxlynxlynx> are you up for trying a build from scratch?
[12:24:36] <HiPhish> I don't have time right now, I'll have to be on the go soon. I tried building it earlier today and it failed during linking, but I don't remember why.
[12:27:06] <lynxlynxlynx> there's no rush
[12:27:34] <lynxlynxlynx> talk to me when you have some time - these builds are automatic and if something is systematically wrong, it would be great if we fixed it
[12:28:57] <HiPhish> OK, I'll be back in the evening (central European time), about six hours, give or take a while.
[12:29:07] <-- HiPhish has left #gemrb ("WeeChat 1.4")
[12:37:22] <-- phao has left IRC (Ping timeout: 276 seconds)
[15:08:24] --> phao has joined #gemrb
[15:41:56] <-- phao has left IRC (Ping timeout: 248 seconds)
[16:35:39] <-- GeneralDuke has left IRC (Quit: GeneralDuke)
[17:17:42] --> phao has joined #gemrb
[18:12:22] <-- phao has left IRC (Ping timeout: 252 seconds)
[18:46:07] <-- Eli2_ has left IRC (Ping timeout: 240 seconds)
[18:49:49] --> Eli2 has joined #gemrb
[18:55:03] --> hiphish has joined #gemrb
[18:55:42] --- hiphish is now known as HiPhish
[18:56:03] <HiPhish> I'm back, lynx. Shall we try to find the issue now?
[19:24:11] <-- sneke has left IRC (*.net *.split)
[19:24:13] <-- orbea has left IRC (*.net *.split)
[19:24:15] <-- xrogaan has left IRC (*.net *.split)
[19:24:45] --> phao has joined #gemrb
[19:29:56] --> sneke has joined #gemrb
[19:29:56] --> orbea has joined #gemrb
[19:29:56] --> xrogaan has joined #gemrb
[19:49:20] <lynxlynxlynx> HiPhish: oj
[19:49:31] <HiPhish> Still here
[19:49:33] <lynxlynxlynx> do you still have the time?
[19:49:38] <HiPhish> Sure.
[19:49:47] <lynxlynxlynx> cool
[19:49:56] <lynxlynxlynx> do you have git?
[19:50:38] <HiPhish> Yes, I have git, clang, sdl2
[19:51:48] <lynxlynxlynx> ok, open up a terminal somewhere to download gemrb
[19:52:02] <lynxlynxlynx> it will be easier to track changes that way if i commit any fixes
[19:52:10] <lynxlynxlynx> run: git clone git://github.com/gemrb/gemrb.git
[19:52:24] <lynxlynxlynx> that will create a gemrb/ dir with all the code
[19:53:06] <lynxlynxlynx> the current build uses sdl1, but let's try with sdl2 first, since you already have it
[19:53:13] <HiPhish> You don't have to explain what commands do, I am a programmer myself. Save yourself some time :) Cloning repo right now.
[19:53:51] <HiPhish> cloned
[19:54:40] <HiPhish> Python 2 and 3 are installed as well, zlib and OpenAL should be supplied with the OS.
[19:54:44] <lynxlynxlynx> ok :)
[19:55:01] <lynxlynxlynx> just make a build dir and move into it
[19:55:13] <lynxlynxlynx> you'll also need cmake
[19:55:15] <HiPhish> done
[19:55:20] <HiPhish> got it
[19:55:25] <HiPhish> cmake I mean
[19:55:39] <lynxlynxlynx> ye
[19:56:55] <HiPhish> Should I 'cmake .. && make -j2' ?
[19:57:04] <-- phao has left IRC (Ping timeout: 246 seconds)
[19:57:06] <lynxlynxlynx> cmake -DCMAKE_INSTALL_PREFIX=sometargetdir -DUSE_SDL2=1 -DDISABLE_WERROR=1 -DCMAKE_BUILD_TYPE=Debug ..
[19:57:54] <HiPhish> done
[19:59:08] <lynxlynxlynx> make too?
[19:59:21] <HiPhish> just cmake
[19:59:55] <lynxlynxlynx> then also make install
[20:00:10] <HiPhish> running...
[20:04:00] <HiPhish> Error here: Linking CXX shared module ../../gemrb.app/Contents/PlugIns/OpenALAudio.so
[20:04:31] <HiPhish> http://pastebin.com/TNP47Jtk
[20:04:32] <Pepelka> Undefined symbols for architecture x86_64: "_SDL_mutexP", referenced from: - Pastebin.com
[20:06:13] <lynxlynxlynx> hmm
[20:07:11] <lynxlynxlynx> can you upload the cmake blabla?
[20:07:59] <HiPhish> what's the cmake blabla? (I only have cmake installed because other projects use it as a dependency)
[20:08:25] <lynxlynxlynx> its output, sorry
[20:09:20] <HiPhish> This? http://pastebin.com/KnJTqCwF
[20:09:21] <Pepelka> -- The C compiler identification is AppleClang 126.96.36.19900181 -- The CXX compile - Pastebin.com
[20:11:17] <lynxlynxlynx> mhm
[20:11:38] <lynxlynxlynx> you do have sdl1, so let's just try with that - will avoid some issues later anyway
[20:12:05] <lynxlynxlynx> wipe the build dir
[20:12:16] <lynxlynxlynx> cmake -DCMAKE_INSTALL_PREFIX=sometargetdir -DDISABLE_WERROR=1 -DCMAKE_BUILD_TYPE=Debug ..
[20:12:24] <lynxlynxlynx> wait
[20:12:30] <lynxlynxlynx> ok, just try it
[20:12:53] <lynxlynxlynx> you have sdl_mixer, so you could also just disable building the openal plugin, but let's see if this helps first
[20:14:20] <HiPhish> OK, I'm running 'make install' again now
[20:14:58] <-- Drakkar has left IRC (Read error: Connection reset by peer)
[20:19:52] <lynxlynxlynx> any change?
[20:20:59] <HiPhish> OK, it has built and the game launches, but the UI is all messed up. Is that to be expected in Icewind Dale?
[20:21:50] <lynxlynxlynx> describe messed up
[20:21:57] <lynxlynxlynx> what resolution did you set?
[20:22:06] <HiPhish> 1229 x 800
[20:22:15] <HiPhish> 1280 x 800 I mean
[20:22:42] <lynxlynxlynx> did you install the widescreen mod?
[20:23:41] <HiPhish> No, that's still needed? OK, what resolution is it meant to be played at?
[20:25:09] <lynxlynxlynx> i guess you have HoW too, right? Closest to that one would be 1024x768
[20:29:45] <HiPhish> GemRB always resets the height of the resolution to 800. I don't have any mods installed, it's all vanilla with Trials of the Luremaster
[20:30:46] <HiPhish> What I mean, I type in 1024x768 or 800x600 and the height always get increased to 800. Next time when I launch GemRB the launcher show my width but a height of 800.
[20:31:22] <lynxlynxlynx> oh, there's a launcher? I forgot about that
[20:31:31] <lynxlynxlynx> so you're not editing the config manually either?
[20:31:44] <HiPhish> No. Where is the config file anyway?
[20:34:47] <lynxlynxlynx> maybe in the bundle, i guess it's more complicated on osx
[20:34:51] <lynxlynxlynx> lemme check something
[20:37:32] <lynxlynxlynx> it says it's in docDir/somegame/
[20:37:59] <HiPhish> Great, now where is docDir?
[20:38:14] <lynxlynxlynx> i think this is your user dir
[20:38:30] <lynxlynxlynx> it's inited with NSDocumentDirectory nad NSUserDomainMask
[20:41:44] --> Drakkar has joined #gemrb
[20:45:47] <HiPhish> Those are just enum items... I'm still looking into it.
[20:49:04] <lynxlynxlynx> i've never used a mac, so can't be of much help
[20:49:45] <lynxlynxlynx> brad is in usa timezones and usually checks the logs, so perhaps he'll chime in later
[20:49:53] <lynxlynxlynx> he did all the integration
[20:51:42] <HiPhish> People say Objective-C is hard. They are wrong, it's baby-easy if you know C. Cocoa on the other hand is hard, it has been growing since the days of NeXT.
[20:52:41] <lynxlynxlynx> but it has started to slowly die, right? Didn't they invent something newer (swift?) as a replacement
[20:53:01] <HiPhish> So here is how I understand it: Instead of the program searching a particular location the programmer passes some enum items and the program generates an array of URLs so search.
[20:53:44] <HiPhish> Then these URLs are searched for the file. The exact paths are abstracted away and implementation-dependant.
[20:53:45] <lynxlynxlynx> btw, all this code is in apple/CocoaWrapper
[20:54:31] <HiPhish> No, Cocoa is here to stay. Swift is a new programming language that is intended to replace Objective-C, but the framework that goes with it is still the same with the same API.
[20:54:35] <lynxlynxlynx> i doubt anything gets hardcoded during the build phase, since it's all wrapped in the .app
[21:08:50] <HiPhish> I haven't found any use of NSDocumentDirectory in the Cocoa wrappery, but I have found the problem: I had to click outside the 'height' text field and *then* launch the game.
[21:09:25] <lynxlynxlynx> heh
[21:09:28] <HiPhish> Apparently the value gets only written if I leave the text field before clicking Launch. Now that the height is correct the UI is fine.
[21:11:34] <HiPhish> So SDL2 was the problem why it didn't build the first time? Sucks, I really hate the software-cursor, at 30 FPS it's really awkward.
[21:13:02] <lynxlynxlynx> i'm pretty sure on sdl2 it would leave a trail
[21:16:42] <HiPhish> Sucks. I still want to find that config file so I can increase the framerate, I never play an Infinity Engine game below at least 40.
[21:17:15] <lynxlynxlynx> it's not in a config, you'll have to recompile
[21:19:01] <lynxlynxlynx> SDLVideo.coo:105
[21:19:05] <lynxlynxlynx> *cpp
[21:19:25] <HiPhish> OK, what do I have to set? Are there any optional components that might make the game run nicer (I don't know, hardware accelleration or something like that)? It's fine now, but if it can be better why not?
[21:19:31] <lynxlynxlynx> grep for the other sdl_delay to adjust openal too
[21:19:58] <lynxlynxlynx> most of the tiny fixes are there by default
[21:20:18] <lynxlynxlynx> things like skipping intro videos, mass looting (ctrl-w)
[21:20:32] <lynxlynxlynx> there are some gemrb-specific mods
[21:21:25] <lynxlynxlynx> here http://www.gemrb.org/wiki/doku.php?id=developers:mods
[21:21:26] <Pepelka> developers:mods [GemRB wiki]
[21:22:17] <lynxlynxlynx> many require just some text file tweaks, some are weidu mods and some just ideas
[21:24:28] <HiPhish> The framerate limit should really be part of the config. Next release then ;) What happens if MOFPSLIMIT is defined? Does it run at superspeed?
[21:24:56] <lynxlynxlynx> it will eat your cpu
[21:25:02] <lynxlynxlynx> no boundaries
[21:25:53] <HiPhish> Do I just replace 33 with my target FPS (i.e. 45)?
[21:31:03] <HiPhish> grepping for sdl_delay doesn't deliver any results
[21:34:16] --> phao has joined #gemrb
[21:40:30] <lynxlynxlynx> yes, i'd just try
[22:23:50] <HiPhish> Tried it, but it seems my computer sucks, I only get around 20+ FPS.
[22:26:48] <HiPhish> Does SDL 1 even have hardware-accelerated graphics? I thought that was new to SDL 2.
[22:26:54] <-- phao has left IRC (Ping timeout: 276 seconds)
[22:36:44] --> brada has joined #gemrb
[22:37:19] <brada> HiPhish: you have to run fullscreen to get goo performance on mac :(
[22:37:34] <brada> or use sdl 2 (but that is still buggy in the current build)
[22:37:46] <brada> *good performance :p
[22:37:57] <HiPhish> I already am running fullscreen. Trying to build with OpenGL right now...
[22:38:35] <brada> dont bother lol
[22:38:42] <brada> thats even buggier
[22:38:46] <brada> very incomplete
[22:40:54] <HiPhish> Nope, it fails again because of SDL 2. *sigh* By the time I get these things running I don't even feel like playing the game anymore.
[22:41:51] <HiPhish> I guess I still have the vanilla engines for the time being. Keep up the good work guys and thanks for your time lynx :)
[22:44:50] <brada> yes, that too. gemrb depends on SDL no matter what video backend you use
[22:46:16] <brada> i will have to look into why it isnt finding the video driver. it clearly exists in the bundle
[22:48:21] <brada> ok i see the problem
[22:49:03] <brada> the build is linking to /usr/local/opt/sdl/lib/libSDL-1.2.0.dylib
[22:49:21] <brada> should be linking to the included sdl framework
[22:50:00] <brada> also the application name is blank :p
[22:55:51] <-- HiPhish has left #gemrb ("WeeChat 1.4")
[23:34:45] <-- brada has left IRC (Quit: brada)
[23:57:45] --> brada has joined #gemrb
[23:58:43] <brada> lynx: how did you install sdl on the mac buildbot? its not the standard sdl install from here: https://www.libsdl.org/download-1.2.php