Yet another OpenTTD port
I couldn't get any of the already available OpenTTD ports to work on my N810, so I decided I would start yet another one, this time from a pristine OpenTTD-0.7.0.
And either 0.7.0 has some fixes for arm or the CFLAGS I gave it did wonders ( -Os -march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp), because this is the first openttd binary I've found that works for more than 30 seconds without crashing on my N810! Also, many of the features of previous ports seem to be now in the upstream package (like tap-to-drag): thank you all! This port is way simpler for this reason. Port features:
This version stores saved games on My Documents/Games/OpenTTD , and searches its data files in /usr/share/games/openttd (the data package symlinks that folder to memory card if appropiate). Download: Now available in maemo.org extras! Use the Application Manager to install it. You no longer need to have the commercial data files (trg??.grf and sample.cat), but if you want them, they are available in the original Windows game disc. Read OpenTTD wiki for details. Md5sum of the ones I'm using: Code:
de53650517fe661ceaa3138c6edb0eb8 openttd/data/trgtr.grf Standard disclaimer: backup your files, savegames, your money, everything you can before using this. Also be sure you can download the previous version (just in case something goes wrong). Source is available in extras too. |
Re: Yet another OpenTTD port
This looks totally awesome!!!! I've tryed several times to get openttd working on my tablet but hopefully i'll have better luck this time. :)
|
Re: Yet another OpenTTD port
Quote:
|
Re: Yet another OpenTTD port
I'm preparing the next release (0.7.1-1), but I have some packaging & extras related questions:
1 ) What to do with data files? I took a look at pingus package sources to understand what they're doing with them. While already better than no distributing data files at all it seems like a fragile solution -- e.g. it removes all data files in preinst script. In OpenTTD I would need to delete only files installed by the package (so that I don't delete the commercial user installed files). If I don't delete files at all in preinst dpkg-deb fails with some error message about doing links "for backup reasons" (links? on vfat?) . I also though about doing more than one data package: openttd-data-on-internal-card (default) openttd-data-on-external-card openttd-data-on-rootfs openttd-data-stub (does nothing but satisfy openttd' dependencies). This fixes the fact that installing pingus or most data packages require user interactivity ("do you want to install to card? yes/no") by just installing all data files to card by default but allowing the power user to install on external card or rootfs doing apt-get install "openttd-data-on-external-card". Also whenever Fremantle comes it will break all of this. 2 ) There's already a (few months older) openttd package in extras-devel. What's the usual approach to this? 3 ) And of course... did this work for you? :) BTW. In 0.7.1-1 I've moved saved games to My Documents/Games/OpenTTD (where they should be), added support for the fullscreen button on the main menu window, and hided the mouse pointer by default. Also, the OpenTTD team fixed a lot of bugs. |
Re: Yet another OpenTTD port
Optimal solution would be where user installed (not from deb) and system files (from deb) are separate. But it's probably pretty difficult to do in this case. Multiple alternative data packages would be fine, but I would like to see only one package in user/ category.
Pingus would install data files to internal mmc by default if there wasn't N800. Note that debs which are installed to fat partition cannot be updated unless the files are deleted in preinst, or at least that's the reason for pingus deleting them. |
Re: Yet another OpenTTD port
I'm considering creating a "data file list" at package build time and deleting just those files at "prerm upgrade" time.
Smells hacky, but... |
Re: Yet another OpenTTD port
When trying to start I get the following error:
Code:
Error: No available language packs (invalid versions?) (I had some other version of OpenTTD installed before and simply updated. I've already deleted my ~/.openttd folder and put the DATA files to the specified folder on mmc2. Might there be some other conflicting data from the old version?) |
Re: Yet another OpenTTD port
The version in the first post does not have ANY data files at all (that includes lang files). Check the "non-commercial data files" link in that post.
Next version will have a data files package. So that'll be automatic. |
Re: Yet another OpenTTD port
Oh. Stupid. Thanks... should read the whole post.. ;)
|
Re: Yet another OpenTTD port
Ok, 0.7.1 up! Check first post for downloads (not on extras yet).
This has a new data package which allows the user to choose where to install data files (internal memory card or rootfs). Moves saved games folder to My Documents/Games. Hides mouse cursor. And also lots of bugfixes from the OpenTTD team. |
All times are GMT. The time now is 01:02. |
vBulletin® Version 3.8.8