Running on a Zaurus

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Jon Tseng
Posts: 2
Joined: Thu May 14, 2020 1:34 pm

Running on a Zaurus

Post by Jon Tseng »

Have got U7+SI running on me Zaurus (which was, have to admit, only reason bought it!)

Awesome work guys!

Just a quick question - is there any way to run (ie shift + direction) on the Z? Do I need to mess around with binding? (if so where exactly is the cfg file? - can't find it when I browse around with File Manager)

cheerio

J
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

the default configuration makes your avatar run instead of walk.

The file that contains the mapping is found in your zaurus under:
/opt/QtPalmtop/share/exult/keys_si.txt for SI
and
/opt/QtPalmtop/share/exult/keys_bg.txt for BG

just any text editor (like vi) will do to modify it (you need a shell though). There are a few of those on the zaurus software index (http://www.killefiz.de/zaurus/)

Artaxerxes
kyouki

Re: Running on a Zaurus

Post by kyouki »

Hi!

I've got Exult installed, got my static files copied to my CF, and am now having trouble finding the exult.cfg file, so that I can point the program to my CF data files.

The FAQ indicates the location of the exult.cfg is ~home/root but I don't see anything there. :( Could someone point me in the right direction? Also, what is a good program for editing files on the Zaurus?

Really looking forward to playing this!!!!
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

Open a terminal and type the following (don't type the '#' sign, that's your prompt):
# cd ~/
# vi .exult.cfg

Now you can edit the file.
Very quick help on vi:

:q! (to quit right away when in command mode)
:w! (to save the changes no matter what when in command mode)
i (to enter type-in mode)
[ESC] (the escape key: to come back to command mode).
dd (to delete the entire line you are on when in command mode).

Artaxerxes
kyouki

Re: Running on a Zaurus

Post by kyouki »

I seem to have made a mistake. :(

I made some edits to the config file and I *think* I wrote then correctly, but when I try to reopen the file again, it tells me that the tmp file is busy!!!

:O

I tried rebooting (which probably just made things worse!), but it still won't let me get into the file!

Please help this stupid guy! :)
kyouki

Re: Running on a Zaurus

Post by kyouki »

i deleted the temp file that was busy, and now I get the following message:

a bunch of tildes down the screen, ending with :".exult.cfg" is busy

:(:(:(
kyouki

Re: Running on a Zaurus

Post by kyouki »

Ok, now I tried running vi -r to recover from a crash, and it tells me to run virec. Of course, virec is apparently not in the Zaurus terminal. :/

Should I just uninstall Exult, and reinstall it?
kyouki

Re: Running on a Zaurus

Post by kyouki »

ok...

reinstalled exult, edited the cfg file, and changed the entry from to etc etc. The directory listed (/mnt/cf/exult-data/bg/) is correct. I've got all static files installed on the CF card. I've got all the necessary lib files installed.

Now when I start the Exult program from the Games menu, the icon goes through its animation, the hourglass appears on the taskbar... and then a few seconds later it disappears and nothing happens! :(

What could I be doing wrong??
kyouki

Re: Running on a Zaurus

Post by kyouki »

oh no!!!

I went to reboot after making changes to the exult.cfg file, and the screen started to fade out like it should, but it froze halfway. :( I could not get that screen to disappear or the system to even start up without a hardware reset! :O
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

take it easy!

you're too panicky! When you get a tmp file busy, just go to the /tmp directory and delete every tmp_* files. It should work.

Artaxerxes
kyouki

Re: Running on a Zaurus

Post by kyouki »

Yeah, I need to calm down. LOL

Anyway, I've got Exult installed, I've got the STATIC files on /mnt/cf/exult-data/bg/
I've got all 4 SDL libs installed.

The config file looks thusly:






/mnt/cf/exult-data/bg/


jmsfx.flx


blackgate


/home/root/.exult/blackgate/gamedat


/home/root/.exult/blackgate


/opt/QtPalmtop/share/exult/keys_bg.txt



etc etc

everything seems to match up, but when I tap the Exult icon in the Games tab, nothing seems to happen. Any ideas?

Thanks so far for all the help! :)
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

open a terminal, and type the following (don't type the "#" sign, it's the prompt):

# cd /opt/QtPalmtop/bin
# ./exult --nocrc 1> /tmp/exult.out 2> /tmp/exult.err

it should come back to the prompt right away. Please transfert the /tmp/exult.out and /tmp/exult.err and post them here so I can analyse the pb.

thx
Artaxerxes
kyouki

Re: Running on a Zaurus

Post by kyouki »

Hi, thanks for help! :D

exult.err
-----------
dpath = ./data
Could not find 'exult.flx' anywhere

exult.out
-----------
Exult version 1.1.0cvs
Built at: Dec 20 2002 17:24:50
Compile-time options: HAVE_ZIP_SUPPORT
Compiler: gcc, version: 2.95.2 19991024
(release)

Platform: Linux version
2.4.6-rmk1-np2-embedix-0 1 1228
Data path = /usr/local/share/exult
kyouki

Re: Running on a Zaurus

Post by kyouki »

I tried making a /usr/local.share/exult directory, and copying everything from the /opt/QtPalmtop/share/exult/ directory into it, and Exult started! But it gave me an error telling me it can't find data files.

So I checked the error logs, and this is what I saw:

exult.err
-----------
exult.flx has a wrong checksum!
exult_bg.flx has a wrong checksum!
exult_si.flx has a wrong checksum!

exult.out
-----------
Exult version 1.1.0cvs
Built at: Dec 20 2002 17:24:50
Compile-time options: HAVE_ZIP_SUPPORT
Compiler: gcc, version: 2.95.2 19991024
(release)

Platform: Linux version
2.4.6-rmk1-np2-embedix-0 1 1228
Data path = /usr/local/share/exult
Dual OPL mode: no
Internal Emulated FM Opi Midi Synth.
is_installed:
'/mnt/cf/exult-data/bg//static/endgame.dat':
no
is_installed:
'/mnt/cf/exult-data/si//static/sispeech.spc':no


Almost there! :D
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

don't forget the "--nocrc" parameter if you start from the shell.
There are two (2) dashes (-).

Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by wjp »

Artaxerxes: why do you need the --nocrc option? This usually means the data files are out of sync with the exult binary.
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

Willem,

it's because of a autoconf issue. If I cross-compile, I can't define gcc as the platform compiler and arm-gcc as the host compiler at the same time. So whenever I create the binary, I go errors which I have to manually correct to create the package. Leaving the --no-data prevents those pb and I can automate the process.

I will have to find a way otherwise I guess.

Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by wjp »

hm, I see. You could try copying the exult.flx and exult_flx.h (and same for bg, si) from a native build into the cross-compile tree.

exult_flx.h contains the checksum of the generated exult.flx, so that should get rid of the problem. (Make sure you get them from a native build of the same source version, though, to prevent real data file mismatches)
kyouki

Re: Running on a Zaurus

Post by kyouki »

Hi,

I made sure to have the --nocrc parameter when I tried to execute Exult form the command line, and it gave me this error:
"WARNING

Could not find the data files for either "The Black Gate" or "Serpent Isle". Please edit the configuration file and restart Exult."

so then I go to view the logs, and I get the messages that I typed up above.

I also posted my cfg file in this thread... does it seem ok?
kyouki

Re: Running on a Zaurus

Post by kyouki »

AH HA!!!

I finally got it... I didn't have the data in a /static directory! :D:D:D

Now it runs fine!!!

It's *slightly* jerky, so I turned off sound and music... any other hints to get it running smoother? It's fine how it is, but towns are a bit jerky!
kyouki

Re: Running on a Zaurus

Post by kyouki »

Checking the keys_bg file, it says that left/right/up/down are walk west, etc etc. Should this be "run_west", etc? Also, is it possible to map diagonals to the cursor pad?

Or even better, have the cursor middle button act as shift, and then be able to hold that down plus press the cursor to run in a direction?
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

although it's programmatically possible to do that, I wouldn't want to. Do you realise how difficult it would be to press both the central button and the directional pad at the same time?
The keys_si say something like "walk_east 1" and that means running.

Unless there was some changes lately.

Artaxerxes
kyouki

Re: Running on a Zaurus

Post by kyouki »

lol, I don't know what I was thinking... I just picked my Zaurus up in my hand, and you are right... pressing the center button + the cursor pad is pretty difficult. ;)

Anyway, thanks a ton for all your help... I never thought I'd be playing Ultima7 on a handheld!!! :D
subcubus

Re: Running on a Zaurus

Post by subcubus »

Hi @ll,

I've installed U7(Exult) on my Zaurus. when I run exult.sh on the console, all looks fine. I get the startup screen, can set my Avatar name. But when I click on "Journey Onward" only the red dust appears moving. After a while I'm set back to the console. There are no error messages I get .... :-(
Do you have any ideas ?

best regards,

sub.
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Running on a Zaurus

Post by artaxerxes »

can you open a console and type the following:

# cd /opt/QtPalmtop/bin
# ./exult 1> /tmp/exul.out 2> /tmp/exult.err

and once it crashed, post the content of those 2 files (/tmp/exult.???) here please!

thx
artaxerxes
subcubus

Re: Running on a Zaurus

Post by subcubus »

ok,

thank you for your reply. I actually can't post all infos of the files, hope this will help:

exult.out:
[...] lot of Platform infos ....
Skin is: 3 Sex is: 0
Creating 'gamedat' files

exult.err:
[checksum errors ... I think that's ok.]
QApplication: There should be max one application object
Fatal signal: Bus Error (SDL Parachute Deployed)

I've installed:

libsdl_1.2.6cvs-1
libsdl-image_1.2.5cvs-1
libsdl-mixer_1.2.5cvs-1
libsdl-net_1.2.5cvs-1
Locked