Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 >

mercredi 26 septembre 2012

Wine 1.5.13+: Remove Raw Input support and A pply the entire Raw Input Patch

Wine 1.5.13 supports Raw input for keyboard and mouse. Unfortunately the full Raw Input patch hasn't ported completly in Wine code. Indeed this feature could be usefull for some games but for not all expected games. Below are the expected commands to patch the entire real patch.
# Reverse the patches
wget -q "http://source.winehq.org/git/wine.git/patch/c6fcc0255c3e7a655b157d1e68e5c80fe328bdf2" -O - | patch -p1 -R 
wget -q "http://source.winehq.org/git/wine.git/patch/faaf3d388eb6db8c2594cb11f76a2b1bce77edf3" -O - | patch -p1 -R 
wget -q "http://source.winehq.org/git/wine.git/patch/5befb959dd6f6e3567f0cd4fabd28b3b3b92966d" -O - | patch -p1 -R

# Apply the full patch
wget -q "http://baboonlinuxzone.free.fr/wineWOT/patchs/Patchs%20non%20fonctionnels/raw3.patch" -O - | patch -p1

vendredi 21 septembre 2012

Npgsql 2.0.12.0: patch for querying a slave setting in "Hot Standby" mode for Streaming Replication

Issue: For Streaming Replication if you have a a slave you are supposed to know that for a slave queries like "unlisten ...", "notify..." are disallowed on the slave-side not on the master-side. Npgsql used this type of query.

Fix: Remove these queries from the Npgsql sources. Below is the expected patch I use to do that. This patch could be improved but it works :)

Download

You can download it at http://www.davidgis.fr/download/Hot_Standby_SR.txt

--- Npgsql2.0.12.0.src/src/Npgsql/NpgsqlState.cs        2012-01-12 19:44:55.000000000 +0100
+++ Npgsql2.0.12.0.src_new/src/Npgsql/NpgsqlState.cs    2013-01-07 12:17:04.000000000 +0100
@@ -105,7 +105,7 @@ namespace Npgsql
             //Qlisten notifytest;notify notifytest;
             Stream stm = context.Stream;
             string uuidString = "uuid" + Guid.NewGuid().ToString("N");
-            PGUtil.WriteString("Qlisten " + uuidString + ";notify " + uuidString + ";", stm);
+            PGUtil.WriteString("Qlisten " + uuidString + ";", stm);
             Queue buffer = new Queue();
             byte[] convertBuffer = new byte[36];
             for (;;)
@@ -129,7 +129,7 @@ namespace Npgsql
                                     throw new EndOfStreamException();
                                 case 'Z':
                                     //context.Query(new NpgsqlCommand("UNLISTEN *", context));
-                                    using(NpgsqlCommand cmd = new NpgsqlCommand("UNLISTEN *", context))
+                                    using(NpgsqlCommand cmd = new NpgsqlCommand("-- UNLISTEN *", context))
                                     {
                                         context.Query(cmd);
                                     }
--- Npgsql2.0.12.0.src/src/Npgsql/NpgsqlConnector.cs    2012-01-12 19:44:55.000000000 +0100
+++ Npgsql2.0.12.0.src_new/src/Npgsql/NpgsqlConnector.cs        2013-01-07 12:17:44.000000000 +0100
@@ -401,7 +401,7 @@ namespace Npgsql
         internal void ReleaseRegisteredListen()
         {
             //Query(new NpgsqlCommand("unlisten *", this));
-            using(NpgsqlCommand cmd = new NpgsqlCommand("unlisten *", this))
+            using(NpgsqlCommand cmd = new NpgsqlCommand("-- unlisten *", this))
             {
                 Query(cmd);
             }

Apply the patch

# Download Npgsql 2.0.12 sources and uncompress on the fly
wget -q "http://mirrors.ircam.fr/pub/postgresql/projects/pgFoundry/npgsql/_npgsql2/Npgsql2.0.12/Npgsql2.0.12.0.src.tar.bz2" -O - | tar xjf -

# Go to Npgsql folder
cd Npgsql2.0.12.0.src/

# Download the patch and apply on the fly
wget -q http://www.davidgis.fr/download/Hot_Standby_SR.txt -O - | patch -p1

vendredi 24 août 2012

Playing "DarkSiders II on Linux" using Wine 1.5 (Resolution 1920x1080) is OK - NVIDIA card

Update 3 ( Friday 09/14/012) Steam Version (no-crack) with Patch #3

Update 2 ( Wednesday 09/09/012) : Patch #3 from Vigil Team is out on Steam. This patch was out on Friday 09-07-2012...SKIDROW version was provided in SKIDROW Web Site

. Finally I bought the game on Steam and the 3rd Patch works perfectly adn the game is very impressive. Here are the news:

Update 1 ( Wednesday 08/29/012) : Patch #2 from Vigil Team is out on Steam...SKIDROW version was provided in SKIDROW Web Site

Several days have been needed so I can find the expected patches in order to play this game. I was able to play for the following resolution 1920x1080).

Notice: In order to stay compliant with reporting test on Wine Web Site, I took decision to not publish a report on http://www.winehq.org from my own tests because this is not a compliant version (Steam....). But I guess that the tests should be the same.

Test were done using a NVIDIA card GTX 560 Ti.


DarkSiders II on Ubuntu Precise 12.04.1 ( resolutions has been reduced)

Building Wine 1.5.11 using patches

  1. Download Wine sources for 1.5.11 version
    wget -q http://mirrors.ibiblio.org/wine/source/1.5/wine-1.5.11.tar.bz2 && tar xjf wine-1.5.11.tar.bz2
  2. You weed to download/apply the following patches
    • RawInput Patch so the game can start up: RawInput Patch
    • . Expected else the game can't start up.
    • Crysis 2 Double Buffer Patch: Crysis Double Buffer patch. This is the magical patch so I could bypass the error for CODEREVIEW
    cd wine-1.5.11
    wget http://www.davidgis.fr/download/wine/patches/raw3.patch
    wget http://www.davidgis.fr/download/wine/patches/double_buffer.patch
    patch -p1 < raw.patch
    patch -p1 < double_buffer.patch
    ./tools/make_requests
    
  3. Build and install as usual
    ./configure --prefix=/opt/wine/apps/DarkSiders_2 && make && make install

Winetricks

Be sure that your winetricks file is updated or else download the lastest version.
./winetricks d3dx11_43 d3dx9_36 vcrun2010

Regedit (DirectD3D)

"DirectDrawRenderer"="opengl"
"OffscreenRenderingMode"="fbo"
"VideoMemorySize"="2048"
"VideoPciDeviceID"="0x1200"
"VideoPciVendorID"="0x10de"
I don't know if VideoMemorySize, VideoPciDeviceID, VideoPciVendorID are mandatory but I am used to put these parameters. Expected values depend on your graphic card. If you've got a veryl old video card, then you will be well advised to add VideoMemorySize parameter.

Known issues - Patch is being written by Vigil Team - TESTED!

Refer to
  • artifacts while playing but the game is playable
  • graphical glitches from time to time but the game stays playable.
I guess that since this is the PC version developers from Vigil didn't do the expected jobs to improve graphics. But once again the game is playable and I was a bit suprised to be able to play using a high resolution. I head of Vigil Team is working on a patch to improve graphical glitches. With the patch #2 done by Vigil I have sound now for video scenes :)

Untested patches done by a player

All links below refer to the same patches
  1. http://community.darksiders.com/go/thread/view/138731/29342419/Darksiders_II_MOD_and_Patch_v1.2_Own?pg=last&lang=fr
  2. http://www.youtube.com/watch?v=svDlAQnZUJw&feature=player_embedded
  3. http://www.mediafire.com/?9yb84hbxyzdvksq

mardi 21 août 2012

Lien à garder au chaud

  • http://www.codeweavers.com/compatibility/browse/name/?app_id=4662;tips=1
  • http://code.google.com/p/winetricks/issues/detail?id=220
  • http://bugs.winehq.org/show_bug.cgi?id=30845