Search found 28 matches

by Ful Ir
Sat May 04, 2013 12:37 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

Although I have an Android phone by now, I don't think I'm willing to start messing around with Java at the moment.
Getting CSB to run on it might be nice, if moving e.g. the movement arrows to the left side of the screen works without too many side effects.
by Ful Ir
Mon Apr 02, 2012 8:50 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

I compiled my version for Windows and gave it a short test, the changes I made to winscreen.cpp for ColorFormat and the type change of "palette" to ui32* appear to work correctly so far. All zoom levels in windowed mode work. Fullscreen works as well, but I only tried one resolution yet. T...
by Ful Ir
Wed Mar 21, 2012 11:58 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

No, I just meant it in respect to having few conflicts while merging into my version. I was a little afraid I would have to dig around a lot more. I can remember one of the conflicts being the version string (which I had moved around last year) and another the definition of "unknownTime" i...
by Ful Ir
Tue Mar 13, 2012 8:50 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

A short status update: I updated my version with Paul's changes yesterday; the merge was painless :). I gave the x86 version a small test run, no immediate crashes. I did not test the Pandora version yet; I can put it up for download though if anyone wants to try it. I made two smaller changes: One ...
by Ful Ir
Tue Mar 06, 2012 11:24 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

Yes, the sound code for Windows is completely separate. While adding the SDL_mixer stuff I noticed the sound output on Windows has noticeably better quality (less noise/distortion). Maybe there was some interpolation going on behind the scenes. So using SDL_mixer for Windows as well would probably b...
by Ful Ir
Sun Mar 04, 2012 11:05 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

I have put up the source code for download (including the git repository, if you do not want it just delete the ".git" directory after unpacking) here . The CF_RGB888 and m_colorFormat are defined in CSB.h and graphics.cpp. This is the commit first adding these variables. I also updated Wi...
by Ful Ir
Sat Mar 03, 2012 5:41 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

No, the modified screen driver works on x86 as well. I currently do not remember if I broke anything besides the hermes support (maybe some scaling sizes like x3 and x4). I'm going to check it, but this will take a couple of days. If anyone of you wants to take a look, the modified version can be vi...
by Ful Ir
Sat Mar 03, 2012 2:47 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: GTK+ or SDL conversion
Replies: 27
Views: 16813

Re: GTK+ or SDL conversion

When I ported CSBwin to the Pandora I rewrote a good part of Linscreen.cpp to add support for the overlay graphics and also fixed up the handling of the fullscreen mode (the mouse cursor had offset problems, also on PC). I removed the hermes library support for non-integer scaling though after visit...
by Ful Ir
Sat Mar 03, 2012 1:32 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

Well I'm still there, just not active in the DM world at the moment :/ ; although the occasional mention of Legend of Grimrock in gaming news had me iching to dust off my Conflux savegame lately :). I'm surprised someone actually made a video of DM/CSB on the Pandora. I wrote a small launcher progra...
by Ful Ir
Fri May 06, 2011 11:27 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

[quote=Lomaxx]I guess the problem with the black column on the right side with --extralarge WITHOUT --fullscreen is also caused by my setup. My monitor has a resolution of 1280x1024. I guess the extra-large resolution 1280x960 and the few pixels for the window-border screw up things.[/quote] I just ...
by Ful Ir
Fri Apr 29, 2011 5:16 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

Nice to know it works for you, Lomaxx. Thanks. The warnings are normal, I just did not bother to fix or disable them. Fullscreen mode should work correctly at least with 640x480 and 2x scaling if my memory doesn't fail me. But maybe also it only works on my system - never tested it on another. You s...
by Ful Ir
Tue Apr 26, 2011 11:51 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

