Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Mar 27, 2017 4:30 pm

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Wed Jun 16, 2010 10:38 am 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
Hi,

I've got a city where I brought a lot of food and water to, so it grow, eventually to 40000. But now it isnt growing anymore, infact its population is decreasing.
Now when I look at the city there are a whole lot of watertowers and banks, is there a way to get less banks and watertowers in a city, without turning of "multiple industries per city" in the advanced settings?
Also why doesnt the city grow anymore? I have recently begun to bring goods to the city and it only got smaller population?

Attachment:
Diesel (NL) Transport, 16 Okt 2814.png
Diesel (NL) Transport, 16 Okt 2814.png [ 339.38 KiB | Viewed 3707 times ]


Top
   
PostPosted: Wed Jun 16, 2010 10:56 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
The problems with banks, watertowers and powerplants is that they open up but by default cannot close down.

You might give OpenGFX+ a shot where I recently implemented the feature that those industries close down just like other primary industries, if they're not serviced. Download of the nightly here. It's not been extensively tested nor made much public, any feedback is welcome.

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Thu Jun 17, 2010 8:32 am 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
I have downloaded OpenGFX+.
I have decoded the grf, and I have found 4 lines in the nfo that have feature set as industry (last 4 lines of the grf)

106 * 9 00 0A 01 01 FF 01 00 0B 04
107 * 9 00 0A 01 01 FF 0C 00 0B 04
108 * 9 00 0A 01 01 FF 10 00 0B 04
109 * 9 00 0A 01 01 FF 16 00 0B 04

I couldnt find what FF stands for?
If I try to reproduce it with grfmaker, the line is the same but without the FF in the middle?


Top
   
PostPosted: Thu Jun 17, 2010 10:51 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 6903
Quote:
<Id> B* The ID of the first vehicle/station to change


it says "Id" entry is an "extended byte", so FF means the following two bytes are still part of the Id.

that means, "01" and "FF 01 00" are the same value (1), but the latter format also allows numbers from 255 onwards.

in detail:
Code:
106 * 9 // spritenum, length
00 // action 0
0A // feature A
01 // num-props 1
01 // num-info 1
FF 01 00 // id 1
0B // property B
04 // value 4

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Thu Jun 17, 2010 11:20 am 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
Ok think I got it working with some help of oil wells decreasing neutraliser:P

Code:
2 * 11 00 0A 03 01 01 08 01 09 01 0B 04
3 * 11 00 0A 03 01 0c 08 0c 09 0c 0B 04
4 * 11 00 0A 03 01 10 08 10 09 10 0B 04
5 * 11 00 0A 03 01 16 08 16 09 16 0B 04

For testing I started a game in desert climate, wrote down all the watertowers and banks, and after 20 years 1 watertowers was no more, so i suppose it works:D


Top
   
PostPosted: Fri Jun 18, 2010 11:26 am 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
I implemented the Grf into my servergame, and I got proof the GRF works:P
Look for yourself:D

Attachment:
screenshot.png
screenshot.png [ 325.26 KiB | Viewed 3541 times ]


Top
   
PostPosted: Fri Jun 18, 2010 11:31 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
Nice to see it actually used :-) and that it works for you!

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Fri Jun 18, 2010 11:40 am 
Offline
Tycoon
Tycoon

Joined: Wed Aug 26, 2009 6:33 am
Posts: 2493
Location: Poland
Maybe you can post it on bananas?

_________________
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD


Top
   
PostPosted: Fri Jun 18, 2010 1:37 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9006
Location: Sol d
Kogut wrote:
Maybe you can post it on bananas?

Yes, eventually it will be and that's the plan. It didn't get the attention it needed before there could be thought about a proper release so far, though. But then, I guess, a first testing release might be in order after I looked through the cargo assignments of the rail wagons.

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Fri Jun 18, 2010 8:47 pm 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
I have uploaded it to bananas.


Its still not finished.
Watertowers dissappear even while they get a steady flow of water.
The city in the picture had some time no watertower near the station (a new one has spawned luckely next to the station)

Attachment:
screenshot#1.png
screenshot#1.png [ 289.91 KiB | Viewed 3466 times ]


Last edited by kamikaze_fish on Tue Jun 29, 2010 11:27 am, edited 2 times in total.

Top
   
PostPosted: Tue Jun 29, 2010 11:24 am 
Offline
Engineer
Engineer

Joined: Thu Dec 17, 2009 1:34 pm
Posts: 33
Ok I think Ive fixed it, by setting a output of zero.
The new version is uploaded to bananas. (V0.2)

Attachment:
close down bank watertowerw V0.2.grf [202 Bytes]
Downloaded 127 times


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.