OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> OpenTTD - attn 'josh'
blakeyez
post Jun 23 2004, 07:24 AM
Post #1





Group: Members
Posts: 90
Joined: 5-June 04
Member No.: 3,580



Since the OpenTTD topic disappeared yesterday (I assume due to the forum switch etc), I'm going to start it up again smile.gif

josh: could you repost that japanese URL with all of the kernel patches and the framebuffer SDL please? That was a great site! Certainly the explanations are basically unintelligible from babelfish ("the screen shakes, it shakes!"), but the code is enough!

I was hoping to have my Zaurus today, but looks like those idiots at customs are holding it up for whatever reason (it should have been in Canada on Sunday, and purolator is still saying it's pending customs clearance). As soon as it gets here I'll definately take a look at your version of OpenTTD - do you have a patch against the codebase that I could take a look at and apply?

Dave
Go to the top of the page
 
+Quote Post
_Psycho
post Jun 23 2004, 11:43 AM
Post #2





Group: Members
Posts: 114
Joined: 7-December 03
Member No.: 1,057



QUOTE(blakeyez @ Jun 23 2004, 10:24 AM)
Since the OpenTTD topic disappeared yesterday (I assume due to the forum switch etc), I'm going to start it up again smile.gif

josh: could you repost that japanese URL with all of the kernel patches and the framebuffer SDL please? That was a great site! Certainly the explanations are basically unintelligible from babelfish ("the screen shakes, it shakes!"), but the code is enough!

I was hoping to have my Zaurus today, but looks like those idiots at customs are holding it up for whatever reason (it should have been in Canada on Sunday, and purolator is still saying it's pending customs clearance). As soon as it gets here I'll definately take a look at your version of OpenTTD - do you have a patch against the codebase that I could take a look at and apply?

Dave

If you have a patch thats would be great to get for zports smile.gif

If its a strait compile, should be easy then !

I saw there was 2 version of TTD
one Tycoon Transport Deluxe, like 5 megs
and Tycoon Transport Deluxe XP, for windows around 10 megs
I hope both work.
Go to the top of the page
 
+Quote Post
blakeyez
post Jun 23 2004, 01:24 PM
Post #3





Group: Members
Posts: 90
Joined: 5-June 04
Member No.: 3,580



You need the data files from the windows version of TTD in order for OpenTTD to work...

It's not exactly a 'straight compile' as josh discovered. Since OpenTTD is a direct port of the disassembly of the original TTD (which was originally written in pure asm by Chris Sawyer back in the day), it uses all sorts of packed data and some structs that mix bytes/shorts/longs and then are accessed by pointers. Since on ARM processors memory access is optimized for dwords, gcc will pad these structs and data gets messed up. There are a couple other related issues as well.

josh says that his version is running fairly stable now, but that he has probably missed some potential trouble spots.

His original post on the openttd forums is here: http://ttforums.owenrudge.net/viewtopic.php?t=8222
My original post is:
http://ttforums.owenrudge.net/viewtopic.php?t=8207

Dave
Go to the top of the page
 
+Quote Post
ngok
post Jun 23 2004, 04:54 PM
Post #4





Group: Members
Posts: 19
Joined: 6-May 04
Member No.: 3,180



I've tried it,it works great!good speed with sound effect,only no music.
I use sharp original rom+special kernal patch
tweaked SDL 1.2.5
It needs pnglib too.
at first I can't move the map because I can't do a right click,use the direction key is somehow too slow.
I try other keys,when I push the menu key,I got the "Company League Table" window pop up,then the mouse seem like locked on right click mode,I can move the map with mouse.
when I push the address key,mouse is back to left click mode.
I had a lot fun with it.
Go to the top of the page
 
+Quote Post
ngok
post Jun 23 2004, 04:59 PM
Post #5





Group: Members
Posts: 19
Joined: 6-May 04
Member No.: 3,180



the kernal patch url
special kernal
and the tweaked SDL
tweaked libSDL

they are all japanese site.
Go to the top of the page
 
+Quote Post
josh
post Jun 24 2004, 10:08 AM
Post #6





Group: Members
Posts: 5
Joined: 22-June 04
Member No.: 3,786



Hi, everybody!

Somehow my - extended - first post has vanished. I am too tired to repeat every
detail that I described there.

So I'm just doing a short list:

The ipk link: here

The kernel link (for C760): here

(These are the versions that I can confirm to run well on my Z, don't know if
the ones that ngok points to are identical. Somebody check it out?)

After kernel update: "echo 100 >/proc/drivers/w100/fastsysclk".

One more feature of this SDL version: if KeyHelper is present the lib will load on
startup an existing ~/Settings/keyhelper_SDL.xml that you can use to map keys
in a special arrangement for SDL programs. Very handy!


to blakeyez:
I'm crosscompiling on my PC with the Qtopia SDK (2.3.2) and an Arm toolchain from here.
It's probably faster than working onboard the Z.

to _Psycho:
I'll try and make a patch file for the last release of OpenTTD (0.3.2.1) because
that's what I worked with. It involves creating a special Makefile which I didn't
do properly yet. At the same time I'm heavily covered with work on my job so
don't expect miracles immediately dry.gif

to ngok:
The TTD music is only available as good old General MIDI. If you want that as well
you need timidity on your Z to simulate a synth chip. I would estimate that the
game won't be running faster with it blink.gif
If you want to move on the map with the arrow keys try holding SHIFT; the step
size increases.
Go to the top of the page
 
+Quote Post
yzord
post Jun 25 2004, 08:42 AM
Post #7





Group: Members
Posts: 162
Joined: 11-December 03
Member No.: 1,152



Thanks josh, and everyone involved for making this port to the Z.
Just wanted to report that running it with standard Cacko rom 1.21b kernel and the zports SDL version (libSDL_1.2.6-zports-5_arm.ipk) seems to work fine. I played a short (~1hour) game last night and it was very stable (never crashed, hiccuped, etc).

Miss the music, but I figured as well that since they were GM files, that they'd need a midi emulator. Thanks for confirming.

Yz
Go to the top of the page
 
+Quote Post
ikm
post Jul 17 2004, 05:00 AM
Post #8





Group: Members
Posts: 172
Joined: 13-April 04
Member No.: 2,827



QUOTE(yzord @ Jun 25 2004, 08:42 AM)
Miss the music, but I figured as well that since they were GM files, that they'd need a midi emulator. Thanks for confirming.

But certainly you can digitize the GM music and compress it with mp3. It would work nice then, after tweaking openttd to make it actually playing it.

2josh: is the diff for the Zaurus OpenTTD available? I would like to compile it for the pdaXrom.
Go to the top of the page
 
+Quote Post
josh
post Jul 19 2004, 06:23 AM
Post #9





Group: Members
Posts: 5
Joined: 22-June 04
Member No.: 3,786



QUOTE(ikm @ Jul 17 2004, 05:00 AM)
2josh: is the diff for the Zaurus OpenTTD available? I would like to compile it for the pdaXrom.

I'm right now working with version 3.3 and hope to get a diff ready.

Unfortunately I have to deal with too many real life issues as well ...
So I can just beg for patience unsure.gif
Go to the top of the page
 
+Quote Post
_Psycho
post Jul 19 2004, 07:27 AM
Post #10





Group: Members
Posts: 114
Joined: 7-December 03
Member No.: 1,057



No rush, Myself never had time to do stuff anymore. Anyway, Thats would be great if we could put your package on zports ! Once you think its ready smile.gif

For the SDL tweak i know mteira did some test a couples of day ago.
Does the "echo 100 >/proc/drivers/w100/fastsysclk", improve the speed a lots ? (with the kernel tweak) ? Does the same thing work with the cacko kernel ?
Go to the top of the page
 
+Quote Post
josh
post Jul 23 2004, 01:44 PM
Post #11





Group: Members
Posts: 5
Joined: 22-June 04
Member No.: 3,786



QUOTE(_Psycho @ Jul 19 2004, 07:27 AM)
Does the "echo 100 >/proc/drivers/w100/fastsysclk", improve the speed a lots ? (with the kernel tweak) ? Does the same thing work with the cacko kernel ?

It adds to the more important feature of the special kernel:
the rotation in hardware. The trouble is always the native portrait
orientation of the screen. Everything which wants to use landscape
mode must rotate every frame ...

The SDL packs that I checked out do the rotation pixel by pixel; even
Qtopia does that.

Piro claims to do the rotation via hardware; obviously that is not possible
without special access to the graphics driver; thus the special kernel.

My tests with "testsprite" gave me 28 fps with a plain vanilla SDL,
around 35 fps with Piro's SDL and kernel and 38 fps with the additional
"fastsysclk" increase. The difference is obvious if you scroll OpenTTD
in pause mode (without the load of gameplay).

I replaced the kernel (JUST the kernel) of my cacko 1.21 with it and
did not run in any problems whatsoever.

Piro warns about incompatibility of the high "fastsysclk" setting, but I
did not find any so far. It might affect the power consumption though.

---

By the way, OpenTTD 3.3 is running fine. And this time I tried to get the
fixes right and keep i386 compatibility of the makefile and all.

Now I'm going to check out diff tongue.gif
Go to the top of the page
 
+Quote Post
ikm
post Jul 24 2004, 02:55 PM
Post #12





Group: Members
Posts: 172
Joined: 13-April 04
Member No.: 2,827



QUOTE(josh @ Jul 19 2004, 06:23 AM)
Unfortunately I have to deal with too many real life issues as well ...
So I can just beg for patience  unsure.gif

Sure! You're not alone with that sort of problems, you know wink.gif
Go to the top of the page
 
+Quote Post
tovarish
post Dec 21 2004, 05:24 PM
Post #13





Group: Members
Posts: 299
Joined: 27-October 04
Member No.: 5,233



[quote=josh,Jul 23 2004, 10:44 PM] [QUOTE=_Psycho,Jul 19 2004, 07:27 AM]

I replaced the kernel (JUST the kernel) of my cacko 1.21 with it and
did not run in any problems whatsoever.

[/quote]
hi i did the same thing for my c860 but i can't access the overclock applet. Everytime I do that qte restarts (just qte and not a reboot).

any ideas what could be done to fix this

tovarish
Go to the top of the page
 
+Quote Post
tovarish
post Dec 30 2004, 06:40 AM
Post #14





Group: Members
Posts: 299
Joined: 27-October 04
Member No.: 5,233



hi josh

can you give me ur patches for openttd, I am trying to compile the latest version

thanks,
tovarish
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 09:31 AM