Page 1 of 2

OpenTTD Maemo port

Posted: 31 Jan 2008 11:42
by illogict
Hello.
Based on Plaes patch, here is a new OpenTTD port for Maemo devices.
For now, this has been tested on an n810 with OS2008.

Latest version: openttd_0.6.0-r12026-illogict1

Useful information:
  • You need to have non-free TTD files put in /media/mmc1/openttd/data.
  • Scrolling with stylus and finger is full supported.
Additions to trunk OpenTTD: Known bugs:
  • There is some delay for sounds.
Please comment.
Happy playing!

[Cross-posted to InternetTabletTalk: http://www.internettablettalk.com/forum ... p?p=136102]

Re: OpenTTD Maemo port

Posted: 31 Jan 2008 14:09
by peter1138
Do you have a full diff please? Would be nice to have this stuff supported properly without patches...

Re: OpenTTD Maemo port

Posted: 03 Feb 2008 14:46
by illogict
In fact, I just noticed that there was an os/debian directory with stuff :oops:
I'm repackaging and I will post the full diff ASAP.
Thank you!

Re: OpenTTD Maemo port

Posted: 11 Feb 2008 21:08
by fizze
awesome work. its running on my shiny new n810, but some colours are pink. this looks an awful lot like "transparency" back in the day.
i have tried all combinations of video driver and blitter, but to no avail. OpenTTD seems to choke on any 32-bit blitters, anyhow....

way to go, though! :bow:

Re: OpenTTD Maemo port

Posted: 11 Feb 2008 22:17
by FooBar
Pink, you say....
Possibly mistaken the DOS graphics for the Windows graphics, or the other way round?

Re: OpenTTD Maemo port

Posted: 12 Feb 2008 19:43
by fizze
Hm, yes, that could well be. The question is, why does it look fine on my PC with the same set of files?
Maybe I'm just being stupid :D

On the PC I've just always copied the openttd executable into my TTD data-directory and ran it.
On the N810 it refused to run because it claimed it couldnt find the data files, despite them being present in the correct path.
I ran it from the console and saw the error messages:

They were like: "TR1GR.GRF not found". And lo and behold, that file isn't present. But one called "TR1G.GRF" was. So I prmoptly renamed this one and a bunch of others. It ran, but then it was pink eventually.

Any clues? :? :roll:

edit:
Ok, so I re-read the friendly wiki ;)
It looks as the maemo-port simply ignores the DOS-files. Since those are the only files I have, I'm currently stumped, right?
http://wiki.openttd.org/index.php/FAQ_i ... rom_TTD.3F

Re: OpenTTD Maemo port

Posted: 13 Feb 2008 21:08
by coyoteelabs
fizze wrote: edit:
Ok, so I re-read the friendly wiki ;)
It looks as the maemo-port simply ignores the DOS-files. Since those are the only files I have, I'm currently stumped, right?
http://wiki.openttd.org/index.php/FAQ_i ... rom_TTD.3F
Have a look at this topic from the General Transport Tycoon section. This should solve your problem.

Re: OpenTTD Maemo port

Posted: 14 Feb 2008 07:32
by fizze
Awesome, thanks. :)
Its of course working with the Windows-Files.

Anywho, I think its at least an unclear situation with that openttd-maemo-port.
The windows version is clearly also working with the DOS files. It was really confusing for me.

Maybe just add a little note somewhere that it requires the windows-ttd-files to be present.

Any clues when SDL on this gem will support MIDI playback?

Sources?

Posted: 20 Feb 2008 19:41
by theBohemian
Hi,
please send me the sources of your package or post them somewhere. I want to put this into OpenEmbedded.

OpenMoko + OpenTTD ahead... :)

Re: OpenTTD Maemo port

Posted: 21 Feb 2008 09:35
by Aegir
Got a question, as I'm ordering an N810 very very soon, are the major components of the Maemo port simply the input stuff that's already been merged to trunk? I'm quite prepared to compile SVN OpenTTD for the appropriate environment and go from that if the necessary changes for Maemo are just the input stuff already merged.

Re: OpenTTD Maemo port

Posted: 21 Feb 2008 12:27
by theBohemian
I have upgraded the recipes in OpenEmbedded to 0.6.0-beta4 and did a test build for a N800 and Neo1973.

See screenshots at scap.linuxtogo.org.

/me still hoping to get the Maemo patches ...

Re: OpenTTD Maemo port

Posted: 21 Feb 2008 13:05
by fizze
Aegir wrote:Got a question, as I'm ordering an N810 very very soon, are the major components of the Maemo port simply the input stuff that's already been merged to trunk? I'm quite prepared to compile SVN OpenTTD for the appropriate environment and go from that if the necessary changes for Maemo are just the input stuff already merged.
Im running a vanilla N810, and Openttd works like a charm, without compiling anything.
Except for the music, which is not present at the moment.
Although Im confident it will play some day, as timidity is already working on OS2008.

@ theBohemian:
Awesome. Now I cannot wait until they throw out that GTA02 hardware ;)
I guess there is sound, but no MIDI/Music on the OpenMoko, right?

Any clues on whats the bottleneck there?

Re: OpenTTD Maemo port

Posted: 23 Feb 2008 10:41
by Aegir
fizze wrote:
Aegir wrote:Got a question, as I'm ordering an N810 very very soon, are the major components of the Maemo port simply the input stuff that's already been merged to trunk? I'm quite prepared to compile SVN OpenTTD for the appropriate environment and go from that if the necessary changes for Maemo are just the input stuff already merged.
Im running a vanilla N810, and Openttd works like a charm, without compiling anything.
Except for the music, which is not present at the moment.
Although Im confident it will play some day, as timidity is already working on OS2008.
Lovely, that pretty much answers my question. Lack of music doesn't bother me, I'll probably have sound turned off anyway :).

Thanks for getting back to me.

Re: OpenTTD Maemo port

Posted: 26 Feb 2008 20:45
by theBohemian
Sound is OK on Neo1973, Music isn't.

However MIDI playback is usually done through the timidity program and I didn't bother to go through all the hassle to properly include it.

Hopefully the MIDI files are one day replaced with custom freely distributable music in Ogg Vorbis format, then it is much easier to make one hear it.

Regards
Robert

Re: OpenTTD Maemo port

Posted: 06 Mar 2008 14:11
by illogict
Sorry for late reply, had some problem with my computer (screen is completely broken :'()
Here is the full diff against r12346.

Re: OpenTTD Maemo port

Posted: 18 Mar 2008 08:13
by diverse_izzue
On my device mmc1 is the external card (of which i have none) and mmc2 is the internal card, where i have plenty of free memory. Is there a way to change where openttd looks for those files?

Re: OpenTTD Maemo port

Posted: 23 Mar 2008 16:13
by t0mcioo
try in hard-coded way:

open terminal and do:

Code: Select all

cd /media/
rm -f mmc1
ln -fs mmc2 mmc1
that will remove the mmc1 dir and create symlink to mmc2. Two important informations:
- that might broke something in future - to roll back do

Code: Select all

cd /media
rm mmc1
mkdir mmc1
- You need to be root to perform this.

Re: OpenTTD Maemo port

Posted: 29 Mar 2008 10:01
by Aegir
A more sane way to do it would be to go to /usr/share/games/openttd/data and change the symlinks around to point to data on another card. Also add a symlink to a directory you're going to add newgrf's to.

Need root, though. Install openssh and set the root password when prompted, then run 'ssh root@localhost' from the X terminal.

I must say, the OpenTTD port to Maemo is FREAKING AWESOME, I've spent way too much time playing OpenTTD on it already, and I'm very very pleased. Speed is a bit of an issue sometimes, but my network is small so it's no great deal. I'd be absolutely ecstatic to see the Maemo port hit OpenTTD trunk as one of the nightly compiles.

I really am gob-smacked at this, I've been having a lot of fun with it so far.

Edit: Also, latest diff fails against recent trunk, as the toolbar code got moved out of main_gui.c at r12398, it's now in toolbar_gui.c. Otherwise patch applies cleanly, I'm compiling it now.

Re: OpenTTD Maemo port

Posted: 25 Apr 2008 12:49
by Aegir
Bump, and also, I've updated illogict's patch to apply cleanly to r12885.

Illogict, are you still working on this? Theres some additional changes that need to be made to make OpenTTD integrate into hildon properly, right now, if you accidently swap to a different application, you can't bring it back up. Theres some incantations you need to cast to get an application to register with Hildon properly. I'm no programmer, but I've got most of the details sorted out to implement it. Just need to work up the gumption to do it.

I'd really love to see this make OpenTTD trunk, I'd love to have an official nightly Maemo build. This is a brilliant app to have on the nokia tablets.

Let me know if the patch applies cleanly, I'm no programmer, I'm the guy bludgeoning things into shape with a frozen carp.

Re: OpenTTD Maemo port

Posted: 25 Apr 2008 19:04
by illogict
Yes, I am still working on it, I'm currently making a way for it to integrate better (hint: no more symbolic links, easy integration for files and all), problem is that my laptop screen is broken... I'm currently waiting for my internship (at Motorola :]) pay to come.