The Libraries required are glib, SDL, SDL_mixer and optionally GTK (for the menu bar, this requires changing the Cmakelists.txt to set USE_OLD_GTK however and I don't know if it works correctly). CMake cannot detect glib on its own, but only GTK and its helper libraries (pango, glib, etc) together. ...
by Ful Ir
Tue Apr 26, 2011 10:18 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

OK, I got it to compile. I was a little too optimistic about the CMake file 'just working', as it is more a quick hack than production ready. I had to change SDL_LIBRARIES to SDL_LIBRARY on line 146 of CMakeLists.txt and install libgtk2.0-dev. Adamo please try downloading http://www.diamondsword.de/...
by Ful Ir
Sun Apr 24, 2011 3:31 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

If you can compile it yourself, source code is downloadable here: http://www.diamondsword.de/cgi-bin/gitweb.cgi?p=csbwin;a=snapshot;h=b4bc4c0ab83407993f60029f3b5ad2a9b7f1a3d7;sf=tgz (uses cmake). On Ubuntu you'll need to install packages (I'm guessing the names, not sure if these are all that is nee...
by Ful Ir
Mon Mar 28, 2011 9:49 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

A link on the Pandora Wiki ports page can't hurt I think, hosting it on one of the 'app store' pages depends if there are any legal restrictions about the software posted on those sites. On a quick look I can't find anything about it though. Dunno if it would be better to keep the list of hosting si...
by Ful Ir
Sun Mar 27, 2011 9:49 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

I finally got around to wrap this up and finish the launcher. You can download a PND file here: http://www.diamondsword.de/csb/csbwin-11.059rc1.pnd . This includes the DM and CSB dungeons. This is a release candidate version, so if no more bugs are found (or feature requests made...) I'll consider t...
by Ful Ir
Fri Feb 25, 2011 7:27 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Re: Bug (and probable fix) in CSBwin

I tried some things: - Increasing the timer interval on Linux from 10ms to 100ms changes nothing - decreasing the resolution of UI_GetSystemTime to 100ms changes nothing But I can reproduce the fault on Windows with version 11.058 by just loading the save game (ignoring the record file) and waiting ...
by Ful Ir
Thu Feb 24, 2011 11:50 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

Well then have a go at this (binary only, not in PND format): http://www.diamondsword.de/csb/csbwin-11.056-v0.tar.gz Improvement suggestions are welcome, especially regarding the keyboard layout. Three things are currently left to do before I can do a "proper" release: - add a "quit w...
by Ful Ir
Thu Feb 24, 2011 11:39 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Re: Bug (and probable fix) in CSBwin

OK, I have another one, but this one may be in Conflux' DSAs and not in the engine itself. While playing Conflux I sometimes had the game quit on me with System error 45 / No empty timer entries. There was no apparent relation to where I was in the dungeon or how I long I had played since starting t...
by Ful Ir
Wed Feb 23, 2011 12:41 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

How ironic! I was about to start porting this to the Pandora myself :) I'm glad you've already done all the heavy lifting so I can just enjoy it ;) Drat, there goes my surprise release :lol: I was really thinking it would be awesome to build a pnd with a few games built in -- such as Conflux if pos...
by Ful Ir
Mon Feb 21, 2011 11:04 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Re: Bug (and probable fix) in CSBwin

Thanks, I took a look at it and it seems I haven't missed anything. I fixed another small problem (two related?), but this is more an annoyance than serious. a) When the recording is in "preopen" mode (lines go into the m_lineQueue buffer, but not to disk yet), the checks "if (m_lineQ...
by Ful Ir
Mon Feb 21, 2011 10:38 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

This is just a small progress report in the hope that it is interesting to someone :) - Sound is now working correctly, Windows version still sounds a tad better I think (probably because of interpolation) - changed the m_lineQueue of the recording function to use dynamic allocation to fix a segfaul...
by Ful Ir
Tue Feb 08, 2011 11:42 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Re: Bug (and probable fix) in CSBwin

You're welcome, I'm happy to help. I tried a similar change yesterday, but was too tired to look in other places except DSA.cpp if I had missed any other references before posting it. I essentially replaced all (about 5 or so) m_pDBMaster references with calls to GetRecordAddressDB3() and removed th...
by Ful Ir
Mon Feb 07, 2011 12:37 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Re: Bug (and probable fix) in CSBwin

I have encountered another bug, this one is not as easily fixed though :( From my limited understanding, what happens is that during the processing of a DSA a database runs out of free entries and uses realloc() to enlarge the available memory (DATABASES::Enlarge()), then the processing of the DSA c...
by Ful Ir
Wed Feb 02, 2011 11:30 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Bug (and probable fix) in CSBwin
Replies: 17
Views: 7822

Bug (and probable fix) in CSBwin

I recently stumbled across an internal bug in CSBwin. In BACKGROUND_LIB::BackgroundGraphicExists (viewport.cpp, line 5848) it says if (i < 0) -1; when it probably should be if (i < 0) return -1; The missing return causes an out-of-bounds array access in the following line(s), triggered for example i...
by Ful Ir
Sun Jan 30, 2011 11:48 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

I don't understand. Can't the standard CSBWin game play simultaneously sounds ?? On what Conflux should be different for playing sounds? My question resulted from the behaviour of the program that I was seeing: The sounds in normal DM were working (at least those I tested at the start of the dungeo...
by Ful Ir
Sun Jan 30, 2011 10:42 am
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Re: Porting/updating CSBwin for Linux and sound support

Wow, more replies than I hoped for :) Thank you. @Ful Ir: Are you familiar with SDL? I'm not sure if you can play directly a wav from SDL (FMOD does it for sure). You may have to write a callback function and a mix function called from the UI_PlaySound. Beware when handling several sounds at the sam...
by Ful Ir
Wed Jan 26, 2011 9:49 pm
Forum: Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild
Topic: Porting/updating CSBwin for Linux and sound support
Replies: 77
Views: 50934

Porting/updating CSBwin for Linux and sound support

Hello, I'm currently trying to port CSBwin to the Linux-based handheld console Pandora (for details see http://www.openpandora.org ). I have the game basically working, but sound is partially broken, at least when I try to run Conflux with it. Because the ESD sound server is not installed on the Pan...