WINE + TrackManiaNations4Ever on OsX 10.7 (Lion)

Questions about Wine on macOS.
Locked
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

WINE + TrackManiaNations4Ever on OsX 10.7 (Lion)

Post by testifix »

Hi all,

I am completely new to OS X and Wine, so I might ask a very stupid question now. If so, please forgive me; I searched the Forum, WineHQ and Google and couldnt find an answer to my problem.

I would like to run TrackManiaNations4Ever on my Mac (Os X 10.7 Lion), and i downloaded the program from
http://www.gamefront.com/files/10013754


I have MacPorts and Wine installed, and i was successful in installing the program. I can also start the program, which then opens a window where I can change some configuration settings. Leaving the settings to the defaults, when i click "Play", the terminal responds the following and then exits:


LaptopName:~ username$ /opt/local/bin/wine ~/.wine/drive_c/Programme/TmNationsForever/TmForeverLauncher.exe
fixme:d3d_caps:init_driver_info Unhandled vendor 8086.
fixme:win:EnumDisplayDevicesW ((null),0,0x32eab8,0x00000000), stub!
fixme:d3d_caps:init_driver_info Unhandled vendor 8086.
fixme:win:EnumDisplayDevicesW ((null),0,0x32eba8,0x00000000), stub!
fixme:d3d_caps:init_driver_info Unhandled vendor 8086.
fixme:win:EnumDisplayDevicesW ((null),0,0x32f198,0x00000000), stub!
fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 20/02/2011, dlt (d/m/y): 16/10/2011
fixme:exec:SHELL_execute flags ignored: 0x00000100
LaptopName:~ username$


Anyone an idea how to go about this?

Thank you in advance for your feedback!
Testifix
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

WINE + TrackManiaNations4Ever on OsX 10.7 (Lion)

Post by jjmckenzie »

On 8/29/11 5:47 PM, testifix wrote:
Hi all,

I am completely new to OS X and Wine, so I might ask a very stupid question now. If so, please forgive me; I searched the Forum, WineHQ and Google and couldnt find an answer to my problem.

I would like to run TrackManiaNations4Ever on my Mac (Os X 10.7 Lion), and i downloaded the program from
http://www.gamefront.com/files/10013754


I have MacPorts and Wine installed, and i was successful in installing the program. I can also start the program, which then opens a window where I can change some configuration settings. Leaving the settings to the defaults, when i click "Play", the terminal responds the following and then exits:


LaptopName:~ username$ /opt/local/bin/wine ~/.wine/drive_c/Programme/TmNationsForever/TmForeverLauncher.exe
Try running it from the command line like so:

cd $HOME/.wine/drive_c/Programme/TmNationsForever
wine TmForeverLauncher.exe

This should work better.

Also, this program does have an entry in the Applications Database at:

http://appdb.winehq.org/objectManager.p ... n&iId=7064

You might want to look at that page for more information.

James
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

Post by testifix »

Thank you James, now it works like a charm. I saw the entry of the program in the Application Database, but I could not really use the information to make my installation work.

Best,
Testifix
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

Post by testifix »

only one quick followup question:

I originally wanted to launch the program through an applescript:

tell application "Terminal"
do script "/opt/local/bin/wine ~/.wine/drive_c/Programme/TmNationsForever/TmForeverLauncher.exe"
end tell

with the result that it didnt work (the program started, but did not work properly, probably because of the wrong WorkingDir?)

Manual solution would be to provide a terminal window with this:
cd $HOME/.wine/drive_c/Programme/TmNationsForever
wine TmForeverLauncher.exe

Is there a way to do this through applescript?


Thanks in advance!
Best,
testifix
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

Post by testifix »

Here's the working code:

tell application "Terminal"
activate
do script "cd $HOME/.wine/drive_c/Programme/TmNationsForever"
do script "wine TmForeverLauncher.exe" in window 1
end tell


thanks again for your help, james!
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

WINE + TrackManiaNations4Ever on OsX 10.7 (Lion)

Post by jjmckenzie »

On 8/30/11 6:04 PM, testifix wrote:
Here's the working code:

tell application "Terminal"
activate
do script "cd $HOME/.wine/drive_c/Programme/TmNationsForever"
do script "wine TmForeverLauncher.exe" in window 1
end tell


thanks again for your help, james!
You are welcome, testifix.

James
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

testifix wrote:Here's the working code:

tell application "Terminal"
activate
do script "cd $HOME/.wine/drive_c/Programme/TmNationsForever"
do script "wine TmForeverLauncher.exe" in window 1
end tell


thanks again for your help, james!
wont that cause a Terminal to appear? You can do this with Applescript with no terminal at all.

You do not need to tell Terminal those commands... you should be able to do...

Code: Select all

do shell script "cd $HOME/.wine/drive_c/Programme/TmNationsForever; wine TmForeverLauncher.exe"
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

Post by testifix »

Thanks for the insightful input, doh123. Havent tried your one-line solution yet, but assuming it is working it is a very elegant solution. I just learnt something new!

Regarding the approach I posted: Yes, the terminal will appear this way. This code shows all the possible modifications:



tell application "Terminal"
activate -- If a terminal window is desired; if not, delete this line
do script "cd $HOME/.wine/drive_c/Programme/TmNationsForever"
delay 0.5 -- Improves Reliability
do script "wine TmForeverLauncher.exe" in window 1
end tell


Now, with your one-line solution, I guess the solution here is redundant. I just posted it to complete the discussion :)

cheers!
testifix
Level 1
Level 1
Posts: 6
Joined: Mon Aug 29, 2011 7:39 pm

Post by testifix »

doh123 wrote:
You do not need to tell Terminal those commands... you should be able to do...

Code: Select all

do shell script "cd $HOME/.wine/drive_c/Programme/TmNationsForever; wine TmForeverLauncher.exe"
Just tested it, didnt work: "Command not Found". Altered as follows, however, it works (without opening a terminal window):

Code: Select all

do shell script "cd $HOME/.wine/drive_c/Programme/TmNationsForever; /opt/local/bin/wine TmForeverLauncher.exe"
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

testifix wrote:
doh123 wrote:
You do not need to tell Terminal those commands... you should be able to do...

Code: Select all

do shell script "cd $HOME/.wine/drive_c/Programme/TmNationsForever; wine TmForeverLauncher.exe"
Just tested it, didnt work: "Command not Found". Altered as follows, however, it works (without opening a terminal window):

Code: Select all

do shell script "cd $HOME/.wine/drive_c/Programme/TmNationsForever; /opt/local/bin/wine TmForeverLauncher.exe"
yeah... depends how your default path is set up... thats a better way to do it to make sure there are no problems.

I have a AppleScript in the Mac OS X FAQ that you can use with normal Script Editor to make custom app launchers for normal Wine usage.

http://wiki.winehq.org/MacOSX/FAQs#head ... fc87fd3911
Locked