PDA

View Full Version : OpenTTD for PSP now playable



turulo
January 26th, 2006, 07:02
(Awesome News Submission by Turulo)

<img src="http://nixgeneration.com/~jaime/psp/openttd/screenshots/openttd-1.png">

Hi,

I have started a port of OpenTTD game based on the original Transport Tycoon Deluxe. Now the port is playable but save/load doesnt work by the moment.

UPDATED: Looks like release isnt working in 2.00, any help with this is very much appreciated as i dont have access to a 2.00 psp for testing ;(

More info about the game and full feature list:
http://www.openttd.org/about.php

I include the readme that contains all the information about port status, etc ..

Also, some screenshots and the game :)



OpenTTD is a clone of the Microprose game "Transport Tycoon Deluxe", a popular game originally written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.

OpenTTD is originaly developed by the openttd team http://www.openttd.org and has been ported to the PSP by Jaime Penalba. This code is licensed under the GNU General Public License version 2.0. For more information, see the file 'COPYING' included with every release and source download of the game.

INSTALLATION
============

NOTE: when i wrote this and pacakged the release i was very stoned, and made
some mistakes with version (lol) 1.52 means 1.50 sorry for this.

To run OpenTTD it is *required* that you install certain files needed from the
original retail Transport Tycoon Deluxe, whether for DOS or Windows.

1.- Copy the "ottd/" directory into your psp at "/PSP/GAME/" (game data)

2.- Depending on your psp version (game executable)
* 1.0 & 2.0 (2.0 not tested), Copy the "1.00/ottd/" dir to "/PSP/GAME/"
* 1.52, Copy the "1.52/ottd/" & "1.52/ottd%/" dirs to "/PSP/GAME/"

3.- Now you must install some data files from the retail Transport Tycoon Deluxe
you will find the game easily on some abandonware sites or p2p networks. To
install them you must copy the following files to "/PSP/GAME/ottd/data/"
* Required files: TRG1R.GRF, TRGCR.GRF, TRGHR.GRF, TRGIR.GRF, TRGTR.GRF, SA
MPLE.CAT

CONTROLS
========

- Digital pad: 1px movement
- Analog stick: 2px movement
- Cross: mouse left click
- Circle: mouse right click, hold it and press pad to move arround the map.
- Square: hold it and press pad or analog, to move a window.
- Triangle: Closes the window under mouse cursor (BE CAREFULL, you will see)
- L trigger: Zoom out
- R trigger: Zoom in
- L trigger + R trigger: Delete all non vital windows

STATUS
======

This port is still in early development, if you want to contribute, contact me.

By the moment it cannot save or load games, but game is playable, i have managed to play for more than 1 hour without problems. Just create a new game with random generated terrain to play :)

Here is the list of things pending to be fixed.

- Pending major fixes
* Fix saveload functions
* Enable network mode

- Pending minor fixes needed
* Support midi tracks
* Resize some windows
* Fix dropdown menus positioning
* Screenshots support
* Fix map button/dialog

WELL KNOWN CRASHES
==============

If you want to be the best playing this buggy release is not enough to be a good
tycoon player, you may know the bugs if you want to keep playing :P

The two major well known crashes are:

- If you press triangle and there isnt a window under the mouse cursor it will
delete main window, so game ended...

- The other one is when you press the map button, the game segfaults, so dont
press it.

Now you can be a real tycooner.


SOURCE & UPDATES
================

Source code and updates can be found at:
http://nixgeneration.com/~jaime/psp/openttd/

BUGS & CONTACT
==============

Any kind of patch, sugestion or contribution is wellcome, contact me.



Sources and binary can be downloaded via the comments:

And some screenshots

wraggster
January 26th, 2006, 07:18
OMG this is major news for us PSP Homebrew fans, what a crackin release :)

ill post the awesome news :)

wraggster
January 26th, 2006, 07:35
uploaded the release to the forum (save your bandwidth) and upgraded you to PSP Coder so that the news shows up on the main site when i move it in a minute ;)

