how do i change an industry's requirements/production?

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

Post Reply
MatthewH86
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2005 08:41
Location: England
Contact:

how do i change an industry's requirements/production?

Post by MatthewH86 »

Hello,

main point as in title. which file would i need to alter to change an industry's requirements/production?

or is it more complicated than changing a few values?

thanks in advance
User avatar
Gorre
Transport Coordinator
Transport Coordinator
Posts: 322
Joined: 03 Jan 2004 10:28
Location: Somewhere over the rainbow
Contact:

Post by Gorre »

I'm pretty sure you can't change requirements and production as long as you don't change source, but lets hope it will be possible when new gfx format is out (don't want "when" from me)
MatthewH86
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2005 08:41
Location: England
Contact:

Post by MatthewH86 »

well i've downloaded the source files but i can't find anything about where the industry settings are. just about drawing the them.

i do actually want to change the source
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

One way to do it would be to implement Action 00 for industries/industry tiles.
The structure is shown here.Then The file you would need to work on would be in newgrf.c.

Then, you'll have to drill into build_industry.h and make writable arrays everything that is below _industry_spec.

That would be a nice project...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

belugas wrote:The structure is shown here.
That's only half of it, though. Action0IndustryTiles is also required to make a working industry.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Post by SirkoZ »

MatthewH86, for just changing values in game you can use CTRL+C and the tick "Enable changing production values", however for better behaviour you can just use my Smooth_economy_patch (v 2.0) where you can configure the behaviour. ;-)
User avatar
Benbo
Transport Coordinator
Transport Coordinator
Posts: 380
Joined: 09 Jan 2006 18:51
Location: UK

Why?

Post by Benbo »

Why would you want to do this anyway??? Takes to the realism out of it.

It's like saying:

'I want to let a wood accept livestock, so erm... :roll: '

Well I suppose that you could do this if you wanted. You have a right. What did you have in mind?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests