Transport analyzer

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply

Do you use transport analyser?

Yes, a useful tool
3
38%
No, it is useless
3
38%
Yes, I use it sometimes, but rather rare
2
25%
 
Total votes: 8

User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Transport analyzer

Post by George »

After 2 weeks of work, I have fully rewrote the transport analyzer. Now it works about 5-10 times faster. I ask you to test the new version for bugs and also would like to ask you for help.

The problem that I have is filling the database. It took a lot of time to fill it the first time (for the previous version), but new sets came out, more prop's are now supported, and so on. So, the database requires actualization.
I'm looking for the help of the grf sets creators or volunteers.

What do I need:
The database is filled with data from the txt file of the specific format. The text data of the set is represened in the database, the graphical is in the png files. So, for every set I need the txt file and a group of png files.

You can find it, as usual, here http://ttd.cernun.net/transport/

The format of the file is the following, TAB separator is used.
comment strings are allowed and can begin from #,; or TAB#

Code: Select all

#VType	Name	Land scape	IDs (hex)	Capacity 1	Weight	FullWeight	Cost	Speed	Power	Running cost	Year of introduction	Life	Engine Life	Reliability decay	Loading speed	Multihead flag	Acceleration	Air resistance	TE	AI Rating	Effect (hex)	Set
	# Default ships											Ship	Chugger-Chug Passenger Ferry	Toyland		100 passengers	0	6.2	18279	32	0	1476	1946	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	Shivershake Passenger Ferry	Toyland		130 passengers	0	8.1	21325	64	0	1312	1976	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	MightyMover Cargo Ship	Toyland		160 bags of sweets	0	50	24372	24	0	2460	1947	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	Powernaut Cargo Ship	Toyland		190 bags of sweets	0	59.3	27418	40	0	1853	1982	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	MPS Oil Tanker	Temperate, Arctic, Tropical		220000 litres of oil	0	220	30465	24	0	2296	1928	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	CS-Inc Oil Tanker	Temperate, Arctic, Tropical		350000 litres of oil	0	350	33511	40	0	2050	1968	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	MPS Passenger Ferry	Temperate, Arctic, Tropical		100 passengers	0	6.2	18279	32	0	1476	1927	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	FFP Passenger Ferry	Temperate, Arctic, Tropical		130 passengers	0	8.1	21325	64	0	1312	1971	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	Bakewell 300 Hovercraft	Temperate, Arctic, Tropical		100 passengers	0	6.2	28180	112	0	3117	1968	25	0	20	20	0	0	0	0	0	0	Default Set
Ship	Yate Cargo Ship	Temperate, Arctic, Tropical		160 crates of goods	0	80	24327	24	0	2460	1927	30	0	20	20	0	0	0	0	0	0	Default Set
Ship	Bakewell Cargo Ship	Temperate, Arctic, Tropical		190 crates of goods	0	95	27418	40	0	1853	1975	30	0	20	20	0	0	0	0	0	0	Default Set
	# Default Aircrafts										Aircraft	Ploddyphut 100	Toyland		25 passengers, 5 bags of mail	0	2.8	26660	476	0	2390	1945	20	0	20	40	0	0	0	0	0	0	Default Set
Aircraft	Ploddyphut 500	Toyland		60 passengers, 9 bags of mail	0	6	36914	476	0	2812	1956	20	0	20	40	0	0	0	0	0	0	Default Set
Aircraft	Flashbang X1	Toyland		90 passengers, 12 bags of mail	0	8.6	51269	952	0	3937	1966	20	0	20	40	0	0	0	0	0	0	Default Set
Aircraft	Juggerplane M1	Toyland		200 passengers, 40 bags of mail	0	22.5	65625	952	0	6187	1978	20	0	20	40	0	0	0	0	0	0	Default Set
Aircraft	Flashbang Wizzer	Toyland		100 passengers, 30 bags of mail	0	13.7	164062	2330	0	7171	1985	20	0	20	40	0	0	0	0	0	0	Default Set
Aircraft-Helicopter	Powernaut Helicopter	Toyland		40 passengers, 10 bags of mail	0	5	30761	321	0	2250	1957	20	0	20	40	0	0	0	0	0	0	Default Set
and so on
Possible cargos are
("tonnes of coal", "passengers", "litres of oil", "items of livestock", "crates of goods", "tonnes of grain", "tonnes of wood", "tonnes of iron ore", "tonnes of steel", "bags of valuables", "bags of mail", "tonnes of wheat", "tonnes of paper", "bags of gold", "tonnes of food", "litres of rubber", "tonnes of fruit", "tonnes of maize", "tonnes of copper ore", "litres of water", "bags of diamonds", "tonnes of sugar", "toys", "batteries", "bags of sweets", "tonnes of toffee", "litres of cola", "tonnes of candyfloss", "bubbles", "litres of plastic", "fuzzy drinks");
Possible VTypes are
('Aircraft', 'Aircraft-Plane', 'Aircraft-Helicopter', 'Aircraft-Train', 'Railway-Steam', 'Railway-Diesel', 'Railway-Electric', 'Railway-Wagon', 'Railway-Train', 'Monorail-Steam','Monorail-Diesel', 'Monorail-Electric', 'Monorail-Wagon', 'Monorail-Train', 'Maglev-Steam','Maglev-Diesel', 'Maglev-Electric', 'Maglev-Wagon', 'Maglev-Train', 'Ship', 'Ship-Train', 'Vehicle-Lorry', 'Vehicle-Bus', 'Vehicle-Train');
Possible landscapes are
('Temperate', 'Arctic', 'Tropical', 'Toyland', 'Original');
The name field has a specific format and is used to determinate the png name. It allows a list of pngs too. Then, a name has to be separated with comma into parts. Like this

