OpenTTD Maemo port

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

illogict
Engineer
Engineer
Posts: 12
Joined: 27 Jul 2005 14:24
Location: Évry (France)
Contact:

OpenTTD Maemo port

Post 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]
Image
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1728
Joined: 30 Mar 2005 09:43

Re: OpenTTD Maemo port

Post by peter1138 »

Do you have a full diff please? Would be nice to have this stuff supported properly without patches...
He's like, some kind of OpenTTD developer.
illogict
Engineer
Engineer
Posts: 12
Joined: 27 Jul 2005 14:24
Location: Évry (France)
Contact:

Re: OpenTTD Maemo port

Post 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!
Image
fizze
Engineer
Engineer
Posts: 22
Joined: 08 Feb 2005 07:35
Contact:

Re: OpenTTD Maemo port

Post 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:
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: OpenTTD Maemo port

Post by FooBar »

Pink, you say....
Possibly mistaken the DOS graphics for the Windows graphics, or the other way round?
fizze
Engineer
Engineer
Posts: 22
Joined: 08 Feb 2005 07:35
Contact:

Re: OpenTTD Maemo port

Post 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
User avatar
coyoteelabs
Engineer
Engineer
Posts: 27
Joined: 07 Aug 2006 09:52
Location: Romania

Re: OpenTTD Maemo port

Post 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.

Visual PNG codec - Win32 GUI based alternative for PNG codec
PNG crop - Win32 Console based tool for PNG cropping
PNG Resize - Win32 Console based tool for PNG Resizing (z0 -> z1 / z2)
fizze
Engineer
Engineer
Posts: 22
Joined: 08 Feb 2005 07:35
Contact:

Re: OpenTTD Maemo port

Post 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?
theBohemian
Engineer
Engineer
Posts: 17
Joined: 18 Jul 2004 18:19

Sources?

Post 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... :)
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Re: OpenTTD Maemo port

Post 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.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
theBohemian
Engineer
Engineer
Posts: 17
Joined: 18 Jul 2004 18:19

Re: OpenTTD Maemo port

Post 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 ...
fizze
Engineer
Engineer
Posts: 22
Joined: 08 Feb 2005 07:35
Contact:

Re: OpenTTD Maemo port

Post 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?
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Re: OpenTTD Maemo port

Post 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.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
theBohemian
Engineer
Engineer
Posts: 17
Joined: 18 Jul 2004 18:19

Re: OpenTTD Maemo port

Post 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
illogict
Engineer
Engineer
Posts: 12
Joined: 27 Jul 2005 14:24
Location: Évry (France)
Contact:

Re: OpenTTD Maemo port

Post by illogict »

Sorry for late reply, had some problem with my computer (screen is completely broken :'()
Here is the full diff against r12346.
Attachments
20080306150943-openttd_r12346-maemo_port.patch
(28.31 KiB) Downloaded 273 times
Image
diverse_izzue
Engineer
Engineer
Posts: 1
Joined: 17 Mar 2008 22:48

Re: OpenTTD Maemo port

Post 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?
t0mcioo
Engineer
Engineer
Posts: 11
Joined: 14 Oct 2007 00:52
Location: Ireland, Poland
Contact:

Re: OpenTTD Maemo port

Post 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.
~/ ):( gallery
"...sometimes the sound of goodbye is louder than any drum beat..."
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Re: OpenTTD Maemo port

Post 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.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Re: OpenTTD Maemo port

Post 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.
Attachments
maemo.diff
Apply against r12885, should work for future revisions as well.
(25.85 KiB) Downloaded 226 times
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
illogict
Engineer
Engineer
Posts: 12
Joined: 27 Jul 2005 14:24
Location: Évry (France)
Contact:

Re: OpenTTD Maemo port

Post 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.
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 6 guests