Das Forum

Combat Arms Script

Not Finished

Autor Antworten
AmaturePenguin Saturday 12 December 2009 at 1:59
AmaturePenguinAnonymous

Hello. I've been trying to make a combat arms script (combatarms.nexon.net) and naturally, I would like some help. It's supposed to download the installer, install the game, and then let you put a shortcut where you want. (Yes it does make a prefix). If you see anything that's wrong with what it is supposed to do, please inform me. Remember: It downloads installer and then installs it. Here is where I have gotten so far:

#!/bin/bash
#12/11/09
#Wine version: 1.1.34
#Link to combat arms image is: http://img.informer.com/icons/png/48/910/910869.png
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

POL_SetupWindow_Init
POL_SetupWindow_presentation "Combat Arms" "Nexon" "combatarms.nexon.net" "Bilal Itani" "CAV.33"

select_prefixe "$REPERTOIRE/wineprefix/CAV.33"
POL_SetupWindow_prefixcreate

Set_GLSL "On"
Set_WineVersion_Session "1.1.34"
cd "$REPERTOIRE/wineprefix/CAV.33/drive_c/"
POL_SetupWindow_download "Downloading Combat Arms..." "Downloading Combat Arms..." "http://download3.nexon.net/Game/CombatArms/Downloader/CombatArmsDownloaderV33.exe"
POL_SetupWindow_wait_next_signal "Installation in progress..." "Combat Arms"
wine "$REPERTOIRE/wineprefix/CAV.33/drive_c/CombatArmsDownloaderV33.exe"
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "CAV.33" "Nexon/Combat Arms" "CombatArms.exe" "" "Combat Arms"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Thanks for your help. ;-)

Editiert von: AmaturePenguin

NSLW Saturday 12 December 2009 at 12:15
NSLW

1) POL V2 functions shouldn't be here
2) wrong heading
3) GLSL is default set to on
4) You use Wine 1.1.34 not having it
5) cfg_check is deprecated

The best would be to look at other scripts and write your own script very alike.
AmaturePenguin Saturday 12 December 2009 at 15:35
AmaturePenguinAnonymous

Well, It seems to be downloading the downloader as opposed to downloading the downloader, then downloading the setup, and then intalling the game. I don't really know how to do that, and all the official scripts don't have anything like this. Do you think I should just make a script for getting the downloader and downloading and another for installing?

Also, you mean I should remove CFG check?

Editiert von: AmaturePenguin