Het forum

[Script] Civilization V

Teehee

Auteur Antwoorden
Jump to the page: 1 - 2 - 3 - 4 - 5
Ronin DUSETTE Zaterdag 15 Juni\ 2013 om 22:50
Ronin DUSETTE
Admin

Here it is. If you have any graphic slowdowns, you might need to set your video memory in Configure -> Display tab. I didnt have to do that, and it worked fantastic. No issues at all.

[code language=playonlinux]
#!/bin/bash
# Date : (2013-06-15)
# Last revision : (2013-06-15)
# Distribution used to test : Kubuntu 12.04.2 LTS x64
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.2.1
    
    
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
PREFIX="Civ5"
WINEVERSION="1.4.1"
TITLE="Civilization V"
EDITOR="Take-Two Interactive"
GAME_URL="http://www.civilization.com/"
AUTHOR="DJYoshaBYD"
    
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
    
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
# Create Prefix
POL_SetupWindow_browse "$(eval_gettext 'Please select $TITLE install file:')" "$TITLE"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
    
#Dependencies
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_d3dx9
POL_Call POL_Install_msxml3
    
# Configuration
Set_OS "winxp"
Set_SoundDriver "alsa"
    
# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
    
# Create Shortcuts
POL_Shortcut "CivilizationV.exe" "$TITLE"
   
POL_SetupWindow_Close
exit 0
[/code]

Screenshots:


Aangepast door RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Zaterdag 15 Juni\ 2013 om 22:58
Ronin DUSETTE
Admin

Its signed and now in the official software list. Feel free to test and post here if there are any issues.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Zondag 16 Juni\ 2013 om 0:46
petch
Developer

Hi,
The POL_SetupWindow_message line 45 is a bit redundant with the message of POL_Wine_WaitBefore on the next line...
Other than that it look ok.
Ronin DUSETTE Zondag 16 Juni\ 2013 om 1:25
Ronin DUSETTE
Admin

Ok. Ill remove that. Im not sure why I put that in either. Its been a little bit since I wrote my last script. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Zondag 16 Juni\ 2013 om 1:31
Ronin DUSETTE
Admin

Ill do the resources tomorrow AM before work and get them posted for upload. Too lazy today. lol

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Dinsdag 18 Juni\ 2013 om 18:43
Ronin DUSETTE
Admin

petch Dinsdag 18 Juni\ 2013 om 19:28
petch
Developer

Hi Josh,
I uploaded the resources, it should be ok now.

By the way the prefix name is a bit short (the code quality tests agree with me). For the sake of avoiding any collision prefer longer prefix names.
Ronin DUSETTE Dinsdag 18 Juni\ 2013 om 20:50
Ronin DUSETTE
Admin

Ok. Ill change it to the full game name. Thanks, Pierre.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Dinsdag 18 Juni\ 2013 om 23:16
petch
Developer

Nice. I renamed left.jpg and top.jpg directory accordingly (actually that's how I thought about prefix name in the first place :) )
Ronin DUSETTE Dinsdag 18 Juni\ 2013 om 23:48
Ronin DUSETTE
Admin

Cool beans. Hopefully this script will help some people out. I forgot how good of a game it was. lol

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
steve723 Donderdag 11 Juli 2013 om 23:14
steve723Anonymous

Does this script work with Steam version? Will the intro video play? I tried installing it to my Steam > Skyrim drive and the game works most of the time but crashes every few days (probably some kind of GPU > wine > mesa hiccup, I use Intel GMA 45). The intro video does not play. I can play it manualy outside the game. It looks like wine dosn't know to use the dragon player.

kubuntu Raring Ringtail
Ronin DUSETTE Vrijdag 12 Juli 2013 om 8:47
Ronin DUSETTE
Admin

Ahh. Yeah. intel gpus are not that good.

The script ran great for me when I tested it. Dont install it into your Skyrim virtual drive. Install it directly from the script. It will create its own virtual drive.

As for doing it through Steam, I dont have that much experience with scripting for Steam versions, but Im sure that Petch would be able to lend us a hand in implementing that. He will most likely chime in (please. haha) and see what we can do with that.

Can you simply download the whole installer from steam, but not install it, then run the script, choosing the steam version that you downloaded? I think you can, because I think only SteamPlay (I think) downloads playable chunks at a time, but you should be able to download the whole thing using Steam for Linux or even Steam through POL and just download the installer, and use that when the script asks?

Forgive me for my Steam ignorance. Im new to Steam in general.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
steve723 Zaterdag 13 Juli 2013 om 16:50
steve723Anonymous

Hmm a challenge. I have never tried this sort of thing before, but I like trying to get things to work using Linux. I hate Windows, so getting things to run properly in Linux gives me another reason to stay in Kubuntu instead of having to run that awful windo$ crap. by the way I just got a free copy of Civ 4 from Steam and that also dosn't work via playonlinux! Lots of failed xml file load attemps. The games runs but looks terrible and is very hard to play. It can't do many things it should do.
Ronin DUSETTE Zaterdag 13 Juli 2013 om 17:04
Ronin DUSETTE
Admin

Thats odd. I mean, if all of these scripts were going bad, we would hear about it more often.

that also dosn't work via playonlinux!

Citeer


I dont think I need to remind you again about the exclamation points and snide remarks, do I? I run all sorts of stuff on POL with EASE, so something must be going on with the system setup.

As usual, post computer specs, graphics card and driver, linux version, debug output, etc etc.. And we will go from there. This thread is also only for Civ 5. If there is an issue with Civ 4, get the information I requested and start a new thread, and we will see what we can do about getting it running for you.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Zaterdag 13 Juli 2013 om 19:23
Ronin DUSETTE
Admin

So, did you even try to install Civ 5? The only reason I wrote it is because someone was crying about us not having a script for it. If you run civ 5 using this script it WILL WORK, IF you have the correct drivers and libraries installed on your linux system, such as winbind, curl, gfx drivers, etc..

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
steve723 Zaterdag 13 Juli 2013 om 21:08
steve723Anonymous

Thats odd. I mean, if all of these scripts were going bad, we would hear about it more often.


that also dosn't work via playonlinux!

Citeer


I dont think I need to remind you again about the exclamation points and snide remarks, do I? I run all sorts of stuff on POL with EASE, so something must be going on with the system setup.

As usual, post computer specs, graphics card and driver, linux version, debug output, etc etc.. And we will go from there. This thread is also only for Civ 5. If there is an issue with Civ 4, get the information I requested and start a new thread, and we will see what we can do about getting it running for you.

Quote from DJYoshaBYD


No No you misunderstood, I was talking about the game itself not playonlinux.  Sorry I used a bad choice of words. I was installing manually not using a script. I also installed to an existing VD. I found a script for Civ 4 in the testing section of the POL scripts and I am going to give that a try. I'll  stop criticizing games for not working since its too easy to look like I am criticizing POL. Sorry for the bad choice of words. I just like that kind of game so much and then when the game dosn't work I tend to say things about the game that might look like complaning about POL.  I guess the best way to solve that is not to post any more game not working complants but rather just post what is hapening or not happening. Like you said above.

Now to try that script...
steve723 Woensdag 17 Juli 2013 om 18:32
steve723Anonymous

I have tried to gointo Steam and download only but their dosn't seem to be an option for that, or at least I haven't figured out how yet. I think the script needs to install steam and then the program like the Skyrim installer POL script does.
Ronin DUSETTE Donderdag 18 Juli 2013 om 2:25
Ronin DUSETTE
Admin

Yeah, this is for Civ 5. NOT civ 4. Please keep Civ 4 talk in the appropriate thread. Steam support has not been added to this, as I had the disc, and did it from that, and not steam.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
alcorsepol Maandag 22 Juli 2013 om 11:02
alcorsepolAnonymous

@DJYoshaBYD: I have it on Steam as well as the DVD, so I could add Steam support to the script if you wish :)
Ronin DUSETTE Maandag 22 Juli 2013 om 20:42
Ronin DUSETTE
Admin

Go for it. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts