Search This Blog

Showing posts with label game. Show all posts
Showing posts with label game. Show all posts

Install Starcraft on Ubuntu Linux 22.04 LTS

1. Enable 32 bit (i386) arcitecture

sudo dpkg --add-architecture i386

2. Install wine-staging

  • Add WineHQ gpg key
    wget -nv https://dl.winehq.org/wine-builds/winehq.key -O - | sudo apt-key add -
  • Add WineHQ repository
    sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'
    sudo apt update
  • Install winehq-staging
    sudo apt install --install-recommends winehq-staging

wine-staging will be installed into /opt/wine-staging

3. Install required packages

sudo apt update
sudo apt install libgl1-mesa-glx:i386 libasound2:i386 libasound2-plugins:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libxtst6:i386 libldap-2.5-0:i386 libfreetype6:i386

4. Download StarCraft-Setup.exe

Download StarCraft-Setup.exe from https://us.battle.net/download/getInstaller?os=win&installer=StarCraft-Setup.exe

5. Install StarCraft

Run the commands below in a Terminal window to install StarCraft:

export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine ./StarCraft-Setup.exe

While installation, you may be asked to install "Mono" and "Gecko" packages for the wine prefix.

6. Fix QT platform plugin error

Installation may be failed with error: This application failed to start because it could not find or load the QT platform plugin "Windows"


To work around this, you need to install attr package and use setfattr command to removed the atrribute: user.DOSATTRIB

6.1. Install attr package

sudo apt install attr

6.2. Remove file attribute

find "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net" -name qwindows.dll -exec setfattr -x user.DOSATTRIB {} \;
or
setfattr -x user.DOSATTRIB "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.13894/platforms/qwindows.dll"
More details about this issue: see

6.3. Continue the installation

After removing the attribute, you can then continue the installation by executing the command below in the Terminal window:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.exe"

7. Create StarCraft startup script

After installation, you can start StarCraft using the command below:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You can also create a wrapper script at ~/.local/bin/starcraft and add contents below
#!/bin/bash
export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You need to make the script executable:
chmod +x ~/.local/bin/starcraft


You can now start StarCraft with command
starcraft


See also

Install StarCraft BroodWar on Ubuntu Linux 20.04 LTS

Install Starcraft on Ubuntu Linux 22.04

1. Enable 32 bit (i386) arcitecture

sudo dpkg --add-architecture i386

2. Install wine-staging

  • Add WineHQ gpg key
    wget -nv https://dl.winehq.org/wine-builds/winehq.key -O - | sudo apt-key add -
  • Add WineHQ repository
    sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
    sudo apt update
  • Install winehq-staging
    sudo apt install --install-recommends winehq-staging

wine-staging will be installed into /opt/wine-staging

3. Install required packages

sudo apt update
sudo apt install libgl1-mesa-glx:i386 libasound2:i386 libasound2-plugins:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libxtst6:i386 libldap-2.4-2:i386 libfreetype6:i386

4. Download StarCraft-Setup.exe

Download StarCraft-Setup.exe from https://us.battle.net/download/getInstaller?os=win&installer=StarCraft-Setup.exe

5. Install StarCraft

Run the commands below in a Terminal window to install StarCraft:

export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine ./StarCraft-Setup.exe

While installation, you may be asked to install "Mono" and "Gecko" packages for the wine prefix.

6. Fix QT platform plugin error

Installation may be failed with error: This application failed to start because it could not find or load the QT platform plugin "Windows"


To work around this, you need to install attr package and use setfattr command to removed the atrribute: user.DOSATTRIB

6.1. Install attr package

sudo apt install attr

6.2. Remove file attribute

find "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net" -name qwindows.dll -exec setfattr -x user.DOSATTRIB {} \;
or
setfattr -x user.DOSATTRIB "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.13894/platforms/qwindows.dll"
More details about this issue: see

6.3. Continue the installation

After removing the attribute, you can then continue the installation by executing the command below in the Terminal window:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/Battle.net/Battle.net.exe"

7. Create StarCraft startup script

After installation, you can start StarCraft using the command below:

WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You can also create a wrapper script at ~/.local/bin/starcraft and add contents below
#!/bin/bash
export WINEDLLPATH=/opt/wine-staging/lib/wine/fakedlls
export LD_LIBRARY_PATH="/opt/wine-staging/lib:$LD_LIBRARY_PATH"
WINEDEBUG=-all WINEPREFIX="${HOME}/.wine" /opt/wine-staging/bin/wine "${HOME}/.wine/drive_c/Program Files (x86)/StarCraft/x86/StarCraft.exe"
You need to make the script executable:
chmod +x ~/.local/bin/starcraft


You can now start StarCraft with command
starcraft


See also

SFC Game: Contra III - The Alien Wars Cheats & Codes

Passwords

Here are some passwords for the stages, across the various difficulty settings. (Note: The game ends after Level 3 on easy.)
Easy:
Level 2 - HMH4
Level 3 - HMRK

Normal:
Level 2 - MDMG
Level 3 - MDWC
Level 4 - 1ZKC
Level 5 - M2P5

Hard:
Level 2 - J3YS
Level 3 - JJ34
Level 4 - NCR1
Level 5 - JKCG

Maniac: Level 2 - G43Q
Level 3 - G4SM
Level 4 - K31Y
Level 5 - GPM2


Infinite Lives - B32R

Skip Stage - H2F2 - Now while playing, press START to skip to the next stage.

Play Stage 4 on Easy - 21LN
70条命:标题画面按2P手柄(CBA右左)三次。
选关:标题画面按2P手柄(左右ABC)三次。
加满武器:游戏中1P暂停,按(上上下下A上上下下B上上下下C)。

注意,这里的标题画面是指一开始,有‘魂斗罗’字样,可以选择1P和2P 的那个标题画面。
如果秘技输入成功,会有一个男性的声音叫一声‘呀’的声效。

Droidhen Defender Game Hack

Droidhen Defender is an free Android game.

Prerequisites:
  • Root your device. Do not how to root your device? google + root
  • Install a root file manager app: super manager (free) or root explorer (non-free)


The game saves files at /data/data/com.droidhen.defender/shared_prefs, named: save0.xml save1.xml save2.xml

The save file is in the following format:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="magicStone" value="6" />
<string name="magicStonecheckValue">1e0e72ebd00ab9e2535db46431d29e93</string>
<int name="singleRetry" value="0" />
<int name="stage" value="2" />
<int name="gold" value="2200" />
<string name="goldcheckValue">a1a566f1d427b549f7b7c8dac5f0cb36</string>
<int name="hardMode" value="0" />
</map>


To change the values of gold and magic stone, we need to not only change the value of gold and magicStone, but also goldcheckValue and magicStonecheckValue. How to calculate the checkValue? Use the following fomula:

checkValue = md5(value+"checkChar") 

To calculate the checkValue for value 100000000:
  • If you are using Mac, run
    md5 -s 100000000checkChar
    in the Terminal window.
  • If you are using Linux run
    echo -n 100000000checkChar | md5sum
    in the terminal window
  • Or you can open this web page and type 100000000checkChar and click Calculate MD5 button

You should get the checkValue for 100000000,
4293191e6b63499927db54f204f7eb30

  1. You can copy the file, e.g. save0.xml, to /mnt/sdcard/ using your root file manager: super manager.
  2. Edit it with text editor
    • Modify the gold and magicStone to 100000000
    • Modify the goldcheckValue and magicStonecheckValue to 4293191e6b63499927db54f204f7eb30
  3. You modified save0.xml looks like below:

    <?xml version='1.0' encoding='utf-8' standalone='yes' ?>
    <map>
    <int name="magicStone" value="100000000" />
    <string name="magicStonecheckValue">4293191e6b63499927db54f204f7eb30</string>
    <int name="singleRetry" value="0" />
    <int name="stage" value="2" />
    <int name="gold" value="100000000" />
    <string name="goldcheckValue">4293191e6b63499927db54f204f7eb30</string>
    <int name="hardMode" value="0" />
    </map>
    
  4. Copy the modified save0.xml file back to /data/data/com.droidhen.defender/shared_prefs
  5. Start the game and load the saved file, you can now use the gold and magic stone to buy and upgrade anything.

See Also

http://forum.xda-developers.com/showthread.php?t=1335611&page=3