Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 02, 2010 6:06 pm

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: OpenTTD Maemo port
PostPosted: Thu Jan 31, 2008 11:42 am 
Engineer
Engineer
User avatar
Offline

Joined: Wed Jul 27, 2005 2:24 pm
Posts: 12
Location: Évry (France)
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:
  • Using the Fullscreen hardware button or the software switch will only do one thing: toggle between windowed-720x420 and fullscreen-800x480
  • Correction for some mouse-events being treated twice ([url="http://www.tt-forums.net/viewtopic.php?f=33&t=36029"]http://www.tt-forums.net/viewtopic.php?f=33&t=36029[/url])
  • Left-click scrolling ([url="http://www.tt-forums.net/viewtopic.php?f=33&t=35987"]http://www.tt-forums.net/viewtopic.php?f=33&t=35987[/url])
  • Minor tweaks and configuration for Maemo devices

Known bugs:
  • There is some delay for sounds.

Please comment.
Happy playing!

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

_________________
Image


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Jan 31, 2008 2:09 pm 
OpenTTD Developer
OpenTTD Developer
Offline

Joined: Wed Mar 30, 2005 9:43 am
Posts: 1333
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.


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Sun Feb 03, 2008 2:46 pm 
Engineer
Engineer
User avatar
Offline

Joined: Wed Jul 27, 2005 2:24 pm
Posts: 12
Location: Évry (France)
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


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Mon Feb 11, 2008 9:08 pm 
Engineer
Engineer
Offline

Joined: Tue Feb 08, 2005 7:35 am
Posts: 14
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:


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Mon Feb 11, 2008 10:17 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Mon May 21, 2007 11:47 am
Posts: 2821
Location: The Netherlands
Pink, you say....
Possibly mistaken the DOS graphics for the Windows graphics, or the other way round?

_________________
Plans: continue FIRS | some stations in OpenGFX style | expand Dutch Tram Set | rework TransRapid Track graphics
Clickables: FIRS Industry Replacement Set | OpenGFX base graphics set | TransRapid Track Set | New Tram Track Set | Metro Track Set | Dutch Tram Set


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Tue Feb 12, 2008 7:43 pm 
Engineer
Engineer
Offline

Joined: Tue Feb 08, 2005 7:35 am
Posts: 14
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


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Wed Feb 13, 2008 9:08 pm 
Engineer
Engineer
User avatar
Offline

Joined: Mon Aug 07, 2006 9:52 am
Posts: 23
Location: Romania
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)


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Feb 14, 2008 7:32 am 
Engineer
Engineer
Offline

Joined: Tue Feb 08, 2005 7:35 am
Posts: 14
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?


Top
 Profile  
 
 Post subject: Sources?
PostPosted: Wed Feb 20, 2008 7:41 pm 
Engineer
Engineer
Offline

Joined: Sun Jul 18, 2004 6:19 pm
Posts: 17
Hi,
please send me the sources of your package or post them somewhere. I want to put this into OpenEmbedded.

OpenMoko + OpenTTD ahead... :)


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Feb 21, 2008 9:35 am 
Tycoon
Tycoon
Offline

Joined: Mon Feb 09, 2004 10:02 am
Posts: 2689
Location: Morphett Vale, South Australia.
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.

_________________
Richard Eldred. Administrator of Planet TT-Forums!.
Former NewGRF Coder and Sprite Artist

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Feb 21, 2008 12:27 pm 
Engineer
Engineer
Offline

Joined: Sun Jul 18, 2004 6:19 pm
Posts: 17
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 [url]scap.linuxtogo.org[/url].

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


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Feb 21, 2008 1:05 pm 
Engineer
Engineer
Offline

Joined: Tue Feb 08, 2005 7:35 am
Posts: 14
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?


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Sat Feb 23, 2008 10:41 am 
Tycoon
Tycoon
Offline

Joined: Mon Feb 09, 2004 10:02 am
Posts: 2689
Location: Morphett Vale, South Australia.
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.

_________________
Richard Eldred. Administrator of Planet TT-Forums!.
Former NewGRF Coder and Sprite Artist

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Tue Feb 26, 2008 8:45 pm 
Engineer
Engineer
Offline

Joined: Sun Jul 18, 2004 6:19 pm
Posts: 17
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


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Thu Mar 06, 2008 2:11 pm 
Engineer
Engineer
User avatar
Offline

Joined: Wed Jul 27, 2005 2:24 pm
Posts: 12
Location: Évry (France)
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 97 times

_________________
Image
Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Tue Mar 18, 2008 8:13 am 
Engineer
Engineer
Offline

Joined: Mon Mar 17, 2008 10:48 pm
Posts: 1
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?


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Sun Mar 23, 2008 4:13 pm 
Engineer
Engineer
User avatar
Offline

Joined: Sun Oct 14, 2007 12:52 am
Posts: 11
Location: Ireland, Poland
try in hard-coded way:

open terminal and do:
Code:
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:
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..."


Top
 Profile  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Sat Mar 29, 2008 10:01 am 
Tycoon
Tycoon
Offline

Joined: Mon Feb 09, 2004 10:02 am
Posts: 2689
Location: Morphett Vale, South Australia.
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.

_________________
Richard Eldred. Administrator of Planet TT-Forums!.
Former NewGRF Coder and Sprite Artist

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!


Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Fri Apr 25, 2008 12:49 pm 
Tycoon
Tycoon
Offline

Joined: Mon Feb 09, 2004 10:02 am
Posts: 2689
Location: Morphett Vale, South Australia.
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:
File comment: Apply against r12885, should work for future revisions as well.
maemo.diff [25.85 KiB]
Downloaded 68 times

_________________
Richard Eldred. Administrator of Planet TT-Forums!.
Former NewGRF Coder and Sprite Artist

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
Top
 Profile E-mail  
 
 Post subject: Re: OpenTTD Maemo port
PostPosted: Fri Apr 25, 2008 7:04 pm 
Engineer
Engineer
User avatar
Offline

Joined: Wed Jul 27, 2005 2:24 pm
Posts: 12
Location: Évry (France)
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


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
House Insurance | Cheap Home Insurance | Loans | Compare Mortgages | Malaysian Property
Powered by phpBB © 2000-2009 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2010.
Hosted by Zernebok.