Page 1 of 1

Story Book - a new GS feature

Posted: 10 Jun 2013 21:03
by Zuu
Hello,

In the shadow of CargoDist, recently trunk has got another new feature - the Story Book. It is basically a window that displays pages with text and references to tiles and goals. What is nice about it is that any GS can add content to this book. Actually, without that, the book is just a boring empty book.
T. Nelson Transport, 6th Feb 1950.png
T. Nelson Transport, 6th Feb 1950.png (27.06 KiB) Viewed 3878 times
For more help on how to get started with the Story Book I recommend this wiki article. See also the API docs.

If you want to see the story book in action with some content, you can upgrade to NoCarGoal version 8 which I released yesterday. It is not perfect in its use of the story book and goal window as it still maintains backward compatibility, but could be a starting point and example.

And, last I have also released a new SuperLib version with some helpers to work with the Story Book as well as a method that displays a text in the story book but falls back to GSGoal.Question for users of older OpenTTD versions. If you miss something there and write your own additional helper, I wouldn't mind including that helper in SuperLib if it is something that may be useful for other script authors.

Re: Story Book - a new GS feature

Posted: 11 Jun 2013 14:29
by TinyMusic
I should try it soon. Happy about Cargodist in trunk, but I never tried GameScript

PS: Is that TTDPatch graphics I see in the top toolbar? Doesn't look like my normal ones.

Re: Story Book - a new GS feature

Posted: 11 Jun 2013 19:16
by Zuu
A game script is like a game leader. It can set up goals and rules of the game. There are already quite a few different types of games that you can play using the various different game scripts on bananas. (but download them using the in-game download client - that will save you from much hassle)

The graphics are the TTD graphics.

Re: Story Book - a new GS feature

Posted: 12 Jun 2013 06:14
by Aphid
Could this be added to the NoGo changelog?

Re: Story Book - a new GS feature

Posted: 12 Jun 2013 06:48
by Zuu
Aphid wrote:Could this be added to the NoGo changelog?
Yes, it should be added there. I just forgot it among all other things that needed to be done. (update GSWindow etc.)

Re: Story Book - a new GS feature

Posted: 07 Jul 2013 10:52
by krinn
Just to say it's a real good addition, thanks zuu.