Forums

Dota 2 - Steam

Script done only need to up images file

Auteur Réponses
luyz25 Dimanche 2 Juin 2013 à 16:14
luyz25

Hi i'm working the script for Dota 2 in the Steam, and i done the script and tested the game only need to up the images file.

The Script:


#!/bin/bash
# Date : (2013-06-01 02:03)
# Wine version used : 1.5.28
# Distribution used to test : Ubuntu 12.04 x64
# Author : luyz25
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Dota 2"
SHORTCUT_NAME="Dota 2"
PREFIX="Dota2"
EDITOR="Steam"
GAME_URL="http://store.steampowered.com/app/570/"
AUTHOR="luyz25"
WORKING_WINE_VERSION="1.5.28"
GAME_VMS="256"
STEAM_ID="570"
 
# Starting the script
POL_GetSetupImages "https://dl.dropboxusercontent.com/u/64225173/Dota/top.jpg" "https://dl.dropboxusercontent.com/u/64225173/Dota/left.jpg" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Installing mandatory dependencies
POL_Call POL_Install_steam
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "steam://rungameid/$STEAM_ID -nod3d9ex"
 
# Begin game installation
# Steam install
POL_SetupWindow_message "$(eval_gettext 'Now run the game and wait for the steam installation, when the installation is done, you can play the game!')"
 
POL_SetupWindow_Close

exit 0

And the images for uploaded:

  

Edité par luyz25

Xodetaetl Dimanche 2 Juin 2013 à 18:16
XodetaetlAnonymous

Nice, I just installed the game and was pondering making a script. ^^

I got a "File not found" error at:
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID

Other remarks:
- You can put your script between {code language=playonlinux}{/code} BB tags.
- "Close COMPLETELY he Steam interface", lacks a "t".

Edit: I'd also advise to follow the naming convention for the prefix by naming it "Dota2" instead of "DOTA2".

Edité par Xodetaetl

petch Dimanche 2 Juin 2013 à 18:32
petch

Hi,
From what I've been reading the game requires a minimum of 128MB video ram, not 1GB. Probably mistaken required system memory for video ram memory or something.
luyz25 Dimanche 2 Juin 2013 à 20:59
luyz25

I'm changing thiss minimum and i'm working in this erro, is something i canged and i will back the configuration

Edité par luyz25

luyz25 Dimanche 2 Juin 2013 à 23:16
luyz25

Done, i don't know why for the dota 2 got this erro...the code is right but don't start in the installation...i remove the start of the script and now works.

I changed the first post! Now is right!

and for the images is uploaded to playonlinux server?
Xodetaetl Lundi 3 Juin 2013 à 2:10
XodetaetlAnonymous

I have an error due to low virtual video memory. I had to increase it manually in the registry (HKEY_CURRENT_USER/Software/Wine/DIrect3D/VideoMemorySize), it was set to 256Mo.
I though "POL_SetupWindow_VMS" took care of this but apparently it doesn't? Actually it doesn't ask me to enter my memory size during installation, like the documentation says it does.

Here's the 48x and 22x icons:

luyz25 Lundi 3 Juin 2013 à 2:15
luyz25

hm...OK

How i use this icons in the in the script?
Xodetaetl Lundi 3 Juin 2013 à 2:28
XodetaetlAnonymous

Petch or someone else from the team will upload them to the server, you don't need to do anything. ;)

Edité par Xodetaetl

luyz25 Lundi 3 Juin 2013 à 2:30
luyz25

I asked for the team upload, i'm wainting xD

But the petch...how i do that?
Ronin DUSETTE Lundi 3 Juin 2013 à 8:29
Ronin DUSETTE

Just wait for one of the developers to upload the icons. If you need help, look up the "Standards for Script Publishing" sticky at the top of this forum.

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 Lundi 3 Juin 2013 à 20:43
petch

Hi,
I'm not a specialist of Steam based installation scripts, so I hope it's ok.
I noticed you didn't translate the last message though, you must use $(eval_gettext '') (see http://www.playonmac.com/en/dev-documentation-10.html) and POL_SetupWindow_message takes two arguments.
Once this is fixed, you should be able to submit the script for validation.
Xodetaetl Lundi 3 Juin 2013 à 22:01
XodetaetlAnonymous

The memory issue should be fixed before validating. Is there a function to modify the video memory, or is it supposed to be POL_SetupWindow_VMS ?

Also, I've played a few games and it's very unstable, I had a lot of crashes and game breaking bugs (on one game, some units and all trees on the map were invisible).
petch Lundi 3 Juin 2013 à 22:30
petch

POL_SetupWindow_VMS takes care of this, and caches your answer for next uses; You can check what value is cached by opening PlayOnLinux's console and typing
PlayOnLinux: ~/.PlayOnLinux > POL_Config_Read VMS

and even change the cached value with
PlayOnLinux: ~/.PlayOnLinux > POL_Config_Write VMS "some amount in MB"
luyz25 Mardi 4 Juin 2013 à 3:32
luyz25

I changed the POL_SetupWindow_message!

First post edited.

Edité par luyz25

Vous êtes ici: Index > Your creations. > Dota 2 - Steam