SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => SimCity 4 General Discussion => General Custom Content Discussion => Topic started by: Andreas on September 22, 2007, 08:08:36 AM

Title: Reducing the number of freight trucks
Post by: Andreas on September 22, 2007, 08:08:36 AM
One thing that always annoyed me is the number of freight trucks the game produces. It looks odd in industrial areas, and esp. worse in agricultural areas, where the streets and roads are sometimes packed with trucks, while you'd expect not more than the occasional tractor or harvester. A long time ago, there was a thread at ST where I asked Tropod how to change it, and he looked into it, telling me that there were some drawbacks - IIRC, you can only reduce the number of freight trucks globally, not limited to the agricultural areas.

ST is down at the moment, and most likely, the thread got buried or archived anyway, so I'd like to ask here what property needs to be changed. I assume it is a property in the NAM Automata Controller, but my attempts in editing the "Max Freight Trucks Per Second" and "Freight Truck Density Curve" properties didn't create any visible change. Is there something else that I'm missing? What excactly is the Density Curve property controlling?
Title: Re: Reducing the number of freight trucks
Post by: zero7 on September 22, 2007, 08:18:21 AM
Andreas, there's a LUA (farm.lua) that generates the farm traffic (attached to occupant group 0x1912 farmland) - so a modded one could bring things down to a more realistic level.  It would also help if the farm traffic included some tractors, horse boxes and 4x4s, so that it wasn't just a stream of trucks.

Title: Re: Reducing the number of freight trucks
Post by: Andreas on September 22, 2007, 08:32:46 AM
Thanks for the hint. But unfortunately, this still doesn't solve my problem with the number of freight trucks that are produced by the industrial zones...
Title: Re: Reducing the number of freight trucks
Post by: zero7 on September 22, 2007, 08:58:11 AM
The other global one that might affect it is the freight truck clock which looks like the time of day and percentage for the generator.
Title: Re: Reducing the number of freight trucks
Post by: kassarc16 on January 24, 2009, 03:48:55 PM
Thought I'd make myself useful and offer a hint for my first post in awhile.

Andreas, I too was annoyed at the amount of trucks that are generated by the game. I looked through the Automata file, fiddled with a few things, but didn't get much change. BUT, looking in the Traffic Simulator (Z-High in my case), I found that lowering the value of the "Freight traffic scaling factor" entry, cuts trucks a bunch.

I used "0.010000", but I'm not sure if this has an effect on the effectiveness of industrial zones since it lowers the actually number of freight trips generated. It doesn't solve the problem completely, some farm roads are still heavy with trucks, but it's better. Hope this helps.
Title: Re: Reducing the number of freight trucks
Post by: Andreas on January 24, 2009, 04:07:55 PM
There was a discussion somewhere else, and I also modified my automata plugin a few months ago, which helped a bit. I'm not sure anymore what I did, but I'll try your suggestion as well - thanks for the hint. :)
Title: Re: Reducing the number of freight trucks
Post by: kassarc16 on January 24, 2009, 04:38:57 PM
Glad to help. 0.050000 was the default number, so realistically it cut it by 4/5ths.

Did anyone look at the farm.lua? That could also help with the farm traffic, since big farms put out way too much traffic. By the way, what did you tweak in the Automata file, and did it help?
Title: Re: Reducing the number of freight trucks
Post by: Swamper77 on January 24, 2009, 08:13:53 PM
Kassarc,

I looked at the farm.lua file. There is nothing in there controlling the traffic that appears around farms. Maxis put the script together, but they never attached the Occupant Group 0x1912 to any of their buildings that are farm related. The "farm_vehicles" specified by the script are actually regular civilian vehicles, not freight trucks.

The amount of freight trucks put out by farms is proportional to the number of jobs contained by the main farm lots and their surrounding fields. The larger the farms are, the more trucks you will get.

Also, the property you edited affects the normal industrial zones as well. It is a global value.

-Swamper
Title: Re: Reducing the number of freight trucks
Post by: kassarc16 on January 24, 2009, 09:11:20 PM
Quote from: Swamper77 on January 24, 2009, 08:13:53 PM
The amount of freight trucks put out by farms is proportional to the number of jobs contained by the main farm lots and their surrounding fields. The larger the farms are, the more trucks you will get.
I suppose the only way to get around that is to shrink all my farms down. I usually zone large enough to be at least slightly realistic, but maybe min zoning plus ploppable fields could be enough.

QuoteAlso, the property you edited affects the normal industrial zones as well. It is a global value.
Yes, I did notice that, my Ind areas are no longer choked with trucks, thankfully.

Slightly OT, but do you know what to tweak so vehicles don't disappear soon after spawning? Trucks are especially bad.
Title: Re: Reducing the number of freight trucks
Post by: Swamper77 on January 24, 2009, 10:32:51 PM
Try the property "Vehicle Lifespan Range". This is also a global value and it will affect all vehicles. Pedestrians have their own property: "Pedestrian Lifespan Range".

It's kind of sad isn't it that I know what all the properties are and where they are used?

-Swamper
Title: Re: Reducing the number of freight trucks
Post by: kassarc16 on January 24, 2009, 10:40:15 PM
Quote from: Swamper77 on January 24, 2009, 10:32:51 PM
It's kind of sad isn't it that I know what all the properties are and where they are used?

Nah, you're just dedicated to your hobby!  :thumbsup: