VOGONS

Common searches


dosbox color bug

Topic actions

  • This topic is locked. You cannot reply or edit posts.

Reply 20 of 43, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

If you must run your desktop in 256 colors for some application then you should be running that application in a VM.

I used to provide instructions on my game compatibility list on how to switch to 256 color modes or how to use utilities to switch to 256 colors for games that needed it (These games actually required desktop res to be 256 colors) but problem is people like to switch between their games and the desktop and surf the internet/work while gaming and 256 colors is just not useable today. If you use the app in a VM then you can run 256 colors all you want and not worry about making your desktop unuseable.

How To Ask Questions The Smart Way
Make your games work offline

Reply 22 of 43, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

There's a warning in the console but it flashes by pretty quick. Would have to change the behavior of the console to not quit on error so people could read it.

How To Ask Questions The Smart Way
Make your games work offline

Reply 25 of 43, by Malignant Manor

User metadata
Rank Newbie
Rank
Newbie

Have you even tried to setup a virtual machine to stop the 256 color desktop requirement in the main operating system?

Does DOSBox works for you in window mode if the desktop is at 256 color?

Why do you need the desktop constantly at 256 colors?

Why you need DOSBox to run simultaneously?

smeezekitty wrote:

i use atleast 3 - 4 programs that are from the early 90's that requires 256 Color mode and happen to need dosbox too

Why would these programs need the desktop to use 256 colors if running them in DOSBox? Mention specific applications.

Reply 27 of 43, by Malignant Manor

User metadata
Rank Newbie
Rank
Newbie

You are ignoring a lot of questions. I sure as hell don't suggest anyone try and help you anymore since you can't even answer if you tried DosFreak's suggestion and don't list why you need a 256 color desktop at the same time as DOSBox is running.

Reply 31 of 43, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

you don't like suggestions and questions, do you?

h-a-l's last reply is everything you need to know. If you don't want the behavior, then you have to try different ways and we *could* help you if you'd follow suggestions or answer questions.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 34 of 43, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
smeezekitty wrote:

why dont they make a utility to keep certain windows from messing with the windows palette

Really, what do you expect?!

256 colors means 256 colors. If Windows and DOSBox each want to use a different set of 256 colors, then either your display is going to need to display 512 colors, or things are going to get messed up.

Reply 35 of 43, by Zorbid

User metadata
Rank Member
Rank
Member

The palette in 8bit mode is a table that maps values from 0 to 255 to RGB values. You can map lime green or purple or black to 0, 1, etc...

When you work in a higher color mode (16 or 24 bit), 8bit pictures with different palettes can be displayed, because the redering mode supports a wide array of RGB values anyway, and multiple software palettes can be defined.

But in 256 color mode, the hardware only provides a single 256 color palette. If multiple programs modify the palette you're screwed. DOS programs were not meant to work in multitasking environment, so they behave as if they were alone on the machine, and use the palette however they please. There's nothing you can do about it. Windows programs that were supposed to work in multitasking environment in 256 color modes were designed to play nicely with one another (ie, not to mess with the palette). DOSBox is designed to emulate the DOS games properly, and it will try to emulate the palette changes properly, at the expense of the palette of the host if it (the host) runs in 256 color mode.

If you need to run old Windows apps in 256 color mode and DOSBox at the same time, as it has already been suggested, you should leave the host in 24 or 32bit mode and use an emulator or a virtualizer for the old Windows apps. Run Windows 98 in it in 256 color mode, the emulator will take care of simulating the 8bit modes for the programs inside the emulator without messing with the palette of the host. You could also run old DOS programs in the same emulator instead of DOSBox. DOSBox is designed for DOS gaming, and nothing else (although other programs may work as a side effect since you need a comprehensive emulation to reach the compatibility level of DOSBox).

If you explained precisely what you wanted to do (what kind of apps, for DOS, for Windows, which one requires 256 color mode and so on) people here could really help you.

You're far less knowledgeable than you seem to think you are. If you don't help us help you, there's little we can do.

  • Why do you use the VGAOnly mode? It's far slower than the normal VGA mode, and is only required for a handful demos.
  • Why do you want to play that obscure game while using Win9x programs that require the 256 color mode? Palette cycling was a common technique for animation at the time. But non game programs should not use it much.

Also, this is a message board, not a chat, please use it as such. Capitalization and punctuation are welcome... and don't be afraid to type more than 3 sentences per post.

Reply 37 of 43, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
smeezekitty wrote:

it does not even go into 24 or 32 bpp i get the BSoD.

And here we go again. Does that happen in Vista, or in Windows 98, or both? And don't you think maybe you should fix that?

isnt palette cycling bad programming practice?

What if it is?