How to load hacks please ?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Autogire
Newbie
Newbie
Posts: 4
Joined: Tue Apr 30, 2013 11:38 am

How to load hacks please ?

Post by Autogire »

Hello,
I play battlefront II under linux and I have a issue with the loading of maps ( very long).
I found a hack to resolve this problem here :
http://wine.1045685.n5.nabble.com/In-pr ... 61227.html
and the file : http://wine.1045685.n5.nabble.com/attac ... ed-hac.txt
I don't know how to put it in wine.
Can you help me ?
Thank you
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to load hacks please ?

Post by dimesio »

You have to patch the source code and build Wine yourself.
http://wiki.winehq.org/FAQ#head-719d19c ... c2a301ce52

That patch is over a year old, so it may not apply to current Wine.
Autogire
Newbie
Newbie
Posts: 4
Joined: Tue Apr 30, 2013 11:38 am

Re: How to load hacks please ?

Post by Autogire »

Ok thank you
I have installed dependencies and now i'm downloading wine 1.3 from january 2012.
I should rename my Hack-for-in-process-wine-server-a.k.a.-Dirty-speed-hac.txt in .patch if I want it works ?
( foo.patch is the name of the patch in the example isn't it ? )
Autogire
Newbie
Newbie
Posts: 4
Joined: Tue Apr 30, 2013 11:38 am

Re: How to load hacks please ?

Post by Autogire »

Ok I built wine and it works.
Now I have to set set the environment variable
DIRTYNASTYSPEEDHACK but I don't know how to do it ?
Thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to load hacks please ?

Post by dimesio »

Ask the person who wrote it.
bookerg
Newbie
Newbie
Posts: 4
Joined: Sun Apr 28, 2013 4:14 pm

Re: How to load hacks please ?

Post by bookerg »

Would you just run "wine <wine-source>/programs/cmd.exe.so" from a terminal (sans speech marks) and then type "SET DIRTYNASTYSPEEDHACK=xxxx" ?

(I'm not sure)
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to load hacks please ?

Post by dimesio »

Normally setting a Wine environment variable follows the pattern

Code: Select all

NAMEOFVARIABLE=value wine program.exe
http://www.winehq.org/docs/wineusr-guide/x258

In the case of this patch the name of the variable is apparently DIRTYNASTYSPEEDHACK but I have no idea what the value should be.
Autogire
Newbie
Newbie
Posts: 4
Joined: Tue Apr 30, 2013 11:38 am

Re: How to load hacks please ?

Post by Autogire »

I'm still trying to do it.
I will e-mail to him the forum conversation
Locked