Welcome, guest. You can be a Login или register
Author
Topic title
UAC
Offline
Бывший UAC и Sodomizer
833 posts
Karma 27
Люди, не знаете как "выдрать" (сохранить на винте) из основного окна эту форму с текстом?



Сама страница.
http://kollaps117.ath.cx/ui/?open=30

Берсеркер
Offline
Суровый челябинский программист
2258 posts
Karma 200
хм, а что там, выделить всё и скопировать в буфер обмена не получается? )))
у меня получилось.
А если рассматривать вопрос со стороны сабжа, исходник страницы не содержит текста, а подгружает с сервера. Тут моих познаний в html/java не хватает. :(
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
Берсеркер
Offline
Суровый челябинский программист
2258 posts
Karma 200
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've already installed Crysis, either using wine or a windows install (native OS or via virtualization).

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.

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.


--------------------------------------------------------------------------------

Before actually starting, install eix if you haven't done so already. It will help you a lot in the future:

# emerge eix

Note: eix [package name] is a better alternative for emerge -s [package name]

Now that you have the latest version of eix you need to synchronize and find the latest available version of wine:

# eix-sync
Note: eix-sync automatically runs emerge --sync
# eix app-emulation/wine

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.

Note that if you are running a stable branch and are not using ~arch then you need to add a keyword for Wine:

# echo "app-emulation/wine" >> /usr/portage/package.keywords

Now you need to retrieve the Crysis fix patch, and rename it to something conveniable:

# wget http://bugs2.winehq.org/attachment.cgi?id=22906
# mv attachment.cgi?id=22906 wine_crysis_memory.patch

Next copy the patch to /usr/portage/app-emulation/wine/files:

# cp wine_crysis_memory.patch /usr/portage/app-emulation/wine/files
# cd /usr/portage/app-emulation/wine/
# nano wine-1.1.29.ebuild

Scroll down until you find src_prepare() {. It should be similar to this:

src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
epatch_user #282735
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
}

You need to add a call to patch the wine sources with the Crysis patch we just retrieved earlier:

src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
epatch "${FILESDIR}"/${PN}_crysis_memory.patch
epatch_user #282735
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
}

After you modify it, save it, exit the text editor and assuming you're still in /usr/portage/app-emulation/wine/, run:

# ebuild wine-1.1.29.ebuild manifest
# emerge wine

This concludes the Gentoo installation and patching part.


--------------------------------------------------------------------------------

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.


# wget http://www.kegel.com/wine/winetricks
# chmod +x winetricks
# sh winetricks vcrun2005sp1 d3dx9

You should now have a working version of Crysis and Crysis Warhead.

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.

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.

Crysis also can'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 'N' instead of 'I', that is just stupid. ;-)

Anti-alias won't work and VSync doesn't seem to be an impact on performance though it's best to turn it off unless really needed. In our case with Crysis, VSync is almost useless because you'll rarely get a very high FPS with it.

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.

If you want to test the game, open up the developer console (~) and type:

con_restricted 0
map ice

or map airfield if you're on Warhead

That'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't forget to click on the top image if you want to download it as a wallpaper.
Машина несла меня через неведомые районы Галактики сквозь пространство математической реальности быстрее скорости света. (C) Фред Саберхаген.
UAC
Offline
Бывший UAC и Sodomizer
833 posts
Karma 27
[quote author=Берсеркер link=topic=579.msg12490#msg12490 date=1252422823]
хм, а что там, выделить всё и скопировать в буфер обмена не получается? )))
у меня получилось.
А если рассматривать вопрос со стороны сабжа, исходник страницы не содержит текста, а подгружает с сервера. Тут моих познаний в html/java не хватает. :(
[/quote]
Я вообще-то хотел выдрать код той самой формы по центру страницы... читабельность лучше.
Ну да ладно. И так сойдет.