I tried it with 14.0-RC3, and yes, there are some log evenst with strings, but otherwise the script works (and even all gui is displayed properly). But I am not really sure, why it would show such errors in log, probably some new feature in v14.
[GS] Simple City Builder game script
Moderator: OpenTTD Developers
Re: [GS] Simple City Builder game script
Re: [GS] Simple City Builder game script
Cheers Honza_,
do you intend to change from plain numeric cargo IDs to cargo tags? From my understanding, most overhaul nGRFs like FIRS have been changing their cargo scheme to a tag-based variant, which makes compatibility with Simple City Builder a problem. At least that's what, I think, has been causing me some headaches the past few days, since cargo requests never seem to be right like in the config.
do you intend to change from plain numeric cargo IDs to cargo tags? From my understanding, most overhaul nGRFs like FIRS have been changing their cargo scheme to a tag-based variant, which makes compatibility with Simple City Builder a problem. At least that's what, I think, has been causing me some headaches the past few days, since cargo requests never seem to be right like in the config.
Re: [GS] Simple City Builder game script
Not really sure what do you mean by cargo tag or what the exact suggestion is supposed to be.
Admin of Novapolis OpenTTD servers
Re: [GS] Simple City Builder game script
Sorry, I might have misunderstood my problem.
Anyway, I can't seem to get the SCB script running properly with the newer FIRS 5.0. Somehow the orders from the towns never confirm to the orders put down in the config menu, or even the config table in the info.nut of SCB. I thought it might be an issue regarding the cargo translation tables, but tbh my understanding of nGRFs is not good enough to diagnose what's actually causing it.
Anyway, I can't seem to get the SCB script running properly with the newer FIRS 5.0. Somehow the orders from the towns never confirm to the orders put down in the config menu, or even the config table in the info.nut of SCB. I thought it might be an issue regarding the cargo translation tables, but tbh my understanding of nGRFs is not good enough to diagnose what's actually causing it.
Re: [GS] Simple City Builder game script
Hi Honza,
Some time ago you fixed a bug that I reported when working with a scenario and a duplicate name. Still very happy you fixed that, since my small group of 4 players still play every Tuesday evening on a large map of The Netherlands with the SCB and some other GRF's like FIRS4, ISR and the Dutch Train Set. The map now has around 300 Dutch cities in their actual location and when we start a new round (player must reach 30.000 citizens with quite a lot of resources) I let the players choose their starting location and place 1 town just under 800 citizens (around 725-750) on that location, so the player can start there. Since some time, I think update 14.1, but not entirely sure, I notice that at least 1, but sometimes more, players can actually let their town grow with only passengers being transported locally. One bus seems to be enough. As soon as you remove the bus, you need to deliver all supplies again to get the town growing. I tested with the "Town Growth Mechanism" in both Normal and Expand, but that does not seem to change anything. Just to give all information, we also see an error message in the City Info screen of a players town after "See more details in:" Goal Gui(invalid parameter)(invalid parameter)(invalid parameter) I don't thing it is related, it started after update 14.0 of 14.1 and is visible on all player cities, not just the players that can 'cheat' with local passengers.
It would be awesome if you could take a look at what might cause this strange behavior. Thanks in Advance,
Lucas
Some time ago you fixed a bug that I reported when working with a scenario and a duplicate name. Still very happy you fixed that, since my small group of 4 players still play every Tuesday evening on a large map of The Netherlands with the SCB and some other GRF's like FIRS4, ISR and the Dutch Train Set. The map now has around 300 Dutch cities in their actual location and when we start a new round (player must reach 30.000 citizens with quite a lot of resources) I let the players choose their starting location and place 1 town just under 800 citizens (around 725-750) on that location, so the player can start there. Since some time, I think update 14.1, but not entirely sure, I notice that at least 1, but sometimes more, players can actually let their town grow with only passengers being transported locally. One bus seems to be enough. As soon as you remove the bus, you need to deliver all supplies again to get the town growing. I tested with the "Town Growth Mechanism" in both Normal and Expand, but that does not seem to change anything. Just to give all information, we also see an error message in the City Info screen of a players town after "See more details in:" Goal Gui(invalid parameter)(invalid parameter)(invalid parameter) I don't thing it is related, it started after update 14.0 of 14.1 and is visible on all player cities, not just the players that can 'cheat' with local passengers.
It would be awesome if you could take a look at what might cause this strange behavior. Thanks in Advance,
Lucas
There is no spoon...
Re: [GS] Simple City Builder game script
Game scripts cannot read NewGRF cargo definitions and with all those industry sets it's too complicated to involve all the cargo names at the corresponding internal cargo numbers, so it is left onto user to found out.Tabloid wrote: 14 Jan 2025 11:54 Sorry, I might have misunderstood my problem.
Anyway, I can't seem to get the SCB script running properly with the newer FIRS 5.0. Somehow the orders from the towns never confirm to the orders put down in the config menu, or even the config table in the info.nut of SCB. I thought it might be an issue regarding the cargo translation tables, but tbh my understanding of nGRFs is not good enough to diagnose what's actually causing it.
If you don't wont to delve into NewGRFs itself one thing you can to is set script's logging to "MORE" and then in AI/GS debug window read the corresponding cargo numbers for each cargo.
This example is for FIRS5 Steel Town
Re: [GS] Simple City Builder game script
Hi Lucas,
very strange indeed. No idea on that. Could you provide more details, settings, savegame, etc.?
Re: [GS] Simple City Builder game script
Hi Honza,
Thanks for taking the time to investigate this. Attached is a screenshot of 4 towns, all have 1 local bus. 2 towns are growing and 2 towns are not. The Save game and Scenario file are also attached.
Kind regards,
Lucas
Thanks for taking the time to investigate this. Attached is a screenshot of 4 towns, all have 1 local bus. 2 towns are growing and 2 towns are not. The Save game and Scenario file are also attached.
Kind regards,
Lucas
There is no spoon...
Re: [GS] Simple City Builder game script
The text problem is caused because OpenTTD string management became more strict. That is easy fix.Lucas79 wrote: 03 Mar 2025 09:26 Hi Honza,
Thanks for taking the time to investigate this. Attached is a screenshot of 4 towns, all have 1 local bus. 2 towns are growing and 2 towns are not. The Save game and Scenario file are also attached.
Screenshot Town Growing.jpg
Kind regards,
Lucas
I have no idea about the growth thing. From the screenshot it would seem the script thinks town is not supplied and growing but the town still thinks it is growing. I guess that could happen with EXPAND mechanic where town falsely thinks it is growing while in fact it is not. It's actually just GUI bug which cannot be fixed with current API.
The save was not that useful, because it loaded strangely without any info in goal gui and I was not able to reproduce it.
What version of OpenTTD and script are you using?
If it happens often and you are able to reproduce it maybe send me PM and you can show it to me in actual game.
Re: [GS] Simple City Builder game script
Honza_ wrote: 03 Mar 2025 18:06
The text problem is caused because OpenTTD string management became more strict. That is easy fix.
I have no idea about the growth thing. From the screenshot it would seem the script thinks town is not supplied and growing but the town still thinks it is growing. I guess that could happen with EXPAND mechanic where town falsely thinks it is growing while in fact it is not. It's actually just GUI bug which cannot be fixed with current API.
The save was not that useful, because it loaded strangely without any info in goal gui and I was not able to reproduce it.
What version of OpenTTD and script are you using?
If it happens often and you are able to reproduce it maybe send me PM and you can show it to me in actual game.
Hi Honza,
The Towns don't just 'think' they are growing, they are actually growing. I took a second screenshot after keeping the game running for about 2 in-game years, without doing anything. You can see Town #2 and #4 have a larger population. I have tested with both Expand and Normal setting, with the same result.
I'm using OpenTTD version 14.1 and Simple City Builder Version 2024.04.13. (when I click in Game on the 'Select Script' it reads Simpleton's City Builder Version 14)
If this extra info doesn't help I'll PM you so I can share my screen with you.
Kind Regards,
Lucas
There is no spoon...
Re: [GS] Simple City Builder game script
New version released, it should fix both the string and growth issue.
Re: [GS] Simple City Builder game script
That is awesome, Thank you very much!Honza_ wrote: 07 Mar 2025 13:30 New version released, it should fix both the string and growth issue.

Kind regards,
Lucas and OpenTTD Friends,
There is no spoon...
Who is online
Users browsing this forum: No registered users and 3 guests