Forums

battlefield2 debuging on play on linux

Auteur Réponses
Jump to the page: 1 - 2 - 3 - 4 - 5
odis308 Dimanche 9 Juin 2013 à 2:06
odis308Anonymous

ok so i installed the newer version of play on linux and wine 1.5.25 but i dont know how to install it to play on linux and pol is still trying to use wine 1.1.42 to run the game

again thanks for the help
odis308 Dimanche 9 Juin 2013 à 2:32
odis308Anonymous

ok i got pol to run wine version 1.5.25 but im still having problems the game still wont launch this is the debug report

08/13 10:04:33] - Running wine-1.1.42 --version (Working directory : /media/grasty)
wine-1.1.42

PlayOnLinux logfile
-------------------
Date: 06/08/13 10:04:33

> PlayOnLinux Version
4.2.1
> uname -a
Linux grasty-FK549AA-ABA-a6637c 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:24:54 UTC 2013 i686 i686 i686 GNU/Linux
> lsb_release -a

> wine --version
wine-1.1.42
> POL_WINEVERSION
1.1.42
> WINEPREFIX
/home/grasty/.PlayOnLinux//wineprefix/Battlefield2
> Distribution
Ubuntu 13.04
> glxinfo \\| grep rendering
direct rendering: Yes
> glxinfo \\| grep renderer
OpenGL renderer string: Mesa DRI Intel(R) G33 x86/MMX/SSE2
> OpenGL libs (Direct rendering testing)
32bits direct rendering is enabled


[06/08/13 10:04:44] - Running wine-1.1.42 cmd /c echo %ProgramFiles% (Working directory : /media/grasty)
C:\\Program Files
[06/08/13 10:04:48] - Running wine-1.1.42 cmd /c echo %ProgramFiles% (Working directory : /media/grasty)
C:\\Program Files
[06/08/13 10:06:34] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/windows/temp)
[06/08/13 10:06:34] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]
"DXGrab"="Y"
-----------
[06/08/13 10:06:34] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/windows/temp)
[06/08/13 10:06:34] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]
"Desktop"="1920x1440"
-----------
[06/08/13 10:06:34] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/windows/temp)
[06/08/13 10:06:34] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops]
"Default"="1920x1440"
-----------
[06/08/13 10:06:34] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/windows/temp)
[06/08/13 10:06:34] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\Explorer]
"Desktop"="Default"
-----------
[06/08/13 10:40:29] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
[06/08/13 10:40:32] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 000d), starting debugger...
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
Can't attach process 000c: error 5
[06/08/13 17:03:33] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 17:16:25] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 17:16:25] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"DirectDrawRenderer"="gdi"
-----------
[06/08/13 17:16:36] - Running wine-1.1.42 regedit /home/grasty/.PlayOnLinux//tmp/regkey.reg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 17:16:36] - Content of /home/grasty/.PlayOnLinux//tmp/regkey.reg
-----------
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"OffscreenRenderingMode"="fbo"
-----------
[06/08/13 17:16:58] - Running wine-1.1.42 wineboot (Working directory : /home/grasty/.PlayOnLinux)
fixme:advapi:SetEntriesInAclA 1 0x33f754 (nil) 0x33f79c
fixme:advapi:SetSecurityInfo stub
fixme:dpnhpast:DllRegisterServer :stub
wine: Unhandled page fault on read access to 0x0000000f at address 0x7ecd0037 (thread 0019), starting debugger...
Can't attach process 0018: error 5
[06/08/13 17:17:30] - Running wine-1.1.42 winecfg (Working directory : /home/grasty/.PlayOnLinux)
err:module:load_builtin_dll failed to load .so lib for builtin L"wineesd.drv": libesd.so.0: cannot open shared object file: No such file or directory
[06/08/13 19:40:13] - Running wine-1.1.42 winecfg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 19:42:45] - Running wine-1.1.42 winecfg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 19:46:16] - Running wine-1.1.42 winecfg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 19:46:40] - Running wine-1.1.42 winecfg (Working directory : /home/grasty/.PlayOnLinux)
[06/08/13 19:48:02] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 19:52:00] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 19:53:29] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 20:01:12] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 20:25:06] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
wine: Unhandled page fault on write access to 0xffffffec at address 0x14b55f0 (thread 0009), starting debugger...
Can't attach process 0008: error 5
[06/08/13 20:26:01] - Running wine-1.1.42 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wine/linux-x86)
wine: configuration in '/home/grasty/.PlayOnLinux//wineprefix/Battlefield2' has been updated.
wine: cannot find L"C:\\\\windows\\\\system32\\\\BF2.exe"
[06/08/13 20:27:09] - Running wine-1.5.25 winecfg (Working directory : /home/grasty/.PlayOnLinux)
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0x112e8d0, overlapped 0x112e8dc): stub
wine: configuration in '/home/grasty/.PlayOnLinux/wineprefix/Battlefield2' has been updated.
[06/08/13 20:27:35] - Running wine-1.5.25 wineboot (Working directory : /home/grasty/.PlayOnLinux)
fixme:dpnhpast:DllRegisterServer :stub
fixme:iphlpapi:NotifyAddrChange (Handle 0xf5e8d0, overlapped 0xf5e8dc): stub
[06/08/13 20:27:58] - Running wine-1.5.25 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
[06/08/13 20:29:12] - Running wine-1.5.25 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
[06/08/13 20:29:39] - Running wine-1.5.25 BF2.exe +menu 1 +fullscreen 1 (Working directory : /home/grasty/.PlayOnLinux/wineprefix/Battlefield2/drive_c/Program Files/EA GAMES/Battlefield 2)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)
fixme:win:EnumDisplayDevicesW ((null),0,0x32edf4,0x00000000), stub!
fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x00000030
fixme:wbemprox:enum_class_object_Next timeout not supported
fixme:win:EnumDisplayDevicesW ((null),0,0x32da84,0x00000000), stub!
fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
fixme:devenum:DEVENUM_ICreateDevEnum_CreateClassEnumerator Category {cc7bfb41-f175-11d1-a392-00e0291f3959} not found
fixme:devenum:DEVENUM_ICreateDevEnum_CreateClassEnumerator Category {cc7bfb46-f175-11d1-a392-00e0291f3959} not found
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 800x600x32 @85! (desktop)
err:seh:raise_exception Unhandled exception code 80000003 flags 0 addr 0x3b24371
fixme:advapi:RegisterEventSourceA ((null)," "): stub
fixme:advapi:RegisterEventSourceW (L"",L" "): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x62e3a8,0x64b58a): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000060,0x132448,0x64b58a): stub
err:eventlog:ReportEventW L"6"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:advapi:RegisterEventSourceA ((null)," "): stub
fixme:advapi:RegisterEventSourceW (L"",L" "): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x000002cc,0x62e3a8,0x64b61a): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x000002cc,0x132448,0x64b61a): stub
err:eventlog:ReportEventW L"7"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
booman Dimanche 9 Juin 2013 à 4:39
booman

Ok, did you configure Wine to launch in a "virutal desktop"
doing that and setting the config file to the same resolution allowed it to launch for me.

Once it finally launches, you can patch and then change resolutions in game

† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
odis308 Dimanche 9 Juin 2013 à 6:11
odis308Anonymous

i believe so i checked emulate a virtual desktop
odis308 Dimanche 9 Juin 2013 à 6:50
odis308Anonymous

ok do i have to follow all the steps in your tutorial booman cause it not letting me complete some in the windows packages winetricks & playonlinux tutorial
booman Dimanche 9 Juin 2013 à 19:04
booman

Yeah I remember you said dotnet wasn't installing. I made that tutorial at least 6 months ago and a lot has changed.

I'm pretty sure you don't need all of those packages at this point.
My tutorial installs with the PlayOnLinux script which installs an earlier version of Wine.

But it sounds like you are able to install the game correct?
Did it install DirectX from the game CD's?
Were you able to patch to 1.41 or 1.5?

After everything is installed without errors that halt the installation, we are halfway there...
Then Wine should ask to restart Windows.
After that PlayOnLinux will ask about a Radeon card and how much Memory your card has... then what version of the game you own.

PlayOnLinux should give you a "successfully installed" window.
Technically you should be able to at least launch the game at this point with a low resolution, but I couldn't get it to launch initially.

1. Definitely install d3dx9 package
2. You won't need dotnet because you should use a later version of Wine
3. PlayOnLinux tools - Wine versions - download 1.5 or 1.5.25
4. PlayOnLinux configure - General - Wine version:  select 1.5 or 1.5.25
5. PlayOnLinux configure - display tab:

GLSL Support: default
Direct Draw Renderer: opengl
Video Memory size: should already be populated
Off-screen rendering mode: fbo
render target mode lock: default
Multi-sampling: enabled
Strict Draw Ordering: default

6. Wine tab - configure Wine
7. graphics tab - check emulate virtual desktop
8. Desktop size - 1024x768 (just for testing)
9. apply
10. Applications tab - window version: windows 7
11. OK
12. Wine tab - Windows Reboot

Now try launching the game... if it still refuses to launch, try setting the "virtual desktop" size to 800x600

If that still doesn't work, I found a trick:
1. navigate to your wineprefix: /home/username/Battlefield 2/Profiles/Default
2. open Video.con with gedit
3. VideoSettings.setResolution 1024x768@60Hz

Now try launching again.
If it does, then go ahead and try loading a small level to see if d3dx9 is working properly. Don't change resolution in-game until the game is patched up to 1.5 because it will crash.
if you want a higher resolution, then change it in that video.con, but make sure the Hz is 60Hz.

Once you get the game patched up, try changing resolution in-game and crank everything up like this:

Terrain: High
Effects: Medium
Geometry: High
Texture: High
Lighting: Medium
Dynamic Shadows:Low
Dynamic Light: Medium
Anti-Alias: Off
Texture Filter: Low
View Distance: 100%

If you increase shadows, there will be some major artifacts or framerate problems. Keep Anti-Alias off too.

Edité par booman


† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
odis308 Dimanche 9 Juin 2013 à 19:53
odis308Anonymous

yes i installed the game correct according to playonlinux
and im still haveing problems

im not really understanding what you mean by your trick i dont really understand the steps were can i find wineprefix and do i have to type gedit video.con in the terminal?
odis308 Dimanche 9 Juin 2013 à 19:58
odis308Anonymous

and also there is no windows seven for me in the grpahics tab
Ronin DUSETTE Dimanche 9 Juin 2013 à 20:28
Ronin DUSETTE

Also make sure not to mix winetricks with pol. It will cause issues.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
odis308 Dimanche 9 Juin 2013 à 20:31
odis308Anonymous

how do you keep from doing that?
Ronin DUSETTE Dimanche 9 Juin 2013 à 22:51
Ronin DUSETTE

um, dont run winetricks. You dont HAVE to run winetricks, and everything that winetricks does, POL already does. All of teh components that it installs can be found in the Install Components tab in the Configure window in PlayOnLinux. Dont use winetricks on POL wineprefixes.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
booman Dimanche 9 Juin 2013 à 23:09
booman

sorry, I was hoping you knew some of the folder organization for PlayOnLinux.
No Terminal needed here.
Oh and we are not using Winetricks, I was just showing you how PlayOnLinux creates a "wineprefix" just like you can with Wine.

Do you know how to go to your "home" in Linux?
After PlayOnLinux installs Battlefield 2 it automatically creates a "Battlefield 2" folder in your "home"
Can you find that?

† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
odis308 Lundi 10 Juin 2013 à 0:16
odis308Anonymous

yes i can
booman Lundi 10 Juin 2013 à 5:13
booman

great now do you see a "profiles" folder and in there a "default" folder?
in "default" you will find a file named: video.con

its configuration file that Battlefield 2 read to set the initial video which includes resolution.

1. Open it with Gedit
2. look for the line: VideoSettings.setResolution
3. modity the resolution to look like this: VideoSettings.setResolution 1024x768@60Hz

I think the problem we have is Battlefield needs to launch properly at least once because it creates some files. Since its not doing that, we can't get into the game and cahnge settings.

Once you launch it properly, then you can create a profile of your own and start changing the graphics settings.

† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
odis308 Lundi 10 Juin 2013 à 5:18
odis308Anonymous

ok i did that and its still not wanting to launch i get the battlefield2 start up screen i guess you can say or the launch screen then the it crashes
odis308 Lundi 10 Juin 2013 à 5:23
odis308Anonymous

if you want i could put up the debug report
odis308 Lundi 10 Juin 2013 à 5:33
odis308Anonymous

oo wait i dont have a video.con file
what should i do
thanks for you help again
booman Lundi 10 Juin 2013 à 15:19
booman

Interesting, but is there a profiles and default folders?

Ok, there is a default in the Battlefield 2 program files.

Try this:
1. navigate to: /home/username/.PlayOnLinux/wineprefix/Battlefield 2/drive_c/Program Files/EA GAMES/Battlefield 2/Profiles/Local/Default
(username is where you put your login)
(I know that is a long directory list, poke around until you find it.)

2. open video.con
3. Open it with Gedit
4. look for the line: game.setGameDisplayMode
5. modity the resolution to look like this: game.setGameDisplayMode 1024 768 32 0

This is a shot-in-the-dark, but I don't quite understand why you would have to go through all these steps?

Its always a good idea to start over again.
Did you ever try installing a newer version of Wine with PlayOnLinux?

† Booman †
Mint 21.3 64-bit | Nvidia 535| GeForce GTX 1650
Linux for Beginners | PlayOnLinux Guides | PlayOnLinux Explained
odis308 Lundi 10 Juin 2013 à 16:58
odis308Anonymous

yes i installed 1.5.25
and i also tried to reinstall the game but it used 1.142 wine to reinstall
and after i reinstalled i still didnt find the video.con folder

but i will follow your steps and look for it know
odis308 Lundi 10 Juin 2013 à 17:20
odis308Anonymous

ok well ive tried that and i get to the video dot can i followed your steps but it still refuses to launch
do you have any other ideas?
as always thanks for the help

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com