Author Topic: FS2 setup crash with Wine  (Read 2027 times)

0 Members and 1 Guest are viewing this topic.

Offline Miramor

  • 24
FS2 setup crash with Wine
Due to the hideous artifacting bug in the open version, I'm trying to set up the original FS2... Problem is, I can't set up the video card - on attempting to detect my hardware the launcher simply crashes, with no error message. I've tried to run it from the CLI to get error messages, but when I do that it doesn't even start - it just whines about how it can't be run from a drive root directory (even though it is most definitely not being run from such).

Is this a known problem with FS2 under Wine? Are there options I can enable/disable, either in Wine or FS2, to stop the crashing so the game can detect my hardware?

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: FS2 setup crash with Wine
I believe launcher.exe only works with open not with retail.  You need to run freespace2.exe for retail. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Miramor

  • 24
Re: FS2 setup crash with Wine
That's what I was doing...

At any rate, I was able to stop the crashes by switching to Windows 98 compatibility mode. But it turns out that Wine + D3D *sucks* for the retail version, giving me about one frame per second. :ick: Bleh.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: FS2 setup crash with Wine
Have you tried the icculus.org port?  It's just a straight Linux port of the original source code release, so it's almost identical to retail.

You can grab a rather out-of-date (but functional) binary from here: http://icculus.org/~ravage/freespace2/
- or -
You can get newer code from SVN and build it yourself: http://icculus.org/freespace2/cvsinfo.php

 

Offline Miramor

  • 24
Re: FS2 setup crash with Wine
I tried the SVN build, but it wouldn't compile...

Edit: here's the error I got:

Code: [Select]
src/inetfile/chttpget.cpp: In member function ‘void ChttpGet::GetFile(char*, char*)’:
src/inetfile/chttpget.cpp:297: error: invalid conversion from ‘void* (*)(void*)’ to ‘void (*)(void*)’
src/inetfile/chttpget.cpp:297: error:   initializing argument 1 of ‘long unsigned int _beginthread(void (*)(void*), unsigned int, void*)’
src/inetfile/chttpget.cpp: In function ‘int http_Asyncgethostbyname(unsigned int*, int, char*)’:
src/inetfile/chttpget.cpp:747: error: invalid conversion from ‘void* (*)(void*)’ to ‘void (*)(void*)’
src/inetfile/chttpget.cpp:747: error:   initializing argument 1 of ‘long unsigned int _beginthread(void (*)(void*), unsigned int, void*)’
src/inetfile/chttpget.cpp: In function ‘void* http_gethostbynameworker(void*)’:
src/inetfile/chttpget.cpp:798: error: ‘df_pthread_self’ was not declared in this scope
src/inetfile/chttpget.cpp:798: error: ‘df_pthread_detach’ was not declared in this scope
make: *** [src/inetfile/chttpget.o] Error 1
« Last Edit: September 06, 2008, 07:13:57 pm by Miramor »

  

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: FS2 setup crash with Wine
Sorry, should be fixed now.  Just grab an update and you should be good to go.

Oh, and it should be mentioned that it makes a debug build by default, so you may want to uncomment these two lines near the top of the Makefile to get a release build:
CFLAGS+=-O2
CFLAGS+=-DNDEBUG