Mass orders/grouping interface

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Nickel_Plate
Traffic Manager
Traffic Manager
Posts: 146
Joined: 27 Dec 2004 19:37
Location: Home of the Big Cat

Post by Nickel_Plate »

Tried to compile diff r8288 with nightly r8288 getting a load of errors see attached
Attachments
Group.txt
(3.96 KiB) Downloaded 268 times
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

I think you just need to add the new source files to your project and that should solve the problem.

example, src/group_cmd.cpp
User avatar
Maedhros
OpenTTD Developer
OpenTTD Developer
Posts: 603
Joined: 30 Mar 2006 18:24
Location: Durham, UK

Post by Maedhros »

You can just add group_cmd.cpp (and any other new files) to source.list which is enough for the Makefile, and then run projects/generate to update the MS compiler project files.
No-one's more important than the earthworm.
Nickel_Plate
Traffic Manager
Traffic Manager
Posts: 146
Joined: 27 Dec 2004 19:37
Location: Home of the Big Cat

Post by Nickel_Plate »

All the files are in the directory.

Using Cygwin to compile
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

Hello,

I updated the patch against r8332.
Now the group are working with all vehicles type.
Attachments
group_interface_r8332.diff
(90.34 KiB) Downloaded 313 times
La SNCF, 13th Nov 2008 #1.png
La SNCF, 13th Nov 2008 #1.png (52.67 KiB) Viewed 6451 times
Nycom & Co, 6th Jan 2078.png
Nycom & Co, 6th Jan 2078.png (65.61 KiB) Viewed 6447 times
l_Blue_l
Transport Coordinator
Transport Coordinator
Posts: 285
Joined: 29 Mar 2006 22:42
Contact:

Post by l_Blue_l »

I think there could be a possible problem with the create rename delete buttons now as they are small and it may be hard to fit translations into the smaller space.

A possible way to fix this is to have an Options menu either at the top or bottom of the gui with Create Rename and Delete.

Another idea is to have the other Manage List changed into a Manage Group(?) so it would be possible to Delete and/or Rename the Group for the other menu.

Edit: The All Trains group doesn't stand out that much from all the other group so maybe the other groups could be tabbed in so that All trains is clearly the main group with all the other vehicles subgroups.

That brings me onto my next idea Groups for Groups and the so it would act much like a tree where you can expand the group out each time adding a tab to the next subgroup. This will have to wait till Groups get included into the trunk and it is already a large enough patch as it is.

Btw Great Patch.
Nickel_Plate
Traffic Manager
Traffic Manager
Posts: 146
Joined: 27 Dec 2004 19:37
Location: Home of the Big Cat

Post by Nickel_Plate »

Have now managed to compile latest diff r8332 with nightly r8332 by manually editing source list, i think this should be in diff file.

I am still getting a few errors, i think this as to do with this patch.

Compiled this diff ONLY with trunk, see attached.
Attachments
Group1.txt
(2.82 KiB) Downloaded 233 times
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

I use VC2005 and it doesn't report these warnings during the compilation.

As it's just warnings, you can build the exe.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

At first awesome patch!!!
EDIT: cause double posts are not nice!
I tried to compile the patch with trunk on my Linux (gcc-4.1) and got those lines.

Code: Select all

...
EDIT2: I forgot to add "group_cmd.cpp,group.h,group_gui.h,group_gui.cpp" in the "source.list"
l_Blue_l wrote:I think there could be a possible problem with the create rename delete buttons now as they are small and it may be hard to fit translations into the smaller space.
What about some icons?

1st row: ignore this
2nd row: create group
3rd row: delete group
4th row: (re)name group
5th row: replace protection off
6th row: replace protection on
Attachments
group_if.png
group_if.png (3.08 KiB) Viewed 6323 times
Last edited by skidd13 on 22 Jan 2007 19:21, edited 1 time in total.
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

You have to add group_cmd.ccp and group_gui.cpp to the source.list file

Your icons looks great. Maybe you can use the replace icon (in the depot gui) for the replace protection button.

I update the gui to have an idea. I think it's the final gui of my patch.
Attachments
La SNCF, 13th Nov 2008 #2.png
La SNCF, 13th Nov 2008 #2.png (43.22 KiB) Viewed 6278 times
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

nycom wrote:You have to add group_cmd.ccp and group_gui.cpp to the source.list file
Did that and added the header also. :oops: Damned, I should have known. ;)
nycom wrote:Your icons looks great. Maybe you can use the replace icon (in the depot gui) for the replace protection button. I update the gui to have an idea. I think it's the final gui of my patch.
Thanks, I thought over something like the attached mockup. Besides, the funny thing is you use icon's also drawn by me. :)

Edit: Added the redrawn replace icons!
Attachments
mockup
mockup
la_sncf_13th_nov_2008_2_160.png (40.37 KiB) Viewed 6266 times
group_if2.png
group_if2.png (1.84 KiB) Viewed 6248 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

Why not mix the replace icon with a shield ?
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

nycom wrote:Why not mix the replace icon with a shield ?
For constancy it should stay the same. Either the shield or the replace arrow. It is OTTD Style to keep things in same style, that was also the reason why the dynamite was replaced by the multiple trains in the depot-gui.
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

Of course. But in fact, they don't have the same function. The purpose of the replace protection is to protect all vehicles from a group to be replace by the global auto replace.
That's why I suggested you to add a shield to your icon.

Can you please make a grf with your icons ?

Thanks.
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

I would suggest putting the shield in the top left of the icon. Players will still recognise the up arrow as being Replace These Now, and the shield then lets you know it is Protected. I really like these icons.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

richk67 wrote:I would suggest putting the shield in the top left of the icon. Players will still recognise the up arrow as being Replace These Now, and the shield then lets you know it is Protected. I really like these icons.
Nice idea. :) Here is the result. I prefer the second row cause the intent is a bit clearer to me. GRF will follow.
Attachments
group_if3_preview.png
group_if3_preview.png (1.94 KiB) Viewed 6120 times
group_if3.png
group_if3.png (1.94 KiB) Viewed 6118 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

nycom wrote:Can you please make a grf with your icons ?
Here is the grf and a png so you don't have to extract it to check the order.
Attachments
group.png
group.png (2.66 KiB) Viewed 6109 times
group.grf
(5.57 KiB) Downloaded 264 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

Nice... I can just imagine the autoreplace toggling between enabled (arrow is yellow - no shield), and disabled (arrow is grey, with shield). It should be an obvious toggle, and immediately apparent as an on/off.

Only possible confusion is the "normal" autoreplace button is identical to the Do Autoreplace in the depot gui. So people may think "I click this to make these go for autoreplace", whereas I think the idea is to say "autoreplace is active for this list".

Maybe have the shield icon on the "normal" version, but with the shield in grey (and red cross?). This would then clearly be slightly different to the "Do Autoreplace" button, and would hopefully say "Shield or Do Not Shield the AutoReplace"... which is the meaning we want.

Look great though... I must say I LOVE the icons in the depot. Makes so much more sense than dustbins and explosions.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

richk67 wrote:Only possible confusion is the "normal" autoreplace button is identical to the Do Autoreplace in the depot gui. So people may think "I click this to make these go for autoreplace", whereas I think the idea is to say "autoreplace is active for this list".
They are not the same, but similar. The vehicles behind the top one are grey. ;) But I got your point!
richk67 wrote:Look great though... I must say I LOVE the icons in the depot. Makes so much more sense than dustbins and explosions.
Thanks, take a cookie.
Attachments
group_if4.png
group_if4.png (1.68 KiB) Viewed 6094 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Post by nycom »

Hello,

Here you can find the lastest update of my patch (r8375).


Features :
- Add a vehicle to a group : on the right side, click on a train and drag and drop over a group.
- Delete a vehicle from a group : on the right side, click on a train, and drag and drop over the group "All trains" or "All Road Vehicles"...
- Change a vehicle from a group : on the right side, click on a train and drag and drop over an other group.
- When you click on a group name, you can see all vehicles which are in this group (screenshot).
- You can't rename or delete the group "All trains" or "All Road Vehicles" or "All Ships" or "All Aircrafts".
- The groups are load/save.
- You can set an autoreplace which only affect the vehicles of the group. The global autoreplace override this feature unless you set "replace protection" to on (4th button on the left side)

- On the left side :
  • - Create a group : press the "create" button.
    - Delete a group : select a group and press the "delete" button.
    - Rename a group : select the group you want to rename, then press the "rename" button.
    - Replace Protection, if on, global autoreplace have no effect on the group.
- On the right side :
  • - Start all Click on the green flags to start all
    vehicles of the current group.
    - Stop all Click on the red flags to stop all vehicles of the current group.
    - Manage list :
    • - Send to depot all vehicles of a group.
      - Send for servicing all vehicles of a group.
      - Add Shared Vehicles to a group : add all shared vehicles of all vehicles of the group.
      - Remove all Vehicles from a group : Remove all vehicles from the current group.
      - Replace Vehicles : replace management
I upgrade SAVEGAME_VERSION to 45, so don't overwrite your savegame.

Thanks to skidd13 for the icons and grf.
Attachments
group_interface_v1.0_r8375.diff
(95.83 KiB) Downloaded 235 times
Aircraft group with replace protection set to on
Aircraft group with replace protection set to on
Nycom & Co, 6th Jan 2078 #2.png (78.86 KiB) Viewed 6420 times
Train group with replace protection set to off
Train group with replace protection set to off
La SNCF, 13th Nov 2008 #4.png (57.99 KiB) Viewed 6419 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 0 guests