[GenAI] PX Patches -- train decouple, modular airport ...

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

svvboy
Engineer
Engineer
Posts: 12
Joined: 05 Oct 2026 21:37

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by svvboy »

Had a vacation
And also tested a lot of things

Now it FINALY done

my sav
my gethub

screens
Image

cargodist fix with train forming

Image

celc before end while train forming to have place for loco
Image
Attachments
Знімок екрана 2026-11-02 194258.jpg
(675.81 KiB) Not downloaded yet
Знімок екрана 2026-11-02 194033.jpg
(501.28 KiB) Not downloaded yet
Знімок екрана 2026-11-02 193945.jpg
(773.6 KiB) Not downloaded yet
Last edited by svvboy on 02 Nov 2026 18:04, edited 2 times in total.
svvboy
Engineer
Engineer
Posts: 12
Joined: 05 Oct 2026 21:37

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by svvboy »

You can try my line

It have all fitures in just 2 trains fully work
Hawthorn & Co., 30th Jan 1975.sav
(894.35 KiB) Downloaded 12 times
svvboy
Engineer
Engineer
Posts: 12
Joined: 05 Oct 2026 21:37

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by svvboy »

auto turn around with 1 button

Image

Image
svvboy
Engineer
Engineer
Posts: 12
Joined: 05 Oct 2026 21:37

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by svvboy »

train forming

Image


Image

Image

Image
blackeagle
Engineer
Engineer
Posts: 25
Joined: 23 Aug 2022 06:10

Re: PX Patches -- train decouple, modular airport ...

Post by blackeagle »

andythenorth wrote: 17 Oct 2026 09:56
But nonetheless, LLM-generated forks do present GPL v2 problems, right now. :?
  • it's fine for local personal projects, never distributed
  • it's problematic when distributing the forks, as they may not conform to GPL v2
This is not aimed specifically at PX Patches; it's a more general comment, and driven as much by the appearance on reddit, tt-forums, discord etc of other forks and patches that are very LLM-generated. So it might be better to move this to a new thread at some point. :idea:

This is a related-but-separate topic to the official OpenTTD AI contributions policy, which is already clear and established.
This isn't, (Sorry Andy!) quite right. If you fork a GPLv2 project and then add Public Domain (PD) code to it (so LLM generated code, code I just don't care about or care to licence explicitly), then as long as the finished product is released under the GPLv2 (with associated source code) then that's fine. Because PD code explicitly has NO licence, as long as the rest of the forked code is released with it's original GPLv2 licence, then that's acceptable. Because anyone could rip out the PD code to get back to the original fork with no problems.

Public domain code is 100% GPL-compatible. Dedicating any additions to the public domain means you grant maximum freedom: anyone can copy, modify, or distribute your code without restrictions.

There is a lifting effect of copyleft: If you combine some public domain code with GPLv2 code into a single, integrated work (like a single executable or unified codebase), the combined whole must be distributed under the terms of the GPLv2.
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

svvboy wrote: 02 Nov 2026 17:49
my gethub
I can’t see your GitHub repository. Could you paste its url? Or submit a pull request?
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5838
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: PX Patches -- train decouple, modular airport ...

Post by andythenorth »

blackeagle wrote: 03 Nov 2026 20:08 This isn't, (Sorry Andy!) quite right.
Where is your law degree from? :)

Or to put it another way, what's the legal definition of Public Domain, as it pertains to copyright, in every jurisdiction that a contributor might be subject to?

Or to put it another way, broadly in EU region, authors cannot assign 'public domain' as it has no meaning, and authors cannot waive inalienable moral rights over a work, whilst being alive. Being dead solves it, but makes future contributions by that author harder.
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

In the latest fourth 2611.1 preview version (will be published today), PXP has implemented pathfinding restrictions for automatic passing/overtaking. Players can now more easily set up passing-loop tracks and passing platforms. The related tutorial documentation is still being written manually!
User avatar
ChillCore
Tycoon
Tycoon
Posts: 3029
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: PX Patches -- train decouple, modular airport ...

Post by ChillCore »

