Dos very old app

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Dos very old app

Post by Lorenzo »

Hi everybody

i'm running a very old app in dos
on wine-0.9.58 in Ubuntu 7.10

i do

Code: Select all

 WINEDEBUG=+relay wine WP.EXE 2>&1 | less -i

that's what i get in reponse

Code: Select all

002e:Call USER.1: MESSAGEBOX(0000,13870c5a "This application must be run in either 16 or 256 color mode.\n",13870c98 "Error!",0010) ret=11f7:0155 ds=1387

what can i do?

thx
Mark Knecht

Dos very old app

Post by Mark Knecht »

On Sun, Mar 30, 2008 at 9:30 AM, Lorenzo <[email protected]> wrote:
Hi everybody

i'm running a very old app in dos

i do

Code:

WINEDEBUG=+relay wine WP.EXE 2>&1 | less -i





that's what i get in reponse
002e:Call USER.1: MESSAGEBOX(0000,13870c5a "This application must be run in either 16 or 256 color mode.\n",13870c98 "Error!",0010) ret=11f7:0155 ds=1387

[/code]

what can i do?

thx
Totally a guess on my part but if the program *must* have 16 or 256
color then I'd try setting up some 256 color modes in my xorg.conf
file. If you can get that working, and you MUST test that they are
actually working in X itself first, then I'd try rerunning the program
in Wine and see if Wine will switch to that mode while the program
runs.

Note that if the program wants a 256 color mode it probably also wants
a very low screen resolution, like 640x480. I'd start there if I was
going to play with xorg.conf.

*Maybe* some advanced Wine user will know how to do all of this in
Wine's native configuration but until I heard about that I'd go down
this path first.

Good luck,
Mark
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

u think is it possible to run it without modifing xorg and start x-window over or not?
thanks i'll wait for further post

PS: it's a dos application, it doesnt use any graphic interface to run. Graphics are initialized by the app after running process
Last edited by Lorenzo on Sun Mar 30, 2008 12:41 pm, edited 1 time in total.
Alexander Nicolaysen S...

Dos very old app

Post by Alexander Nicolaysen S... »

Hi everybody

i'm running a very old app in dos

i do

Code:

WINEDEBUG=+relay wine WP.EXE 2>&1 | less -i





that's what i get in reponse
002e:Call USER.1: MESSAGEBOX(0000,13870c5a "This application must be run in
either 16 or 256 color mode.\n",13870c98 "Error!",0010) ret=11f7:0155
ds=1387

[/code]

what can i do?

thx
You might want to consider using DOSBox (http://www.dosbox.com/).


ALexander N. Sørnes
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

cool stuff.

thanks i'll try it
Mark Knecht

Dos very old app

Post by Mark Knecht »

On Sun, Mar 30, 2008 at 10:37 AM, Lorenzo <[email protected]> wrote:
u think is it possible to run it without modifing xorg and start x-window over or not?
thanks i'll wait for further post
I do not think it's possible but I have VERY little experience in this
area. Modifying xorg.conf should be relatively easy in theory but you
might run into other issues such as monitor scan rates or any other
number of problems.

I agree with Alexander that maybe a DOSBox like program would be a
better solution as you say this is a DOS program and not a Windows
program. That way possibly the the screen issues would be handled by
DOSBox and not X directly. DOSBox would run in Linux, not Wine.

good luck,
Mark
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

I messed up

i though it was a dos apps but it is a windows app

i dont think i'm gonna change my xorg everytime i want to run it, i'll try to modify the virtual desktop or wine configuration.

is there any way to run wine command with an argument to tell win to use a 256 color palette?
if anyone can help..
Mark Knecht

Dos very old app

Post by Mark Knecht »

On Sun, Mar 30, 2008 at 11:05 AM, Lorenzo <[email protected]> wrote:
I messed up

i though it was a dos apps but it is a windows app

i dont think i'm gonna change my xorg everytime i want to run it, i'll try to modify the virtual desktop or wine configuration.
If what I think it true is *actually* true then you will NOT have to
change it every time you want to run it. xorg.conf contains a list of
instructions to tell X how to configure your graphics hardware based
on how you want to use the system. Typically most folks don't have any
settings below 16-bits so you cannot access anything less than 65536
colors. If you were to add an 8-bit section to your xorg.conf file
then X would understand you want to use it and would allow wine to
switch into that mode.

Again, I have VERY little experience in this area under wine but in
Windows this is essentially what you'd be doing.

Hope this helps,
Mark
if anyone can help..




vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Dos very old app

Post by vitamin »

Mark Knecht wrote:Again, I have VERY little experience in this area under wine but in
Windows this is essentially what you'd be doing.
Mark, this is not windows. All what you think you know about windows does not apply to Xorg and Wine. Please don't send users on a wild goos chaise if you don't know what you talking about.

Lorenzo, ignore everything Mark told you. Xorg can not switch colors on-the-fly. At a minimum you'll have to start a separate X session:

Code: Select all

xinit /usr/bin/wine WP.EXE -- :1 -depth 8
However that might not work with your video drivers/system setup. If that won't work, you can try and force Wine to lie to the app about BPP. However that will break all the programs run on Wine and you will have to manually edit Wine's user.reg file.
Here is the registry key:

Code: Select all

[HKCU\Software\Wine\X11 Driver]
ScreenDepth=8
Mark Knecht

Dos very old app

Post by Mark Knecht »

On Sun, Mar 30, 2008 at 11:57 AM, vitamin <[email protected]> wrote:
Mark Knecht wrote:
Again, I have VERY little experience in this area under wine but in
Windows this is essentially what you'd be doing.
Mark, this is not windows. All what you think you know about windows does not apply to Xorg and Wine. Please don't send users on a wild goos chaise if you don't know what you talking about.
Well said vitamin. Since I don't know anything I'll leave everything
to you. As you wish, no more answers from me.

Please note however that I did in fact preface _every_ comment I made
with significant warnings so as to warn him he might indeed be wasting
his time if he did what I said. He's a big boy. I'm sure he
understood.

Additionally, I don't completely trust your analysis here as the other
day we had a problem with a user not seeing videos which I duplicated
both the problem and the solution here. The solution was in fact that
my xorg.conf file didn't have to correct settings so Wine didn't
switch into the right modes at the right scan rates. Once I made those
changes it worked fine. It was a two minute change

Of course, we have seen that you do not give credit to people when
they help out but rather only put them down when they are wrong, which
clearly I was. Sorry.

Over and out. Deal with everyone yourself using only your extreme
depth of knowledge. Sorry to be a bother to you. I will not do that
again.

Cheers,
Mark
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Dos very old app

Post by vitamin »

Mark Knecht wrote:Additionally, I don't completely trust your analysis here as the other
day we had a problem with a user not seeing videos which I duplicated
both the problem and the solution here. The solution was in fact that
my xorg.conf file didn't have to correct settings so Wine didn't
switch into the right modes at the right scan rates. Once I made those
changes it worked fine. It was a two minute change
It could be the problem here as well. Hard to tell what that program is looking at.

Lorenzo, did you modified your xorg.conf as requested? What all the modes and color depths do you have listed there?
Tomas Kuliavas

Dos very old app

Post by Tomas Kuliavas »

Hi everybody

i'm running a very old app in dos

i do

Code:

WINEDEBUG=+relay wine WP.EXE 2>&1 | less -i

that's what i get in reponse
002e:Call USER.1: MESSAGEBOX(0000,13870c5a "This application must be run
in either 16 or 256 color mode.\n",13870c98 "Error!",0010) ret=11f7:0155
ds=1387

[/code]

what can i do?
Which version of Word Perfect are you using?


--
Tomas
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

thanks vitamin, i'll try it and i'll tell u if it works.

Hey guys.. peace, everyone has his place :P

I didn't modify my xorg, cause i didnt want to start the x server over and over

it's not Word Perfect!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Lorenzo wrote:I didn't modify my xorg, cause i didnt want to start the x server over and over
Please modify it to list 8-bit depth modes as well. You do not need to modify all the time - once is enough to have all the required modes configured eg:

Code: Select all

Section "Screen"
  SubSection "Display"
    Depth      8
    Modes      "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
EndSection
James McKenzie

Dos very old app

Post by James McKenzie »

Lorenzo wrote:
Hi everybody

i'm running a very old app in dos

i do

Code:

WINEDEBUG=+relay wine WP.EXE 2>&1 | less -i





that's what i get in reponse
002e:Call USER.1: MESSAGEBOX(0000,13870c5a "This application must be run in either 16 or 256 color mode.\n",13870c98 "Error!",0010) ret=11f7:0155 ds=1387

[/code]

what can i do?

thx



This appears to be a very old version of WordPerfect. I would be very
suspicious of running this program in Wine. Is there a way that you can
update the program to a more recent version?

James McKenzie
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

Again.. it's NOT a Word Perfect version
DARKGuy .

Dos very old app

Post by DARKGuy . »

Then what program is it? we're randomly guessing then...

On Tue, Apr 1, 2008 at 2:58 AM, Lorenzo <[email protected]> wrote:
Again.. it's NOT a Word Perfect version




Tomas Kuliavas

Dos very old app

Post by Tomas Kuliavas »

Again.. it's NOT a Word Perfect version
According to google wp.exe is some trojan or word perfect. If you name
program that you are trying to use, others might be able to test it
without asking you to test things.

If it is DOS program, then you should use DOSBox or DOSEmu to run it and
don't try to run it in Wine. DOSBox and DOSEmu are native Linux programs
and you don't have to use Windows version of DOSBox.

--
Tomas
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

I have already tested it in dosbox, and i find out it is a windows application.
It's Sid Meier's Pirates! Gold Version. I made it running by the xinit command vitamin wrote up here but it runs too fast to play properly.
thanks to everybody for helping
felix
Level 2
Level 2
Posts: 45
Joined: Thu Feb 28, 2008 10:04 am

Dos very old app

Post by felix »

On Mon, Mar 31, 2008 at 06:28:44AM -0500, Lorenzo wrote:
I have already tested it in dosbox, and i find out it is a windows application.
It's Sid Meier's Pirates! Gold Version. I made it running by the xinit command vitamin wrote up here but it runs too fast to play properly.
thanks to everybody for helping
If this is the version of Pirates that I think it is, I'm impressed that
wine managed to run it :)

There are a number of games by the same or similar name, so it would
help if you could be specific about it.

1987 Sid Meier's Pirates
1993 Sid Meier's Pirates! Gold (Sequel to the 1987 release)
2004 Sid Meier's Pirates (Remake of the 1987 release)


The first message you posted indicated that it needed either 16 or 256
colours, which suggests to me that this is the 1993 release of the
game and not the one's released in either 1987 or 2004. I'm fairly
certain that the 1987 didn't support 256 colours, and that the 2004
version supported more than 256.

At the same time the executable you are running doesn't have the name I
expected to see, since I remember it being PIRATESG.EXE.

I do however remember that the game could be played in either 16 or 256
colours depending on the power of your system. I had a 386 back in those
days and so had to let the game run the conversion tool since I didn't
have enough video memory to play the game in 256 colours.

The '93 one was released in the days of Windows 3.1, which was really
just a GUI on top on DOS, so the odds are that this is in fact a DOS
game and not a windows game.

Unless of course you actually have the 2004 version, which would
surprise me that it expects to run in 256 colour mode.

I have the '93 release of the game and I can try taking a look at that
when I get home tonight.


--
Darragh

"Nothing is foolproof to a sufficiently talented fool."
Lorenzo
Level 1
Level 1
Posts: 9
Joined: Sun Mar 30, 2008 11:26 am

Post by Lorenzo »

from the game readme
(1) SYSTEM REQUIREMENTS



The Windows version of PIRATES! GOLD requires a 386 or higher

processor and

Microsoft Windows version 3.1 or higher. Additionally, while

there are some

keyboard shortcuts in the game, a mouse is required.


i think is the 93 version u mentioned.

dosbox said it's a windows application, and the zip file i downloaded contains the executable named WP.EXE

weird :lol:

do u know some way I can slow down the game?[/quote]
felix
Level 2
Level 2
Posts: 45
Joined: Thu Feb 28, 2008 10:04 am

Dos very old app

Post by felix »

On Mon, Mar 31, 2008 at 12:01:42PM -0500, Lorenzo wrote:
i think is the 93 version u mentioned.

dosbox said it's a windows application, and the zip file i downloaded contains the executable named WP.EXE

weird [Laughing]
I've done a little digging and it appears that there were 2 versions
released, a DOS version which was the initial release, and then a
version that required Windows 3.1.

Looks like you have the latter one.

I'm fairly certain my version is the early DOS release, so not going to
be able to help much there.

--
Darragh

"Nothing is foolproof to a sufficiently talented fool."
Marc

Dos very old app

Post by Marc »

En/na Darragh Bailey ha escrit:
On Mon, Mar 31, 2008 at 12:01:42PM -0500, Lorenzo wrote:
i think is the 93 version u mentioned.

dosbox said it's a windows application, and the zip file i downloaded contains the executable named WP.EXE
I remember having problems with this app some time ago. Maybe it was not
the same download, but I think I could not even play it on a modern Windows.

At the end, I managed to play this great game, and I can swear I spent
some hours with it last year, through the Kega Fusion Emulator[1]. This
emulates the Sega Mega Drive on a win32 system, but is easily usable on
Wine. It is not open-sourced, but at least it is free-downloadable from
the link I pointed.

So, you only need to find the adecuate ROM compillation for the game. I
had to tweak Fusion351's config file due to my bad display drivers, but
managed to play for hours without any problem. In fact, under my
opinion, this version is better than the one you are trying to play. If
you don't find the ROM, I still have it on my HD ...

[1]http://www.eidolons-inn.net/tiki-index.php?page=Kega
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Dos very old app

Post by austin987 »

On Mon, Mar 31, 2008 at 1:16 PM, Marc <[email protected]> wrote:
En/na Darragh Bailey ha escrit:
On Mon, Mar 31, 2008 at 12:01:42PM -0500, Lorenzo wrote:
i think is the 93 version u mentioned.

dosbox said it's a windows application, and the zip file i downloaded contains the executable named WP.EXE
I remember having problems with this app some time ago. Maybe it was not
the same download, but I think I could not even play it on a modern Windows.

At the end, I managed to play this great game, and I can swear I spent
some hours with it last year, through the Kega Fusion Emulator[1]. This
emulates the Sega Mega Drive on a win32 system, but is easily usable on
Wine. It is not open-sourced, but at least it is free-downloadable from
the link I pointed.

So, you only need to find the adecuate ROM compillation for the game. I
had to tweak Fusion351's config file due to my bad display drivers, but
managed to play for hours without any problem. In fact, under my
opinion, this version is better than the one you are trying to play. If
you don't find the ROM, I still have it on my HD ...

[1]http://www.eidolons-inn.net/tiki-index.php?page=Kega

Please don't suggests using programs/solutions that (potentially)
violate quite a few laws.
Marc

Dos very old app

Post by Marc »

En/na Austin English ha escrit:
On Mon, Mar 31, 2008 at 1:16 PM, Marc <[email protected]> wrote:
En/na Darragh Bailey ha escrit:

On Mon, Mar 31, 2008 at 12:01:42PM -0500, Lorenzo wrote:

I remember having problems with this app some time ago. Maybe it was not
the same download, but I think I could not even play it on a modern Windows.

At the end, I managed to play this great game, and I can swear I spent
some hours with it last year, through the Kega Fusion Emulator[1]. This
emulates the Sega Mega Drive on a win32 system, but is easily usable on
Wine. It is not open-sourced, but at least it is free-downloadable from
the link I pointed.

So, you only need to find the adecuate ROM compillation for the game. I
had to tweak Fusion351's config file due to my bad display drivers, but
managed to play for hours without any problem. In fact, under my
opinion, this version is better than the one you are trying to play. If
you don't find the ROM, I still have it on my HD ...

[1]http://www.eidolons-inn.net/tiki-index.php?page=Kega


Please don't suggests using programs/solutions that (potentially)
violate quite a few laws.
I am sorry. Being such an old game I forgot about it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Locked