Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Dec 12, 2018 1:25 pm

All times are UTC




Post new topic  Reply to topic  [ 15 posts ] 
Author Message
 Post subject: [NoGo] TransportGoals
PostPosted: Tue Dec 20, 2011 11:36 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
A GameScript which provides goals regarding amount of transported cargo divided by amount of vehicles.

bananas wrote:
Creates a goal per company:
- Transport at least X cargo items per vehicle during a period of three months

Displays a sign over each HQ with the last achieved level per company.


Additionally this NoGo/GameScript demonstrates how to
  • Use translations
  • Use SuperLib for NoGo
  • Set individual goals for each company

You find the the last version on Bananas. Preferable use online content within OpenTTD to ensure you have a new enough OpenTTD version and that you get the required dependencies.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Last edited by Zuu on Fri May 18, 2012 5:34 pm, edited 1 time in total.

Top
   
PostPosted: Wed Dec 21, 2011 10:52 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
Update - version 2

New in version 2:
  • Save/load support
  • Move sign when HQ is moved
  • Lower step between levels

In case you want to translate for your language, I've attached the english.txt. To translate, download english.txt and rename it to [your language].txt, and edit the file with a text editor in UTF-8 mode. Please go to the lang directory of your OpenTTD installation to find out exactly which file name to use for your language.

STR_SCORE appears as a sign on top of the HQ of each company
STR_GOAL appear once for each company in the goal window


Attachments:
english.txt [156 Bytes]
Downloaded 338 times
swedish.txt [160 Bytes]
Downloaded 115 times

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Top
   
PostPosted: Thu Dec 22, 2011 8:24 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Thu Sep 11, 2008 7:32 am
Posts: 1034
Location: Spain
Here you go :)

EDIT: UTF-8


Attachments:
spanish.txt [175 Bytes]
Downloaded 130 times

_________________
Spanish translation of OpenTTD
Extended heightmaps

Have fun, don't quarrel too much and add as many advanced settings as you can.


Last edited by Terkhen on Wed Dec 28, 2011 6:42 pm, edited 1 time in total.
Top
   
PostPosted: Thu Dec 22, 2011 11:11 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Sun Sep 09, 2007 5:03 am
Posts: 4677
Location: home
And a Dutch translation :)

I must say I don't understand the goal though "X cargo items PER VEHICLE" ?

In other words, just 1 vehicle is sufficient?


Attachments:
dutch.txt [155 Bytes]
Downloaded 132 times
Top
   
PostPosted: Thu Dec 22, 2011 11:17 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
Thanks,

Yes, you could use just one vehicle and try to deliver as much cargo as possible with that vehicle.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Thu Dec 22, 2011 11:36 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9062
Location: Sol d
German translation :-)


Attachments:
german.txt [178 Bytes]
Downloaded 230 times

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Top
   
PostPosted: Wed Dec 28, 2011 4:02 pm 
Offline
Engineer
Engineer

Joined: Sat Jun 26, 2010 12:51 am
Posts: 8
French translation


Attachments:
French.txt [163 Bytes]
Downloaded 109 times
Top
   
PostPosted: Wed Dec 28, 2011 7:15 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
Thanks for the translations. However the French translation was not encoded in UTF8 so I had to convert it (otherwise the translation would cause the entire game script to not work)

Since the bug in OpenTTD has been corrected that only the goals for your own company is displayed, I've removed the company name from the goal string. As the string started with {COMPANY}:, I have decided to just remove it from all translations as I don't think it affects them. If I'm wrong, please correct me (and the translation).

Version 3
This version has the new translations.


Attachments:
TransportGoals-v3.tar [21.5 KiB]
Downloaded 173 times
english.txt [145 Bytes]
Downloaded 136 times

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Top
   
PostPosted: Wed Jan 04, 2012 8:12 pm 
Offline
Engineer
Engineer

Joined: Thu Aug 25, 2011 11:48 am
Posts: 120
Russian translation below.

Attachment:
russian.txt [230 Bytes]
Downloaded 121 times


Top
   
PostPosted: Wed Jan 04, 2012 8:20 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
Is that a valid UTF-8 file? When loading with encoding=utf8 in vim I don't get any meaningful text. Not that I read Russian, but I would expect to not get all text as white filled boxes.

Please ensure that you save your file as UTF-8.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Wed Jan 04, 2012 8:53 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
My bad, the file is a perfectly fine UTF-8 file.

Here is a new version that includes the Russian translation.


Attachments:
TransportGoals-v4.tar [22.5 KiB]
Downloaded 174 times

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Top
   
PostPosted: Mon Apr 16, 2012 6:18 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Apr 14, 2004 3:18 pm
Posts: 312
Location: Fr
Hi,
sorry, it's maybe a stupid question : where does the goal is displayed durring the game ?
I was waiting for a window that would appears, it's maybe somewhere else ?
I play with ottd 1.2.0

by the way, I can see in english.txt that the goal is a number of gargo item, but are there goal for cargo itself ? (I mean something like "transport 5 ton of mail durring 3 month")
Thank you,
regards.


Top
   
PostPosted: Mon Apr 16, 2012 7:34 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
Under the same button as you find subsidaries in the main toolbar, there is a menu where you find your goals.


The goal provided by this script is fairly simple. It was the first released NoGo that I made to test the NoGo framework and provide a demonstration and test case of how to do things in NoGo. That said, future developments are not impossible although currently I don't have any work in progress for this NoGo.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Tue Apr 24, 2012 10:48 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Tue Jul 17, 2007 1:36 am
Posts: 1244
Skype: moonray_zdo
Location: Teh matrix, duh.
I cant wait until all of these game scripts start to take off... openttd has been missing a goal system like this forever...

_________________
Formerly known as Sapphire United.

Learn Openttd
Learn Planetary Annihilation
Learn Orbit
Whose poo?


Top
   
PostPosted: Wed Apr 25, 2012 10:58 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Tue Dec 03, 2002 10:36 am
Posts: 13179
Location: The Netherlands
Sapphire united wrote:
I cant wait until all of these game scripts start to take off... openttd has been missing a goal system like this forever...

I can't wait until multiple scripts are possible in one game. And I feel guilty for that because I really should be happy with having goals to begin with :( .

_________________
Image
Dutch Trainset for OpenTTD | Dutch Trainset Topic | Combined Roadset v0.10


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users 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-2018 phpBB Limited

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