Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

HELP customizing wine build with .patch!


  • Please log in to reply
17 replies to this topic

#1 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 09 March 2017 - 06:03 AM

hi there!

I have osx el capitain, xcode is installed. i am able to run terminal therefore i have command line tools installed as well?

i am trying to patch THIS (https://github.com/w...-delay-re.patch)

i need the above patch in my wine engine in order to play a specific game


how do i create my .patch or .diff file? do i pase the code lines in to textedit and rewrite the extension? i do not have git/linux, but so i have not compiled anything or whatever that means.

then, once i have the .patch file from that code, i drag it into my wine source folder and follow the commands listed here, correct? (http://portingteam.c...ource-patching/)


thank you for your help! i am on my way to a playable game just need some help

#2 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 10 March 2017 - 01:08 AM

bump

#3 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 2,948 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro Core i7 16GB
    AMD Radeon HD 6750M 512MB

    MacBook Core2Duo 4GB
    nVidia 9400M 256MB
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:la rockitar
Author

Posted 10 March 2017 - 07:55 PM

Click on the RAW button of the github entry and select all by click command+A...then command+C to copy and paste it into a text edit document. Click Format in text edit and and choose Make Plain Text....then save with the .patch extension. Although that patch is already included in the WineStaging releases.
Posted Image

#4 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 11 March 2017 - 05:48 AM

ok thank you!! since i dont have linux the git documents are confusing


as far as implenting this patch, what do i do?

#5 NRG

NRG

    Champion Member

  • Members
  • 604 posts
  • Graphics Card:Nvidia 9800m GTS
  • Operating System:Other OS/Not specified

Posted 11 March 2017 - 07:46 AM

View Postjonnyh585, on 11 March 2017 - 05:48 AM, said:

ok thank you!! since i dont have linux the git documents are confusing


as far as implenting this patch, what do i do?

hi, you can read what to do into the tutorial section of the forum:

http://portingteam.c...ource-patching/

however as dankoB said to you, this patch is already included into the staging engines:

https://mega.nz/#F!I...oYAGpA!E9UgyJLa

you can download latest release of wineskin staging engine e try your game with it

#6 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 11 March 2017 - 01:37 PM

thank you! i need this to play an old favorite of mine, soldiers heroes of ww2

wine is fantastic to learn about and use! reliving my childhood games thanks for your help all

#7 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 15 March 2017 - 11:39 PM

Help please I am quite confused!

I tried to use wine staging to run my game soldiers heroes of ww2 (https://appdb.winehq...rsion&iId=21426)

according to the page, if i apply this patch (https://raw.githubus...-delay-re.patch) i should be able to play correctly. current the game crashes on startup using wine 1.7.55.

I have wine 1.7.53 source code and the patch saved as a .txt i renamed to 0001.patch. xcode is also installed. i copied terminal to the source folder, opened it, did the cd and the /user/desktop/wine command and tried to apply the patch with "patch -p1 "Patchname".diff" and this did nothing just hung with no progress. I noticed the screen shot in the tutorial had an addtional ">" which I added. the terminal then prompted me for the file to patch, saying it could not locate it as said in the patch on github.

I also tried running the wrapper on wine 2.3 and in winestaging as a seperate wrapper, but i got very confused when trying to use xquartz instead of x11 to accomodate the staging app.

can anyone please help me with this? i have my game and wine, i just want to apply the patch or use an engine that applies it by default. i dont quite understand how to use the staging app/i am afraid i did something to my system by using xquartz (i deleted it from my hard drive and hope that was enough). do i need to reconfiure my computer to have it switch back to x11???

#8 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 15 March 2017 - 11:41 PM

when i launch the game it terminates with an error and the log is this:

fixme:winediag:start_process Wine Staging 2.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable.
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:d3d:resource_init Failed to allocate system memory.


also this:


WineskinX11: main(): argc=12
Waiting for startup parameters via Mach IPC.
WineskinX11: do_start_x11_server(): argc=12
Attempting to use pixel depth of 24
[3562534.443] WineskinX11 starting:
[3562534.443] X.Org X Server 1.13.0
[3562534.443] Build Date: 20120921
[3562534.443] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[3562534.448] Initializing built-in extension Generic Event Extension
[3562534.448] Initializing built-in extension SHAPE
[3562534.448] Initializing built-in extension MIT-SHM
[3562534.448] Initializing built-in extension XInputExtension
[3562534.448] Initializing built-in extension XTEST
[3562534.448] Initializing built-in extension BIG-REQUESTS
[3562534.448] Initializing built-in extension SYNC
[3562534.448] Initializing built-in extension XKEYBOARD
[3562534.448] Initializing built-in extension XC-MISC
[3562534.448] Initializing built-in extension XINERAMA
[3562534.448] Initializing built-in extension PseudoramiX
[3562534.448] Initializing built-in extension XFIXES
[3562534.448] Initializing built-in extension RENDER
[3562534.448] Initializing built-in extension RANDR
[3562534.448] Initializing built-in extension DAMAGE
[3562534.448] Initializing built-in extension MIT-SCREEN-SAVER
[3562534.448] Initializing built-in extension DOUBLE-BUFFER
[3562534.448] Initializing built-in extension RECORD
[3562534.448] Initializing built-in extension X-Resource
[3562534.448] Initializing built-in extension XVideo
[3562534.448] Initializing built-in extension XVideo-MotionCompensation
[3562534.448] Initializing built-in extension GLX
[3562534.448] x: 0, y: 0, w: 1280, h: 777
[3562534.474] (II) GLX: Initialized Core OpenGL GL provider for screen 0
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/75dpi, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/100dpi, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/cyrillic, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/misc, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/OTF, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/Speedo, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/TTF, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/Type1, removing from list!
[3562534.475] [dix] Could not init font path element /opt/X11/share/fonts/util, removing from list!
set +o allexport
set -o braceexpand
set -o emacs
set +o errexit
set +o errtrace
set +o functrace
set -o hashall
set -o histexpand
set -o history
set +o ignoreeof
set -o interactive-comments
set +o keyword
set +o monitor
set +o noclobber
set +o noexec
set +o noglob
set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
set +o pipefail
set -o posix
set +o privileged
set +o verbose
set +o vi
set +o xtrace
[3562534.659] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
Engine Used: WS9WineStaging2.3
Hardware:

    Hardware Overview:

      Model Name: MacBook
      Model Identifier: MacBook8,1
      Processor Name: Intel Core M
      Processor Speed: 1.1 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 4 MB
      Memory: 8 GB
      Boot ROM Version: MB81.0164.B19
      SMC Version (system): 2.25f87

Graphics/Displays:

    Intel HD Graphics 5300:

      Chipset Model: Intel HD Graphics 5300
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel (0x8086)
      Device ID: 0x161e
      Revision ID: 0x0009
      Displays:
        Color LCD:
          Display Type: Retina LCD
          Resolution: 2304 x 1440 Retina
          Retina: Yes
          Pixel Depth: 32-Bit Color (ARGB8888)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Built-In: Yes

#9 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 15 March 2017 - 11:45 PM

do i need to toggle a setting in the advanced tab or winetricks to make the engine or wrapper use the patch? i have tried a wrapper using 1.7.55, 2.2, and winestaging2.3 that i manually dragged into the engines folder. i cant get my source code folder to accept the .patch using terminal, and i couldnt get winestaging to work correctly and got freaked by xquartz being strange. can anyone help me figure out how to get a wrapper that uses that patch so my game can work?

thank you!

#10 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 2,948 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro Core i7 16GB
    AMD Radeon HD 6750M 512MB

    MacBook Core2Duo 4GB
    nVidia 9400M 256MB
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:la rockitar
Author

Posted 15 March 2017 - 11:56 PM

You likely need to enable the staging function. Go into Wineskin and click on advanced and choose WineCfg...Then click on the Staging tab and enable the staging function. This needs to be done otherwise the engine will only work access the wined3d.dll and not the winestaging-d3d.dll
Posted Image

#11 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 16 March 2017 - 01:17 AM

do i need to do anything further to enable the ntdll patch i need to make the game work? i will try a new wrapper with that setting enabled

#12 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 16 March 2017 - 01:22 AM

ok so i got this:

fixme:winediag:start_process Wine Staging 2.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.
fixme:ntdll:NtCreateNamedPipeFile Message mode not supported, falling back to byte mode.

and


WineskinX11: main(): argc=12
Waiting for startup parameters via Mach IPC.
WineskinX11: do_start_x11_server(): argc=12
Attempting to use pixel depth of 24
[3568551.792] WineskinX11 starting:
[3568551.792] X.Org X Server 1.13.0
[3568551.792] Build Date: 20120921
[3568551.792] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[3568551.795] Initializing built-in extension Generic Event Extension
[3568551.795] Initializing built-in extension SHAPE
[3568551.795] Initializing built-in extension MIT-SHM
[3568551.795] Initializing built-in extension XInputExtension
[3568551.795] Initializing built-in extension XTEST
[3568551.795] Initializing built-in extension BIG-REQUESTS
[3568551.795] Initializing built-in extension SYNC
[3568551.795] Initializing built-in extension XKEYBOARD
[3568551.795] Initializing built-in extension XC-MISC
[3568551.795] Initializing built-in extension XINERAMA
[3568551.795] Initializing built-in extension PseudoramiX
[3568551.795] Initializing built-in extension XFIXES
[3568551.795] Initializing built-in extension RENDER
[3568551.795] Initializing built-in extension RANDR
[3568551.795] Initializing built-in extension DAMAGE
[3568551.795] Initializing built-in extension MIT-SCREEN-SAVER
[3568551.795] Initializing built-in extension DOUBLE-BUFFER
[3568551.795] Initializing built-in extension RECORD
[3568551.795] Initializing built-in extension X-Resource
[3568551.795] Initializing built-in extension XVideo
[3568551.795] Initializing built-in extension XVideo-MotionCompensation
[3568551.795] Initializing built-in extension GLX
[3568551.796] x: 0, y: 0, w: 1280, h: 777
[3568551.832] (II) GLX: Initialized Core OpenGL GL provider for screen 0
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/75dpi, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/100dpi, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/cyrillic, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/misc, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/OTF, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/Speedo, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/TTF, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/Type1, removing from list!
[3568551.834] [dix] Could not init font path element /opt/X11/share/fonts/util, removing from list!
set +o allexport
set -o braceexpand
set -o emacs
set +o errexit
set +o errtrace
set +o functrace
set -o hashall
set -o histexpand
set -o history
set +o ignoreeof
set -o interactive-comments
set +o keyword
set +o monitor
set +o noclobber
set +o noexec
set +o noglob
set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
set +o pipefail
set -o posix
set +o privileged
set +o verbose
set +o vi
set +o xtrace
[3568552.077] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
Engine Used: WS9WineStaging2.3


when i open the staging settings i see only:
enable csmt
enable EAX
hide wine version from applications

theres no option to "enable staging" in the staging tab of winecfg?

help!! thanks :)

#13 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 16 March 2017 - 01:25 AM

also on last tab under advance that says options

should either force use of wrappers xquartz-wm or force use of system installed xquartz be checked? both are uncheckjed

#14 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 2,948 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro Core i7 16GB
    AMD Radeon HD 6750M 512MB

    MacBook Core2Duo 4GB
    nVidia 9400M 256MB
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:la rockitar
Author

Posted 16 March 2017 - 01:19 PM

"Enable CSMT for better graphic performance" is actually the staging function...sorry I should have mentioned that. I've managed to find a temporary version of the game. Once I have finished downloading it I will give it a quick try on my end and see if I can help out any further.
Posted Image

#15 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 2,948 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro Core i7 16GB
    AMD Radeon HD 6750M 512MB

    MacBook Core2Duo 4GB
    nVidia 9400M 256MB
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:la rockitar
Author

Posted 16 March 2017 - 03:19 PM

So it seems ScoPezz had your back all along...there's already a custom 1.9.7 engine that works for this game....I only found it after I took a closer look at the Wine Engines repository. I've already tested it and can confirm that it works.

Follow this link... https://mega.nz/#F!I...oYAGpA!11MCzATb and download the WS9Wine1.9.7-SHOWW2 engine

Once you've downloaded the engine place it in HOME/Your User Name/Library/Application Support/Wineskin/Engines and then use Wineskin > Advanced > Tools > Change Engine Used and select the downloaded custom WS9Wine1.9.7-SHOWW2...wait for the engine to load into the wrapper and launch. You'll be playing this on your Mac in no time :)
Posted Image

#16 ScoPezz

ScoPezz

    Professional Member

  • Members
  • PipPipPipPip
  • 147 posts
  • LocationBelgium
  • Graphics Card:Intel GMA X3100
  • Operating System:Mac OS X 10.7 (Lion)

Posted 16 March 2017 - 07:20 PM

View PostdankoB, on 16 March 2017 - 03:19 PM, said:

So it seems Scopez had your back all along...there's already a custom 1.9.7 engine that works for this game....I only found it after I took a closer look at the Wine Engines repository. I've already tested it and can confirm that it works.

Follow this link... https://mega.nz/#F!I...oYAGpA!11MCzATb and download the WS9Wine1.9.7-SHOWW2 engine

Once you've downloaded the engine place it in HOME/Your User Name/Library/Application Support/Wineskin/Engines and then use Wineskin > Advanced > Tools > Change Engine Used and select the downloaded custom WS9Wine1.9.7-SHOWW2...wait for the engine to load into the wrapper and launch. You'll be playing this on your Mac in no time :)

I should actually list which custom engines I have in my thread :P Thanks for reminding me of that ;)

#17 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 16 March 2017 - 08:13 PM

thank you for your help! wine is so fun to learn but a little tricky when most patch instructions assume you use git on linux, my terminal skills are a little novice ;)

thank you for all who helped! i have a few more questions:
if i installed xquartz, then deleted the .app and the "/opt/" directory, is that enough to uninstall and reconfigure X11 correctly? I want to make sure i didnt break anything. i have run a few games since deleting and rebooting, seems fine but would like to check.

in my wrappers, under advance that says options, should either force use of wrappers xquartz-wm or force use of system installed xquartz be checked by default? this x11/xquartz stuff is a little confusing.

i have downloaded the new engine ill build a new wrapper and report back if it works! :) :)

#18 jonnyh585

jonnyh585

    Experienced Member

  • Members
  • PipPip
  • 21 posts
  • Graphics Card:intel hd 5300
  • Operating System:OS X 10.11 (El Capitan)

Posted 16 March 2017 - 08:19 PM

WOW!!!! it works!!!! this is so great, one of my all time favorite games and really overlooked. destructable environments, you can play as a commander of every unit or select a single unit and manage their weapon inventory and navigate the map that way. the game is so so fun!

so my understanding of what was causing the fatal error is that wine was forcing use of a DLL that would overload or not be managing direct 3D correctly? would like to know better what this particular engine or ntdll patch did!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users