ap0calypse
January 26th, 2006, 08:31
WOW! This port looks amazing. Great Work Turulo.

Im looking forward to the next release of this one.

urchin
January 26th, 2006, 08:40
Heh, I was also working on this :)

I've not tried this port yet, but how does it handle the icon bar being longer than the PSP screen?

lecdg2
January 26th, 2006, 10:23
Look good, but it doesn't work for me.
It loads then stops at the black screen when it is asked to wait while loading.
I've tried french and english version of transport tycoon deluxe but without any success Please help me

GameSharkGX
January 26th, 2006, 12:34
Great game but since you got one game to work why dont you get
RollerCoster Tycon to run

It uses the same engien so it shuld be quite easy for you to port
that and i know you would add alot of fanfair

Mr.Modem
January 26th, 2006, 15:08
Nice! I've been waiting for this game to be ported!

turulo
January 26th, 2006, 15:30
Thanks for the replys :) any feedback is very much apreciated as this is a very early release.



urchin wrote:
Heh, I was also working on this

I've not tried this port yet, but how does it handle the icon bar being longer than the PSP screen?


Well if you were interested, then i would be very glad if you would like to help me fixing save/load and networking functions :)

About the toolbar and window resizing, is kindda easy, just editing window structures arrays, i removed spaces between icons and cutted some of them to half size such as zoom icons to fit the hole toolbar. The windowing code is quite clean so is nice to work with it.

If you want to take a look toolbar is defined using "Widget _toolb_normal_widgets[]" array and "WindowDesc _toolb_normal_desc" structure at main_gui.c



lecdg2 wrote:
Look good, but it doesn't work for me.
It loads then stops at the black screen when it is asked to wait while loading.
I've tried french and english version of transport tycoon deluxe but without any success Please help me


Which PSP FW version are you using¿ also are you using dos or windows TTD files? if it hangs while loading it must be due to missing data files, please recheck that you have copied the following files into yout psp at "/PSP/GAME/ottd/data/" directory:
TRG1R.GRF, TRGCR.GRF, TRGHR.GRF, TRGIR.GRF, TRGTR.GRF, SAMPLE.CAT

Otherwise look if there are message errors at "/PSP/GAME/ottd/stderr.txt", and let me know, if still doesnt work, i will send you a release with higer debug level if you are interested.




GameSharkGX said:
Great game but since you got one game to work why dont you get
RollerCoster Tycon to run

It uses the same engien so it shuld be quite easy for you to port
that and i know you would add alot of fanfair


Well i also love RollerCoster Tycoon and other games by Chris Sawyer, but source is not available :(, this port was done thanks to the OpenTTD team who recoded the hole game using the orginal textures and made the source available.


Thanks again to all for feedback :)

lecdg2
January 26th, 2006, 15:57
Well, i've reinstalled it, and it's working now!! Great port And thank you Turulo!!

In fact, how can i change the language? it's in spanish right now !!!

turulo
January 26th, 2006, 16:14
Woops, i may have forgoten to change the language settings to english, as save/load funcions arent still fixed, changes done at options menu arent saved, but by the moment you can change them mauanlly editing the file "/PSP/GAME/ottd/openttd.cfg"

Just replace the line Language from:
language = spanish.lng

to any of these:
american.lng english.lng hungarian.lng portuguese.lng
brazilian_portuguese.lng estonian.lng icelandic.lng romanian.lng
catalan.lng finnish.lng italian.lng slovak.lng
czech.lng french.lng norwegian.lng spanish.lng
danish.lng galician.lng origveh.lng swedish.lng
dutch.lng german.lng polish.lng turkish.lng

tblumer
January 26th, 2006, 16:28
I installed on 2.0fw and it gets as far as the "please wait.. " screen, I see it reading the memory stick, then it just hangs. It doesnt write anything to the stderr file. I have the windows version and installed all the files you listed into the games/ottd/data folder and the 2.0 eboot into games/ottd folder

lecdg2
January 26th, 2006, 16:45
for the language, i think there is a small bug.
Un fact it doesn't change anythnig when changing the openttd.cfg.
BUt iv'e solve the problem. If I rename the french .lng to brazilian_portuguese.lng from the "lang" directory(an d deleting the old one) , the game start with the french language.
Hpe it 'll help!

turulo
January 26th, 2006, 17:17
for the language, i think there is a small bug.
Un fact it doesn't change anythnig when changing the openttd.cfg.
BUt iv'e solve the problem. If I rename the french .lng to brazilian_portuguese.lng from the "lang" directory(an d deleting the old one) , the game start with the french language.
Hpe it 'll help!

Ums, it should work changing language line from:
language = spanish.lng
to:
language = french.lng

I tested it with english and just worked fine, maybe is an issue with french translation?

turulo
January 26th, 2006, 18:05
I installed on 2.0fw and it gets as far as the "please wait.. " screen, I see it reading the memory stick, then it just hangs. It doesnt write anything to the stderr file. I have the windows version and installed all the files you listed into the games/ottd/data folder and the 2.0 eboot into games/ottd folder

Well try the version attached with extra debug enabled :)
It should also create /PSP/GAME/ottd/stderr.txt, let me know if this works for 2.00, otherwise i will PM you with another version if you are still interested.

It also aplies to anyone having problems, but note this eboot is in 1.00/2.00 format and you will need kxploit if you intend to install it on a 1.52. It also needs the ottd files from first release and from the original Transport Tycoon Deluxe.

MortuuS
January 26th, 2006, 18:36
On a FW 2.0 PSP it says this with the new eboot : "ERROR - Cannot open file /data/autorail.grf/" while all the files are in the right position. And it does create a file called stderr.txt, but there is no text in it.

BTW: Here is my filelist

--PSP
----Game
------OTTD
--------stdout.txt
--------stderr.txt
--------EBOOT.PBP
--------OPENTTD.CFG
--------SCENARIO
--------SAVE
--------LANG
--------DATA

turulo
January 26th, 2006, 18:43
On a FW 2.0 PSP it says this with the new eboot : "ERROR - Cannot open file /data/autorail.grf/" while all the files are in the right position. And it does create a file called stderr.txt, but there is no text in it.

Ums... it says "/data/autorail.grf/", "/data/autorail.grf" or "data/autorail.grf"?

It should be looking for "data/autorail.grf", otherwise something is broken with pathfinding on 2.0, if its looking for "/data/autorail.grf" try copying the data dir to the root of your memory stick,

Let me know any more error or finding, i will look for it at night, as im currently at work.

MortuuS
January 26th, 2006, 18:47
I looked at it again it's a bit hard to see because ' and / look very the same on the PSP, but it says this 'data/autorail.grf'.

*Edit: I also tried to put the data dir to the root, but then it just says that it couldn't find sample.cat (the first file loaded because it inmiddiatly says that it couldn't be loaded) because the data dir isn't in the right place I guess.

joey5o4
January 26th, 2006, 18:51
for the language, i think there is a small bug.
Un fact it doesn't change anythnig when changing the openttd.cfg.
BUt iv'e solve the problem. If I rename the french .lng to brazilian_portuguese.lng from the "lang" directory(an d deleting the old one) , the game start with the french language.
Hpe it 'll help!


hm see like that helps since da lang change in da cfg file didnt work..well anyways got it working and props for da work you did on this port its great
i never really heard of ths game but ill give it a try

tblumer
January 26th, 2006, 19:41
Well try the version attached with extra debug enabled :)
It should also create /PSP/GAME/ottd/stderr.txt, let me know if this works for 2.00, otherwise i will PM you with another version if you are still interested.

It also aplies to anyone having problems, but note this eboot is in 1.00/2.00 format and you will need kxploit if you intend to install it on a 1.52. It also needs the ottd files from first release and from the original Transport Tycoon Deluxe.

I gave it a whirl and ended up with the same issues as Mortuus, still no text in the stderr.txt file. I hope our feedback helps. Looking forward to a 2.0 compatible version of your excellent release.

lecdg2
January 26th, 2006, 19:44
It's good to play this game !! (i've discovered it on my old zaurus, but it was too buggy to be playable). I've jsut played few minutes but it's yet very addictive.

I'ev found a bug: When press TRIANGLE while the cursor is on the map, the game is becoming buggy.

joey5o4
January 26th, 2006, 20:50
yeah seems sometimes wen i try to press triangle it wont work and it becomes all buggy and reboots

Madonion
January 26th, 2006, 21:06
Omg! I hate you for bringing this out. Now it means i wont play any of my other psp games i have :( hehe. Man this is awsome! I loved this game so much when i was younger! thx thx thx
Im gona try it now but i only have the normal transport tycoon and not deluxe.

jman420
January 26th, 2006, 21:37
quick question, can i find the files i need on open transport deluxe for GP2X? just because i refuse to download any P2P software, and i havent a clue where i could find the accual program with cd . . . .

turulo
January 26th, 2006, 21:41
Well sorry for the bugs, but this is just a very early release, just published because i dont like just to post screenshots, i prefer to post each release so people can also test it.

About the triangle bug its advised into the readme


- Triangle: Closes the window under mouse cursor (BE CAREFULL, you will see)


Anyway i will fix that and may other bugs, and i also hope to have it working on 2.00 too.



Madonion said:
Im gona try it now but i only have the normal transport tycoon and not deluxe.


Well im sure you will find it easily :)

turulo
January 26th, 2006, 21:45
quick question, can i find the files i need on open transport deluxe for GP2X? just because i refuse to download any P2P software, and i havent a clue where i could find the accual program with cd . . . .

If you mean the *.grf and sample.cat, yes those are platform independent, but i dont think those are contained into GP2X release due licensing issues...

Madonion
January 26th, 2006, 21:52
Yay my game works but its in brazil language =/.
I tried opening the .cfg file but it says there its on english already 0.o
help :(.

pepegomez
January 26th, 2006, 21:59
i wonder about the description in the zipped folder of the fw version "1.52". do u mean the 1.5 version? i hope so....

Voltron
January 26th, 2006, 22:03
Great work turulo - Using a 2.00 PSP so I cannot yet enjoy this but it looks like a lot of work went into this. Does anyone know if it would be possible to port the MicroProse game X-COM UFO Defense Force for the PSP now that this release is out and functional? It would be sweet if X-COM could be enjoyed on the PSP.

pepegomez
January 26th, 2006, 23:15
and i want to add that i tried about 5 different versions of ttd, none worked yet... im still triying

*edit

ok i left a file wich was important.

once again:

check each letter of the file!!!

lilvietquoc
January 26th, 2006, 23:55
*drool*
I GOTTA TRY THIS!!!

gavind
January 27th, 2006, 01:02
omg! TTD was my favourite game for PC and is still very addictive, thats it im getting the old dos game back out and playing on it right now - cant beat the scotland terrain, classic!

I really hope this game will be fully working on PSP, would be great!
Also whats these extra features in the game?

lilvietquoc
January 27th, 2006, 02:59
yeah just got it to work!very nice-just one thing...is there a way to fix the language-
cant really read...w/e language that is...
but anyways-good job on this port! i can see good things for the future for this port!
cant wait for the next release!

turulo
January 27th, 2006, 04:12
Yes it should work editing /psp/game/ottd/openttd.cfg and changing the line

language = spanish.lng
to
language = english.lng

or whatever you want, but people is reporting that it uses brazilian!!!! (i might ****up something when packaging, because it worked...), so as dirty fix you can overwrite brazilian_portuguese.lng with your desired language under the "/psp/game/ottd/lang/" dir and enjoy :)

Waffler
January 27th, 2006, 04:37
It's a shame That it doesn't work On a 2.00 PSP, But Nice Work. I'm hoping that there will be a working 2.00 Release. Can't wait !

jman420
January 27th, 2006, 05:32
well you can just downgrade to 1.5 ya know?! as long as you get the new version 1.0 of the downgrader, it wont brick your psp . . . . .

Waffler
January 27th, 2006, 07:27
Yeah, I know, but i play GTA with my other friends so I'll wait for a new Version to come out eith MIDI support too.

