UAC
833 постов
Карма: 27
#1 08 сентября 2009 в 13:02
Люди, не знаете как &quot;выдрать&quot; (сохранить на винте) из основного окна эту форму с текстом? <br /><br /><br /><br />Сама страница. <br />http://kollaps117.ath.cx/ui/?open=30<br /><br />
Берсеркер
2326 постов
Карма: 217
#2 08 сентября 2009 в 15:13
хм, а что там, выделить всё и скопировать в буфер обмена не получается? )))<br />у меня получилось.<br />А если рассматривать вопрос со стороны сабжа, исходник страницы не содержит текста, а подгружает с сервера. Тут моих познаний в html/java не хватает. :(
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
Берсеркер
2326 постов
Карма: 217
#3 08 сентября 2009 в 15:29
This HOWTO will guide you through the necessary steps in order to run Crysis with the latest version of Wine. It assumes that you have no experience with Gentoo. This guide also assumes that you&#39;ve already installed Crysis, either using wine or a windows install (native OS or via virtualization).<br /><br />Before you read any further, make sure your hardware is up to it. You will need at least a fairly recent Geforce 8 series, a dual core CPU and the latest fully-working graphics drivers.<br /><br />The first thing you need to do is install the latest version of Wine with the special Crysis fix patch found here. The following steps show how to do this under Gentoo. If you are on any other distribution you need to get the sources, apply the patch them compile them yourself.<br /><br /><br />--------------------------------------------------------------------------------<br /><br />Before actually starting, install eix if you haven&#39;t done so already. It will help you a lot in the future: <br /><br /># emerge eix<br /><br />Note: eix [package name] is a better alternative for emerge -s [package name]<br /><br />Now that you have the latest version of eix you need to synchronize and find the latest available version of wine: <br /><br /># eix-sync <br />Note: eix-sync automatically runs emerge --sync<br /># eix app-emulation/wine <br /><br />At the time of writing the latest wine version is 1.1.29. If you get any newer version, then simply replace 1.1.29 with your version throughout the following steps.<br /><br />Note that if you are running a stable branch and are not using ~arch then you need to add a keyword for Wine: <br /><br /># echo &quot;app-emulation/wine&quot; &gt;&gt; /usr/portage/package.keywords <br /><br />Now you need to retrieve the Crysis fix patch, and rename it to something conveniable: <br /><br /># wget http://bugs2.winehq.org/attachment.cgi?id=22906<br /># mv attachment.cgi?id=22906 wine_crysis_memory.patch <br /><br />Next copy the patch to /usr/portage/app-emulation/wine/files: <br /><br /># cp wine_crysis_memory.patch /usr/portage/app-emulation/wine/files<br /># cd /usr/portage/app-emulation/wine/<br /># nano wine-1.1.29.ebuild <br /><br />Scroll down until you find src_prepare() {. It should be similar to this: <br /><br />src_prepare() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epatch &quot;${FILESDIR}&quot;/${PN}-1.1.15-winegcc.patch #260726<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epatch_user #282735<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sed -i &#39;/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:&#39; tools/Makefile.in || die<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sed -i &#39;/^MimeType/d&#39; tools/wine.desktop || die #117785<br />}<br /><br />You need to add a call to patch the wine sources with the Crysis patch we just retrieved earlier: <br /><br />src_prepare() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epatch &quot;${FILESDIR}&quot;/${PN}-1.1.15-winegcc.patch #260726<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epatch &quot;${FILESDIR}&quot;/${PN}_crysis_memory.patch<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epatch_user #282735<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sed -i &#39;/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:&#39; tools/Makefile.in || die<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sed -i &#39;/^MimeType/d&#39; tools/wine.desktop || die #117785<br />}<br /><br />After you modify it, save it, exit the text editor and assuming you&#39;re still in /usr/portage/app-emulation/wine/, run: <br /><br /># ebuild wine-1.1.29.ebuild manifest<br /># emerge wine <br /><br />This concludes the Gentoo installation and patching part.<br /><br /><br />--------------------------------------------------------------------------------<br /><br />This guide assumes that you start with a fresh wine prefix (no previous ~/.wine directory) but you are free to use a WINEPREFIX if you want.<br /><br /><br /># wget http://www.kegel.com/wine/winetricks<br /># chmod +x winetricks<br /># sh winetricks vcrun2005sp1 d3dx9 <br /><br />You should now have a working version of Crysis and Crysis Warhead.<br /><br />Only thing you need to do now is start the game. You should see the intro videos then the main menu. You will have to modify the settings a little before you enter the game.<br /><br />Crysis has a few issues regarding the mouse. To minimize the impact of these problems on your gameplay you will have to set in-game mouse sensitivity to maximum.<br /><br />Crysis also can&#39;t display Low or Medium Shaders properly in Wine. You will have to set Shaders to High. You are free to tweak any other settings the way you want. You may also want to enable blood or bind Night Vision to &#39;N&#39; instead of &#39;I&#39;, that is just stupid. ;-)<br /><br />Anti-alias won&#39;t work and VSync doesn&#39;t seem to be an impact on performance though it&#39;s best to turn it off unless really needed. In our case with Crysis, VSync is almost useless because you&#39;ll rarely get a very high FPS with it.<br /><br />Because the Crytek engine could use a couple of optimizations you can get a custom config file. One noteworthy config is CUDAATS and can be found here. This config improves performance while also improving graphics. Note that you do not need a custom config for Warhead as it is already optimized as much as possible.<br /><br />If you want to test the game, open up the developer console (~) and type: <br /><br />con_restricted 0<br />map ice<br /><br />or map airfield if you&#39;re on Warhead<br /><br />That&#39;s all you need to do in order to get Crysis or Crysis Warhead running with the latest version of Wine on Gentoo Linux. Feel free to email me at telliangun@gmail.com if you experience any problems/issues or have any thoughts on the matter. Best of luck and don&#39;t forget to click on the top image if you want to download it as a wallpaper.
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
UAC
833 постов
Карма: 27
#4 08 сентября 2009 в 16:31
[quote author=Берсеркер link=topic=579.msg12490#msg12490 date=1252422823]<br />хм, а что там, выделить всё и скопировать в буфер обмена не получается? )))<br />у меня получилось.<br />А если рассматривать вопрос со стороны сабжа, исходник страницы не содержит текста, а подгружает с сервера. Тут моих познаний в html/java не хватает. :(<br />[/quote]<br />Я вообще-то хотел выдрать код той самой формы по центру страницы... читабельность лучше. <br />Ну да ладно. И так сойдет.