blackeagle wrote: 03 Nov 2026 20:08If you fork a GPLv2 project and then add Public Domain (PD) code to it (so LLM generated code, code I just don't care about or care to licence explicitly), then as long as the finished product is released under the GPLv2 (with associated source code) then that's fine. Because PD code explicitly has NO licence, as long as the rest of the forked code is released with it's original GPLv2 licence, then that's acceptable. Because anyone could rip out the PD code to get back to the original fork with no problems.

Public domain code is 100% GPL-compatible. Dedicating any additions to the public domain means you grant maximum freedom: anyone can copy, modify, or distribute your code without restrictions.

There is a lifting effect of copyleft: If you combine some public domain code with GPLv2 code into a single, integrated work (like a single executable or unified codebase), the combined whole must be distributed under the terms of the GPLv2.
where did you get that nonsense? AI told you?
maybe it would be wise to do some research ...
https://noai.duckduckgo.com/html?q=can% ... ted%20code

pulsexlb wrote: 07 Nov 2026 03:25 I think we should now integrate the code that the official project is unwilling to merge, rather than developing a whole new system ourselves.
what's that supposed to mean?
you add unlicensed code that spaghettimonster knows where it came from (not knowing AI fed you copyrighted code is not an excuse), code that you don't understand yourself, code you could not fix if poor AI bot goes down eventually ... but let's ignore peeps who kinda know what they are talking about and just brute force our way ...
to where exactly?

same link and advice for you above ...
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

ChillCore wrote: 07 Nov 2026 12:00
what's that supposed to mean?
you add unlicensed code that spaghettimonster knows where it came from (not knowing AI fed you copyrighted code is not an excuse), code that you don't understand yourself, code you could not fix if poor AI bot goes down eventually ... but let's ignore peeps who kinda know what they are talking about and just brute force our way ...
to where exactly?

same link and advice for you above ...

what are you talking about?

all the patches I merged are OpenTTD patches and are released under GPL v2. It is entirely reasonable for me to integrate them and release them under the GPL v2 license.

Where is the obstacle to AI-generated public-domain code entering a GPL project? If you think there is one, you should find the specific line in UN documents, GNU Foundation documents, or GPL v2, rather than posting a DuckDuckGo search result to accuse me of adding unlicensed code.

If you have objections about how this project is developed, you should ignore it instead of making unreasonable trouble here.
Last edited by pulsexlb on 07 Nov 2026 12:47, edited 1 time in total.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 3029
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: PX Patches -- train decouple, modular airport ...

Post by ChillCore »

pulsexlb wrote: 07 Nov 2026 12:22
ChillCore wrote: 07 Nov 2026 12:00
what's that supposed to mean?
you add unlicensed code that spaghettimonster knows where it came from (not knowing AI fed you copyrighted code is not an excuse), code that you don't understand yourself, code you could not fix if poor AI bot goes down eventually ... but let's ignore peeps who kinda know what they are talking about and just brute force our way ...
to where exactly?

same link and advice for you above ...

what are you talking about?

all the patches I merged are OpenTTD patches and are released under GPL v2. It is entirely reasonable for me to integrate them and release them under the GPL v2 license.
they are patches but the source is questionable and unreliable
Where is the obstacle to AI-generated public-domain code entering a GPL project? If you think there is one, you should find the specific line in UN documents, GNU Foundation documents, or GPL v2, rather than posting a DuckDuckGo policy to accuse me of adding unlicensed code.
'public domain' is not a license and as such is it not compatible with GPL v2 (or whatevs version)
where did your AI get its code? pretty sure they are not telling you nor will they ever

them AI companies just shift the blame to you ... if thing go apeshit legally ... GPL may be very liberal but it has teeth ... that's what licenses do which your code has not nor ever will ... just saying
If you have objections to this project’s development, you should ignore it instead of making unreasonable trouble here.
nah ...
also ... it's not the patch I have a problem with ... it is the source and sooner or later you're gonna run into an issue YOU can not solve because your precious fed you all of it and you have no clue where to start nor end

what made me quote you is which you did not reply to ...
ChillCore wrote: 07 Nov 2026 12:00
pulsexlb wrote: 07 Nov 2026 03:25 I think we should now integrate the code that the official project is unwilling to merge, rather than developing a whole new system ourselves.
what's that supposed to mean?
you add unlicensed code that spaghettimonster knows where it came from (not knowing AI fed you copyrighted code is not an excuse), code that you don't understand yourself, code you could not fix if poor AI bot goes down eventually ... but let's ignore peeps who kinda know what they are talking about and just brute force our way ...
to where exactly?

TLDR: you can not license AI code under GPL because you have no copyright (AI companies even do not give you a license to use because even they do not know what the crap their machine is doing(*)) ... you gave a prompt and that's it ... as for them they transfered it all to you and what yuo do is not their problem

(*) but I can give you a clue ... they scrape wherever and you as enduser are responsible in the end since you published it and not them ... smallprint stuffies
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

I don’t want to argue about AI-related policies here. As I said before, if you don’t want AI code to enter the game, you should follow the original OpenTTD updates rather than consider this patch pack.
Also, there is no substantive legal document showing that AI-generated code conflicts with the GPL v2 license.
I think a dedicated thread should be opened to debate this, rather than doing it under a patch thread.
That’s all.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 3029
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by ChillCore »

pulsexlb wrote: 07 Nov 2026 12:56 Also, there is no substantive legal document showing that AI-generated code conflicts with the GPL v2 license.
AI code having no license is the whole problem ... there is nothing to compare nor show ... it's not your code .. it's not theirs
who do we assign blame to if things go pear shaped
it just happened ... ??? will be a fun arguement for social media but other than that?
I think a dedicated thread should be opened to debate this, rather than doing it under a patch thread.
That’s all.
fair enough ... feel free to start one in the suggestion forums before I do ... to seperate the AI crap in a new forum section away from the legit code that can be merged and licensed ... and the raisins why

that is all too ;)
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Ianfran
Engineer
Engineer
Posts: 1
Joined: 09 Nov 2026 05:23
Location: Jupiter

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by Ianfran »

