#exult@irc.freenode.net logs for 4 Jan 2010 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:30:23] --> Colourless has joined #Exult
[00:30:23] --- ChanServ gives channel operator status to Colourless
[01:57:26] <-- Dominus has left IRC ("Leaving.")
[02:59:18] --> Kirben has joined #exult
[02:59:18] --- ChanServ gives channel operator status to Kirben
[04:03:56] --> julien_ has joined #exult
[04:19:49] <-- julien has left IRC (Read error: 110 (Connection timed out))
[08:44:06] --> Dominus has joined #exult
[08:44:07] --- ChanServ gives channel operator status to Dominus
[08:56:26] <-- Dominus has left IRC ("Leaving.")
[13:00:33] <-- Kirben has left IRC ()
[15:15:39] <-- Colourless has left IRC ("casts improved invisibility")
[15:52:19] --> Dominus has joined #exult
[15:52:26] --- ChanServ gives channel operator status to Dominus
[21:07:40] --> Fingolfin has joined #exult
[21:07:40] --- ChanServ gives channel operator status to Fingolfin
[22:03:21] <-- julien_ has left #exult ()
[22:13:37] --> Malignant_Manor has joined #exult
[22:14:38] <Malignant_Manor> I found out why toggling to fullscreen isn't working. (Not exactly, but I found where it is failing.)
[22:15:02] <Malignant_Manor> if ( SDL_VideoModeOK(w, h, bpp, flags) ) seems to not think that fullscreen is allowed.
[22:16:57] <Malignant_Manor> imagewin.cc line 506 can be commented out Dominus to see if it will work for you.
[22:19:55] <Malignant_Manor> Changed the | to & on line 503 also seems to work
[22:22:41] <wjp> 'flags = surf->flags & SDL_FULLSCREEN' will effectively set flags to 0 if you're not in fullscreen mode
[22:23:20] <Malignant_Manor> Well, I have no idea what I'm doing. I just know it works.
[22:23:55] <wjp> can you print surf->flags before the failing SDL_VideoModeOK call?
[22:24:16] <Malignant_Manor> How do I do that?
[22:24:53] <wjp> add this line: cout << surf->flags << endl;
[22:25:19] <wjp> (right before the line 'w = unscaled....' for instance)
[22:29:41] <Malignant_Manor> 536870912 is printed out.
[22:31:05] <Malignant_Manor> This is after flags = surf->flags | SDL_FULLSCREEN; and right before the check to see if it can be displayed. [if ( SDL_VideoModeOK(w, h, bpp, flags) )]
[22:31:29] <Malignant_Manor> Is it displaying properly?
[22:32:55] <wjp> hm, 0x20000000... SDL_HWPALETTE
[22:33:35] <wjp> what does it show when you change back?
[22:33:41] <wjp> (from full to windowed, I mean)
[22:33:48] <Malignant_Manor> 2684354560 is displayed when I 'use cout << flags << endl;' instead
[22:33:56] <Malignant_Manor> I'll check changing back
[22:34:13] <Malignant_Manor> It was excluded to the switch to fullscreen.
[22:34:20] <wjp> right, that's SDL_HWPALETTE | SDL_FULLSCREEN
[22:34:29] <wjp> I'm just wondering what flags the working fullscreen surface ends up getting
[22:38:11] <Malignant_Manor> 2684354560 fullscreen -> window
[22:38:25] <wjp> peculiar
[22:38:52] <wjp> so when asked if 2684354560 is ok it says false, but it does produce that surface
[22:39:48] <wjp> try removing the ' | SDL_HWPALETTE' on line 127, and reverting the rest to how it was
[22:39:55] <Malignant_Manor> No clue what is going on. Maybe false feedback from driver?
[22:40:02] <wjp> could be
[22:40:38] <Malignant_Manor> Would this just be a jury rig fix by having a disable check in exult.cfg?
[22:40:55] <Malignant_Manor> Or is there any way to actually fix this given the data?
[22:41:39] <Malignant_Manor> I just hope Dominus can test this and confirm it works for him too.
[22:42:45] <Malignant_Manor> oops, I missed the sdl_hardware comment
[22:45:08] <Malignant_Manor> 2684354560 fullscreen -> window (working fullscreen)
[22:45:12] <Malignant_Manor> 536870912 window -> fullscreen
[22:47:37] <Malignant_Manor> Won't switch to fullscreen still.
[22:49:17] <wjp> hm, the SDL_HWPALETTE flag is still in there. Are you sure it's gone from line 127?
[22:51:20] <Malignant_Manor> Yes, where does it first initialize though?
[22:51:38] <Malignant_Manor> Since it starts in fullscreen.
[22:52:02] <wjp> there
[22:53:16] <Malignant_Manor> It's also in try_scaler
[22:53:31] <wjp> only in the opengl block
[22:55:39] <Malignant_Manor> removing it from there didn't do anything either.
[22:56:27] <Malignant_Manor> Oh, duh. NVM. I'll try opengl anyway.
[22:56:57] <wjp> hm, wasn't that horribly broken?
[22:58:06] <Malignant_Manor> Some things, yes like sprite highlights.
[22:58:15] <Malignant_Manor> 2147483650 fullscreen -> window
[22:59:40] <Malignant_Manor> 18 window -> fullscreen, both for OpenGL with SDL_HWPALETTE removed
[22:59:41] <-- Dominus has left IRC (Read error: 54 (Connection reset by peer))
[22:59:53] --> Dominus has joined #exult
[23:00:00] --- ChanServ gives channel operator status to Dominus
[23:00:06] <Malignant_Manor> It doesn't switch to fullscreen either.
[23:00:34] <wjp> I have to go; thanks for looking into this
[23:00:54] <Malignant_Manor> Bye, hopefully somethings works out later.
[23:01:16] <Malignant_Manor> any way to flags &= ~SDL_HWPALETTE or something?
[23:03:02] <Dominus> hi, just came to life here :)
[23:03:16] <Dominus> what is it I should try?
[23:03:27] <Malignant_Manor> Well, found a workaround for the problem.
[23:04:34] <Malignant_Manor> Exult seems to think it can't display the SDL_HWPALETTE. Yet, when started in fullscreen, it uses it.
[23:06:03] <Malignant_Manor> You can try commenting out line 506 in imagewin.cc.
[23:06:21] <Dominus> uhm what line do you want commented out?
[23:06:46] <Dominus> :)
[23:07:12] <Dominus> oh, I have to get a clean file first :)
[23:07:29] <Malignant_Manor> if ( SDL_VideoModeOK(w, h, bpp, flags) )
[23:07:45] <Malignant_Manor> This check seems to fail.
[23:08:16] <Malignant_Manor> You should be able to switch to fullscreen with it gone.
[23:09:31] <Dominus> compiling now
[23:10:06] <Malignant_Manor> Takes forever. I need to make it disable HQ scalers or something when compiling from scratch.
[23:10:23] <Dominus> :)
[23:10:34] <Dominus> yep, exult is a big beast these days
[23:11:15] <Malignant_Manor> It probably spends at least a quarter of the time on scalers.
[23:13:20] --> Dominus1 has joined #exult
[23:13:46] <-- Fingolfin has left IRC ()
[23:15:57] <Dominus1> grrr, my trunk is messed up atm...
[23:21:33] --> Kirben has joined #exult
[23:21:33] --- ChanServ gives channel operator status to Kirben
[23:29:27] <-- Dominus has left IRC (Read error: 113 (No route to host))
[23:30:47] <Dominus1> hmm, works better. need to build a non-x11 built now to properly test it. with x11 it still has problems, but it seems it has problems with the keystrokes (which might be caused by me messing with the keyboard layout for x11 :))
[23:38:35] <Malignant_Manor> It allows you to toggle to fullscreen right?
[23:38:52] <Dominus1> yup, just finished the non-x11 build and it works fine
[23:40:04] <Dominus1> except for point and interlaced scalers
[23:41:21] <Dominus1> these give me a very bad all colours blinking on switch to fullscreen
[23:42:56] <Malignant_Manor> Only when switching or after too?
[23:43:53] <Dominus1> When I switch per keyboard it blinks like hell right away until I switch back
[23:44:18] <Dominus1> when I switch via menu, the blinking will start after I close the last menu gump
[23:44:52] <Malignant_Manor> You can also try switching the | with & on line 503.
[23:45:33] <Malignant_Manor> uncomment the if ( SDL_VideoModeOK(w, h, bpp, flags) )
[23:46:21] <Malignant_Manor> I'm not noticing the issue. For some reason, I can't start Exult with DirectX atm.
[23:46:46] <Dominus1> you mean switching on line 503 and reverting line 506 back to normal?
[23:47:06] <Dominus1> on what Os are you? W9x or soemthing higher?
[23:47:07] <Malignant_Manor> yeah
[23:47:14] <Malignant_Manor> XP
[23:47:48] <Dominus1> not even by the set sdl-video...?
[23:48:42] <Dominus1> the blinking is very likely a mac only problem
[23:48:47] <Malignant_Manor> Exult crashes with Unable to initialize SDL: No available video device.
[23:49:16] <Malignant_Manor> It is with SDL 1.2.12
[23:49:26] <-- Dominus1 has left IRC ("Leaving.")
[23:49:41] --> Dominus has joined #exult
[23:49:48] --- ChanServ gives channel operator status to Dominus
[23:51:03] <Malignant_Manor> I'm going to try rebuilding with 1.2.14.
[23:51:33] <Dominus> interestingly, the color problem seems to have been logged: http://pastebin.com/m2846d996
[23:53:41] <Malignant_Manor> How'd you notice it?
[23:53:55] <Dominus> that is being written to the console, when switching to fullscreen with point
[23:54:30] <Malignant_Manor> Yeah, seems to be problems with the hardware palette.
[23:55:05] <Dominus> and yeah, just changing line 503 works as well
[23:55:20] <Malignant_Manor> still have the issue?
[23:55:30] <Malignant_Manor> with colors?
[23:56:54] <Dominus> yes the issue remains. it's green, red, brown I think :)
[23:57:29] <Malignant_Manor> I miss the unix readouts from command prompt when in Windows.
[23:58:17] <Dominus> green red yellow and just when switching back from fullscreen I have the correct looking exult for a split second
[23:59:31] <Malignant_Manor> So, windows (or at least my graphics driver) seems to be able to work around that issue. So, the check can be bypassed without issue.