PocketPC Test

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
J@Master
Engineer
Engineer
Posts: 14
Joined: 05 Sep 2004 15:42

PocketPC Test

Post by J@Master »

Hi, I tried to compile OpenTTD to PocketPC.
Result: I can see the starting dialog and I can use it.
But i can't start a game and I had to switch off the drawing for the backgound.
to do that, I removed some code from viewport.c ViewportDoDraw.
Like ViewportAddLandscape(); ...

But if I call any function (like ViewportAddLandscape) after

Code: Select all

vd.parent_list = parent_list;
	vd.spritelist_mem = mem;
	vd.eof_spritelist_mem = &mem[sizeof(mem) - 0x40];
	vd.last_string = &vd.first_string;
	vd.first_string = NULL;
	vd.last_tile = &vd.first_tile;
	vd.first_tile = NULL;
or even an empty function (void Test(){}) the game stops and I have to reset the device.
I did not change the code very much. Only some UNICODE Converter(for file functions) and I deleted two _asm functions. Because I do not know how to use Assembler in embedded Visual C++ :oops: (I this the problem?)
Any ideas?
User avatar
The14given
Engineer
Engineer
Posts: 31
Joined: 31 Aug 2004 12:07
Location: Düsseldorf/Gemany

Post by The14given »

Maybe he can Help

Ismail Khatib

He already done the Wolf3D Port.
Besucht uns:

Image

UPDATE: Banner Contest mit Preisauschreiben
News, News, News
Caesar54
Engineer
Engineer
Posts: 1
Joined: 08 Oct 2004 22:39
Location: Connecticut
Contact:

Post by Caesar54 »

You need to get this out in the open. Get yourself over to the pocketmatrix.com developer forums and ask questions. Everyone will be glad to help.
User avatar
The14given
Engineer
Engineer
Posts: 31
Joined: 31 Aug 2004 12:07
Location: Düsseldorf/Gemany

Post by The14given »

Caesar54 wrote:You need to get this out in the open. Get yourself over to the pocketmatrix.com developer forums and ask questions. Everyone will be glad to help.
We got it running:

http://www.ppc-welt.info/community/show ... hp?t=52860

Look below
Besucht uns:

Image

UPDATE: Banner Contest mit Preisauschreiben
News, News, News
gnimmeL_kraD
Engineer
Engineer
Posts: 6
Joined: 25 May 2004 18:23
Location: Zoetermeer, The Netherlands

Post by gnimmeL_kraD »

Hmm... I can't get it started. It says : No available language packs.

I did the following.
- Installed TTD
- Installed Open TTD 0.3.3
- Copied the Open TTD dir to my ipaq
- Copied the Mobile TTD files to that folder

Tried to run the game... but then I get that error. I don't understand German, so can anyone help me here with this problem? Or can someone build a descent English manual?

Oh... BTW... I don't know if it's important, but the iPaq i'm using is a HP iPaq 4150

[edit]
I remember having this error on my desktop some time ago. But I then it was something with the language files witch where not in the same folder as TTD was. So I tried to copy them from TTD\LANGUAGE to TTD\, but this made no difference.
[/edit]
asuras
Engineer
Engineer
Posts: 7
Joined: 21 Oct 2004 10:17
Location: Hong Kong

Post by asuras »

I have the same problem too, i am using iPAQ2210, how to run OpenTTD in pocketPC, i love this game very much.
Thanks a lot~
User avatar
Hadez
Traffic Manager
Traffic Manager
Posts: 217
Joined: 22 Jul 2004 21:25
Location: Jablonec nad Nisou, Czech republic
Contact:

Post by Hadez »

gnimmeL_kraD wrote:Hmm... I can't get it started. It says : No available language packs.
The language packs have to be the same version as your game, there´s probably your problem. You´ll have to compile string files with strgen.
gnimmeL_kraD
Engineer
Engineer
Posts: 6
Joined: 25 May 2004 18:23
Location: Zoetermeer, The Netherlands

Post by gnimmeL_kraD »

When I try to run strgen.exe I'm getting another error. Isn't there someone who can make a complete mobile package?

I'm getting the following error:
This application has failed to start because MSVCR71.dll was not found. Re-installing the appclication may fix this problem.

Well... I tried to re-install TTD but that didn't help. Now it's getting really frustrating trying to install it to my PPC.
User avatar
Hadez
Traffic Manager
Traffic Manager
Posts: 217
Joined: 22 Jul 2004 21:25
Location: Jablonec nad Nisou, Czech republic
Contact:

Post by Hadez »

That file is probably a M$ VC runtime library.
I don´t know this will work, but - copy this file from your PC (do you have Windows?)
gnimmeL_kraD
Engineer
Engineer
Posts: 6
Joined: 25 May 2004 18:23
Location: Zoetermeer, The Netherlands

Post by gnimmeL_kraD »

I'm running strgen.exe from Windows XP. It can't run from the PPC because it's compiled as a Win32 executable. So basicly i'm missing the visual C run-libraries?
User avatar
The14given
Engineer
Engineer
Posts: 31
Joined: 31 Aug 2004 12:07
Location: Düsseldorf/Gemany

Post by The14given »

You should create a root Folder in the Folder of TTD. And it doesn't run from Storage Cards!!!!!!!!!!!!

Just read the tutorial, here:

http://www.pocketgamer.org/showthread.p ... eadid=4198
Besucht uns:

Image

UPDATE: Banner Contest mit Preisauschreiben
News, News, News
User avatar
Hadez
Traffic Manager
Traffic Manager
Posts: 217
Joined: 22 Jul 2004 21:25
Location: Jablonec nad Nisou, Czech republic
Contact:

Post by Hadez »

gnimmeL_kraD wrote:I'm running strgen.exe from Windows XP. It can't run from the PPC because it's compiled as a Win32 executable. So basicly i'm missing the visual C run-libraries?
Perhaps. Are you really trying to run x86 binaries on PocketPC? Does it work? (I´m curious)
Btw have you put lang files to .\lang\ folder? I saw you tried other dirs.
gnimmeL_kraD
Engineer
Engineer
Posts: 6
Joined: 25 May 2004 18:23
Location: Zoetermeer, The Netherlands

Post by gnimmeL_kraD »

Ok, it's working now. This is what i've done:

1. I've downloaded the this 0.3.4 version of the pocket PC version from the german forum.
2. I've put the data files listed in the included readme file in the data folder.
3. Copied all the files on my PPC and started the .exe file on my PPC and.... it worked!

Yes, it was really that simple! So basicly you only need the PPC version and a few datafiles from the original TTD. In this version you also don't have to do anything with a root file or using other tools to compile stuff.

I'm really happy now... I can play TTD everywhere :D
User avatar
RailJade
Engineer
Engineer
Posts: 92
Joined: 27 Jul 2004 15:19
Location: On the Northeast Corridor

Post by RailJade »

Unfortunately, when I was trying to download the program from that link. It keeps telling me in German that the file does not exist :(.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 32 guests