OpenTTD on Nokia N800

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

Post Reply
plaes
Engineer
Engineer
Posts: 18
Joined: 08 Oct 2006 06:56

OpenTTD on Nokia N800

Post by plaes »

Ok, I made it :)

Patch is here..

And somewhat crappy picture can be seen on my blog...

In order to build it under Scratchbox you have to make the symlink from os/debian to debian, then run dpkg-buildpackage -rfakeroot and it hopefully works for you. ;)

Also you need an updated ARM toolchain in order to build it for N800 itself. The official Nokia provided one crashes with internal compiler error :(
User avatar
imaginner
Engineer
Engineer
Posts: 62
Joined: 19 Nov 2006 07:38
Location: Poland
Contact:

Post by imaginner »

w00t! nice work, man!
I wish I had an N800...
any screens, better pictures, please? :)
Code needs love, like everything else.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Post by athanasios »

Even I am not going to use this, congratulations!
Please post some decent pictures, so we can see how it really looks.
Question: How big maps is it capable to handle?
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
plaes
Engineer
Engineer
Posts: 18
Joined: 08 Oct 2006 06:56

Post by plaes »

athanasios wrote:Even I am not going to use this, congratulations!
Please post some decent pictures, so we can see how it really looks.
Question: How big maps is it capable to handle?
I have tried to take some decent photos, but so far I haven't succeeded. It seems I need a polarizing filter to get "decent" pictures of the screen, because I still have the protective plastic on the screen and the display is too damn reflective and crisp.. :(

About the map size - I was able to start a new game with a map with a size of 2048x2048 tiles, but one has to turn off the autosave option, because the saves take a really long time.
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

I'm not really happy with that diff file. You change some debian stuff and you need to sort it out with Matthijs (removing him as maintainer is a bad decition). You change the available resolutions for ALL ports using SDL to max 800x480 and why did you change main_gui.cpp?

I have nothing against adding support for more platforms, but it should be done without breaking support for the currently supported platforms :wink:

and what about the lack of a keyboard? How do you join password protected servers?
plaes
Engineer
Engineer
Posts: 18
Joined: 08 Oct 2006 06:56

Post by plaes »

Bjarni wrote:I'm not really happy with that diff file. You change some debian stuff and you need to sort it out with Matthijs (removing him as maintainer is a bad decition).
I only used the debian install files to build it and I didn't want to list Matthijs as maintainer for Maemo stuff. Yes, a bit stupid move from my side, I admit.
Bjarni wrote:You change the available resolutions for ALL ports using SDL to max 800x480 and why did you change main_gui.cpp?
resolutions: because maximum resolution of N800 is 800x480 and when user accidentaly clicks on the 1920x1600 then he has no easy way to restore the resolution (because the GUI isn't visible anymore...)

main_gui.cpp: This change was required to fully take use the hardware keys on N800.
Bjarni wrote:and what about the lack of a keyboard? How do you join password protected servers?
Well, wait and see ;)

Anyway, this patch was more a RFC than a full blown port.. :D
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

plaes wrote:main_gui.cpp: This change was required to fully take use the hardware keys on N800.
You'd better do a remap of the keys in an other way. Maybe it is required for N800, but the current keys are required for trunk. and trunk is THE reference
plaes wrote:Anyway, this patch was more a RFC than a full blown port.. :D
And before it is a full blown port, it is better to adjust, before it's too late 8)

Good effort, by the way
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
matthijs
Engineer
Engineer
Posts: 76
Joined: 25 Jun 2004 15:20
Location: Enschede, Netherlands
Contact:

Post by matthijs »

I'm the current debian maintainer of OpenTTD. I've been looking at the changes to debian packaging and have the following questions.

Why does the binary dir need to change from /usr/games to /usr/games/bin ? Normal debian installations have /usr/games in their path, is maemo different here?

Why do you remove the pixmaps? Are they a problem, or just unused?

Why don't you install documentation and changelogs?

Why is the openttd-launcher neccesary? Only to set SDL_VIDEO_X11_WMCLASS it seems? Won't it run without that set?

Looking at the changes in the actual code, it seems that we could probably use some #if's to make those changes coexist with the current code. I'll help you with that, if you want?
plaes
Engineer
Engineer
Posts: 18
Joined: 08 Oct 2006 06:56

Post by plaes »

matthijs wrote: Why does the binary dir need to change from /usr/games to /usr/games/bin ? Normal debian installations have /usr/games in their path, is maemo different here?
My system (Gentoo) has game binaries under /usr/games/bin
matthijs wrote:Why do you remove the pixmaps? Are they a problem, or just unused?
Why don't you install documentation and changelogs?
Actually, I spotted that I need to keep openttd.32.bmp file. And docs/changelog not installed because users cannot access the files outside ~/homedir anyway..
And of course - because it's a device which doesn't have much free space to store stuff - to keep the overall package size down...
matthijs wrote: Why is the openttd-launcher neccesary? Only to set SDL_VIDEO_X11_WMCLASS it seems? Won't it run without that set?
It runs, but desktop wouldn't know about it (doesn't show up in the taskbar) and minimizing the app results losing it..
matthijs wrote: Looking at the changes in the actual code, it seems that we could probably use some #if's to make those changes coexist with the current code. I'll help you with that, if you want?
Well, OK ;) Although, I am currently extremely busy with work and haven't had time to look into it...

And well, it was just a quick hack done in less than an hour...
bow_22
Engineer
Engineer
Posts: 1
Joined: 14 May 2007 23:50

Post by bow_22 »

It's really great! Can you make deb installer or guide for lamers? :)
I'm newbie to linux (window on desktop) :oops:
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests