[GS] Renewed Village Growth 12.0 (RVG)

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

How would you rate this game script?

5★ Lev4 'Chimaera'
36
84%
4★ "AsiaStar"
5
12%
3★ Floss "47"
2
5%
2★ Ploddyphut Choo-Choo
0
No votes
1★ Kirby Paul Tank
0
No votes
 
Total votes: 43

Church_On_A_Hill
Engineer
Engineer
Posts: 2
Joined: 24 May 2024 18:16

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by Church_On_A_Hill »

Hi,

I may be misunderstanding how the script works, but I'm having an issue where I am fulfilling the Public Services Category, but the town is not growing because it says I am not transporting enough passengers or mail out of the town. I can't find anything in the readme about having to transport a certain amount of both of those two goods out of town for it to grow, only that some amount of passengers need to be transported every month for it to show the cargo categories. Is there a reason for this issue or a way to change this? If not, is there at least a way to see how much of each of the two goods need to be transported in order for the city to grow? Screenshot attached.
Attachments
Screenshot 2024-05-24 141450.png
Screenshot 2024-05-24 141450.png (140.47 KiB) Viewed 11870 times
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by Firrel »

Church_On_A_Hill wrote: 24 May 2024 18:21 I may be misunderstanding how the script works, but I'm having an issue where I am fulfilling the Public Services Category, but the town is not growing because it says I am not transporting enough passengers or mail out of the town. I can't find anything in the readme about having to transport a certain amount of both of those two goods out of town for it to grow, only that some amount of passengers need to be transported every month for it to show the cargo categories. Is there a reason for this issue or a way to change this? If not, is there at least a way to see how much of each of the two goods need to be transported in order for the city to grow? Screenshot attached.
It is a growth limiter, which stops the growth completely if the combined percentage of pax&mail generated by the town are not transported. You are transporting 1688/3600 pax and 585/1500 mail. You need to improve mail transport.

You can change it by these parameter:

Limit growth settings:
- "Minimum Percentage of transported cargo from town": how much of the
cargo generated by the town that month must be transported
- "Minimum size of town before the limit rules kicks in": at what
population of the town the growth limitation will start
- "Stop growth after set amount of months": keep growing for the amount
of months after limiter stops the growth
User avatar
bigyihsuan
Engineer
Engineer
Posts: 42
Joined: 23 Jul 2013 07:41

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by bigyihsuan »

I made a merge request for the new FIRS 5 beta: https://github.com/F1rrel/RenewedVillageGrowth/pull/145

I was unable to use the old FIRS4 non-Steeltown economies because FIRS 5 changed the internal ordering of its cargos, making it a big pain to reorder and renumber each economy even though they were the same between versions.

The new Steeltown economy I based roughly on FIRS4 Steeltown settings, with some cargos being placed to allow for a more even distribution between cargo classes.
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by Firrel »

bigyihsuan wrote: 11 Jun 2024 14:22 I made a merge request for the new FIRS 5 beta: https://github.com/F1rrel/RenewedVillageGrowth/pull/145

I was unable to use the old FIRS4 non-Steeltown economies because FIRS 5 changed the internal ordering of its cargos, making it a big pain to reorder and renumber each economy even though they were the same between versions.

The new Steeltown economy I based roughly on FIRS4 Steeltown settings, with some cargos being placed to allow for a more even distribution between cargo classes.
Perfect, I will check it out and give you feedback in the PR. Thank you for the hard work!
BlaqueWidow
Engineer
Engineer
Posts: 3
Joined: 26 Jun 2024 18:40

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by BlaqueWidow »

I've been trying to play with this script and CityLifeAI but so far across 3 separate attempts the script crashes within the first minute of unpausing the game. I generate a new map, wait for everything to load and then unpause to let CityLife start doing its thing but seconds after the AI starts and begins to request funds, RVG crashes and brings up the debug window stating "Your script made an error: wrong number of parameters". I'm not sure if you'd need the save or the debug message, if this is an AI issue (when not using this script I usually have to cheat $20M to it for it to work) or if I just missed/messed up something during setup. Any assistance would be greatly appreciated.
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Firrel »

New update for Renewed Village Growth 10.1 is available in BaNaNaS
- new: FIRS 5 support (bigyihsuan)
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.0 (RVG)

Post by Firrel »

BlaqueWidow wrote: 26 Jun 2024 19:05 I've been trying to play with this script and CityLifeAI but so far across 3 separate attempts the script crashes within the first minute of unpausing the game. I generate a new map, wait for everything to load and then unpause to let CityLife start doing its thing but seconds after the AI starts and begins to request funds, RVG crashes and brings up the debug window stating "Your script made an error: wrong number of parameters". I'm not sure if you'd need the save or the debug message, if this is an AI issue (when not using this script I usually have to cheat $20M to it for it to work) or if I just missed/messed up something during setup. Any assistance would be greatly appreciated.
Thank you for the info. I checked it and the issue is with the GSToyLib not working with API 1.11 or later. Since I upgraded RVG to API 12 since release of RVG 10, the problem showed up. Started discussion about this issue here, in the meantime, you can use RVG 9 with CityLifeAI. You can ctrl+click on Select Game Script to see all available versions. You can download any RVG version from links in changelog on the first post of this thread.

Another option is to download this fixed version of GSToyLib-1.tar and place it inside OpenTTD/game/library
GSToyLib-1.tar
(31 KiB) Downloaded 266 times
NielsBaars
Engineer
Engineer
Posts: 1
Joined: 09 Jul 2024 10:58

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by NielsBaars »

Got a nasty persistent little thing here.
I've been trying to fix it, but I can't seem to find the broken ID.
Could you help me find the issue?

The error occurs on start, with Town id 362, which does not exist. Thus the GS stops after processing Oosterhout.
Attachments
GS Error.sav
(4.64 MiB) Downloaded 266 times
Last edited by NielsBaars on 09 Jul 2024 15:44, edited 1 time in total.
skkeeper
Engineer
Engineer
Posts: 7
Joined: 19 Jul 2007 12:37

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by skkeeper »

Hi, first of all, thanks for your work on this, I've had tons of fun with this script.

I noticed that when running RVG 10 or 10.1 with First 5 beta 2 or AIRS on my JGR patched dedicated server it crashes straight after generating the map:

Code: Select all

 ‎*** Game paused (game script)
dbg: [script:0] [18] [S] Your script made an error: the index '318' does not exist
dbg: [script:0] [18] [S]
dbg: [script:0] [18] [S] *FUNCTION [ConstructECSVectorCargoList()] 52455649-renewed_village_growth-10.1.tar/renewed_village_growth-10.1/cargo.nut line [425]
dbg: [script:0] [18] [S] *FUNCTION [DiscoverEconomyType()] 52455649-renewed_village_growth-10.1.tar/renewed_village_growth-10.1/cargo.nut line [1027]
dbg: [script:0] [18] [S] *FUNCTION [InitCargoLists()] 52455649-renewed_village_growth-10.1.tar/renewed_village_growth-10.1/cargo.nut line [1108]
dbg: [script:0] [18] [S] *FUNCTION [Init()] 52455649-renewed_village_growth-10.1.tar/renewed_village_growth-10.1/main.nut line [180]
dbg: [script:0] [18] [S] *FUNCTION [Start()] 52455649-renewed_village_growth-10.1.tar/renewed_village_growth-10.1/main.nut line [102]
dbg: [script:0] [18] [S]
dbg: [script:0] [18] [S] [index] 318
dbg: [script:0] [18] [S] [agricultural_idx] ARRAY
dbg: [script:0] [18] [S] [agricultural_list] ARRAY
dbg: [script:0] [18] [S] [agricultural] false
dbg: [script:0] [18] [S] [wood_idx] ARRAY
dbg: [script:0] [18] [S] [wood_list] ARRAY
dbg: [script:0] [18] [S] [wood] false
dbg: [script:0] [18] [S] [machinery_idx] ARRAY
dbg: [script:0] [18] [S] [machinery_list] ARRAY
dbg: [script:0] [18] [S] [machinery] false
dbg: [script:0] [18] [S] [chemical_idx] ARRAY
dbg: [script:0] [18] [S] [chemical_list] ARRAY
dbg: [script:0] [18] [S] [chemical] false
dbg: [script:0] [18] [S] [basic_idx] ARRAY
dbg: [script:0] [18] [S] [basic_list] ARRAY   
dbg: [script:0] [18] [S] [basic] false           
dbg: [script:0] [18] [S] [town_idx] ARRAY  
dbg: [script:0] [18] [S] [town_list] ARRAY 
dbg: [script:0] [18] [S] [town] false                                  
dbg: [script:0] [18] [S] [return_list] ARRAY      
dbg: [script:0] [18] [S] [cargo_list] ARRAY   
dbg: [script:0] [18] [S] [this] INSTANCE     
dbg: [script:0] [18] [S] [i] 10     
dbg: [script:0] [18] [S] [economy] 0            
dbg: [script:0] [18] [S] [this] INSTANCE   
dbg: [script:0] [18] [S] [this] INSTANCE    
dbg: [script:0] [18] [S] [this] INSTANCE 
dbg: [script:0] [18] [S] [start_tick] 41               
dbg: [script:0] [18] [S] [sysdate] 40  
dbg: [script:0] [18] [S] [this] INSTANCE   
dbg: [script:0] The script died unexpectedly.                                                                                                                                                                                            
One of the running scripts crashed. Please report this to the script author with a screenshot of the AI/Game Script Debug Window  
It's weird because it only happens on a dedicated server, if I run a regular server inside the desktop game it seems to work fine.
Sochi
Engineer
Engineer
Posts: 4
Joined: 03 Mar 2008 12:05

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Sochi »

How to install it? Where should I put tar file? Help, please.
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Firrel »

Sochi wrote: 24 Jul 2024 07:16 How to install it? Where should I put tar file? Help, please.
You can install RVG in game using content downloader. Then select it in Game Script settings and start a game. You should get a welcome popup from the GS when the setup is done.
Sochi
Engineer
Engineer
Posts: 4
Joined: 03 Mar 2008 12:05

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Sochi »

Firrel wrote: 24 Jul 2024 15:02
Sochi wrote: 24 Jul 2024 07:16 How to install it? Where should I put tar file? Help, please.
You can install RVG in game using content downloader. Then select it in Game Script settings and start a game. You should get a welcome popup from the GS when the setup is done.
Thanks a lot!
Here is one more question: what kind of AI should I activate?

Image
https://disk.yandex.ru/i/K142Rv7OCvpgjA
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Firrel »

NielsBaars wrote: 09 Jul 2024 14:36 Got a nasty persistent little thing here.
I've been trying to fix it, but I can't seem to find the broken ID.
Could you help me find the issue?

The error occurs on start, with Town id 362, which does not exist. Thus the GS stops after processing Oosterhout.
Sorry, could not reproduce the error. Loading a running GS from another PC does not work and the file you sent was starting normally for me.
skkeeper wrote: 10 Jul 2024 08:59 Hi, first of all, thanks for your work on this, I've had tons of fun with this script.

I noticed that when running RVG 10 or 10.1 with First 5 beta 2 or AIRS on my JGR patched dedicated server it crashes straight after generating the map:

It's weird because it only happens on a dedicated server, if I run a regular server inside the desktop game it seems to work fine.
I checked the line where the error occurs and that index should never be there. Tried both economies on JGR 0.60.2 dedicated server and worked fine. Maybe try a different version of JGR, it may have been fixed.
AnniKa32
Engineer
Engineer
Posts: 14
Joined: 21 Feb 2014 23:16

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by AnniKa32 »

howdy, i started a new game with this RVG 10.1 and FIRS, since i like that RVG and now wanna try FIRS.

but somehow the city now want milk to grow, but no building inside the city accepts milk, and the city got no factory that wants milk.

thats sad, but when i once got enough $ to create a factory that needs milk nearby the city, will i than be able to let it grow?..

greetings.
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Firrel »

AnniKa32 wrote: 04 Aug 2024 19:15 howdy, i started a new game with this RVG 10.1 and FIRS, since i like that RVG and now wanna try FIRS.

but somehow the city now want milk to grow, but no building inside the city accepts milk, and the city got no factory that wants milk.

thats sad, but when i once got enough $ to create a factory that needs milk nearby the city, will i than be able to let it grow?..

greetings.
Yes, that is intended to need to fund an appropriate industries near the towns.
AnniKa32
Engineer
Engineer
Posts: 14
Joined: 21 Feb 2014 23:16

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by AnniKa32 »

howdy, its me with another question, is it possible to disable or change the factor of the function that we need to transport stuff out of the town?

somehow i got A LOT ppl staying around (20000) and ~5000 ppl want to a station somewhere far away, and then they after a while want to another place, thats annoying and it seems not be possible to ship all those ppl to a place.

is there an option to disable that "Not enough transported out of town" blocker?
I got my town supplied with everything, milk, and steel and all that, but because of that 20000 ppl that i will never be able to move away the town wont grow.
They dont even get into the trains that are going to thery target, it wont grow, even when it got everything else.

since i thought its about bringing ppl stuff and not bringing unrealistic amounds of ppl to small towns with a bus station on the other side of the map :)
User avatar
Firrel
Traffic Manager
Traffic Manager
Posts: 143
Joined: 13 Aug 2019 17:06

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by Firrel »

AnniKa32 wrote: 05 Aug 2024 12:42 howdy, its me with another question, is it possible to disable or change the factor of the function that we need to transport stuff out of the town?

somehow i got A LOT ppl staying around (20000) and ~5000 ppl want to a station somewhere far away, and then they after a while want to another place, thats annoying and it seems not be possible to ship all those ppl to a place.

is there an option to disable that "Not enough transported out of town" blocker?
I got my town supplied with everything, milk, and steel and all that, but because of that 20000 ppl that i will never be able to move away the town wont grow.
They dont even get into the trains that are going to thery target, it wont grow, even when it got everything else.

since i thought its about bringing ppl stuff and not bringing unrealistic amounds of ppl to small towns with a bus station on the other side of the map :)
You can find extended information about every parameter in the README file, which can be viewed ingame. There is info about "Minimum Percentage of transported cargo from town" parameter, which can be set to zero to stop this feature, therefore the growth will never stop. Also there is FAQ giving answer to your previous question. So it is worth checking out.
pristine3
Engineer
Engineer
Posts: 1
Joined: 11 Aug 2024 01:32

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by pristine3 »

Hi,

I am new to Openttd and started to make a scenario to the following playthrough, https://www.youtube.com/watch?v=ZqKRaY55GZQ&t=17131s but I wanted to use AXIS and a larger map. When I go to play the scenario however I am given a Renewed Village Growth error, "the index '23' does not exist. I narrowed down that 23 is the number of towns I have on the map. I also started the process of making a new map, and testing it incrementally. The only difference between the two files is the placement of one new city.

Any help on this matter is greatly appreciated.
Attachments
rvg_city_error.scn
scenario file giving the error
(1.61 MiB) Downloaded 261 times
Unnamed, 1900-01-01#2.png
screenshot of error
(251.2 KiB) Not downloaded yet
rvg_city_error_broken.scn
new scenario file that is broken
(1.16 MiB) Downloaded 344 times
AnniKa32
Engineer
Engineer
Posts: 14
Joined: 21 Feb 2014 23:16

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by AnniKa32 »

Firrel wrote: 05 Aug 2024 17:25
AnniKa32 wrote: 05 Aug 2024 12:42 howdy, its me with another question, is it possible to disable or change the factor of the function that we need to transport stuff out of the town?

somehow i got A LOT ppl staying around (20000) and ~5000 ppl want to a station somewhere far away, and then they after a while want to another place, thats annoying and it seems not be possible to ship all those ppl to a place.

is there an option to disable that "Not enough transported out of town" blocker?
I got my town supplied with everything, milk, and steel and all that, but because of that 20000 ppl that i will never be able to move away the town wont grow.
They dont even get into the trains that are going to thery target, it wont grow, even when it got everything else.

since i thought its about bringing ppl stuff and not bringing unrealistic amounds of ppl to small towns with a bus station on the other side of the map :)
You can find extended information about every parameter in the README file, which can be viewed ingame. There is info about "Minimum Percentage of transported cargo from town" parameter, which can be set to zero to stop this feature, therefore the growth will never stop. Also there is FAQ giving answer to your previous question. So it is worth checking out.
thankies, i made it 10% and now its working fine :)
AnniKa32
Engineer
Engineer
Posts: 14
Joined: 21 Feb 2014 23:16

Re: [GS] Renewed Village Growth 10.1 (RVG)

Post by AnniKa32 »

i got another question, would it be possible to add an option, that cities never go smaller if they are not supplied?
so that they just stop grow but dont lose buildings then?
seems it is not possible to grow really big cities spanning the whole landscape (what is possible in vanilla) with it as it is now.

greetings
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 11 guests