andythenorth wrote: 18 Oct 2026 21:17
svvboy wrote: 18 Oct 2026 20:29 Many years everybody told "we can't make decouple patch"

Now everyone can make it
Lol. You cannot make a worthwhile decouple patch, and nor can your Claude. :D Stop having AI pyschosis. :)
Is there a reason why decoupling can't be a feature in the base game? I'd love to be playing with this but it's a shame that the patch was made with AI, and while I know that there are other patches that add decoupling, these are from year-old versions of the game and need to be updated separately.
User avatar
GoldMine
Traffic Manager
Traffic Manager
Posts: 237
Joined: 31 Oct 2024 20:59

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by GoldMine »

ChillCore wrote: 07 Nov 2026 13:05 AI code having no license is the whole problem ... there is nothing to compare nor show ... it's not your code .. it's not theirs
You can license/copyright AI code output as your own without any issues, nobody can nor will prove anything.

The method can be considered a "clean room design":
Clean-room design (also known as the Chinese wall technique) is the method of copying a design by reverse engineering and then recreating it without infringing any of the copyrights associated with the original design.
Clean-room design is useful as a defense against copyright infringement because it relies on independent creation.
Specifically:
Typically, a clean-room design is done by having someone examine the system to be reimplemented and having this person write a specification.
This specification is then reviewed by a lawyer to ensure that no copyrighted material is included. The specification is then implemented by a team with no connection to the original examiners.
https://en.wikipedia.org/wiki/Clean-room_design

In other words one team reads the original and writes specification, another team them writes a new implementation.

The AI is the one who examines original code (you know nothing about it), it gives specification to you, and your job is to turn that into final code that's different than original. only ideas/specs remain similar or same which isn't subject to copyright.
Logging, error and exception handling is the father and mother of all debugging.
ebla71
President
President
Posts: 899
Joined: 14 Apr 2021 21:48
Location: Earth

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by ebla71 »

Ianfran wrote: 09 Nov 2026 17:31 Is there a reason why decoupling can't be a feature in the base game?
Because it would require a deep dive into the data structures and algorithms which handle the vehicles and the rail network together with everything that involves train movements.

It's possibly the equivalent to heart surgery - and our "OTTD surgeons in residence" current have other preferences (and besides that, usually a job to earn them money and maybe even something like a family and a life outside this game).
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

I can’t understand what exactly you’re resisting. Whether content is high-quality doesn’t depend on whether AI is the producer, but on its design and actual experience.

pxp is becoming more stable. I’ve been running a small 2k×2k map server since i publish this patch so that more people can test for game issues. And this patch set will remain actively updated for at least some time; I’m currently optimizing custom airport efficiency.

