Topi: can't get it to work. In fact, not even notepad.exe works anymore. Notepad now results in the following in the terminal window:
**************8
FindWndPtr window 10021 belongs to other process
fixme:ttydrv:TTYDRV_DC_PatBlt (0x40395944, 0, 0, 2, 8, 15728673): stub
fixme:ttydrv:TTYDRV_DC_BitBlt (0x403931b4, 2, 0, 2, 8, 0x40395944, 0, 0, 6684742): stub
fixme:ttydrv:TTYDRV_DC_PatBlt (0x403952ac, 2, 2, 16, 1, 15728673): stub
fixme:ttydrv:TTYDRV_DC_PatBlt (0x403952ac, 2, 2, 1, 16, 15728673): stub
fixme:ttydrv:TTYDRV_DC_PatBlt (0x403952ac, 2, 2, 16,
1, 15728673): stub
fixme:ttydrv:TTYDRV_DC_PatBlt (0x403952ac, 2, 2, 1, 16, 15728673): stub
fixme:ttydrv:TTYDRV_DC_PatBlt (0x403931b4, -4, -97, 0, 0, 15728673): stub
fixme:ttydrv:TTYDRV_DC_BitBlt (0x403931b4, 2, 0, 2, 8, 0x40395be4, 0, 0, 6684742): stub
fixme:ttydrv:TTYDRV_DC_BitBlt (0x403931b4, 2, 0, 2, 8, 0x40395be4, 0, 0, 6684742): stub
fixme:ttydrv:TTYDRV_DC_BitBlt (0x403931b4, 2, 0, 2, 8, 0x40395be4, 0, 0, 6684742): stub
fixme:ttydrv:TTYDRV_DC_BitBlt (0x403931b4, 2, 0, 2, 8, 0x40395be4, 0, 0, 6684742): stub
******************************8
Here is what I did (I wanted to make a HOWTO):
****************************************
HOW-TO GET GALCIV RUNNING IN LINUX
(Using a Windows install)
WINDOWS 9x
Install Galciv on a Windows 9x machine
Use regedit and find the registry keys for dart.dll and dartsock.dll [[note: couldn't find dart.dll and found tons of dartsock.dlls, so not know what to do here]
Export each of these to files
LINUX
Get latest winex from CVS
execute: cvs -d:pserver:
[email protected]:/cvsroot/winex login
Hit Enter when prompted for a password
execute: cvs -z3 -d:pserver:
[email protected]:/cvsroot/winex co wine
Edit the wine/dlls/user/painting.c file in a text editor
Find the below section:
/***********************************************************************
* BeginPaint (USER32.@)
*/
HDC WINAPI BeginPaint( HWND hwnd, PAINTSTRUCT *lps )
{
INT dcx_flags;
BOOL bIcon;
HRGN hrgnUpdate;
RECT clipRect, clientRect;
HWND full_handle;
WND *wndPtr;
Add the following line right below:
if (!lps) return 0;
Then find the below section:
/***********************************************************************
* EndPaint (USER32.@)
*/
BOOL WINAPI EndPaint( HWND hwnd, const PAINTSTRUCT *lps )
{
Add the following line right below:
if (!lps) return 0;
Save the painting.c file
cd to your ~/wine directory
execute: ./tools/wineinstall
to setup wine, execute: wine and choose fake windows install
cd ~/.transgaming
cd c_drive
mkdir windows
[[[copy regedit.exe from a win9x machine to your .transgaming/c_drive/windows directory
copy the exported registry keys from your Windows machine to your .transgaming/c_drive/windows directory]]]
[[[note I couldn't find a dart.dll in my win9x and there were tons of dartsock.dll's so i didn't do this step]]]
mkdir windows/fonts
mkdir windows/system
mkdir windows/system32
copy quartz.dll from a Win9x machine to your .transgaming/c_drive/windows/system32 directory
mkdir "Program Files"
mkdir "My Documents"
mkdir "Program Files"/galciv
change to your "Program Files"/galciv directory on your linux machine
copy your galciv directory from your windows machine into your new linux galciv directory
(note: in windows, galciv is probably located at: /Program Files/Strategy First/Galactic Civilizations)
eg. cp /mnt/win_c/"Program Files"/"Strategy First"/"Galactic Civilizations"/* . -r
edit your .wine/config to ensure quartz.dll is in there and marked "native" vs builtin
Find this header: [DllOverrides]
Add this right under: "quartz" = "native"
save and exit
change to your linux galciv directory
execute: wine galciv.exe
********