Poll

Have you ever played WarCraft 2 (on any computer)?

Yes, I loved it!
87 (73.1%)
Yes, so-so...
13 (10.9%)
Yes, didn't like it.
0 (0%)
No
19 (16%)

Total Members Voted: 61

Author Topic: WarCraft on the Zaurus (640x480)? "FreeCraft" or &  (Read 154937 times)

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #30 on: May 08, 2004, 10:05:42 am »
I suspect the lua driver I found on the web (see above) works.  I no longer get any lua error messages.  I suspect that the one compiled above has a problem with it (because of the socket errors).

I think that the Windows WarGus makes a \"data\" directory, whereas the other os makes a \"data.wc2\" directory.  That would explain my confusion.  I suspect I have the data files I need.

I think the problem is the screen resolution.  When I try running it I keep getting 1 or 2 error messages that say:

Code: [Select]
Display size = 480x640

If you type

Code: [Select]
./stratagus -h

...you get the help screen.  V=1 is 640x480, and 2,3,4, and 5 go up from there.  I think that WarGus thinks that my screen is 480x640, even though I\'m running terminal in landscape mode, and it says it can\'t run it.  When I switch to 480x640 mode, it doesn\'t say the display error message, but it gives other error messages.

Why does stratagus think I\'m in 480x640 mode when I\'m actually in 640x480 mode?  Is it getting that reading incorrectly from somewhere?  I suspect that if I can change it, it should work.

What do you think?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #31 on: May 08, 2004, 10:23:00 am »
Ethereal,

That\'s the difference.  About 10 years ago a friend gave me a cracked copy of WarCraft II (doesn\'t require the CD).  I played it and loved it.  About 1 year later I finally bought the game (to ease my conscience), but I never actually used the CD... I continued playing the cracked version (only 16 MB and no CD required).  That was 9 years and 8 moves ago... I haven\'t seen that CD in ages, although I DO have the cracked game still.  Apparently (from my post above) my cracked game came from Australia or UK, even though my CDs were US.

I already bought the game once (and actually, all I wanted was WarCraft II, but it wasn\'t sold by itself anymore, so I had to buy the whole battlechest instead... even though I didn\'t care for WarCraft I and wasn\'t really interested in the expension set.).  I really don\'t want ot have to buy it again...  Can anyone talk to me offline and see if I can get a copy of your \"data.wc2\" directory?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Ethereal

  • Full Member
  • ***
  • Posts: 236
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #32 on: May 08, 2004, 11:49:13 am »
Auughh!  My worst nightmare--the silent failure!

OK, I was getting an \"undefined symbol: lua_open\" error with tecknobabble\'s liblua, so I changed to the lua_0.4_arm.ipk, and now

# ./stratagus -d ./data.wc2 -v 6

yields...nothing!  The screen on the Z flickers (not even long enough to display a perceptible start screen) and the prompt comes back, with no further messages from stratagus.  Nothing in /var/log/messages, either.

Help, please--not only does it not work, but now there\'s no error message to troubleshoot!
SL-6000L, Sharp ROM 1.12;
Socket Rev 2.5 CF Bluetooth::SE T608;
Sandisk 512MB SD, formatted ext2;
Pocketop IR Keyboard

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #33 on: May 08, 2004, 12:50:41 pm »
I couldn\'t make the stratagus binary posted here running. I compiled lua and stratagus from the sources. stratagus runs (or at least it thinks it does , but I see garbage on the screen, garbage out of the speaker. It kinda look like the real warcraft screen, so I suspect it is working fine.

I suspect that the problem is with SDL. Which SDL package are you guys using on SL-CXX0 (Sharp ROM)?

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #34 on: May 08, 2004, 01:37:22 pm »
I tried running it with the bos data pack (which works on my pc) and get the same, ie nothing with or without -v.

-e does the same (should launch the editor)

I am using the 1.2.6-zports_c7x0-1 libsdl (from package manager) and ceds compile of  stratagus.

If i type echo $? to get the return code it is always 255, that is the only hint of an error message I get.

lucho, how about posting your binaries for us to test?

They seem to get a little further.

Peter.
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #35 on: May 08, 2004, 01:49:15 pm »
Quote
I think the problem is the screen resolution.  When I try running it I keep getting 1 or 2 error messages that say:

Code: [Select]
Display size = 480x640

Why does stratagus think I\'m in 480x640 mode when I\'m actually in 640x480 mode?  Is it getting that reading incorrectly from somewhere?  I suspect that if I can change it, it should work.


That\'s not an error message, and it is coming from sdl.

It is a minor issue due to the fact that your screen is rotated and can be easily fixed with environment variables, if the game worked that is.
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #36 on: May 08, 2004, 01:49:21 pm »
Here is my binary. It doesn\'t depend on SDL or lua -- they are linked statically. The SDL library I used is 1.2.7 downloaded from the SDL website.

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #37 on: May 08, 2004, 02:12:16 pm »
I just compiled stratagus to use shared libSDL and tried it with libSDL_1.2.6-zports_c7x0-1_arm.ipk -- it worked! )

Here is the new binary:

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #38 on: May 08, 2004, 02:38:30 pm »
Quote
I just compiled stratagus to use shared libSDL and tried it with libSDL_1.2.6-zports_c7x0-1_arm.ipk -- it worked! )


That doesn\'t quite work for me, but only because my data directory is wrong. I just get a load of file not found type errors looking for the .wav files.

It still seems to be looking for orc type wav files even when trying to load bos.

I guess I need to look for another warcraft2 cd. The irony is that you can\'t actually buy it anywhere, except maybe from ebay, and blizzard wouldn\'t get anything from that sale anyway.

How does it play?  is it fast enough to be useable?

Peter
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #39 on: May 08, 2004, 02:48:24 pm »
I had to create 8MB swap file in order to play it. I also get alot of \"Can\'t load the sound ...\" but it still works.

It is playable -- I have to play it on a normal PC for a while to see how big is the difference.

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #40 on: May 08, 2004, 03:55:27 pm »
The latest ipk (posted above) works without the lua librarie!  Thanks!

It appears to get farther than before.

I type:

Code: [Select]
./stratagus -d ./ -v 1

It appears to be trying to draw the screen in 480x640 mode (instead of the 640x480 mode I\'m in).  It only quickly flashes that then exits.  It was mentioend that the 480x640 mode is easy to be fixed via environment variables.  Can someone post how to change/fix this? (Thanks  )

The page doesn\'t respond for a while... and then a page full of messages appears, including the \"Can\'t open file \'.....wav\'\" stuff mentioned above.

It then displays \"stratagus\" information (disclaimers, written by, etc), and then it says it can\'t find the file...

...and the terminal stops responding.  I have to close terminal and re-open it to try again...

...but it looks like we\'re getting closer each time!
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #41 on: May 08, 2004, 04:02:28 pm »
TonyOlsen,

Which version of SDL do you have installed?

On my Z it does the same -- the only difference is that it is working  I don\'t see the error messages and stratagus information before I exit the game though -- I guess they are printed after the stratagus  window is created.

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #42 on: May 08, 2004, 04:40:22 pm »
Quote
Which version of SDL do you have installed?


I opened \"Add/Remove Programs\" in QTopia and found 3 SDL libraries listed:

Code: [Select]
libSDL             1.2.6cvs-1

libSDL-mixer       1.2.5cvs-1

libSDL-net         1.2.5cvs-1


No other \"SDL\" libraries were listed.  Am I missing a library, or are these the wrong versions?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
WarCraft on the Zaurus (640x480)? "FreeCraft" or &
« Reply #44 on: May 08, 2004, 05:12:36 pm »
lucho,

So, I take it I\'m using the wrong version?  Does this replace only the main libSDL library, or all 3 of them?  (I need to know since I assume I\'ll need to uninstall a library before installing the newer version.
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player