Also, I haven’t asked anyone to try this patch set—I just released it after finishing it, that’s all. But many of the actual responses are:

Category A: “You made an uncoupling patch? Watch me finish a ‘better’ one in a week”—and then either it secretly contains malware, or it crashes everywhere. (When I started this project, only the YPS patch was related to train uncoupling, so I merged that patch directly, but did a lot of rewriting and modification.)

Category B: “AI is slop! I forgot the first part, forgot the rest, forgot what you did, anyway I remember you used AI.”

I think these arguments under this thread are meaningless for solving actual problems. If the official project can implement the relevant features, PXP will stop development. If that’s your goal, you should pressure the official project.

Admittedly, I’ve hardly written a single line of code, but at least for train uncoupling/coupling, all the frameworks and logic applicable to the new reversal feature were independently designed by me; there was no AI involvement at the design level. You can see that it is a major change from the original YPS, and even from vanilla OpenTTD train logic. (Most of the other features were not written by me—either copied directly from other patches or contributed via PRs from other players.) The restriction on AI copyright is “fully AI-generated” and “no human intellectual involvement”; this project clearly does not meet that definition.

In short, opposing AI under this thread is meaningless.
User avatar
odisseus
Chairman
Chairman
Posts: 895
Joined: 01 Nov 2017 21:19

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by odisseus »

Even if your patch has perfect quality, it unfortunately cannot be merged due to licensing concerns. Unless you can prove that you have only used self-hosted AI agents with open-weight models, which have only been trained on GPL-compatible sources.
ebla71
President
President
Posts: 899
Joined: 14 Apr 2021 21:48
Location: Earth

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by ebla71 »

pulsexlb wrote: 10 Nov 2026 14:55 I can’t understand what exactly you’re resisting. Whether content is high-quality doesn’t depend on whether AI is the producer, but on its design and actual experience.

pxp is becoming more stable.
Beyond the copyright issues, stability IS a problem. Not in terms of technical stability maybe, in the sense of the frequency of software crashes, but in terms of development stability. If you decide to walk away from this project it will be dead due to a bus factor of one, as you said yourself you don't understand the AI-generated code, and anybody using it for their games will also loose all content, since it cannot be imported back into standard OTTD.

It's fine if you like to use it for your private fun and also for anybody else to play around, but it hardly can be anything beyond that.

To me, it is a sad waste of ressources that would better be directed at other parts of the game.

But your code, your choice ...
pulsexlb
Engineer
Engineer
Posts: 35
Joined: 27 Sep 2026 07:00
Location: Beijing

Re: [GenAI] PX Patches -- train decouple, modular airport ...

Post by pulsexlb »

odisseus wrote: 10 Nov 2026 15:44 Even if your patch has perfect quality, it unfortunately cannot be merged due to licensing concerns. Unless you can prove that you have only used self-hosted AI agents with open-weight models, which have only been trained on GPL-compatible sources.
From the moment I started this thread, I have always emphasized that this patch will not aim to be merged upstream, yet your replies have almost never departed from that topic.
ebla71 wrote: 10 Nov 2026 16:31
pulsexlb wrote: 10 Nov 2026 14:55 I can’t understand what exactly you’re resisting. Whether content is high-quality doesn’t depend on whether AI is the producer, but on its design and actual experience.

pxp is becoming more stable.
Beyond the copyright issues, stability IS a problem. Not in terms of technical stability maybe, in the sense of the frequency of software crashes, but in terms of development stability. If you decide to walk away from this project it will be dead due to a bus factor of one, as you said yourself you don't understand the AI-generated code, and anybody using it for their games will also loose all content, since it cannot be imported back into standard OTTD.

It's fine if you like to use it for your private fun and also for anybody else to play around, but it hardly can be anything beyond that.

To me, it is a sad waste of ressources that would better be directed at other parts of the game.

But your code, your choice ...
This is a problem that exists in all projects and has nothing to do with whether AI is used. In the past, before AI appeared, the vast majority of excellent patches stopped; they did not use AI. Therefore, whether the project will end because I decide to stop has nothing to do with whether it uses AI. Secondly, whether I understand the code written by AI does not affect its readability (you may complain about its redundant comments, but that does not affect reading). I didn’t use AI to directly write bytecode or assembly; this is discrimination against AI code, not an actual problem.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests