Restore some vanillia industries to a FIRS fork

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
jimbob
Engineer
Engineer
Posts: 76
Joined: 24 Nov 2014 21:13
Location: At a desk
Contact:

Restore some vanillia industries to a FIRS fork

Post by jimbob » 27 Sep 2018 10:32

I would like to restore 2-3 of the vanillia industries to a fork of FIRS (gold mine, bank and print works)

Hunting around the source code I can't seem to see where the vanillia industries are turned off / replaced, would they come back by just not overwriting their ID? or is something more involved required?
Image
Real life transport planner
My projects:Link to my UK Scenario|Scenario Builder GS
Do check out my 3D unity transport game: transporter

Eddi
Tycoon
Tycoon
Posts: 7398
Joined: 17 Jan 2007 00:14

Re: Restore some vanillia industries to a FIRS fork

Post by Eddi » 27 Sep 2018 10:45

or you could just make an addon grf that only contains one line to make a copy of an original industry, and not mess with firs code at all.
You might not exactly be interested in Ferion, but if you are, have fun :)

User avatar
jimbob
Engineer
Engineer
Posts: 76
Joined: 24 Nov 2014 21:13
Location: At a desk
Contact:

Re: Restore some vanillia industries to a FIRS fork

Post by jimbob » 27 Sep 2018 17:16

What single line would that be?
Image
Real life transport planner
My projects:Link to my UK Scenario|Scenario Builder GS
Do check out my 3D unity transport game: transporter

Eddi
Tycoon
Tycoon
Posts: 7398
Joined: 17 Jan 2007 00:14

Re: Restore some vanillia industries to a FIRS fork

Post by Eddi » 28 Sep 2018 14:56

tried this one?
Substitute industry type (08)
Substitute industry type. The first assignment of this property copies all properties of the old type to this new type.
You might not exactly be interested in Ferion, but if you are, have fun :)

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests