Page 1 of 1

Where does opntitle.dat come from?

Posted: 29 Dec 2019 06:56
by bwalker
Hi Devs,

Great work. Really enjoy the game.

I'm looking at the source code to learn more.

I've noticed that the opntitle.dat in the source code is significantly different from the opntitle.dat in an installation. The installation I'm using is Windows based.

Are you able to enlighten me on the difference? Why? And am I able to access the appropriate 'repo'?

Brett

Re: Where does opntitle.dat come from?

Posted: 29 Dec 2019 08:36
by PikkaBird
opntitle.dat is the title screen background and is just a renamed savegame AFAIA.

Re: Where does opntitle.dat come from?

Posted: 29 Dec 2019 09:00
by jfs
Yes it's just a regular savegame file, renamed.
Usually selected through a title game contest, here's the contest for the 1.9 title screen: viewtopic.php?f=29&t=84827

Re: Where does opntitle.dat come from?

Posted: 29 Dec 2019 09:05
by bwalker
PikkaBird wrote: 29 Dec 2019 08:36 opntitle.dat is the title screen background and is just a renamed savegame AFAIA.
Thanks Pikka,

I was aware of this. But it doesn't explain the difference.

Re: Where does opntitle.dat come from?

Posted: 29 Dec 2019 09:07
by bwalker
jfs wrote: 29 Dec 2019 09:00 Yes it's just a regular savegame file, renamed.
Usually selected through a title game contest, here's the contest for the 1.9 title screen: viewtopic.php?f=29&t=84827
Oh, I didn't know about the competitions,
thanks jfs.

I should be able to find the title screen for the 1.9 release on the 1.9 branch. Makes sense now.

I'll have a look.

Brett

Re: Where does opntitle.dat come from?

Posted: 29 Dec 2019 14:32
by FLHerne
The `opntitle.dat` used in master is a very old savegame, which gives it a secondary purpose for testing - it's immediately obvious if the code to read and convert savegames from previous versions gets broken, and it's compatible with virtually all OpenTTD versions (back to 0.3.x or something) for comparison..

Re: Where does opntitle.dat come from?

Posted: 30 Dec 2019 17:46
by planetmaker
Some old competitions with all entries are actually still online in their entirety. If you search these forums you might find all from all competition rounds (they started with 1.0 iirc):

https://devs.openttd.org/~planetmaker/titlegame-1.1/
https://devs.openttd.org/~planetmaker/titlegame-1.2/
https://devs.openttd.org/~planetmaker/titlegame-1.3/
https://devs.openttd.org/~planetmaker/titlegame-1.4/
https://devs.openttd.org/~planetmaker/titlegame-1.5/
https://devs.openttd.org/~planetmaker/titlegame-1.6/
https://devs.openttd.org/~planetmaker/t ... .9/round1/

The actual winning entries might have been slightly edited for smaller savegame size (e.g. deleting all irrelevant content not ever becoming visible)