FIRS Industry Replacement Set - Development

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Radmir
Engineer
Engineer
Posts: 7
Joined: 01 Apr 2011 02:51

Re: FIRS Industry Replacement Set - Development & Translatio

Post by Radmir »

Updated translation file for r2700.
Attachments
polish.lng
(24.5 KiB) Downloaded 70 times
User avatar
Bob_Mackenzie
Chairman
Chairman
Posts: 823
Joined: 25 Mar 2010 13:36

Re: FIRS Industry Replacement Set - Development & Translatio

Post by Bob_Mackenzie »

Ive noticed FIRS builds petrol stations adjacent to tram lines which run cross country (ie no road) was this intended behaviour?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: FIRS Industry Replacement Set - Development & Translatio

Post by planetmaker »

Bob_Mackenzie wrote:Ive noticed FIRS builds petrol stations adjacent to tram lines which run cross country (ie no road) was this intended behaviour?
Lol :-)

No, it's not. But I know no way how we can avoid it. We can only check for the adjacent tile class (and we check for 'road' in this case), but we cannot query the road type (road or tram).
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: FIRS Industry Replacement Set - Development & Translatio

Post by Supercheese »

Solution: use Newobjects/station tiles to build a tram refueling depot around the petrol station. :P
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: FIRS Industry Replacement Set - Development & Translatio

Post by NekoMaster »

Supercheese wrote:Solution: use Newobjects/station tiles to build a tram refueling depot around the petrol station. :P
But most trams run on Electricity, this might only be good for earlier trams that ran on steam
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: FIRS Industry Replacement Set - Development & Translatio

Post by planetmaker »

Radmir wrote:Updated translation file for r2700.
Thanks. You'll find it in 2701:a55c5727e849 and the upcoming nightly.
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 226
Joined: 01 Feb 2011 12:41
Contact:

Re: FIRS Industry Replacement Set - Development & Translatio

Post by MinchinWeb »

I love the set and so would like my AI to work with it. I'm trying to make it transport cargo from sea-based industries to make a little money. I try and find said industries by looking for those with a dock. However, with FIRS, I get the Fishing Grounds, but not the Dredging sites. Is the Dredging site somehow coded so it doesn't *really* have a dock? Or something stranger?

Anyway, the AI code I'm using to find them is:

Code: Select all

//	Actually this checks for industries that include docks
local MyIndustries = AIIndustryList();
MyIndustries.Valuate(AIIndustry.HasDock);
MyIndustries.KeepValue(true.tointeger());
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: FIRS Industry Replacement Set - Development & Translatio

Post by NekoMaster »

MinchinWeb wrote:I love the set and so would like my AI to work with it. I'm trying to make it transport cargo from sea-based industries to make a little money. I try and find said industries by looking for those with a dock. However, with FIRS, I get the Fishing Grounds, but not the Dredging sites. Is the Dredging site somehow coded so it doesn't *really* have a dock? Or something stranger?

Anyway, the AI code I'm using to find them is:

Code: Select all

//	Actually this checks for industries that include docks
local MyIndustries = AIIndustryList();
MyIndustries.Valuate(AIIndustry.HasDock);
MyIndustries.KeepValue(true.tointeger());
I think the dredging sites are more like oil rigs.
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: FIRS Industry Replacement Set - Development & Translatio

Post by planetmaker »

MinchinWeb wrote:Is the Dredging site somehow coded so it doesn't *really* have a dock?
The dredging site has docks, just like fishing grounds.
Last edited by planetmaker on 14 Jan 2012 10:05, edited 1 time in total.
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: FIRS Industry Replacement Set - Development & Translatio

Post by andythenorth »

Dredging site, fishing grounds and oil rig all work identically; OpenTTD only provides one way to do this.

Water-based industries in FIRS (1) set an industry special flag that allows them to build on water (2) include a special tile that provides the station.

Does the map definitely have dredging sites available? Does the AI find oil rigs? :)
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 226
Joined: 01 Feb 2011 12:41
Contact:

Re: FIRS Industry Replacement Set - Development & Translatio

Post by MinchinWeb »

andythenorth wrote:Dredging site, fishing grounds and oil rig all work identically; OpenTTD only provides one way to do this.

Water-based industries in FIRS (1) set an industry special flag that allows them to build on water (2) include a special tile that provides the station.

Does the map definitely have dredging sites available? Does the AI find oil rigs? :)
That's what I thought. My AI does indeed find Oil Rigs (on the standard map). And I am working with a map that has dredging sites.

If you want to see it in action, WmDOT v7 is on Bananas. In the AI settings, turn OperationDOT to "no go" and Debug Level to "5." At the beginning of Operation Hibernia, it will say "Kept xx Industries." which should include all sea-based industries.
Example of &quot;Kept 1 Industry&quot; on FIRS
Example of "Kept 1 Industry" on FIRS
FIRS_WmDOT Debugging, 5th Jan 1965.png (51.63 KiB) Viewed 3113 times
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
ervin2
Engineer
Engineer
Posts: 52
Joined: 28 Jun 2006 17:49
Skype: Ervink2

Re: FIRS Industry Replacement Set - Development & Translatio

Post by ervin2 »

Can I make a suggestion? How about a high-tech factory that accepts rare earth minerals and plastics, and produces computer chips?
ervin2
Engineer
Engineer
Posts: 52
Joined: 28 Jun 2006 17:49
Skype: Ervink2

Re: FIRS Industry Replacement Set - Development & Translatio

Post by ervin2 »

FooBar wrote:There's no space for additional cargos in FIRS.
Interesting, why is there a cargo limit?

Sorry, I know this must have already been explained repeatedly.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: FIRS Industry Replacement Set - Development & Translatio

Post by FooBar »

Because the game has a limit to the number of cargos that can exist. Like there is a limit to the amount of industries, amount of vehicles, amount of objects. Everything is limited one way or the other. Some limits are higher than others.
akasoft
Engineer
Engineer
Posts: 120
Joined: 25 Aug 2011 11:48

Re: FIRS Industry Replacement Set - Development & Translatio

Post by akasoft »

What does this code block in sheep_farm.pnml?

Code: Select all

switch(FEAT_INDUSTRYTILES, SELF, THIS_ID(tile1_layout), STORE_TEMP((var[0x7E, 0, 255, 161] + var[0x7E, 0, 255, 65]), 16)) {
  THIS_ID(layout);
}
What mean magic number 161 and 65?

It is sample of using procedure? What is the procedure? Can I use labels like "THIS_ID(tile1_layout)" or "THIS_ID(layout)" instead of the magic number?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: FIRS Industry Replacement Set - Development & Translatio

Post by planetmaker »

akasoft wrote:What does this code block in sheep_farm.pnml?

Code: Select all

switch(FEAT_INDUSTRYTILES, SELF, THIS_ID(tile1_layout), STORE_TEMP((var[0x7E, 0, 255, 161] + var[0x7E, 0, 255, 65]), 16)) {
  THIS_ID(layout);
}
What mean magic number 161 and 65?

It is sample of using procedure? What is the procedure? Can I use labels like "THIS_ID(tile1_layout)" or "THIS_ID(layout)" instead of the magic number?
See http://newgrf-specs.tt-wiki.net/wiki/NM ... ted_syntax
Yes, it's a procedure call. But it's part of the auto-converted code which will not yet work (unless I missed something).
akasoft
Engineer
Engineer
Posts: 120
Joined: 25 Aug 2011 11:48

Re: FIRS Industry Replacement Set - Development & Translatio

Post by akasoft »

How the var[] works, I know.
I was wondering why the code in NML so few procedure calls. There are practically no. And then the search found it in the FIRS.
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 226
Joined: 01 Feb 2011 12:41
Contact:

Re: FIRS Industry Replacement Set - Development & Translatio

Post by MinchinWeb »

MinchinWeb wrote:(..) I try and find said industries by looking for those with a dock. However, with FIRS, I get the Fishing Grounds, but not the Dredging sites. Is the Dredging site somehow coded so it doesn't *really* have a dock? Or something stranger?
I reported this as a bug.

Another strange thing is I've noticed is if I query the station tile of either a Fishing Ground or a Dredging Site, it tells me it's an Oil Rig. Is this a limitation of OpenTTD or a bug in FIRS?
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: FIRS Industry Replacement Set - Development & Translatio

Post by andythenorth »

MinchinWeb wrote:Another strange thing is I've noticed is if I query the station tile of either a Fishing Ground or a Dredging Site, it tells me it's an Oil Rig. Is this a limitation of OpenTTD or a bug in FIRS?
It's a limitation of OpenTTD.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 8 guests