Nintendo DS port (Alpha 6)

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
User avatar
AntBUK
Transport Coordinator
Transport Coordinator
Posts: 319
Joined: 02 May 2007 12:29
Location: Sheffield, England
Contact:

Re: Nintendo DS port

Post by AntBUK »

dominik81 wrote:
AntBUK wrote:Edit: Won't even build a dock :( just returns misc>cursor 0x0 (0)
That's strange, I don't have problems building docks. Are you sure you clicked on a valid tile?
Absolutely, I am able to build a Lock on the tile and afaik Locks have tighter restrictions as to where they can be built.

I attempt to return to the title screen and I get an out of memory error (cannot allocate 172032 bytes assertion 0 failed, openttd.cpp line 111), but that may be due to having to load the "background" so I'm going to make a quick background screen 64^2 based off my R4 theme just to confirm, as I remember you saying there was problems loading games larger than 64^2.

Edit: Yup, 64^2 works fine on the title screen, also just found it available on QuickJump :D Also located it on DC-Emu.
Rasing Awareness: Aspergers Syndrome 1 (NAS UK)2 (BBC)3 (YaleDDC)


Something is driving you insane... It is me.
chrism_scotland
Engineer
Engineer
Posts: 3
Joined: 17 Jan 2008 09:29

Re: Nintendo DS port

Post by chrism_scotland »

I get an error, cannot open file sample.cat? Any ideas?
User avatar
AntBUK
Transport Coordinator
Transport Coordinator
Posts: 319
Joined: 02 May 2007 12:29
Location: Sheffield, England
Contact:

Re: Nintendo DS port

Post by AntBUK »

You still need the original data files to play the DS port :)
Rasing Awareness: Aspergers Syndrome 1 (NAS UK)2 (BBC)3 (YaleDDC)


Something is driving you insane... It is me.
chrism_scotland
Engineer
Engineer
Posts: 3
Joined: 17 Jan 2008 09:29

Re: Nintendo DS port

Post by chrism_scotland »

Ah cool, which files?
User avatar
AntBUK
Transport Coordinator
Transport Coordinator
Posts: 319
Joined: 02 May 2007 12:29
Location: Sheffield, England
Contact:

Re: Nintendo DS port

Post by AntBUK »

Depending on which version of TTD you have...

DOS
  • SAMPLE.CAT
  • TRG1.GRF
  • TRGC.GRF
  • TRGH.GRF
  • TRGI.GRF
  • TRGT.GRF
Windows
  • sample.cat
  • trg1r.grf
  • trgcr.grf
  • trghr.grf
  • trgir.grf
  • trgtr.grf
They can be found in the DATA folder of your original installation.
Rasing Awareness: Aspergers Syndrome 1 (NAS UK)2 (BBC)3 (YaleDDC)


Something is driving you insane... It is me.
chrism_scotland
Engineer
Engineer
Posts: 3
Joined: 17 Jan 2008 09:29

Re: Nintendo DS port

Post by chrism_scotland »

Cheers man, good work, works a lot better than I imagined it ever could already!
elf_sander
Engineer
Engineer
Posts: 26
Joined: 12 Sep 2005 15:35
Location: Nederland
Contact:

Re: Nintendo DS port

Post by elf_sander »

The DS is able to show 16 bits of colors so 8 bit graphics shouldn't be a problem, also remember that TTD is originally a DOS game and doesn't need much memory to begin with. OpenTTD, however, is much more complex and needs a bit more than the original.
AlexFili
Engineer
Engineer
Posts: 56
Joined: 21 Jan 2007 14:48

Re: Nintendo DS port

Post by AlexFili »

Working - An airplane route from one part of town to another
Not Working - Crashed when I tried to build a train route to the coal place
Not Working - Crashed when I tried to link the coal route with some coal road vehicles
Not Working - Doesn't save the manager's face

Very good port so far, Can't wait to see how good this gets!
AlexFili
Engineer
Engineer
Posts: 56
Joined: 21 Jan 2007 14:48

Re: Nintendo DS port

Post by AlexFili »

Not Working - Bus route from one part of town to another
Working - Docks and Locks, they work fine for me.
AlexFili
Engineer
Engineer
Posts: 56
Joined: 21 Jan 2007 14:48

Re: Nintendo DS port

Post by AlexFili »

I managed to get it not to crash when building a train network.
Unfortunately, that involved turning off the pathfinding, and it soon became lost with the NTP. Oh well...
Excellent work so far with the game.
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Re: Nintendo DS port

Post by dominik81 »

I've been thinking about the gui a bit more. What I came up with is having the (16pixel high) main toolbar at the bottom of the screen and the status bar at the top. The reason being that the toolbar needs to be on the bottom screen to be clickable, but it shouldn't divide the viewport in two. I know it's quite unusual for OpenTTD players but many DS games (Theme Park, Settlers) have it that way. What do you think?

@Slye_Fox: Could you make the main toolbar icons into a grf that replaces the original ones? I don't know if that's possible, but else a normal grf file would be ok too.
elf_sander wrote:Quit Game doesn't always work (1/6 attemps actually work) most of the time I get the next error with a freeze:
Free 68k Largest 48K
[Err:] Out of memory. Cannot allocate 65536 bytes assertion "0" failed: file "/media/hdbd1/dev/ndsdev/openttd/src/os/ds/arm9/../../../../src/openttd.cpp" line 111
That's fixed for the next version. It was due to the fact that OpenTTD always allocates a 256x256 map before loading a game.
elf_sander wrote:
PS: I personally don't like qwerty. On my PC I have Neostyle layout.
What kind of layout is that? Can you show me an example?
This is how it looks like.
weaselboy246 wrote:only problem I found was randomly the road between vehicles would flash dirt. like it was just built.
That's in the debug version only. It shows the tiles that the pathfinder has visited. For a real release it will be disabled.
Also YAPF will be automarically disabled in the next release. In fact it will not even be compiled into the game.
Stylpe wrote:I've tried building a rail route too, and see the same behaviour with the trains just going back and forth on hte loading station
That's fixed too.
elf_sander wrote:The DS is able to show 16 bits of colors so 8 bit graphics shouldn't be a problem, also remember that TTD is originally a DOS game and doesn't need much memory to begin with. OpenTTD, however, is much more complex and needs a bit more than the original.
It doesn't really matter that much if a game is 8bit or 16bit as most graphics stuff in most games is done in hardware. Even though TTD was very tight and efficently programmed, OpenTTD is something completely different. In comparison it is very bloated now that I almost which I would base my port on an early revision. Even I am very surprised how well it runs now that I have fixed a lot of things. I played a 128x64 game for over an hour (6 years) yesterday, with 3 AIs and all kinds of vehicles. Not a single crash until year 6. :)
AlexFili wrote:Not Working - Doesn't save the manager's face
You mean saving the managers face to the config file, right? The problem is, that OpenTTD only saves the config file when you exit the game - or start a new game. I'll have to add a more obvious "save current config" button.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
AlexFili
Engineer
Engineer
Posts: 56
Joined: 21 Jan 2007 14:48

Re: Nintendo DS port

Post by AlexFili »

Ah well that explains it. Well, good work so far.
elf_sander
Engineer
Engineer
Posts: 26
Joined: 12 Sep 2005 15:35
Location: Nederland
Contact:

Re: Nintendo DS port

Post by elf_sander »

dominik81 wrote:
elf_sander wrote:
PS: I personally don't like qwerty. On my PC I have Neostyle layout.
What kind of layout is that? Can you show me an example?
This is how it looks like.
Ah it's a German style. Great for all Germans, but not so great for the rest of the users ;) Maybe adding a Tab with symbols/special characters would be an option? Or adding mutiple keyboard layouts (that's gonna eat memory, though)
User avatar
AntBUK
Transport Coordinator
Transport Coordinator
Posts: 319
Joined: 02 May 2007 12:29
Location: Sheffield, England
Contact:

Re: Nintendo DS port

Post by AntBUK »

Alexfili: the edit button is your friend, it saves having multiple posts one after the other.
dominik81 wrote:
elf_sander wrote:
dominik81 wrote: PS: I personally don't like qwerty. On my PC I have Neostyle layout.
What kind of layout is that? Can you show me an example?
This is how it looks like.
Could you not have multiple keyboards? Neotype would drive me mad :) the keyboards what go "ABCDEF...etc." drive me mad as it is :)
Rasing Awareness: Aspergers Syndrome 1 (NAS UK)2 (BBC)3 (YaleDDC)


Something is driving you insane... It is me.
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Re: Nintendo DS port

Post by dominik81 »

Just a quick note: I didn't mean that the OSK should use Neo. That was simply a side-note to what I am using. A ABCDE... keyboard and a QWERTY one will do. Loading different keyboards shouldn't be a problem memory-wise either.

I probably won't start work on any GUI stuff until the other bugs are fixed though. And that list is still pretty long...
"There's a readme that comes with the source. I suggest you read it."
- Korenn
Slye_Fox
Traffic Manager
Traffic Manager
Posts: 164
Joined: 21 Aug 2004 14:27
Location: London, UK
Contact:

Re: Nintendo DS port

Post by Slye_Fox »

Why put the toolbar on the bottom when the screens are switchable?

and i'm not sure what you want me to do.
Image
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Re: Nintendo DS port

Post by dominik81 »

Slye_Fox wrote:Why put the toolbar on the bottom when the screens are switchable?
Because having the status bar (which is pretty useless to click) on the touchscreen doesn't make sense.

Slye_Fox wrote:and i'm not sure what you want me to do.
To get the 16x16 icons into the game they need to be in GRF format. So I would need them as a *.grf file. And I think with newgrfs it is possible to overwrite existing sprites. So I was thinking you could specify in the grf file difectly to overwrite the bigger, original sprites. If that's not possible a regular grf file with the graphics will do.

I also altered the zoom icons again and added a "switch toolbar" button.
Attachments
toolbars.png
toolbars.png (7.92 KiB) Viewed 7805 times
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: Nintendo DS port

Post by Bilbo »

dominik81 wrote:
Slye_Fox wrote:Why put the toolbar on the bottom when the screens are switchable?
Because having the status bar (which is pretty useless to click) on the touchscreen doesn't make sense.

Slye_Fox wrote:and i'm not sure what you want me to do.
To get the 16x16 icons into the game they need to be in GRF format. So I would need them as a *.grf file. And I think with newgrfs it is possible to overwrite existing sprites. So I was thinking you could specify in the grf file difectly to overwrite the bigger, original sprites. If that's not possible a regular grf file with the graphics will do.

I also altered the zoom icons again and added a "switch toolbar" button.
Hmm ... I wonder whether we could have BOTH icons at the same time in ordinary openttd ... so that when you resize regular openttd window under some certain size, icons will swith to the smaller equivalents. Which would be better than current "stacking"
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
AlexFili
Engineer
Engineer
Posts: 56
Joined: 21 Jan 2007 14:48

Re: Nintendo DS port

Post by AlexFili »

I like the look of the smaller toolbar.
Just thought I'd let you know, the far left of the DS screen has a few pixels that don't respond to touch activity. So try and keep the windows at least 3-5 pixels away from the left edge. Thanks.

Also, when most people buy an engine for a train, they want to add vehicles right after, but for some reason the buy window closes as soon as you buy a train. It would be nice if the buy window remained open until you press cancel.

Did you read my suggestion about having a random seed?
If the player presses start at a random time, or if you get the random number from the battery life, or date... then you could have a number that was truly random. If you really have no clue about this, I can send you a code snippit from one of my projects, which was also generating random numbers.
Slye_Fox
Traffic Manager
Traffic Manager
Posts: 164
Joined: 21 Aug 2004 14:27
Location: London, UK
Contact:

Re: Nintendo DS port

Post by Slye_Fox »

I've no idea how to make grf files.
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests