Rise of Nations
Informations
Créateur | Messages |
---|---|
ekultails
|
InformationCet installateur a été accepté par l'équipe. InformationsPlate-formes : Retours d'expérience3 1 DescriptionThis script supports:
Please note, that it does NOT support Rise of Nations: Extended Edition from Steam. There is no known workaround for it yet. Since the game engine was redesigned to utilize DirectX 10 instead of DirectX 9 there are some Wine compatibility issues. This relies on Wine 1.7.18, a version known to work really well with Rise of Nations. The additional depdencies required for sound and video to work properly are: directmusic, dsound, mfc40, mfc42, msvcirt, msxml4, and vcrun6. Outside of Wine, the Rise of Nations configuration file at "drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations/rise2.ini" is tweaked. The introduction and main menu videos do not work so they are disabled. That file can also be used for turning on/off fullscreen and setting any custom resolution.
Captures d'écranCode source#!/bin/bash # Rise of Nations - Play On Linux script # Version: 0.2.0-2 # Author: ekultails@gmail.com # Website: https://github.com/ekultails/playonlinux [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # enable debugging POL_Debug_Init # set global variables TITLE="Rise of Nations" PREFIX="rise_of_nations" GAME_PATH="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Rise of Nations" # start the installation window POL_SetupWindow_Init POL_SetupWindow_presentation "$TITLE" "Big Huge Games" "http://bighugegames.com" "EkulTails" "$PREFIX" # tell the user's about compatibility; # the Rise of Nations: Extended Edition requires DirectX 10 or 11 # which Wine does not supprt either very well right now POL_SetupWindow_message "$(eval_gettext 'This script is incompatible with the Steam version of Rise of Nations the Extended Edition. All other versions should work.')" "$TITLE" POL_SetupWindow_browse "$(eval_gettext 'Select the Setup.exe file')" "$TITLE" # use our unique prefix for installing Wine POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.8.4" # install required depedencies in the Wine environment # the installer needs mfc42 which first requires vcrun6; # it fixes the error: # "Cannot load pidgin.dll" POL_CALL POL_Install_vcrun6 POL_Call POL_Install_mfc42 # these are required for music to play properly # (otherwise it plays too fast) POL_Call POL_Install_directmusic POL_Call POL_Install_dsound # needed for multiplayer POL_Call POL_Install_directplay # run the RoN installation and wait for it to complete POL_Wine --ignore-errors "$APP_ANSWER" POL_Wine_WaitExit "$TITLE" POL_SetupWindow_question "$(eval_gettext 'Are you also installing a seperate Thrones and Partiots expansion CD?')" "$TITLE" if [[ $APP_ANSWER == "TRUE" ]]; then POL_SetupWindow_browse "Select the Setup.exe file" "$TITLE" POL_Wine --ignore-errors "$APP_ANSWER" POL_Wine_WaitExit "$TITLE" fi # this file needs a few tweaks for RoN to run smoothly rise2ini_path="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations" rise2ini="$rise2ini_path/rise2.ini" # create the rise2.ini file if it does not exist already if [[ ! -d "$rise2ini_path" ]]; then mkdir -p "$rise2ini_path" fi if [[ ! -f $rise2ini ]]; then touch "$rise2ini" rise2ini_created=true fi # delete these entries, if they exist sed -i '/ForceGDICursor=/d' "$rise2ini" sed -i '/ForceLowCPUBackgroundVid=/d' "$rise2ini" sed -i '/SkipIntroMovies=/d' "$rise2ini" sed -i '/FullScreen=/d' "$rise2ini" # create a new settings block if it does not exist if [[ "$rise2ini_created" == "true" ]]; then cat <<EOF >> "$rise2ini" [RISE OF NATIONS] EOF fi # append the necessary setings cat <<EOF >> "$rise2ini" ForceGDICursor=1 SkipIntroMovies=1 ForceLowCPUBackgroundVid=1 FullScreen=1 EOF # create the shortcut and exit if [[ -f "$GAME_PATH/patriots.exe" ]]; then POL_Shortcut "patriots.exe" "$TITLE" else POL_Shortcut "rise.exe" "$TITLE" fi POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContribuerMembre | Messages |
frbeckenbauer | Lundi 3 Février 2020 à 10:49 |
frbeckenbauer
|
MessagesLAN games do not work. I have tried this using multiple wine versions and two different systems. Rise of Nations Gold Edition. 005e:fixme:winsock:WS_setsockopt SO_SNDBUF ignoring request to disable send buffering Réponses |
kylebonnici | Dimanche 27 Aoüt 2017 à 22:26 |
kylebonnici
|
InformationCette mise à jour a été acceptée par l'équipe MessagesWith the version below LAN games words as well :) Differences@@ -0,0 +1,103 @@ +#!/bin/bash +# Rise of Nations - Play On Linux script +# Version: 0.2.0-2 +# Author: ekultails@gmail.com +# Website: https://github.com/ekultails/playonlinux + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# enable debugging +POL_Debug_Init + +# set global variables +TITLE="Rise of Nations" +PREFIX="rise_of_nations" +GAME_PATH="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Rise of Nations" + +# start the installation window +POL_SetupWindow_Init +POL_SetupWindow_presentation "$TITLE" "Big Huge Games" "http://bighugegames.com" "EkulTails" "$PREFIX" + +# tell the user's about compatibility; +# the Rise of Nations: Extended Edition requires DirectX 10 or 11 +# which Wine does not supprt either very well right now +POL_SetupWindow_message "$(eval_gettext 'This script is incompatible with the Steam version of Rise of Nations the Extended Edition. All other versions should work.')" "$TITLE" + +POL_SetupWindow_browse "$(eval_gettext 'Select the Setup.exe file')" "$TITLE" + +# use our unique prefix for installing Wine +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "1.8.4" + +# install required depedencies in the Wine environment +# the installer needs mfc42 which first requires vcrun6; +# it fixes the error: +# "Cannot load pidgin.dll" +POL_CALL POL_Install_vcrun6 +POL_Call POL_Install_mfc42 +# these are required for music to play properly +# (otherwise it plays too fast) +POL_Call POL_Install_directmusic +POL_Call POL_Install_dsound + +# needed for multiplayer +POL_Call POL_Install_directplay + +# run the RoN installation and wait for it to complete +POL_Wine --ignore-errors "$APP_ANSWER" +POL_Wine_WaitExit "$TITLE" + +POL_SetupWindow_question "$(eval_gettext 'Are you also installing a seperate Thrones and Partiots expansion CD?')" "$TITLE" + +if [[ $APP_ANSWER == "TRUE" ]]; then + POL_SetupWindow_browse "Select the Setup.exe file" "$TITLE" + POL_Wine --ignore-errors "$APP_ANSWER" + POL_Wine_WaitExit "$TITLE" +fi + +# this file needs a few tweaks for RoN to run smoothly +rise2ini_path="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations" +rise2ini="$rise2ini_path/rise2.ini" + +# create the rise2.ini file if it does not exist already +if [[ ! -d "$rise2ini_path" ]]; then + mkdir -p "$rise2ini_path" + +fi + +if [[ ! -f $rise2ini ]]; then + touch "$rise2ini" + rise2ini_created=true +fi + +# delete these entries, if they exist +sed -i '/ForceGDICursor=/d' "$rise2ini" +sed -i '/ForceLowCPUBackgroundVid=/d' "$rise2ini" +sed -i '/SkipIntroMovies=/d' "$rise2ini" +sed -i '/FullScreen=/d' "$rise2ini" + +# create a new settings block if it does not exist +if [[ "$rise2ini_created" == "true" ]]; then + cat <<EOF >> "$rise2ini" +[RISE OF NATIONS] +EOF +fi + +# append the necessary setings +cat <<EOF >> "$rise2ini" +ForceGDICursor=1 +SkipIntroMovies=1 +ForceLowCPUBackgroundVid=1 +FullScreen=1 +EOF + +# create the shortcut and exit +if [[ -f "$GAME_PATH/patriots.exe" ]]; then + POL_Shortcut "patriots.exe" "$TITLE" +else + POL_Shortcut "rise.exe" "$TITLE" +fi + +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code source#!/bin/bash # Rise of Nations - Play On Linux script # Version: 0.2.0-2 # Author: ekultails@gmail.com # Website: https://github.com/ekultails/playonlinux [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # enable debugging POL_Debug_Init # set global variables TITLE="Rise of Nations" PREFIX="rise_of_nations" GAME_PATH="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Rise of Nations" # start the installation window POL_SetupWindow_Init POL_SetupWindow_presentation "$TITLE" "Big Huge Games" "http://bighugegames.com" "EkulTails" "$PREFIX" # tell the user's about compatibility; # the Rise of Nations: Extended Edition requires DirectX 10 or 11 # which Wine does not supprt either very well right now POL_SetupWindow_message "$(eval_gettext 'This script is incompatible with the Steam version of Rise of Nations the Extended Edition. All other versions should work.')" "$TITLE" POL_SetupWindow_browse "$(eval_gettext 'Select the Setup.exe file')" "$TITLE" # use our unique prefix for installing Wine POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.8.4" # install required depedencies in the Wine environment # the installer needs mfc42 which first requires vcrun6; # it fixes the error: # "Cannot load pidgin.dll" POL_CALL POL_Install_vcrun6 POL_Call POL_Install_mfc42 # these are required for music to play properly # (otherwise it plays too fast) POL_Call POL_Install_directmusic POL_Call POL_Install_dsound # needed for multiplayer POL_Call POL_Install_directplay # run the RoN installation and wait for it to complete POL_Wine --ignore-errors "$APP_ANSWER" POL_Wine_WaitExit "$TITLE" POL_SetupWindow_question "$(eval_gettext 'Are you also installing a seperate Thrones and Partiots expansion CD?')" "$TITLE" if [[ $APP_ANSWER == "TRUE" ]]; then POL_SetupWindow_browse "Select the Setup.exe file" "$TITLE" POL_Wine --ignore-errors "$APP_ANSWER" POL_Wine_WaitExit "$TITLE" fi # this file needs a few tweaks for RoN to run smoothly rise2ini_path="$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations" rise2ini="$rise2ini_path/rise2.ini" # create the rise2.ini file if it does not exist already if [[ ! -d "$rise2ini_path" ]]; then mkdir -p "$rise2ini_path" fi if [[ ! -f $rise2ini ]]; then touch "$rise2ini" rise2ini_created=true fi # delete these entries, if they exist sed -i '/ForceGDICursor=/d' "$rise2ini" sed -i '/ForceLowCPUBackgroundVid=/d' "$rise2ini" sed -i '/SkipIntroMovies=/d' "$rise2ini" sed -i '/FullScreen=/d' "$rise2ini" # create a new settings block if it does not exist if [[ "$rise2ini_created" == "true" ]]; then cat <<EOF >> "$rise2ini" [RISE OF NATIONS] EOF fi # append the necessary setings cat <<EOF >> "$rise2ini" ForceGDICursor=1 SkipIntroMovies=1 ForceLowCPUBackgroundVid=1 FullScreen=1 EOF # create the shortcut and exit if [[ -f "$GAME_PATH/patriots.exe" ]]; then POL_Shortcut "patriots.exe" "$TITLE" else POL_Shortcut "rise.exe" "$TITLE" fi POL_SetupWindow_Close exit 0 RéponsesMercredi 3 Juillet 2019 à 21:57
|
cromat | Samedi 8 Juillet 2017 à 8:59 |
cromat
|
MessagesThanks for great configuration. I have made some additional changes after installing with this script: If your your mouse is not working inside game configuration (like mine) and you still want to play solo, I have uploaded default .dat file in with 8 players (tougher), surrvival of the fittest, random land map, no wonder victory etc.
You need to put it in your play on linux virtual drive: drive_c/users/mat/Application Data/Microsoft Games/Rise of Nations/ and rename .dat file to $YourRoNProfileName.dat You can change any configuration inside it in any editor if you want.
Another thing that I had issues with is Fullcreen on Ubuntu 16.04 (Unity) For Fullscreen game, next requirements are needed: On your playonlinux virtual drive, you need to change rise.ini or rise2.ini (if you play Thrones and Patriots) in your Rise of Nations folder. You need to set these parameters: Windowed Width=1366 You need to set width and height to size of your resolution. Next thing is wine configuration on RoN virtual drive. In graphics tab, you only need to set Automatically capture the mouse in full-screen windows and disable all other checkboxes like in picture: And that's it! Happy gaming :) Réponses |
ekultails | Samedi 19 Mars 2016 à 16:56 |
ekultails
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesThis script has been tested to be working. Test Environment:
Installation/Gameplay Screenshots:
Icons:
Differences@@ -0,0 +1,87 @@ +#!/bin/bash +# Rise of Nations - Play On Linux script +# Version: 0.1.0 +# Installation Requirements: +# wine 1.7.18, directmusic, dsound, mfc40, mfc42, msvcirt, msxml4, vcrun6 +# Author: ekultails@gmail.com +# Website: https://github.com/ekultails/playonlinux + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +# enable debugging +POL_Debug_Init + +# set global variables +TITLE="Rise of Nations" +PREFIX="RoN" +FULL_POL_PREFIX="$HOME/.PlayOnLinux/wineprefix/$PREFIX" +GAME_PATH="$FULL_POL_PREFIX/drive_c/Program Files/Microsoft Games/Rise of Nations" + +# start the installation window +POL_SetupWindow_Init +POL_SetupWindow_presentation "$TITLE" "Big Huge Games" "http://bighugegames.com" "EkulTails" "$PREFIX" + +# tell the user's about compatibility +POL_SetupWindow_message "This PlayOnLinux script will work with any version of the non-Steam Rise of Nations game. That includes the base Rise of Nations game, the Thrones and Patriots expansion, and the Gold Edition. The Steam version does not work because the game was rebuilt to use DirectX10 instead of DirectX9. Better support for DirectX10 in Wine is still a work-in-progress." "Compatibility" + +# locate the CD mount point and then check to see if the required executable exists +POL_SetupWindow_cdrom +POL_SetupWindow_check_cdrom "Setup.exe" + +# use our unique prefix for installing Wine +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "1.7.18" + +# install required depedencies in the Wine environment +POL_Call POL_Install_directmusic +POL_Call POL_Install_dsound +POL_Call POL_Install_mfc40 +POL_Call POL_Install_mfc42 +POL_CALL POL_Install_msxml4 +POL_CALL POL_Install_vcrun6 + +# inform the user about the false-positive PoL error +POL_SetupWindow_message "When the installation starts, PlayOnLinux will throw a false-positive error saying Wine crashed. Click \"Next\" and then continue on with the installation. After it is installed, close the launcher. DO NOT START THE GAME." "Read Before Installation" + +# run the RoN installation and wait for it to complete +POL_Wine_WaitBefore "$TITLE" +POL_Wine "$CDROM/Setup.exe" +POL_Wine_WaitExit "$TITLE" + +POL_SetupWindow_question "Are you also installing a seperate Thrones and Partiots expansion CD? Select \"No\" if you are only installing the base Rise of Nations game or the Rise of Nations: Gold Edition." "Expansion Pack Installation" +if [[ $APP_ANSWER == "TRUE" ]]; then + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "Setup.exe" + POL_Wine_WaitBefore "$TITLE" + POL_Wine "$CDROM/Setup.exe" + POL_Wine_WaitExit "$TITLE" +fi + +# this file needs a few tweaks for RoN to run smoothly +rise2ini_path="$FULL_POL_PREFIX/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations" +rise2ini="$rise2ini_path/rise2.ini" +# create the rise2.ini file if it does not exist already +if [[ ! -d "$rise2ini_path" ]]; then + mkdir -p "$rise2ini_path" +fi +if [[ ! -f $rise2ini ]]; then + touch "$rise2ini" +fi +# delete these entries, if they exist +sed -i '/ForceGDICursor=/d' "$rise2ini" +sed -i '/ForceLowCPUBackgroundVid=/d' "$rise2ini" +sed -i '/SkipIntroMovies=/d' "$rise2ini" +# add the necessary values +echo -e "[RISE OF NATIONS]\nForceGIDCursor=1\nSkipIntroMovies=1\nForceLowCPUBackgroundVid=1\n" >> "$rise2ini" + +# create the shortcut and exit +if [[ -f "$GAME_PATH/patriots.exe" ]]; then + POL_Shortcut "patriots.exe" "$TITLE" +else + POL_Shortcut "rise.exe" "$TITLE" +fi +POL_SetupWindow_message "Installation successfully completed. Please submit any bugs to \"https://github.com/ekultails/playonlinux\". Enjoy!" "Rise of Nations Installed." +POL_SetupWindow_Close +exit 0 +Status API Training Shop Blog About Nouveau code source#!/bin/bash # Rise of Nations - Play On Linux script # Version: 0.1.0 # Installation Requirements: # wine 1.7.18, directmusic, dsound, mfc40, mfc42, msvcirt, msxml4, vcrun6 # Author: ekultails@gmail.com # Website: https://github.com/ekultails/playonlinux [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # enable debugging POL_Debug_Init # set global variables TITLE="Rise of Nations" PREFIX="RoN" FULL_POL_PREFIX="$HOME/.PlayOnLinux/wineprefix/$PREFIX" GAME_PATH="$FULL_POL_PREFIX/drive_c/Program Files/Microsoft Games/Rise of Nations" # start the installation window POL_SetupWindow_Init POL_SetupWindow_presentation "$TITLE" "Big Huge Games" "http://bighugegames.com" "EkulTails" "$PREFIX" # tell the user's about compatibility POL_SetupWindow_message "This PlayOnLinux script will work with any version of the non-Steam Rise of Nations game. That includes the base Rise of Nations game, the Thrones and Patriots expansion, and the Gold Edition. The Steam version does not work because the game was rebuilt to use DirectX10 instead of DirectX9. Better support for DirectX10 in Wine is still a work-in-progress." "Compatibility" # locate the CD mount point and then check to see if the required executable exists POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Setup.exe" # use our unique prefix for installing Wine POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "1.7.18" # install required depedencies in the Wine environment POL_Call POL_Install_directmusic POL_Call POL_Install_dsound POL_Call POL_Install_mfc40 POL_Call POL_Install_mfc42 POL_CALL POL_Install_msxml4 POL_CALL POL_Install_vcrun6 # inform the user about the false-positive PoL error POL_SetupWindow_message "When the installation starts, PlayOnLinux will throw a false-positive error saying Wine crashed. Click \"Next\" and then continue on with the installation. After it is installed, close the launcher. DO NOT START THE GAME." "Read Before Installation" # run the RoN installation and wait for it to complete POL_Wine_WaitBefore "$TITLE" POL_Wine "$CDROM/Setup.exe" POL_Wine_WaitExit "$TITLE" POL_SetupWindow_question "Are you also installing a seperate Thrones and Partiots expansion CD? Select \"No\" if you are only installing the base Rise of Nations game or the Rise of Nations: Gold Edition." "Expansion Pack Installation" if [[ $APP_ANSWER == "TRUE" ]]; then POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Setup.exe" POL_Wine_WaitBefore "$TITLE" POL_Wine "$CDROM/Setup.exe" POL_Wine_WaitExit "$TITLE" fi # this file needs a few tweaks for RoN to run smoothly rise2ini_path="$FULL_POL_PREFIX/drive_c/users/$USER/Application Data/Microsoft Games/Rise of Nations" rise2ini="$rise2ini_path/rise2.ini" # create the rise2.ini file if it does not exist already if [[ ! -d "$rise2ini_path" ]]; then mkdir -p "$rise2ini_path" fi if [[ ! -f $rise2ini ]]; then touch "$rise2ini" fi # delete these entries, if they exist sed -i '/ForceGDICursor=/d' "$rise2ini" sed -i '/ForceLowCPUBackgroundVid=/d' "$rise2ini" sed -i '/SkipIntroMovies=/d' "$rise2ini" # add the necessary values echo -e "[RISE OF NATIONS]\nForceGIDCursor=1\nSkipIntroMovies=1\nForceLowCPUBackgroundVid=1\n" >> "$rise2ini" # create the shortcut and exit if [[ -f "$GAME_PATH/patriots.exe" ]]; then POL_Shortcut "patriots.exe" "$TITLE" else POL_Shortcut "rise.exe" "$TITLE" fi POL_SetupWindow_message "Installation successfully completed. Please submit any bugs to \"https://github.com/ekultails/playonlinux\". Enjoy!" "Rise of Nations Installed." POL_SetupWindow_Close exit 0 Status API Training Shop Blog About Réponses |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com