Code: Select all

Railway-Electric	ICE 3, [ICE 3 Passenger Carriage], [ICE 3 Mail Van]	Temperate		45 passengers	150	152.8	82031	330	10800	2531	1999	30	0	20	10	1	0	0	0	0	0	Temperate Set
the text in [] will not be displayd, but is used in building the png name. the text in {} wil be displayed in the name, but is not taken into account when buildin the png name.
The name of the png file is made from the name by removing all non-literal and non-numerical symbols, transfered into lowcase. That means 'Volvo FH16 610 {Fruit} Ref' will become volvofh16610ref. And so on.

If some one is ready to help me, any help is welcome.
Image Image Image Image
Prof. Frink
Tycoon
Tycoon
Posts: 3849
Joined: 20 Jan 2003 14:51
Location: Broadstone, Dorset
Contact:

Post by Prof. Frink »

OK, one comment:
It would be far easier to read if the boxed were arranged into columns, rather than all over the place as they are now.

Also, drinks are fizzy, not fuzzy.
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

Prof. Frink wrote:OK, one comment:
It would be far easier to read if the boxed were arranged into columns, rather than all over the place as they are now.
Do you mean the text file? the problem is how to parse it? for now a TAB is a separator. What should it be in your case? BTW, this file is generated from excel
Prof. Frink wrote:Also, drinks are fizzy, not fuzzy.
Ok.
Image Image Image Image
Prof. Frink
Tycoon
Tycoon
Posts: 3849
Joined: 20 Jan 2003 14:51
Location: Broadstone, Dorset
Contact:

Post by Prof. Frink »

I mean this:
Attachments
boxes.PNG
boxes.PNG (44.49 KiB) Viewed 1992 times
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

Prof. Frink wrote:I mean this:
And how should it look?
Image Image Image Image
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

Grfmaker offers these options already, George and I also think TTDAlter covers this area a bit.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

Geroge ... what about settings ? like planespeed ? etc ...
that higher RATING means better ovreall income ?

and I belive Prof. Frink wanna <TABLE> with some <TR> and <TD>
why not make

Code: Select all

 text | box | box | -empty- | text | box 
... etc

with table it would look better ... like that
Attachments
table.PNG
table.PNG (6.06 KiB) Viewed 468 times
what are you looking at? it's a signature!
Prof. Frink
Tycoon
Tycoon
Posts: 3849
Joined: 20 Jan 2003 14:51
Location: Broadstone, Dorset
Contact:

Post by Prof. Frink »

Something like this, only with the TTD background:
Attachments
like this.PNG
like this.PNG (20.53 KiB) Viewed 1941 times
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

Hyronymus wrote:Grfmaker offers these options already, George and I also think TTDAlter covers this area a bit.
It compares vehicles depending on production?
Last edited by George on 11 Mar 2005 12:53, edited 1 time in total.
Image Image Image Image
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

SHADOW-XIII wrote:Geroge ... what about settings ? like planespeed ? etc ...
What settings do we need? I shall not use not realistic acceleration, so, I assume 3333 is used.
SHADOW-XIII wrote:that higher RATING means better ovreall income?
Default means a year income at this level of production
SHADOW-XIII wrote:and I belive Prof. Frink wanna <TABLE>
with table it would look better ... like that
But what will happen on higher screen resolutions?
Image Image Image Image
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

well ... for sure planespeed (1 to 4) ... (multiply of orginal TTD planes speed)

as for realistic acceleration maybe use straight way ... will have less diffrence

about rest ? dunno ...

as for table .. well you can set table width to x% of browser window or make it unbreakable by setting width to certain pixels number
what are you looking at? it's a signature!
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

Prof. Frink wrote:Something like this, only with the TTD background:
Better now?
Image Image Image Image
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

way better
what are you looking at? it's a signature!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 14 guests