The International Simutrans Forum

Simutrans Extended => Simutrans Extended Paksets => Pak128.Britain-Ex => Topic started by: ACarlotti on March 23, 2018, 06:46:28 PM

Title: Assorted broken vehicle references
Post by: ACarlotti on March 23, 2018, 06:46:28 PM
I've been trying to fix a load of broken references (in relation to the upgrade listing bug mentioned elsewhere). The following are issues I have discovered but not fixed:


I'll upload the fixes I've made soon.

I've also noticed that there are a lot of places where large numbers of vehicles have identical coupling constraints. (E.g. groups of multiple units that can all couple with each other, or barges of a particular kind). I think it would be helpful to have a way of specifying coupling groups, so that the .dat files for a group of vehicles needn't all specify the same long list of valid couplings (which contributed to some of the broken references above, and probably has some other bugs at present as well). I think this would be best implemented as a modification to makeobj, which could be made to expand such groups into full lists.
Title: Re: Assorted broken vehicle references
Post by: jamespetts on March 23, 2018, 07:19:00 PM
Thank you for spotting these: this is most helpful. Errors in compat.tab are often not noticed, so thank you for spotting these and for the forthcoming fixes.

I had been wondering about introducing a coupling grouping system for a while. I was thinking something a little different to what you propose, keeping the existing system intact, but adding a new type of more abstract coupling constraint system similar to the way constraint system so that one can specify to what vehicles may couple by type (e.g., "screw link coupling, vacuum brakes" or "buckeye coupling, air brakes, electric train heating", etc.).
Title: Re: Assorted broken vehicle references
Post by: Vladki on March 23, 2018, 08:06:26 PM
There were some discussions about coupling constraints in the past. So you might want to review them. There's lot to think about. Coupling itself, brakes, heating, door control, push-pull operation...

There were several methods proposed. Either constraint groups: e. g. Pendolino car group, that would allow you to compose the Pendolino from any combo of 1st, 2nd, dining, mail, front and tail cars.

Another idea was some sort of require/provide/pass through options, (e. g. for heating or remote control.)
Title: Re: Assorted broken vehicle references
Post by: Milko on April 15, 2018, 06:03:56 PM
Hello James


May be that you have never incorporated the changes? https://github.com/andrewcarlotti/simutrans-pak128.britain/commit/a58d497fca8d04850449545533afdaadf8304477


Thanks
Giuseppe
Title: Re: Assorted broken vehicle references
Post by: jamespetts on April 15, 2018, 09:00:59 PM
My apologies: I must have missed that. Now incorporated.
Title: Re: Assorted broken vehicle references
Post by: ACarlotti on April 15, 2018, 09:31:26 PM
I'd like to clarify while we're here that I have no immediate plans to fix the remaining issues mentioned in the first post, as I am in these cases uncertain of the intended correct behaviour. Someone with more familiarity with the pakset ought to take a look at some point.