ukkevinl
January 27th, 2006, 13:44
Ums... it says "/data/autorail.grf/", "/data/autorail.grf" or "data/autorail.grf"?

It should be looking for "data/autorail.grf", otherwise something is broken with pathfinding on 2.0, if its looking for "/data/autorail.grf" try copying the data dir to the root of your memory stick,

Let me know any more error or finding, i will look for it at night, as im currently at work.

Hi,

I'm running on 2.0 as well and here is my message using the EBOOT posted a couple of messages up on page 2 of this thread:

Starting openttd
Please Wait...
ERROR - Cannot open file 'data/autorail.grf'
Fix it and rerun the game

Nothing is written to stderr.txt, I'm more than happy to try experimental versions if you like and post feedback.

This looks great, thanks for porting it.

cheers

Kevin

Solo761
January 27th, 2006, 17:33
Thanks, works nice for first release, except that language issue :), and my PSP had BSOD when I clicked on map icon :D. I mentioned your port on official openttd forum and devs seem to like it, maybe they can help you with some stuff? If you want you can check it here (http://www.tt-forums.net/viewtopic.php?t=23142&sid=4b6fe33f38f007b254ead6912a05cedc).

turulo
January 27th, 2006, 18:53
Thanks, works nice for first release, except that language issue :), and my PSP had BSOD when I clicked on map icon :D. I mentioned your port on official openttd forum and devs seem to like it, maybe they can help you with some stuff? If you want you can check it here (http://www.tt-forums.net/viewtopic.php?t=23142&sid=4b6fe33f38f007b254ead6912a05cedc).

Nice, i talked with some OpenTTD guys on the irc when i started the port, but gui code and others are little bit painfull to include into their svn, anyway the seem like they would like to include it, so im registering into the forum to talk with them and see what can be done.

Thanks :)

Solo761
January 27th, 2006, 19:19
No, thank you :)

djhenry
January 28th, 2006, 03:35
ok either my psp is being really F'in stooopid, or i have the wrong files.

i have: TRGT.GRF TRGH.GRF TRGI.GRF TRG1.GRF TRGC.GRF AND SAMPLE.CAT in the data folder...and i still get stuck on the black screen that says Starting OpenTTD, Please Wait...

are there any extra steps that arent mentioned in the install guide?

tmmuk
January 28th, 2006, 08:42
I have the same problem as posted above.

I tried renaming the required files so that they had the letter R on the end (mine didnt - the ones in the readme did), but that didnt work.

I am getting the files from TT Deluxe for windows.

Im on FW 2.00, using eboot loader 0.9

Waffler
January 28th, 2006, 09:18
Havn't you read the the main post It Doesn't work on 2.00.

djhenry
January 28th, 2006, 12:45
i have 1.5 though, unless the zip file really means 1.52

tmmuk
January 28th, 2006, 13:18
I hope a 2.00 compatible version will be released + saving / loading

turulo
January 28th, 2006, 20:25
Sorry for the 1.50/1.52 mistake, i was stoned when i posted it. When i wrote 1.52, i wanted to mean 1.50.

Also i havent very good news for saving/loading :(


dbg: Cannot open savegame ms0:/PSP/GAME/ottd/scenario/Mountain Pass.scn for saving/loading, returned -2147418088 is 0x80010018.
0x80010018 = Too many files are open in the system

That means psp wont let me open any more files for reading/writing. Im doing some tests to see how many files can open psp and to see how can i solve this, i will keep you updated.

MaD Ed
January 28th, 2006, 20:31
good job porting this game, too bad I'm not such a tycoon fan, I hope somebody ports Age of Empires 2 for psp soon...

turulo
January 28th, 2006, 22:49
Some good news for 2.00 users, teknakoleair reported to me that he got the port working on 2.00 installing it using SeiPSP Tool.

I hope more people can get it working on 2.00.

Madonion
January 29th, 2006, 00:41
arg if it wasnt for my brazilian language problem i would play it! :o

_Jammie_
January 29th, 2006, 01:15
Some good news for 2.00 users, teknakoleair reported to me that he got the port working on 2.00 installing it using SeiPSP Tool.

I hope more people can get it working on 2.00.

How? o.O I'm a 2.0 User (Damn You GTA!) and i would love to play this game

Waffler
January 29th, 2006, 04:17
How do i start a singleplayer game i downgraded to 1.5.

All i get is a Game Load Failed message? i Click New Game


Edit:DW got it working

djammer
January 29th, 2006, 18:49
How do i start a singleplayer game i downgraded to 1.5.

All i get is a Game Load Failed message? i Click New Game


Edit:DW got it working

I am getting an error every time I try to play a 'new game' when it says 'Generate random new game' and I select something it says 'Game Load Fail'

:(

really want to play this game badly :)

cheers,

~djammer

turulo
January 29th, 2006, 19:42
I am getting an error every time I try to play a 'new game' when it says 'Generate random new game' and I select something it says 'Game Load Fail'

:(

really want to play this game badly :)

cheers,

~djammer

You have to click in "Generate random new game", instead of starting game by clicking into one of the .scn files.

djammer
January 29th, 2006, 19:58
thanks very much :)

turulo
January 30th, 2006, 01:05
Some good & hot news.

For those interested, i was having some troubles with file descriptors due to the limit of 10 opened files on psp. That caused a lot of problems with any kind of file handling operations, as by default openttd keeps 8 files opened and SDL was using the other 2 left for stderr and stdout logging.

I have just trown away SDL_main and im implementing my own, to save those two precious file descriptors, as far as i have seen, now following features are working.

- Save and Load games (not scenarios, but now you can save & load your game)
- Save configuration changes made from the gui (such as language, currency, etc...)
- Play the other three kind of landscapes (desert, tropical and lolypop)
- Take screenshots

Im trying to fix some more things, and i will post a new release in a few hours if everything goes well.

Here is a screenshot from a game using lolypop landscape :)

sls58
January 30th, 2006, 05:34
Im playing this on the GTA 2.60 BETA elauncher
i can load the game sometimes and it will say "loading please wait" then it will show an arroe at the top left corner of the screen... then the game dies

turulo
January 30th, 2006, 05:38
Im playing this on the GTA 2.60 BETA elauncher
i can load the game sometimes and it will say "loading please wait" then it will show an arroe at the top left corner of the screen... then the game dies

Please try the new release and tell me if fixes anything.

sls58
January 30th, 2006, 06:12
i tried to run it 5 times... it launched 2 times... but i still had the arrow problem... ill keep messing around with the files to make sure there all there, etc and if i get it working i'll post it here

NSXR
January 31st, 2006, 14:20
Some good & hot news.

For those interested, i was having some troubles with file descriptors due to the limit of 10 opened files on psp. That caused a lot of problems with any kind of file handling operations, as by default openttd keeps 8 files opened and SDL was using the other 2 left for stderr and stdout logging.

I have just trown away SDL_main and im implementing my own, to save those two precious file descriptors, as far as i have seen, now following features are working.

- Save and Load games (not scenarios, but now you can save & load your game)
- Save configuration changes made from the gui (such as language, currency, etc...)
- Play the other three kind of landscapes (desert, tropical and lolypop)
- Take screenshots

Im trying to fix some more things, and i will post a new release in a few hours if everything goes well.

Here is a screenshot from a game using lolypop landscape
Can you please post the new release?
Have tryed all the files that have been posted on the forum and the problem is still there.

PSPMAMA
February 19th, 2006, 07:52
Im playing this on the GTA 2.60 BETA elauncher
i can load the game sometimes and it will say "loading please wait" then it will show an arroe at the top left corner of the screen... then the game dies
same here

I REALLY WANNA PLAY IT PLS HELP!!!

Raymank
April 15th, 2006, 17:20
PLEASE!!!!! Can someone please post the actual retail files, I can't seem to find them or get them anywhere.

mazic12345
June 13th, 2009, 16:13
Nice, il try this out now =)