Prince of Persia 2008 HowTo

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
James McKenzie

Prince of Persia 2008 HowTo

Post by James McKenzie »

xaber1488 wrote:
And how can I reset the changes done with winetricks? Simply removing the libraries overrides? And to apply them again, should I use again the sh winetricks comand?

Open a terminal session

code:

cd $HOME

mv .wine{,.backup}
wine notepad

Run winecfg and note any overrides at this point.

Run winetricks with all of the changes you need to make your program run

Run winecfg and take a screenshot of the overrides. Post to the
Applications Database entry for your program. If there is not one,
create it and add all that you did to get the program to run.

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

Post by vitamin »

xaber1488 wrote:And how can I reset the changes done with winetricks? Simply removing the libraries overrides?
Pretty much. Those dlls will still be around but Wine by default prefers it's own dlls (in most cases).

quote="xaber1488"]And to apply them again, should I use again the sh winetricks comand?[/quote]
Should work as well
James McKenzie

Prince of Persia 2008 HowTo

Post by James McKenzie »

vitamin wrote:
xaber1488 wrote:
And how can I reset the changes done with winetricks? Simply removing the libraries overrides?
Pretty much. Those dlls will still be around but Wine by default prefers it's own dlls (in most cases).

quote="xaber1488"]And to apply them again, should I use again the sh winetricks comand?
Should work as well


[/quote]Actually, if you can do this, it is a best practice for installing new
programs and tesing with Wine:

Open a terminal session (applies regardless of which operating system
you are using)

code:

cd $HOME
mv .wine{,.backup}
wine notepad

This will create a new and clean .wine to work in.

Apply all changes made with Winetricks

Then install your program.

Run the program from the command line.

If the program will not run, or if you want to remove all changes again,
you can change the move (mv) command to:

mv wine{,.backup1}

Reminder, you might want to 'prune' the number of backups every once in
a while to conserve space.

James McKenzie
James McKenzie

Prince of Persia 2008 HowTo

Post by James McKenzie »

James McKenzie wrote:
vitamin wrote:
xaber1488 wrote:
And how can I reset the changes done with winetricks? Simply
removing the libraries overrides?
Pretty much. Those dlls will still be around but Wine by default
prefers it's own dlls (in most cases).

quote="xaber1488"]And to apply them again, should I use again the sh
winetricks comand?
Should work as well

Actually, if you can do this, it is a best practice for installing new
programs and tesing with Wine:

Open a terminal session (applies regardless of which operating system
you are using)

code:

cd $HOME
mv .wine{,.backup}
wine notepad

This will create a new and clean .wine to work in.

Apply all changes made with Winetricks

Then install your program.

Run the program from the command line.

If the program will not run, or if you want to remove all changes
again, you can change the move (mv) command to:

mv wine{,.backup1}

Reminder, you might want to 'prune' the number of backups every once
in a while to conserve space.

James McKenzie



[/quote]s/tesing/testing in the first line of my reply.

James McKenzie
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Prince of Persia 2008 HowTo

Post by L. Rahyen »

On 2008-12-27 (Saturday) 18:49:07 James McKenzie wrote:
vitamin wrote:
xaber1488 wrote:
And how can I reset the changes done with winetricks? Simply removing
the libraries overrides?
Pretty much. Those dlls will still be around but Wine by default prefers
it's own dlls (in most cases).

quote="xaber1488"]And to apply them again, should I use again the sh
winetricks comand?
Should work as well
Actually, if you can do this, it is a best practice for installing new
programs and tesing with Wine:
...
cd $HOME
mv .wine{,.backup}
wine notepad

This will create a new and clean .wine to work in.
[/quote]
Better way (if all you want just to test something, for example to make sure
that it worth installing in your primary ~/.wine Wine prefix or simply want to
see if it works):

rm -rf ~/.wine-tmp
export WINEPREFIX=~/.wine-tmp

You're done. You may install and test your program as usually.
Some explanations... First command will make sure that old ~/.wine-tmp is
removed (obviously if you know the path you are using for prefix doesn't
exist yet you may skip it).
Second will export path to Wine prefix which should be used by default in
*current session* and for *current shell* instance *only*.
This means if you try to run Windows program/installer in other shell where
you didn't export path to Wine prefix you want to use or by double-clicking
in file manager Wine will use default ~/.wine as usually.
Optionally after doing "export WINEPREFIX=..." you may run "wineboot"
(without quotes) to create the Wine prefix but as I said above
you may skip this and run winecfg, wine setup.exe or something else with Wine
(first Wine call will run wineboot automatically and create/update Wine
prefix anyway).
Creating Wine prefix "manually" (by running wineboot) only makes sense if you
want, for example, to copy a DLL from Windows or make other manual changes to
the prefix *before* running something with Wine in yet non-existing prefix
(because, as explained before, Wine will create/update it for you
automatically no matter what windows program (including winecfg) or installer
you will try to run).
Obviously if you like the result after installing and testing your program
and want to use ~/.wine-tmp prefix for a long time with the program(s) you
tested you probably want to rename it (to any name you like by using mv
command). You can read more about using multiple Wine prefixes in the Wine
documentation. Using multiple Wine prefixes is especially good practice if
you are using a lot of Windows programs (for example, 10-20 or more) so you
can divide them in isolated groups - by installing each group of Windows
program in separate Wine prefix; this help to improve long-term stability.
xaber1488
Level 3
Level 3
Posts: 61
Joined: Wed Nov 19, 2008 5:47 pm

Re: Prince of Persia 2008 HowTo

Post by xaber1488 »

James McKenzie wrote:xaber1488 wrote:
And how can I reset the changes done with winetricks? Simply removing the libraries overrides? And to apply them again, should I use again the sh winetricks comand?

Open a terminal session

code:

cd $HOME

mv .wine{,.backup}
wine notepad

Run winecfg and note any overrides at this point.

Run winetricks with all of the changes you need to make your program run

Run winecfg and take a screenshot of the overrides. Post to the
Applications Database entry for your program. If there is not one,
create it and add all that you did to get the program to run.

James McKenzie
what does the mv .wine{,.backup} command do? Is that to delete the winetricks changes?
James McKenzie

Prince of Persia 2008 HowTo

Post by James McKenzie »

xaber1488 wrote:
James McKenzie wrote:
xaber1488 wrote:

And how can I reset the changes done with winetricks? Simply removing the libraries overrides? And to apply them again, should I use again the sh winetricks comand?



Open a terminal session

code:

cd $HOME

mv .wine{,.backup}
wine notepad

Run winecfg and note any overrides at this point.

Run winetricks with all of the changes you need to make your program run

Run winecfg and take a screenshot of the overrides. Post to the
Applications Database entry for your program. If there is not one,
create it and add all that you did to get the program to run.

James McKenzie
what does the mv .wine{,.backup} command do? Is that to delete the winetricks changes?

This is a short cut for the following command:

mv .wine .wine.backup

It uses some of the functionality of the regular expressions command set.

James McKenzie
xaber1488
Level 3
Level 3
Posts: 61
Joined: Wed Nov 19, 2008 5:47 pm

Post by xaber1488 »

Oh, ok. I thought it was something like this, but it's always beter to be sure, isn't it? ;)
Thanks a lot for helping.
xaber1488
Level 3
Level 3
Posts: 61
Joined: Wed Nov 19, 2008 5:47 pm

Post by xaber1488 »

xaber1488 wrote: "from glUseProgramObjectARB @ glsl_shader.c / 3406
fixme:d3d_shader:shader_glsl_load_constants >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUniform4fvARB @ glsl_shader.c / 429
fixme:d3d_draw:drawStridedFast >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glDrawArrays @ drawprim.c / 278
fixme:d3d_shader:shader_glsl_select >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUseProgramObjectARB @ glsl_shader.c / 3406
fixme:d3d_shader:shader_glsl_load_constants >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUniform4fvARB @ glsl_shader.c / 429
fixme:d3d_shader:shader_glsl_load_constantsF >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUniform4fvARB() @ glsl_shader.c / 266
fixme:d3d_shader:shader_glsl_load_constants >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUniform4fvARB @ glsl_shader.c / 429
fixme:d3d_draw:drawStridedFast >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glDrawArrays @ drawprim.c / 278
fixme:d3d_draw:drawStridedFast >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glDrawArrays @ drawprim.c / 278

By the way, this is part of the error output I get when runnign PoP 2008 (I can listen to audio, but can't view any graphic): these are only some lines, but the others are all similar and they repeat themselves.
From the output, I can see there is some kind of error with the openGL.
Any suggestions? Even though I tend to think this is some ati/radeon related problem...
Locked