Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Dec 15, 2018 1:22 am

All times are UTC




Post new topic  Reply to topic  [ 187 posts ]  Go to page Previous 16 7 8 9 10 Next
Author Message
PostPosted: Sun Aug 12, 2018 5:39 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sun Feb 21, 2010 12:15 am
Posts: 1031
Location: Fitzroy North - 96
Karn wrote:
Use case for dividing orders is entering terminus station in reversed state (the loco pushing wagons) and then the loco can go somewhere else. It's meant for small cargo terminus stations. Or it can be used for some kind of shunting yard.


Currently it works pretty well for this, and I've been having fun with mainline locomotives leaving wagons in a siding, for a shunter to push into station. I love how this patch gives life to engines you wouldn't normally have cause to use.

The patch also makes the real-world advantages of multiple units manifest in game, as eventually I tire of making a headshunt at every end of line. I've been top-and-tailing some trains, but I hope the patch will encourage NewGRF authors to provide some cab cars / driving trailers for push-pull service.

Karn wrote:
There was suggestion to make it in a faster "hack" way with "contitional jump", but I personaly dislike those hacks in gui, it's annoying for gameplay and usually brings unwanted special cases. Basically what should solve all this is implementation of independent orders list, which I call global order list, that could store future orders of both train parts. But it will take a while to implement.


I agree that a special conditional order could work around this, but would likely not make it worth it. If nothing else, it would probably make it nearly impossible to schedule trains.

_________________
Image
Trolleybi! Trucks and Buses -- Docklands -- Unspooled -- MLSS


Top
   
PostPosted: Mon Aug 13, 2018 1:37 am 
Offline
Engineer
Engineer
User avatar

Joined: Fri Oct 31, 2014 6:24 pm
Posts: 25
Location: London, Ontario
so, i have given the patch a try, i like it, tho its quite confusing to me right now, is the steam whistle sound that happens during each decouple intended? i would assume so, that later on will probably be changed to a more fitting sound i guess to... im sure i can figure it out the more i play around with it, just looking forward to when its added to JGR pack.


Top
   
PostPosted: Mon Aug 13, 2018 3:07 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Apr 28, 2003 6:52 pm
Posts: 1203
Karn wrote:
version 0.10.3:
Fixed bugs from Snail's 1st and 2nd save game.
Added 0(auto) for number of wagons to decouple

Thanks, Karn! Those two bugs are now corrected. :)

Unfortunately, though, it looks like your implementation is interfering with my newGRF's way of choosing a train's livery when building it in the depot.
I'm writing a PM to you with some details on how to recreate this in a game (I don't want to bore everyone with such details here).

Another issue I'm seeing is in the vehicle details GUI. When a train reverses, it looks like the offsets there change, changing my sprites' positions (see picture)... This also happens in a depot: if a train reaches a depot when reversing, the in-depot graphics will all have different offsets. (Please note that, in my set, I specifically separate sprites for "viewport" from all other sprites, i.e. depot, vehicle GUI, purchase list...)

If I could suggest a way to solve this, perhaps your patch should change graphics in "viewport" only, and not in other views, if possible?


Attachments:
File comment: Going forward, all is good
reversing bug 0.png
reversing bug 0.png [ 29.01 KiB | Viewed 1826 times ]
File comment: Going backward: viewport is fine, but vehicle GUI's offsets and recoloring are not
reversing bug 1.png
reversing bug 1.png [ 28.68 KiB | Viewed 1826 times ]

_________________
The French Narrow Gauge Train Set is now released! Get it here
Top
   
PostPosted: Mon Aug 13, 2018 8:54 am 
Offline
Engineer
Engineer

Joined: Sun Oct 02, 2011 6:56 pm
Posts: 126
Snail wrote:
Another issue I'm seeing is in the vehicle details GUI. When a train reverses, it looks like the offsets there change, changing my sprites' positions (see picture)... This also happens in a depot: if a train reaches a depot when reversing, the in-depot graphics will all have different offsets. (Please note that, in my set, I specifically separate sprites for "viewport" from all other sprites, i.e. depot, vehicle GUI, purchase list...)

If I could suggest a way to solve this, perhaps your patch should change graphics in "viewport" only, and not in other views, if possible?

Defining custom graphics for gui is in my opinion problematic. There is problem with alignment of short vehicles in trunk. When you try your set in official branch of OpenTTD and set your language to right-to-left (for example arabic) and you try different combination of locos and wagons, you will see alignment glitches there too. I was trying to fix alignment problem in this patch (it's essential for NewGRFs that don't use custom gui sprites), which results in what you see because alignment is changed. Also I made a PR for trunk, but I'm holding back with it for a while, because it's going to affect GRFs that use this feature and I'm not sure about all the consequences yet. Ignoring custom gui graphic in this patch should be possible and easy if you are fine with it.


Attachments:
rtl.png
rtl.png [ 6.52 KiB | Viewed 1798 times ]
Top
   
PostPosted: Mon Aug 13, 2018 12:54 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Apr 28, 2003 6:52 pm
Posts: 1203
Karn wrote:
Defining custom graphics for gui is in my opinion problematic. There is problem with alignment of short vehicles in trunk. When you try your set in official branch of OpenTTD and set your language to right-to-left (for example arabic) and you try different combination of locos and wagons, you will see alignment glitches there too. I was trying to fix alignment problem in this patch (it's essential for NewGRFs that don't use custom gui sprites), which results in what you see because alignment is changed. Also I made a PR for trunk, but I'm holding back with it for a while, because it's going to affect GRFs that use this feature and I'm not sure about all the consequences yet. Ignoring custom gui graphic in this patch should be possible and easy if you are fine with it.

Unfortunately, there are some cases when we have no choice: vehicles longer than 8/8, for instance, need to use custom non-viewport graphics, since they're defined as 3 graphically separate parts in viewport (to avoid glitches), while they have a single sprite in depots, purchase list, vehicle GUI etc. So I'm afraid this patch will have to take this into account.
Additionally, all my horizontal sprites in viewport include a line of dark grey pixels underneath them, to draw a shade on the rails they travel on (otherwise you'd see shiny rails under a vehicle!). That shade shouldn't be there in views other than viewport, hence the need of custom sprites.

Alternatively, I would have to add one extra set of non-viewport sprites with different offsets and have a parameter to switch to them, if this patch doesn't explicitly support different sprites.

As for your other question (through PM), yours was a good catch: I do switch across liveries using the "getubyte" function, like this for example:

Code:
// What's this engine's livery?
def(30) getubyte(
   engine(
      ref(24) if(1)   // Corsica
      ref(29) else   // Brittany
   )
)


This is the final part of the code for the engine in my example, where refs (24) and (29) are the final callbacks for each locomotive livery. I use a very similar code to choose the liveries of the wagons as well.

_________________
The French Narrow Gauge Train Set is now released! Get it here


Top
   
PostPosted: Tue Aug 14, 2018 8:23 am 
Offline
Engineer
Engineer

Joined: Sun Oct 02, 2011 6:56 pm
Posts: 126
0.10.4: only change is to support liveries through user_data byte (getubyte).

It seems the current version is pretty stable now and reported bugs are not game breaking, so I'll work on something bigger from known issues list without minor updates. Hopefully it will end up in 0.11


Top
   
PostPosted: Tue Aug 14, 2018 7:47 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Jul 16, 2003 6:33 pm
Posts: 285
Option Forbid 90 degrees turn breaks shunting is missing on the list of someday to do :D


Top
   
PostPosted: Thu Aug 16, 2018 5:08 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Apr 28, 2003 6:52 pm
Posts: 1203
Karn wrote:
0.10.4: only change is to support liveries through user_data byte (getubyte).

This did the trick! :) Thanks Karn.

_________________
The French Narrow Gauge Train Set is now released! Get it here


Top
   
PostPosted: Sat Aug 18, 2018 9:42 am 
Offline
Engineer
Engineer

Joined: Sun Oct 02, 2011 6:56 pm
Posts: 126
TrueSatan wrote:
Option Forbid 90 degrees turn breaks shunting is missing on the list of someday to do :D

Known issues in the first post contain whole area that is bugged. Very specific bugs such as 90° would be annoying to maintain there. It's on my personal list and in the forum posts, which I think is sufficient for one man development.

Snail wrote:
Karn wrote:
0.10.4: only change is to support liveries through user_data byte (getubyte).

This did the trick! :) Thanks Karn.

I'm glad to hear that and there are no complains about anything else being broken by this change :D


Top
   
PostPosted: Sat Aug 18, 2018 11:17 am 
Offline
Engineer
Engineer

Joined: Tue Jun 12, 2018 12:21 pm
Posts: 9
Hi,

Just a minor aesthetic issue I discovered while playing with NARS 2.51 and this patch starting in (virtual) year 2013. If you make the following kind of train:

1. EMD F59PHI (it seems to happen with any locomotive though)
2. Highspeed passenger cars (at least 3)
3. Any locomotive flipped around or the Cabbage Car

When realistic reversing happens, the fins on the leading and trailing passenger cars are flipped. I can attach a screenshot if you'd like.

I had a look in the code but couldn't find anything to suggest that wagons are flipped during reversing. Maybe I missed something?


Top
   
PostPosted: Sat Aug 25, 2018 10:11 pm 
Offline
Engineer
Engineer
User avatar

Joined: Tue Jun 17, 2003 10:51 am
Posts: 55
Location: Michigan, USA
I'm enjoying this patch a good deal; well done! Suggested feature: "couple any full load" in addition to "couple full", to match the any full load order. Ideally this would be paired with the cargo type, so you can effectively tell the locomotive "couple iff load type X is full."


Top
   
PostPosted: Sat Sep 01, 2018 11:25 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Jun 26, 2005 8:12 pm
Posts: 131
Location: Cincinnati, OH
Started poking around with OTTD stuff again recently. Haven't yet played with this patch, but I love that someone is finally making this sort of stuff work!

Question; is there an up-to-date daylength patch that this one plays nice with? If so, I may need to finally figure out how to apply patches myself instead of just depending on others for patchpacks...

_________________
If at first you don't succeed, get a bigger locomotive and try again.


Top
   
PostPosted: Sun Sep 02, 2018 7:50 am 
Online
Moderator
Moderator
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 6303
Location: Eastern KY
Jim Starluck wrote:
Started poking around with OTTD stuff again recently. Haven't yet played with this patch, but I love that someone is finally making this sort of stuff work!

Question; is there an up-to-date daylength patch that this one plays nice with? If so, I may need to finally figure out how to apply patches myself instead of just depending on others for patchpacks...


Pretty much the only updated daylength patch is maintained by JGR for use in his patchpack. Its probably not going to be suitable for patching vanilla OpenTTD.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
PostPosted: Sun Sep 02, 2018 9:19 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sun Jun 26, 2005 8:12 pm
Posts: 131
Location: Cincinnati, OH
kamnet wrote:
Jim Starluck wrote:
Started poking around with OTTD stuff again recently. Haven't yet played with this patch, but I love that someone is finally making this sort of stuff work!

Question; is there an up-to-date daylength patch that this one plays nice with? If so, I may need to finally figure out how to apply patches myself instead of just depending on others for patchpacks...


Pretty much the only updated daylength patch is maintained by JGR for use in his patchpack. Its probably not going to be suitable for patching vanilla OpenTTD.

...well, nuts. :(

_________________
If at first you don't succeed, get a bigger locomotive and try again.


Top
   
PostPosted: Sun Sep 02, 2018 7:02 pm 
Online
Moderator
Moderator
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 6303
Location: Eastern KY
Jim Starluck wrote:
kamnet wrote:
Jim Starluck wrote:
Started poking around with OTTD stuff again recently. Haven't yet played with this patch, but I love that someone is finally making this sort of stuff work!

Question; is there an up-to-date daylength patch that this one plays nice with? If so, I may need to finally figure out how to apply patches myself instead of just depending on others for patchpacks...


Pretty much the only updated daylength patch is maintained by JGR for use in his patchpack. Its probably not going to be suitable for patching vanilla OpenTTD.

...well, nuts. :(


If you have an understanding of C++ and patching code in general, then the other patches probably won't take much work to make them work with the current master code. The main issue is going to be how well it works. The outstanding issues with all of the daylength patches still exists, and nobody has a way that seems to be completely satisfactory. So for that reason most work on this has come to a halt. JGR keeps his going because it suits his interests for his patchpack.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
PostPosted: Mon Sep 03, 2018 10:34 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1083
Are there compatible windows binary and corresponding source code? I would like to test this patch in multiplayer mode, but have no windows compiler.

_________________
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension.
Addicted to freeciv longturn.


Top
   
PostPosted: Mon Sep 03, 2018 11:23 am 
Offline
Engineer
Engineer

Joined: Sun Oct 02, 2011 6:56 pm
Posts: 126
McZapkie wrote:
Are there compatible windows binary and corresponding source code? I would like to test this patch in multiplayer mode, but have no windows compiler.

The source code is same on github and first post binaries, I always update them at the same time. I'm not sure about version string, there could be something special depending on how you download source code.


Top
   
PostPosted: Sun Sep 16, 2018 12:51 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 1083
I tried to make locomotives from my set compatible with this patch (not flipping after reversal),
it was easy for single asymetric locomotives (shunters etc), but nightmare with multi-part locomotives, because it is not possible to switch articulated part length when outside depot - thus after reversal locomotive and its tender length doesn't match. I tried to add third invisible part, but it still doesn't look good and nml code is complicated.

_________________
My experimental openTTD server: 149.156.194.203:3979 non-standard client, now testing: JGRPP http://tiny.pl/ggnch
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, preindustrial houses, wired, ECS industry extension.
Addicted to freeciv longturn.


Top
   
PostPosted: Thu Oct 04, 2018 6:24 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Mar 19, 2009 7:25 pm
Posts: 2621
Location: Kent
McZapkie wrote:
I tried to make locomotives from my set compatible with this patch (not flipping after reversal),
it was easy for single asymetric locomotives (shunters etc), but nightmare with multi-part locomotives, because it is not possible to switch articulated part length when outside depot - thus after reversal locomotive and its tender length doesn't match. I tried to add third invisible part, but it still doesn't look good and nml code is complicated.


Following.

_________________
Image


Top
   
PostPosted: Fri Oct 19, 2018 12:56 am 
Offline
Engineer
Engineer

Joined: Sun Mar 04, 2018 4:36 am
Posts: 9
I just started using the patch and i cant figure out how to give a loco an order to reverse at a waypoint


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 187 posts ]  Go to page Previous 16 7 8 9 10 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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.