maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo 5] Announce: Wargus - Warcraft II (https://talk.maemo.org/showthread.php?t=60678)

pali 2010-08-19 17:07

[Maemo 5] Wargus - Warcraft II 2.2.7 (vote for packages)
 
2 Attachment(s)

New version 2.2.7 of Stratagus & Wargus is in Extras-Devel and Extras-Testing now.

Vote for all packages to move Wargus into Extras:
http://maemo.org/packages/package_in...1.0.9-2maemo1/
http://maemo.org/packages/package_in...100119-maemo1/
http://maemo.org/packages/package_in...13.2-39maemo1/
http://maemo.org/packages/package_in.../0.24-2maemo1/
http://maemo.org/packages/package_in...mo1~fremantle/
http://maemo.org/packages/package_in...mo1~fremantle/


Wargus is data game set for the Stratagus engine. It can be used to play Warcraft II from Blizzard Entertainment, but is needed original Warcraft II DOS CD.

Stratagus is a free cross-platform real-time strategy gaming engine. It includes support for playing over Internet/LAN, or playing vs. computer opponents. The engine is configurable and can be used to create games with a wide-range of features specific to your needs.

Now Stratagus and Wargus are ported and work on Nokia N900 too.

I continue develop desktop version for Windows, Linux and mobile version for N900 together on one place. All projects are hosted on Launchpad (where are desktop download files):

https://launchpad.net/stratagus
https://launchpad.net/wargus

Maemo version for N900 is in Extras-Devel and Extras-testing repository.

Install instructions:

1. Copy all files and directories from original Warcraft II DOS CD to phone directory /home/user/MyDocs/WAR2 (Connect phone to computer in mass storage mode and copy files to WAR2 directory). Check if file /home/user/MyDocs/WAR2/DATA/rezdat.war exist.
Note: Battle.net edition does not work

*. Optional: Rip audio CD tracks from CD to folder WAR2/music in ogg/vorbis format. Note: No wav or mp3 is supported, only ogg. This enable better support of music themes is game. (Default is MIDI only)

2. Install Wargus from Hildon Application Manager or via apt-get

3. During Wargus installation, data files from /home/user/MyDocs/WAR2 will be automatically extracted. Note that this process may take 45 minutes (or more) and installer may not responding. DO NOT CLOSE INSTALL DIALOG!

4. After installation, Wargus can be run from Menu.

For reporting bugs, sending patches and answer tracker use ONLY launchpad project sites.

Updates in 2.2.5.5-1maemo4~fremantle:

Data files will be now extracted to /home/user/MyDocs/stratagus/wargus so wargus will not spend space on /opt. To proper clean wargus files from /opt is needed to run these commands (as root)
Code:

dpkg -P wargus
rm -rf /opt/stratagus/share/wargus
rm -rf /home/user/.stratagus-2.2/wc2
rm -rf /home/user/MyDocs/stratagus/wargus

and then install wargus again.

ryanl33x1511 2010-08-19 19:09

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
by saing 1. Copy original Warcraft II DOS CD to directory /home/user/MyDocs/WAR2

you mean .iso ?

pali 2010-08-19 19:19

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
No iso or other image. Just all files and directories from CD.

ryanl33x1511 2010-08-19 19:31

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by pali (Post 792190)
No iso or other image. Just all files and directories from CD.

thanks for clarify. i already install wargus but with skip the step one..what sould i do now? remove everything and start over again ?

and when you mean original Warcraft 2 DOS cd, do you mean my orginal Warcraft 2 CD PC version ? or DOS version, im trying to look for Warcraft 2 DOS CD version and found notthing.

pali 2010-08-19 20:01

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
If you want to reinstall Wargus, only uninstall it from Hildon Application Manager and install again. Data in MyDocs/WAR2 is not changed, so you do not recopy it.

See launchpad answer for supported CD versions: https://answers.launchpad.net/wargus/+faq/1270

GugloPWN 2010-08-19 20:39

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Its not working for me. During installation it didn't seem to take the extra time to extract the files. My copy of WC2 is MS-DOS/Macintosh and is not battlenet.

I ran it from the command line to see what it said:
[string "/usr/share/games/stratagus/wargus/scripts/s..."]:82: attempt to call global 'setFullGameName' (a nil value)

Is there a command line to extract the data? I previously had wargus working without the campaign and was hoping to get the missions by reinstalling with the file extraction happening locally.

Magik 2010-08-19 21:14

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
How to rip the audio files from the CD? Which program I should use?

ryanl33x1511 2010-08-19 21:57

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
happen same with me, seem like it didnt extract the file at all...wargus data was not extracted yet , you need extract data from original Warcraft 2 CD first , i already copy everything from my CD to folder WAR2....what could be a problem ?

Quote:

Originally Posted by GugloPWN (Post 792285)
Its not working for me. During installation it didn't seem to take the extra time to extract the files. My copy of WC2 is MS-DOS/Macintosh and is not battlenet.

I ran it from the command line to see what it said:
[string "/usr/share/games/stratagus/wargus/scripts/s..."]:82: attempt to call global 'setFullGameName' (a nil value)

Is there a command line to extract the data? I previously had wargus working without the campaign and was hoping to get the missions by reinstalling with the file extraction happening locally.


ryanl33x1511 2010-08-19 22:54

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
something wrong with the build.sh in wargus, it is looking for folder /cdrom/ instead of WAR2

pali 2010-08-20 08:47

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by ryanl33x1511 (Post 792390)
happen same with me, seem like it didnt extract the file at all...wargus data was not extracted yet , you need extract data from original Warcraft 2 CD first , i already copy everything from my CD to folder WAR2....what could be a problem ?

It sounds like a bug, please report it on https://bugs.launchpad.net/wargus and include output from warextract.

Quote:

Originally Posted by GugloPWN (Post 792285)
Its not working for me. During installation it didn't seem to take the extra time to extract the files. My copy of WC2 is MS-DOS/Macintosh and is not battlenet.

I ran it from the command line to see what it said:
[string "/usr/share/games/stratagus/wargus/scripts/s..."]:82: attempt to call global 'setFullGameName' (a nil value)

Is there a command line to extract the data? I previously had wargus working without the campaign and was hoping to get the missions by reinstalling with the file extraction happening locally.

This wargus error may show, when you have old version of stratagus. Make sure, that you have updated all packages throw Hildon Application Manager (or apt-get).

If this error is still (after update), please report bug on launchpad, include full output from console and your version of stratagus and wargus.

Quote:

Originally Posted by ryanl33x1511 (Post 792463)
something wrong with the build.sh in wargus, it is looking for folder /cdrom/ instead of WAR2

Do not run build.sh directly on Debian based system (when installing from deb package). On Debian/Ubuntu call debconf (dpkg-reconfigure wargus), on Maemo run /usr/games/warextract.

warextract start build.sh with correct params (and correct directory). build.sh is for people, who install wargus from source (not using prebuilded packages).

Quote:

Originally Posted by Magik (Post 792325)
How to rip the audio files from the CD? Which program I should use?

On linux you can use cdparanoia or cdda2wav for ripping audio tracks to wav and then use oggenc or ffmepg2theora (prefered) to convert ripped wav files to ogg... Wait, later I write simple how to extract data on Windows or Linux maschine (with ripping cd tracks)..

ryanl33x1511 2010-08-20 09:25

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
seem like manual run /usr/games/warextract is working...answer couple questions press OK then it will extracting.

ryanl33x1511 2010-08-20 15:42

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
game is running but for abt 30second of playing it quit automaticly to desktop....

Avis 2010-08-21 07:00

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by ryanl33x1511 (Post 793144)
game is running but for abt 30second of playing it quit automaticly to desktop....

Same for me.
But if I run game from x-terminal - it works perfectly.

attila77 2010-08-21 07:21

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Lose the osso-service stanza from the .desktop file.

pali 2010-08-21 15:02

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Ok, I removed X-Osso-Service from desktop file. Fixed on bzr.

B3aTDoWn 2010-08-23 13:15

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
dose the full campaign work? if not will it ever be working?

thanks

pali 2010-08-23 15:16

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Campaign works fine with intro voice texts and movies too.

sustik 2010-08-28 21:32

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by Avis (Post 793726)
Same for me.
But if I run game from x-terminal - it works perfectly.

Im lama in linux, and have a same problem, but i dont know how to run it in xterm...?

pali 2010-08-28 21:56

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
From menu start application Xterm... then write:

/usr/games/wargus

and press ENTER

pali 2010-08-28 22:08

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by pali (Post 794038)
Ok, I removed X-Osso-Service from desktop file. Fixed on bzr.

Can anybody check, if it fix this problem?

humble 2010-08-29 14:09

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by pali (Post 800999)
Can anybody check, if it fix this problem?

yup it works

pali 2010-08-29 14:18

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by humble (Post 801448)
yup it works

Thanks. It will be part of new release.

GugloPWN 2010-08-29 23:08

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
It turns out warextract wanted to be run at root and now it works.

The only problem is the music isn't working. When I extracted the music my computer found more descriptive song titles and used them instead of just numbers.

What filenames does warextract want in the music folder?

pali 2010-09-02 08:17

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
warextract on Maemo doesnt care about music. You need it rip yourself (or use Wargus on Desktop PC). Correct filenames are in script /usr/share/games/stratagus/wargus/build.sh (see *.ogg files).

Magik 2010-09-02 14:47

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Today I tried to install Wargus on my n900, but with no succes.
When I install it it says that I don't have opengles-sgx-img-common package, but when I try to install it:
Code:

apt-get install opengles-sgx-img-common
It says I have it in newest version :rolleyes:
What should I do?

pali 2010-09-03 09:28

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Try install wargus throw apt-get and write output from terminal.
Make sure, that you have updated system and you have FW1.2

Magik 2010-09-03 15:48

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
My n900 is updated to the newest version( a.k.a PR1.2 )

Here is a log from terminal. I tried to install wargus first and then stratagus:
Code:

~ $ sudo apt-get install wargus
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  wargus: Depends: stratagus but it is not going to be installed
E: Broken packages


~ $ sudo apt-get install stratagus
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  stratagus: Depends: libgles1-sgx-img (>= 0.20090218.51+0m5) but it is not going to be installed
E: Broken packages
~ $

Strange...

Rob1n 2010-09-03 15:55

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
And what happens if you run "sudo apt-get install libgles1-sgx-img"?

Magik 2010-09-03 16:01

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Here's the log and the following dependency:

Code:

$ sudo apt-get install libgles1-sgx-img       
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libgles1-sgx-img: Depends: opengles-sgx-img-common (= 0.20090218.55.9+0m5) but 0.20091104.34+0m5 is to be installed
E: Broken packages


~ $ sudo apt-get install  opengles-sgx-img-common
Reading package lists... Done
Building dependency tree     
Reading state information... Done
opengles-sgx-img-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.


pali 2010-09-03 16:13

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
run dpkg -l opengles-sgx-img-common and write output

Magik 2010-09-03 16:23

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Code:

$ dpkg -l opengles-sgx-img-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name          Version        Description
+++-==============-==============-============================================
ii  opengles-sgx-i 0.20091104.34+ PowerVR SGX support libraries
~ $


Rob1n 2010-09-03 17:29

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by Magik (Post 806328)
Code:

The following packages have unmet dependencies:
  libgles1-sgx-img: Depends: opengles-sgx-img-common (= 0.20090218.55.9+0m5) but 0.20091104.34+0m5 is to be installed


Looks like it's trying to install the wrong version. Can you try "sudo apt-get install libgles1-sgx-img=0.20091104.34+0m5"?

Magik 2010-09-04 09:08

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by Rob1n (Post 806413)
Looks like it's trying to install the wrong version. Can you try "sudo apt-get install libgles1-sgx-img=0.20091104.34+0m5"?

It did not found that version:
Code:

$ sudo apt-get install libgles1-sgx-img=0.20091104.34+0m5
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Version '0.20091104.34+0m5' for 'libgles1-sgx-img' was not found


Rob1n 2010-09-04 11:33

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Quote:

Originally Posted by Magik (Post 806944)
It did not found that version

Well there's your problem. Are all the repositories enabled and updating okay? It should be available in the Nokia System Software Updates repository.

Magik 2010-09-04 11:59

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
What a fail :o
I don't know why the hell I had it disabled.

Thanks for help guys and sorry for trouble.

Magik 2010-09-07 08:40

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Wargus is so great on my n900. All sounds, graphics of the original W2 on phone! :D But sadly it randomly crashes when I play it for about 2 minutes so it makes it unplayable. Any update pali? :)

Also key configuration would need more tweaking. Shortcuts like move, attack, build command should be moved to the left side of the keyboard(for right handed people).
Good idea is to assign move unit command to left click of the mouse.

pali 2010-09-07 09:23

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Problem with crashing is (I believe) fixed, see http://talk.maemo.org/showthread.php...999#post800999

Next, I'm trying fix "clicking problem". I want this default behavior:
single click - left mouse button
double click - rigth mouse button

But this double click has probem with selecting units. I still doesnt know how to fix it.

Shortcuts is defined in lua Wargus scripts. If you have some suggestions, which key will be for which command, there is no problem.

If someone has solution/patches for Stratagus/Wargus, please send me it :-)

iareraccoon 2010-09-08 03:21

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Excellent game! I really like it!
Actually its even one of the reason I bought my N900 ;)
I dont know if this is possible, but it would be kind of cool to have the screen view pan when pressing on the edges of the screen. Like how they do it on the PC.
I'm really excited for the double click method! Hope to see it soon !

flatlined 2010-09-19 06:37

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
New user here with little experience using Linux-based systems.
I have a problem...

Copied CD contents to MyDocs/War2

Did a manual run of /usr/games/warextract and after a while it crashed on me. Terminal output as follows:

Code:

Warning: cdparanioa is not installed in system
cdparanoia is needed for extract music
Detected UK/Australian original DOS CD
Please be patient, the data may take a couple of minutes to extract...
Wrong type 00000fa0, expected 000007d0

Can anyone help me or tell me what's the problem here?

Thanks in advance...

pali 2010-09-19 11:28

Re: [Maemo 5] Announce: Wargus - Warcraft II
 
Code:

Detected UK/Australian original DOS CD
Please be patient, the data may take a couple of minutes to extract...
Wrong type 00000fa0, expected 000007d0

This means that your WAR2 files are broken; not detected correct version; unsupported version or limitation in wartool (program which extract data from original CD). Warcraft II has several version and not all are supported. Supported versions: https://answers.launchpad.net/wargus/+faq/1270

I see that detected version is on list. Please report bug at https://bugs.launchpad.net/wargus and send me email.


All times are GMT. The time now is 17:59.

vBulletin® Version 3.8.8