Two Company Colours GUI (Work In Progress)

Get help, info, news and advice about the Transport Tycoon Deluxe patch.

Moderator: TTDPatch Moderators

Patchman
Tycoon
Tycoon
Posts: 7576
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

No.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

I've been thinking on secondary colours for the AI to use, and this is what I've come up with.

The colours in brackets are the secondary colours the AI can choose from for a given primary. In all cases, I think it should also be able to repick the primary as the secondary (so, for example, a dark blue AI will be able to pick white or dark blue for its secondary).

If getting the AI to pick from multiple colours is not happening, the first colour in the lists below is, I think, the best one.

dark blue (white)
pale green (cream)
pink (grey)
yellow (white)
red (white, blue)
light blue (cream)
green (dark blue, white)
dark green (orange)
blue (white, red)
cream (white)
mauve (white)
purple (pink, white)
orange (light blue)
brown (yellow)
grey (orange, yellow, red)
white (red, yellow, dark blue)
Patchman
Tycoon
Tycoon
Posts: 7576
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Thanks, I'll put this in the code. I'll probably make a list of four secondary colours for each primary colour, and have the AI choose a random one from that; the preferred colour would then be listed twice to have a higher chance.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Few updates.

Added tabs to break up the special colours and to get under the 32 active elements limit.
I have yet to add the code for the tabs, changing tab works though. :D

Current list of items*

Code: Select all

Main Window
 - Global Company Colours

Rail Vehicle Tab
 - Steam Engine
 - Diesel Engine
 - Electric Engine
 - Monorail Engine
 - Maglev Engine
 - Diesel Multiple Unit
 - Electric Multiple Unit

Road Vehicle Tab
 - Bus
 - Tram
 - Truck

Sea Vehicle Tab
 - Passenger Ship
 - Freight Ship

Air Vehicles Tab
 - Plane
 - Helicopter
 - Zeppilen
* - this list is what I've put on the gui and is subject to change.
patchman can decide if any items should be added or removed.

~ Lakie
Attachments
twoccgui7.png
twoccgui7.png (257.02 KiB) Viewed 527 times
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Patchman
Tycoon
Tycoon
Posts: 7576
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Is a separate entry for zeppelins really useful? In that case, freight and passenger planes might have different liveries too.

Personally, I'd get rid of the "Zeppelin" entry, and instead split regular planes into three categories, one for small airports (no idea what to call it, "Regional aircraft"?), one for large airports, and freight planes.

Otherwise I like the look of it, except that the borders around the elements are bit thin; look how far the buttons are from the edges in TTD's windows and try to reproduce that look.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1729
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Might want to remove the word "Window" from the window title :D
He's like, some kind of OpenTTD developer.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Lakie, what was the steam locomotive in your posted screenshot? I don't recognize it.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

What happened to passenger wagon and frieght wagon?
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

patchman:
Ok, I'll modify the list just before I got to bed.
Yeah, I being thinking they are alittle to close to the edges of the window too... I'll look at changing it.

Peter1138:
Does it really matter if it has window in the title?
But I'll remove it, if just to keep you happy. :D

krtaylor:
It's the 2-4-0 'Pacific', from Pikka's UK Renewal Set.
Which might I add it great as it has some vehicles support two company colours.
Such as the above locomotive. :D

Pikka:
Sorry must have missed them while tpying the list, they should be in that list yes.

I'll post the updated list later with the total number of elements left per tab.
And how many elements each entry takes.

I'll try and code the tabs to work fully with click code, this weekend in most lightly hood, due to time constrants.

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Lakie wrote:It's the 2-4-0 'Pacific', from Pikka's UK Renewal Set.
No, it's the Wardale '5AT' from the UKRS. ;)
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Sorry, but thats what the name in the buy list here was. :(

Last Screesnshot.
Changes new spacing more like the buttons in the company window now. (3px)
Removed Zippelin and changed plane into 3 classes.

New list.

Code: Select all

<Element group> (<active elem>, <non Active>, <active elements free>)
Main (3, 0, 23)
 - Global (2, 3)

Rails Tab (1, 1, 5)
 - Steam (3, 3)
 - Diesel (3, 3)
 - Electric (3, 3)
 - Monorail (3, 3)
 - Maglev (3, 3)
 - DMU (3, 3)
 - EMU (3, 3)
 - Passenger Wagons (inc mail) (3, 3)
 - Freight Wagons (3, 3)

Road Vehicle Tab (1, 1, 23)
 - Bus (3, 3)
 - Tram (3, 3)
 - Truck (3, 3)

Sea Vehicles Tab (1, 1, 26)
 - Passenger Ship (3, 3)
 - Freight Ship (3, 3)

Air Vehicles Tab (1, 1, 20)
 - Regional Aircraft (3, 3)
 - Express Aircraft (3, 3)
 - Freight Aircraft (3, 3)
 - Helicopter (3, 3)
IF anyone can thik of better names for the different aircraft types based off small / large airports, please do post.

Last screenshot for a while,
Please feel free to add comments about it.

~ Lakie
Attachments
Two Company Colours Gui Tabs.png
Two Company Colours Gui Tabs.png (182.04 KiB) Viewed 502 times
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Patchman
Tycoon
Tycoon
Posts: 7576
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

I like it :)
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Lakie wrote:Sorry, but thats what the name in the buy list here was. :(
Oh whoops, I didn't realise he was referring to the latest picture.. yes, that's the 4-6-2 'Pacific' (aka Gresley A4).

I'm liking the look of the gui. :D Maybe simply "small airliners" and "large airliners" for the aircraft?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

I would probably use "Long-range aircraft" instead of "Express aircraft".
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

That looks s***-hot Lakie! No really, it does!

Now TTDPatch is really getting to a point where it can kick Locomotions arse for some of the bigger features it boasts.

Long live TTDPatch!
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Lakie, will you write a gui for newroutes? :wink:
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
SuperTycoon
Chief Executive
Chief Executive
Posts: 733
Joined: 24 Jun 2004 20:05

Post by SuperTycoon »

eis_os wrote:Lakie, will you write a gui for newroutes? :wink:
newroutes? have i missed a feature?

Edit: My 500th Post! Woot!
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Aegir
Tycoon
Tycoon
Posts: 2883
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

Lakie, will you eventually write all the various improvements I want made to the scenario editor? :P
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Aegir:
Probably not?

Been fixing a few bugs in the global part of the gui.
Such as changing other companies colours allowing special CC's to be used. :o

Hopefully, with all the global stuff fixed, I can try working on the special colour schemes.
I might also fix the exploit shown here.

Small problems have occured though with saving loading code, so I might not be able to test all the special cases yet. (I need patchman's help on how to fix his player2 array saving / loading code).

[edit] And I'm also thinking about making the tab button's icons changable via grf, with 2cc remapping, if possible.
I'll have to ask patchman about grf support, thats something new to me. :D

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Post Reply

Return to “General TTDPatch”

Who is online

Users browsing this forum: No registered users and 5 guests