Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Sep 26, 2017 3:44 am

All times are UTC




Post new topic  Reply to topic  [ 35 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Wed Apr 02, 2008 2:49 am 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
This patch allows you to make an intro game (opntitle.dat) which jumps to several preset locations with an adjustable delay (patch setting), to show off different areas of the game.

You can set the time inbetween each jump in game days. Setting it to 0 will disable jumping completely.

The game will check for signs in the intro game and (if the setting is not disabled) jump to one after another, alphabetically. So to use this, just make a nice savegame with some signs at the places you want to show, labelled '01' through 'xx', rename it to opntitle.dat and place it in the data folder. Then set the patch setting to an appropriate value and restart the game.

Two small changes I've made with this patch:
- signs are not shown anymore in the game menu, for not spoiling the pleasure with "1", "2", ... signs in the view.
- when moving the viewport a bit so that only a part would have to be redrawn, if we are in the game menu redraw the whole screen anyways, because the "OPEN TTD" letters would cause graphical glitches else.

I'm providing a little opntitle.dat I've made myself, however it's not that great. I hope to find someone who is willing to make a contest for a new title game, similar to the contest littlemikey held some time ago - only this time with this new feature.
I also hope to get some feedback from devs - are there any issues with this patch? What do you think of a new intro game using this feature? Any chance for trunk now that 0.6.0 is out? (feature lock bye bye ;))


So, enough talk, see for yourself :P

edit: something i forgot to add (sorry wolf01)
this patch is based on wolf01's patch. I added the functionality with the signs and managed to fix the problem with the OPENTTD letters, but initial coding and idea is from him. ;)
edit: rediff for r12628
edit: rediff for r12733
edit: rediff for r12805
Attachment:
File comment: menu jumping v1 for r12628
menu_jumping_v1_r12628.diff [7.98 KiB]
Downloaded 245 times


Attachments:
File comment: menu jumping v1 for r12536
menu_jumping_v1_r12536.diff [7.84 KiB]
Downloaded 270 times
File comment: title game made by myself for demonstration
opntitle.dat [29.59 KiB]
Downloaded 321 times

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Last edited by Roujin on Mon Apr 21, 2008 10:42 am, edited 6 times in total.
Top
   
PostPosted: Wed Apr 02, 2008 3:22 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Jan 25, 2008 7:32 am
Posts: 962
Location: Gamle Ørnenuten
Sure sounds like a nifty feature! I'll try this once someone updates the daylenght patch, cba to make myself a new build without that one now :P

_________________
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish


Top
   
PostPosted: Wed Apr 02, 2008 12:55 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Oct 07, 2007 3:10 pm
Posts: 277
Location: Prague, Czech Republic
Another small and useful ( at least interesting ) patch by Roujin. Sounds interesting ( well it isn't like it was before: always same screen ).

_________________
Soeb

-- This user is inactive here, to contact me, please send me an e-mail. I'm always willing to answer any questions about graphic coding (or any other stuff I might know about in ottd), though my information might be quite outdated. --


Top
   
PostPosted: Wed Apr 02, 2008 3:16 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed May 16, 2007 4:59 pm
Posts: 2759
I like this idea! Sounds good...

_________________
GRVTS/eGRVTS --- Generic Tram Set --- UK Town Set --- zBase ---RichardWheeler.net


Top
   
PostPosted: Wed Apr 02, 2008 3:59 pm 
Offline
Engineer
Engineer

Joined: Thu Dec 20, 2007 6:20 pm
Posts: 20
Awesome idea!


Top
   
PostPosted: Wed Apr 02, 2008 5:20 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Apr 24, 2004 10:43 am
Posts: 1965
Location: Venezia - Italia
Soeb wrote:
Another small and useful ( at least interesting ) patch by Roujin. Sounds interesting ( well it isn't like it was before: always same screen ).

So is only necessary to find another person to publish my patches to make people to like them :twisted:
Great work with the fixes and improvements, Roujin ;)

_________________
ImageImage
ImageImage
ImageImage
newgrf tests, see: newgrf test topic, my patches: Wolf01's Hire Point
Italian TTD Forum
Wiki Page


Top
   
PostPosted: Wed Apr 02, 2008 6:30 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Thu Mar 30, 2006 12:05 pm
Posts: 329
Location: Germany
I love the idea!
I always wondered why there is a static screen. Every time the same screen... kinda boring.

Should the opentitle.dat contain any grfs?


Top
   
PostPosted: Wed Apr 02, 2008 7:35 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
Wolf01 wrote:
Soeb wrote:
Another small and useful ( at least interesting ) patch by Roujin. Sounds interesting ( well it isn't like it was before: always same screen ).

So is only necessary to find another person to publish my patches to make people to like them :twisted:
Great work with the fixes and improvements, Roujin ;)


s*** :shock: i swear, i first wanted to give credit to you, but then I had to reboot and write the post from the beginning, and forgot to credit you this time! :oops:
So, here I go: this patch is based on wolf01's patch. I added the functionality with the signs and managed to fix the problem with the OPENTTD letters, but initial coding and idea is from him. ;)

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Top
   
PostPosted: Wed Apr 02, 2008 7:36 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Fri Dec 02, 2005 3:43 pm
Posts: 619
Location: Drancy(93) - France
zypa wrote:
Should the opentitle.dat contain any grfs?

Not recommended.


Top
   
PostPosted: Wed Apr 02, 2008 11:01 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Apr 24, 2004 10:43 am
Posts: 1965
Location: Venezia - Italia
Roujin wrote:
Wolf01 wrote:
Soeb wrote:
Another small and useful ( at least interesting ) patch by Roujin. Sounds interesting ( well it isn't like it was before: always same screen ).

So is only necessary to find another person to publish my patches to make people to like them :twisted:
Great work with the fixes and improvements, Roujin ;)


s*** :shock: i swear, i first wanted to give credit to you, but then I had to reboot and write the post from the beginning, and forgot to credit you this time! :oops:
So, here I go: this patch is based on wolf01's patch. I added the functionality with the signs and managed to fix the problem with the OPENTTD letters, but initial coding and idea is from him. ;)

Don't worry, you already credited me in the poll topic, my post was directed to who think my patches are crappy only because there's my name... and my name is behind some of the most used patches... :P

_________________
ImageImage
ImageImage
ImageImage
newgrf tests, see: newgrf test topic, my patches: Wolf01's Hire Point
Italian TTD Forum
Wiki Page


Top
   
PostPosted: Thu Apr 03, 2008 8:23 am 
Offline
Transport Coordinator
Transport Coordinator

Joined: Thu Mar 30, 2006 12:05 pm
Posts: 329
Location: Germany
glx wrote:
zypa wrote:
Should the opentitle.dat contain any grfs?

Not recommended.


What about generic trams v0.4
It comes with openttd 0.6, but it is not preloaded.


Top
   
PostPosted: Thu Apr 03, 2008 8:35 am 
Offline
Engineer
Engineer
User avatar

Joined: Sat Sep 15, 2007 12:51 am
Posts: 85
Location: Slovenia
Wolf01 wrote:
Don't worry, you already credited me in the poll topic, my post was directed to who think my patches are crappy only because there's my name... and my name is behind some of the most used patches... :P


Maybe it would be better if roujin wouldn't credit you, as his patch won't than get included in trunk :) Oh, and I am only joking about that. :P


Top
   
PostPosted: Thu Apr 03, 2008 8:47 am 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
zypa wrote:
glx wrote:
zypa wrote:
Should the opentitle.dat contain any grfs?

Not recommended.


What about generic trams v0.4
It comes with openttd 0.6, but it is not preloaded.


wha..? are you sure about that? oO I thought the devs decided to not include generic trams in the official version :?

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Top
   
PostPosted: Thu Apr 03, 2008 9:21 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed May 16, 2007 4:59 pm
Posts: 2759
Generic trams is definitely included, can we use that in the title screen then?

_________________
GRVTS/eGRVTS --- Generic Tram Set --- UK Town Set --- zBase ---RichardWheeler.net


Top
   
PostPosted: Thu Apr 03, 2008 9:34 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Thu Feb 09, 2006 7:15 pm
Posts: 3815
Generic trams will only be in full releases; not in nightlies, betas or release candidates. So adding it to the default title screen is not an option.

The default title screen is furthermore a great tool to check whether old savegames still load in OpenTTD, just because it currently is a very old savegame.


Top
   
PostPosted: Thu Apr 03, 2008 10:29 am 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
Rubidium wrote:
The default title screen is furthermore a great tool to check whether old savegames still load in OpenTTD, just because it currently is a very old savegame.


I understand your point. Maybe that could be adressed by adding a boolean patch option (yes i know, you're probably not too fond of that). Something like "Enable New Intro". Then have both files, opntitle.dat and, say, newtitle.dat and load one of them according to the patch setting.
The setting could even be disabled by default...
Would that be better?

But actually, having a new opntitle.dat is not what I wanted to discuss in this thread... actually I made a thread in the suggestions forum (viewtopic.php?f=32&t=36923 ), to keep those two topics apart.
After all, this patch could also be included without changing the opntitle.dat at all. It shouldn't change any behavior if using the current opntitle.dat.

So in this thread I'd rather like to discuss if the patch by itself is fine.

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage


Top
   
PostPosted: Thu Apr 03, 2008 12:42 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Oct 07, 2007 3:10 pm
Posts: 277
Location: Prague, Czech Republic
Wolf01 wrote:
So is only necessary to find another person to publish my patches to make people to like them :twisted:

I haven't seen your before. How could I know it was based on you patch?
Probably it can be like that... :lol:
And your patches aren't crappy.

_________________
Soeb

-- This user is inactive here, to contact me, please send me an e-mail. I'm always willing to answer any questions about graphic coding (or any other stuff I might know about in ottd), though my information might be quite outdated. --


Top
   
PostPosted: Thu Apr 03, 2008 5:38 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Apr 24, 2004 10:43 am
Posts: 1965
Location: Venezia - Italia
Soeb wrote:
Wolf01 wrote:
So is only necessary to find another person to publish my patches to make people to like them :twisted:

I haven't seen your before. How could I know it was based on you patch?
Probably it can be like that... :lol:
And your patches aren't crappy.

Definitely they aren't, you all use transparency options, drag&drop remove stations, adjacent stations (who knows how to trigger it :P)
I'm also the guy who coded daylength (before chrissicom's rewrite) and collaborated with Frostregen on the eyecandy patch
Give a look to my thread in the suggestions forum, I really need constant feedback else I lose interest on mantain and develop patches ;)

About the opentitle savegame, take TTDPatch without any feature, make a good looking game and then add some signs, so it really should be fully backward compatible :D

_________________
ImageImage
ImageImage
ImageImage
newgrf tests, see: newgrf test topic, my patches: Wolf01's Hire Point
Italian TTD Forum
Wiki Page


Top
   
PostPosted: Sun Apr 13, 2008 10:09 pm 
Offline
President
President
User avatar

Joined: Sun Jun 18, 2006 6:18 pm
Posts: 953
Location: Switzerland
just tested that patch and it works nice with #coop games. Now, I am wondering if it would be possible to make something like that also ingame, just if I join a #coop and let it run some time. (just watching) --> Something like a automatic spectacte mode.

the 2. thing: Is it possible to move the Menu out from the middle somewhere in a edge? (top-left i.e.)

Greets
Ammler

Btw. I had problems with compiling, needed to add {} to the switch statement in signs_gui.cpp around row 258 etc...


Attachments:
File comment: Working patch for gcc...
menu_jumping_v1_r12628_Brackets.diff [8.97 KiB]
Downloaded 178 times

_________________
Image
Town Names: Image Portuguese Image Belarusian Image French Image Swiss · Image Temperate Lumber Mill
Still work in progress: OpenGFX or/and OpenSFX - Please help!
Top
   
PostPosted: Wed Apr 16, 2008 4:55 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
rediff for r12733.


Attachments:
File comment: menu jumping for r12733
menu_jumping_v1_r12733.diff [7.95 KiB]
Downloaded 181 times

_________________
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 35 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.