Forum

Problems with 256 colors  

  RSS

Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
09/10/2018 8:23 am  

I'm trying to run a game that requires the colours to be set to 256 but when I try using the -bpp parameter with either 16 or 32, I get an error message saying the colors have to be set to 256 and then the program closes. Is there a way I can force 256 color mode?


ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
09/10/2018 4:30 pm  

What game is it?

Wine will trying to emulate 256 color mode for older games because modern video cards no longer support this.  But it doesn't always work.  Do you know if this game works on Wine under Linux?


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
09/10/2018 8:47 pm  

I don't know if the game works with wine under Linux as I don't have a linux install to test it with. The game is Revival Eggerland. The game needs Windows 95 in 256 color mode to run, so I can't get it to run under Windows 7/8/10 with any compatibility settings.


ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
11/10/2018 5:04 am  

I didn't find a demo of Revival, but an older version Quest for Rara had the same 256 color check, but showed a popup to allow it be played anyway, I take it you copy of Revival didn't allow for that.

Wine allow 256 colors to work without changing the desktop to 256 colors, but if the game checks the desktop then there is nothing Wine can do about that.

I did mess around with getting Boxedwine to support 256 colors in its virtual desktop, but the colors kept coming out wrong.  I guess I'm doing something wrong with the palette.  I will probably revisit this again in the future since there are other games that this happens to too, like Westworld 2000.


ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
13/10/2018 2:35 am  

I was able to get Boxedwine to start in 256 color mode, I added the command line option

-bpp 8

This will work starting in 18R2 beta 1

https://sourceforge.net/projects/boxedwine/files/Builds/2018%20Release%202%20Beta%201/

The Quest for Rara I was using detected 256 color mode and didn't warn me about it any more, but starting a new game crashed for me, hopefully your version will do better.


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
15/10/2018 3:15 pm  

Can you give me the command line options you used to run the game? I downloaded 18R2 Beta 1 and when I try to launch the game I'm just getting a white screen now.


ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
15/10/2018 6:46 pm  

I updated Boxedwine 18R2 beta 1 to set Wine's registry entry to DirectDrawRenderer by default, this should fix a white screen issue for DirectDraw games if you see a lot of output in the console about OpenGL

https://sourceforge.net/projects/boxedwine/files/Builds/2018%20Release%202%20Beta%201/Boxedwine18r2b1a.zip/download

If this doesn't fix it, could you let me know the command line you used and paste the output from the console?

My command line for Eggerland Revival is

BoxedWine.exe -bpp 8 -root fs -zip fullWine1.7.55-v7.zip -w /home/username/files/EggerlandRevival /bin/wine EGGLAND0.EXE

 


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
15/10/2018 10:59 pm  

I downloaded the new version you linked and now I can't get anything to run. I tried using the command you posted, and get the following error message. I also get the same error message when I try to run the full tilt pinball demo now as well, whereas it worked before. I get this error message in the console and then nothing happens and I have to close it manually.

C:\Users\Scott\Desktop\Games\Emulators\BoxedWine>BoxedWine.exe -bpp 8 -root fs -zip fullWine1.7.55-v7.zip -w /home/username/files/eggerland0 /bin/wine EGGLAND0.EXE
Starting ...
Using root directory: fs
Launching /bin/wine
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
err:winedevice:ServiceMain driver L"WineBus" failed to load
fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 1053
err:process:__wine_kernel_init boot event wait timed out
Pixel Format: 32 bit (8880) accelerated:single buffered depth=24 stencil=0 accum=64 **this line repeats 36 times, with the value for stencil showing either 0 or 8**
fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23
fixme:win:EnumDisplayDevicesW ((null),0,0x32ed88,0x00000000), stub!
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger...
Can't attach process 0008: error 5
wine client error:9: partial wakeup read 0


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
15/10/2018 11:04 pm  

When I tried using the same command, but switching to fullWine3.1-v3.zip, I get these error messages, followed by a white screen again.

 


C:\Users\Scott\Desktop\Games\Emulators\BoxedWine>BoxedWine.exe -bpp 8 -root fs -zip fullWine3.1-v3.zip -w /home/username/files/eggerland0 /bin/wine EGGLAND0.EXE
Starting ...
Using root directory: fs
Launching /bin/wine
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
000b:err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
0025:err:module:load_builtin_dll failed to load .so lib for builtin L"winebus.sys": libudev.so.0: cannot open shared object file: No such file or directory
0025:err:winedevice:async_create_driver failed to create driver L"WineBus": c0000142
0030:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
wine: Unhandled page fault on read access to 0x0016ae68 at address 0xd0b95dd9 (thread 0030), starting debugger...
wine: Unhandled page fault on read access to 0x0013e2a0 at address 0xd08cedd9 (thread 000b), starting debugger...
wine client error:30: partial wakeup read 0
0036:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
wine client error:b: partial wakeup read 0
Pixel Format: 32 bit (8880) accelerated:single buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:single buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:single buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:single buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:single buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:single buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:single buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=0 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=24 stencil=8 accum=64
Pixel Format: 32 bit (8880) accelerated:double buffered depth=0 stencil=0 accum=64
Pixel Format: 32 bit (8888) accelerated:double buffered depth=0 stencil=0 accum=64
0009:err:winediag:wined3d_adapter_init You are using the backbuffer for offscreen rendering. This is unsupported, and will be removed in a future version.
wine: Unhandled page fault on read access to 0x0016aed8 at address 0xd0b95dd9 (thread 0036), starting debugger...
0009:fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
0009:fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
0009:fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
0009:fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32edb8,0x00000000), stub!
0009:fixme:d3d:wined3d_swapchain_cs_init Add OpenGL context recreation support.
0032:err:seh:setup_exception_record stack overflow 2064 bytes in thread 0032 eip 7bc47cc8 esp 00240b20 stack 0x240000-0x241000-0x340000
wine client error:36: partial wakeup read 0
Could not load wine-gecko. HTML rendering will be disabled.
002a:err:winediag:gnutls_initialize failed to load libgnutls, no support for encryption
0034:err:seh:setup_exception_record stack overflow 2064 bytes in thread 0034 eip 7bc47cc8 esp 00240b20 stack 0x240000-0x241000-0x340000
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger...
Can't attach process 0008: error 5
wine client error:9: partial wakeup read 0

ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
15/10/2018 11:20 pm  

It looks like both of those console outputs are both dealing with OpenGL trying to initialize.

The filesystem for Boxedwine looks for files on the host computer, and if it is not found then will try the zip file.  So in this case it looks like it is using the previous registry for Wine because when it first runs, it uses the zip files version, but will then save to the host computer in the fs/home/username/.wine directory.  So I suspect when you ran beta 1a with the new file system changes, those changes were not used.

To fix this I recommend that delete your directory and unzip beta 1a again and start over, or if you want you can just delete fs/home/username/.wine on your host system (not in the zip file).

When something used to work and no longer works, my first thought is always delete the .wine directory.  If a program was installed previously, it will need to be reinstalled.

 


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
16/10/2018 5:17 am  

Ok, I've got it running to the main menu now. But when I try to select anything, the game just seems to hang. But I guess this is progress! 🙂 The console output I get now is:


C:\Users\Scott\Desktop\BoxedWine>BoxedWine.exe -bpp 8 -root fs -zip fullWine1.7.55-v7.zip -w /home/username/files/eggerland0 /bin/wine EGGLAND0.EXE
Starting ...
Using root directory: fs
Launching /bin/wine
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
fixme:win:EnumDisplayDevicesW ((null),0,0x32ed98,0x00000000), stub!
err:module:load_builtin_dll failed to load .so lib for builtin L"winepulse.drv": libpulse.so.0: cannot open shared object file: No such file or directory
err:module:load_builtin_dll failed to load .so lib for builtin L"winealsa.drv": libasound.so.2: cannot open shared object file: No such file or directory
openAudio: freq=44100(got 48000) format=16384(8120/got 8120) channels=2(got 2)
fixme:ddraw:ddraw7_WaitForVerticalBlank iface 0x124fa8, flags 0x1, event (nil) stub!
wine client error:27: partial wakeup read 0

ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
18/10/2018 4:45 am  

I was able to fix the crash, but now when I start a new game I just get a black screen with 2 white boxes.  The smaller white box is the cursor and the larger one I can move up and down with the keyboard.  I guess its progress.


ReplyQuote
Kill0byte
(@kill0byte)
Active Member
Joined: 2 months ago
Posts: 7
25/10/2018 3:47 am  

How were you able to fix the crash?


ReplyQuote
James Bryant
(@admin)
Member Admin
Joined: 10 months ago
Posts: 23
29/10/2018 7:13 pm  

It was a code change to stop the crashing, but since I don't see the demo drawing correctly, I'm not sure about the fix.  It really looks like it's just not loading the bitmaps correctly since it response to mouse/keyboard command, but I only see 2 white boxes.

Here is the latest code if you want to try

https://sourceforge.net/projects/boxedwine/files/Builds/2018%20Release%202%20Beta%202/


ReplyQuote
Share:
  
Working

Please Login or Register