Articulated Road Vehicles
Moderator: TTDPatch Moderators
Re: Articulated Road Vehicles
Yeah, basically all I did was to add a loop. Pretty much all the rest of the changes were just indentation.
No-one's more important than the earthworm.
Articulated Road Vehicles - TTDPatch Refit
Not being a developer of any kind (Although I'm pretty good at developing trouble ), I'm curious as to why it is so difficult for TTDPatch to handle cargo refitting of trailers in articulated RV's.
I would assume a simple loop would do the job, unless of course, the Patch can't handle loops.
The logic as I see it would be:
1. Call for refit to cargo X
2. Check for number of vehicles in RV train (tractor + trailers)
3. Start loop
4. Check if item is refitable (lead unit may be a tractor with no cargo capability)
5. If not refitable then jump to next iteration
6. Check if cargo is already the desired one
7. If cargo is already the desired one then jump to next iteration
8. Refit cargo
9. Check if count is equal to the number of vehicles
10. If count is not equal to the number of vehicles then jump to next iteration
11. End loop
12. Exit refit function
Note that this would even work for single vehicles with no trailers.
I would assume a simple loop would do the job, unless of course, the Patch can't handle loops.
The logic as I see it would be:
1. Call for refit to cargo X
2. Check for number of vehicles in RV train (tractor + trailers)
3. Start loop
4. Check if item is refitable (lead unit may be a tractor with no cargo capability)
5. If not refitable then jump to next iteration
6. Check if cargo is already the desired one
7. If cargo is already the desired one then jump to next iteration
8. Refit cargo
9. Check if count is equal to the number of vehicles
10. If count is not equal to the number of vehicles then jump to next iteration
11. End loop
12. Exit refit function
Note that this would even work for single vehicles with no trailers.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Articulated Road Vehicles
Before complaining about double posts, my post has gone over two weeks without a response and considering DaleStan's recent post here:
I would like to place a special order ... One TTDPatch fix to the refitability of trailers in articulated RV's to go.DaleStan wrote:Now that there are Patch-special orders ...
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Re: Articulated Road Vehicles
Not a double-post in itself... but a second mentioning of this request:
Current aRVs code is a nightmare and if ANYONE has the time or brainpower to sit down with me and go through it all to scope it out and properly code it then please give me a call.
I suppose I could just beg the OTTD Devs to allow me to copy their code byte for byte... but that would be breaking the game rules. heh.
Anyway... the plea still stands... After three rewrites of this code, I have still failed.
Sorry wallyweb... I'm probably the only one that still understands it. Lakie tried, heh.
Current aRVs code is a nightmare and if ANYONE has the time or brainpower to sit down with me and go through it all to scope it out and properly code it then please give me a call.
I suppose I could just beg the OTTD Devs to allow me to copy their code byte for byte... but that would be breaking the game rules. heh.
Anyway... the plea still stands... After three rewrites of this code, I have still failed.
Sorry wallyweb... I'm probably the only one that still understands it. Lakie tried, heh.
Re: Articulated Road Vehicles
Thanks Steven for picking up on this.
Did my logic make any sense?
1. Make it human readable.
2. Fix it.
3. Run it by DaleStan for an insanity check.
EDIT Adding more comments for stevenh's consideration:
1. RV's pre-existed aRV's
2. RV's had a refit function before aRV's
3. Does aRV refitting call the already existing RV refit function(s)?
4. Or does aRV have its own refit function(s)?
5. If item 3, then does aRV code really need to be touched? Would it not be the existing refit code that needs to be modified?
Did my logic make any sense?
If you have the camera, I'll watch the door while you steal the code.stevenh wrote:I suppose I could just beg the OTTD Devs to allow me to copy their code byte for byte... but that would be breaking the game rules. heh.
You need a neophyte to whom you can pass the code as an assignment with the following instructions:Sorry wallyweb... I'm probably the only one that still understands it. Lakie tried, heh.
1. Make it human readable.
2. Fix it.
3. Run it by DaleStan for an insanity check.
EDIT Adding more comments for stevenh's consideration:
1. RV's pre-existed aRV's
2. RV's had a refit function before aRV's
3. Does aRV refitting call the already existing RV refit function(s)?
4. Or does aRV have its own refit function(s)?
5. If item 3, then does aRV code really need to be touched? Would it not be the existing refit code that needs to be modified?
Last edited by wallyweb on 20 Dec 2007 05:50, edited 1 time in total.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Articulated Road Vehicles
Sorry. That code is too sane. Go back and try it again.wallyweb wrote:3. Run it by DaleStan for an insanity check.
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: Articulated Road Vehicles
I have tried and in some senses I made quite a few improvements, however my efforts were in vain as it has not completely solved trams and has lead to a few new errors.
What someone really needs to do is completely redesign the way RV movement is done, although I suppose since the OpenTTD source is under an Open Source License, you could read through it to find out how to try and do it or copy it (I doubt that'd work personally), but I feel getting the OpenTTD Developer who did it to explain how it was implemented and the logic of it would be fair more useful, Steven.
~ Lakie
What someone really needs to do is completely redesign the way RV movement is done, although I suppose since the OpenTTD source is under an Open Source License, you could read through it to find out how to try and do it or copy it (I doubt that'd work personally), but I feel getting the OpenTTD Developer who did it to explain how it was implemented and the logic of it would be fair more useful, Steven.
~ 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."
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."
- Carlo Ghega
- Engineer
- Posts: 92
- Joined: 07 Jan 2007 19:37
- Location: Vienna
Re: Articulated Road Vehicles
Just wanted to quickly drop over and say, that the hope and the fascination in this topic never stopped for me - albeit trams still don't work for me (as posted before) .
Thanks 4 not giving it up yet - also to Wally for staying this interested!
Patiently and wishfully awaiting the day, when this might really get to work...
Very best regards,
Carlo
Thanks 4 not giving it up yet - also to Wally for staying this interested!
Patiently and wishfully awaiting the day, when this might really get to work...
Very best regards,
Carlo
E pur si muove!
Re: Articulated Road Vehicles
Steve's Lament
or
"Lawdy! Lawdy! Mah aRV trailer won't refit!
Mah aRV trailer won't refit!
Mah aRV trailer won't refit!
Lawdy! Lawdy! Mah aRV trailer won't refit!"
Our little tale of woe picks up from this here thread here.
wallyweb: Somebody's coming.
stevenh: (sounds of camera clicking) It's ok ... I'm almost done.
OTTD gang leader: Come out! We know you're in there!
wallyweb: It ain't us! We ain't here! The place is empty! Go away!
OTTD gang leader: We've got a dozen C/C++ assemblers and we know how to use them!
wallyweb: Damn! My x86 just jammed! Hurry up, will ya Steve? We gotta get outta here!
stevenh: Got it! Where to now?
wallyweb: We can hide out over at SAC's place. These guys won't know about it.
stevenh: SAC's the lady with all them trees?
wallyweb: Yea ... that's her.
stevenh: Just one question ... Who was it what stole 'em?
wallyweb: Wasn't me and that's all you need to know. Now let's ride and see if we can fix some aRVs.
(Sounds of assemblers assembling)
wallyweb: Damn! I've just been coded in the arm! Let's ride! NOW!
(sounds of code rushing through the intarwebs)
Happy New Year All!
or
"Lawdy! Lawdy! Mah aRV trailer won't refit!
Mah aRV trailer won't refit!
Mah aRV trailer won't refit!
Lawdy! Lawdy! Mah aRV trailer won't refit!"
Our little tale of woe picks up from this here thread here.
The scene has shifted to a hidden back room server room in the currently vacant OTTD camp. Seems as how they've all gone out to party in the New Year!wallyweb wrote:If you have the camera, I'll watch the door while you steal the code.stevenh wrote:I suppose I could just beg the OTTD Devs to allow me to copy their code byte for byte... but that would be breaking the game rules. heh.
wallyweb: Somebody's coming.
stevenh: (sounds of camera clicking) It's ok ... I'm almost done.
OTTD gang leader: Come out! We know you're in there!
wallyweb: It ain't us! We ain't here! The place is empty! Go away!
OTTD gang leader: We've got a dozen C/C++ assemblers and we know how to use them!
wallyweb: Damn! My x86 just jammed! Hurry up, will ya Steve? We gotta get outta here!
stevenh: Got it! Where to now?
wallyweb: We can hide out over at SAC's place. These guys won't know about it.
stevenh: SAC's the lady with all them trees?
wallyweb: Yea ... that's her.
stevenh: Just one question ... Who was it what stole 'em?
wallyweb: Wasn't me and that's all you need to know. Now let's ride and see if we can fix some aRVs.
(Sounds of assemblers assembling)
wallyweb: Damn! I've just been coded in the arm! Let's ride! NOW!
(sounds of code rushing through the intarwebs)
Happy New Year All!
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Re: Articulated Road Vehicles
Simply stated: You won't (re)fit there!wallyweb wrote:We can hide out over at SAC's place. These guys won't know about it.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
- Carlo Ghega
- Engineer
- Posts: 92
- Joined: 07 Jan 2007 19:37
- Location: Vienna
Re: Articulated Road Vehicles
The John Whiting Award (from 2007 renamed the Peter Wolff Trust Supports the John Whiting Award) is awarded annually to a British or Commonwealth playwright who, in the opinion of a consortium of UK theatres shows a new and distinctive development in dramatic writing with particular relevance to contemporary society.
The award was established in 1965 to commemorate John Whiting and his distinctive contribution to post-war British theatre. The award was initially worth £1000, but is currently worth £6000 per year.
Winners of the John Whiting Award:
1967
1978
1981
1988
2000
Honour to whom honour is due!
Very best regards,
Carlo
(Nearly went mad formatting this - and swearing by owen's authentic photograph in his avatar that I will never ever do something like that again )
The award was established in 1965 to commemorate John Whiting and his distinctive contribution to post-war British theatre. The award was initially worth £1000, but is currently worth £6000 per year.
Winners of the John Whiting Award:
1967
- Tom Stoppard
Rosencrantz and Guildenstern are Dead
Wole Soyinka
The Interpreters
Peter Nichols
A Day in the Death of Joe Egg
- Peter Barnes
The Ruling Class
Edward Bond
Saved
- Howard Brenton
Christie in Love
- Freehold Company
Freehold on Antigone
- Mustapha Matura
As Time Goes By
- Heathcote Williams
AC/DC
- John Arden
- David Rudkin
- David Edgar
Destiny
- David Lan
The Winter Dancers
1978
- David Halliwell
Snoo Wilson
The Glad Hand
- Stephen Bill
The Old Order
1981
- David Pownall
Beef
- Karim Alrawi
Before Dawn
- Peter Flannery
Our Friends in the North
- Ron Hutchinson
The Rat in the Skull
- Guy Hibbert
On the Edge
Heidi Thomas
Shamrocks & Crocodiles
- Nick Dear
The Art of Success
1988
- Iain Heggie
American Bagpipes
- Billy Roche
A Handful of Stars
- Tony Kushner
Lucy Gannon
Keeping Tom Nice
- Terry Johnson
Imagine Drowning
- Rod Wooden
Your Home in the West
- Martin Crimp
The Treatment
Helen Edmundson
The Clearing
- Jonathan Harvey
Beautiful Thing
- Joe Penhall
Some Voices
- Ayub Khan-Din
East is East
- Ann Coburn
Get up and Tie your Fingers
- Roy Williams
Starstruck
2000
- David Greig
The Cosmonaut's Last Message to the Woman He Once Loved in the Former Soviet Union
Tanika Gupta
The Waiting Room
- Zinnie Harris
Further than the Furthest Thing
- Peter Rumney
Jumping on my Shadow
- Rona Munro
Iron
- Owen McCafferty
Scenes from the Big Picture
- Fin Kennedy
How to Disappear Completely and Never Be Found
- James Philips
Rubenstein Kiss
Fraser Grace
Breakfast with Mugabe
- wallyweb
Steve's Lament or "Lawdy! Lawdy! Mah aRV trailer won't refit! Mah aRV trailer won't refit! Mah aRV trailer won't refit! Lawdy! Lawdy! Mah aRV trailer won't refit!"
Honour to whom honour is due!
Very best regards,
Carlo
(Nearly went mad formatting this - and swearing by owen's authentic photograph in his avatar that I will never ever do something like that again )
E pur si muove!
Re: Articulated Road Vehicles
Thank you, thank you Now where is my £6000?Carlo Ghega wrote:Honour to whom honour is due!
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- Carlo Ghega
- Engineer
- Posts: 92
- Joined: 07 Jan 2007 19:37
- Location: Vienna
Re: Articulated Road Vehicles
Just give me a sec or two: Only thing left to do for me, is to earn it. Right afterwards I'll put it into the scanner and there You go!wallyweb wrote:Thank you, thank you Now where is my £6000?
E pur si muove!
Re: Articulated Road Vehicles
Just do not put it into the trailer of an aRV. We don't seem to be able to refit it to valuables.Carlo Ghega wrote:Just give me a sec or two: Only thing left to do for me, is to earn it. Right afterwards I'll put it into the scanner and there You go!wallyweb wrote:Thank you, thank you Now where is my £6000?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- Carlo Ghega
- Engineer
- Posts: 92
- Joined: 07 Jan 2007 19:37
- Location: Vienna
Re: Articulated Road Vehicles
Don't say that: Who knows what might happen in the one ore two seconds that I still need to earn it?wallyweb wrote:Just do not put it into the trailer of an aRV. We don't seem to be able to refit it to valuables.
E pur si muove!
Re: Articulated Road Vehicles
I've enabled the "articulatedrvs" switch in the TTDX-Configurator, I do have installed some articulated trams-grf, but: I don't get them articulated. They appear just as single parts. CTRL doesn't help either. What am I doing wrong?
Re: Articulated Road Vehicles
In your ttdpatch.cfg file try setting the last digit of the curves and mountains parameters to 0.Doclouis wrote:?What am I doing wrong?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Articulated Road Vehicles
Hmm. interesting suggestion.
somehow, in my savegame, it all works OK at the beginning, but after something like 40 gameyears, the articulated trams go all wacky. Existing ones run OK, but new ones would just have the first part.
But I will try Wally's suggestion now, maybe it works.
somehow, in my savegame, it all works OK at the beginning, but after something like 40 gameyears, the articulated trams go all wacky. Existing ones run OK, but new ones would just have the first part.
But I will try Wally's suggestion now, maybe it works.
*** Ce French Train Set ***
*** Visit my transport related pictures on Flickr ***
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
"A committee is a group of men who individually can do nothing but as a group decide that nothing can be done" (Fred Allen 1894-1956 US radio comic).
*** Visit my transport related pictures on Flickr ***
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
"A committee is a group of men who individually can do nothing but as a group decide that nothing can be done" (Fred Allen 1894-1956 US radio comic).
Re: Articulated Road Vehicles
I have an identical problem and wally's suggest will not sort it. I have reported it before and nothing could be identified. I just get on with it.The Irish wrote:Hmm. interesting suggestion.
somehow, in my savegame, it all works OK at the beginning, but after something like 40 gameyears, the articulated trams go all wacky. Existing ones run OK, but new ones would just have the first part.
But I will try Wally's suggestion now, maybe it works.
Re: Articulated Road Vehicles
[rant]I can't speak for OTTD but Articulated RV's is seriously broken in TTDPatch and nobody seems to be motivated to take the bull by the horns and fix it. As a result I simply refuse to use Articulated RV's. The refit issue was quickly addressed and resolved in OTTD but nobody seemed to want to touch it in TTDPatch. Now we have the issue identified by The Irish and Ameecher. Quite frankly, Articulated RV is the only game killer feature that I know of, mainly because it so obvious to the players and it is continuously surfacing in this thread and elsewhere. This is really too bad because the feature makes such good sense in a game devoted to emulating real life transportation solutions.[/rant]Ameecher wrote:I have an identical problem and wally's suggest will not sort it. I have reported it before and nothing could be identified. I just get on with it.The Irish wrote:Hmm. interesting suggestion.
somehow, in my savegame, it all works OK at the beginning, but after something like 40 gameyears, the articulated trams go all wacky. Existing ones run OK, but new ones would just have the first part.
But I will try Wally's suggestion now, maybe it works.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Who is online
Users browsing this forum: No registered users and 25 guests