FIRS Industry Replacement Set - Development
Moderator: Graphics Moderators
Re: FIRS Industry Replacement Set - Development & Translatio
Updated translation file for r2700.
- Attachments
-
- polish.lng
- (24.5 KiB) Downloaded 70 times
- Bob_Mackenzie
- Chairman
- Posts: 823
- Joined: 25 Mar 2010 13:36
Re: FIRS Industry Replacement Set - Development & Translatio
Ive noticed FIRS builds petrol stations adjacent to tram lines which run cross country (ie no road) was this intended behaviour?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: FIRS Industry Replacement Set - Development & Translatio
LolBob_Mackenzie wrote:Ive noticed FIRS builds petrol stations adjacent to tram lines which run cross country (ie no road) was this intended behaviour?

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).
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
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: FIRS Industry Replacement Set - Development & Translatio
Solution: use Newobjects/station tiles to build a tram refueling depot around the petrol station. 

Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: FIRS Industry Replacement Set - Development & Translatio
But most trams run on Electricity, this might only be good for earlier trams that ran on steamSupercheese wrote:Solution: use Newobjects/station tiles to build a tram refueling depot around the petrol station.


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!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: FIRS Industry Replacement Set - Development & Translatio
Thanks. You'll find it in 2701:a55c5727e849 and the upcoming nightly.Radmir wrote:Updated translation file for r2700.
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
- MinchinWeb
- Traffic Manager
- Posts: 226
- Joined: 01 Feb 2011 12:41
- Contact:
Re: FIRS Industry Replacement Set - Development & Translatio
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:
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
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: FIRS Industry Replacement Set - Development & Translatio
I think the dredging sites are more like oil rigs.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());


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!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: FIRS Industry Replacement Set - Development & Translatio
The dredging site has docks, just like fishing grounds.MinchinWeb wrote:Is the Dredging site somehow coded so it doesn't *really* have a dock?
Last edited by planetmaker on 14 Jan 2012 10:05, edited 1 time in total.
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
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: FIRS Industry Replacement Set - Development & Translatio
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?
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?

FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
- MinchinWeb
- Traffic Manager
- Posts: 226
- Joined: 01 Feb 2011 12:41
- Contact:
Re: FIRS Industry Replacement Set - Development & Translatio
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.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?
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.
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
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
Re: FIRS Industry Replacement Set - Development & Translatio
Can I make a suggestion? How about a high-tech factory that accepts rare earth minerals and plastics, and produces computer chips?
Re: FIRS Industry Replacement Set - Development & Translatio
There's no space for additional cargos in FIRS.
Re: FIRS Industry Replacement Set - Development & Translatio
Interesting, why is there a cargo limit?FooBar wrote:There's no space for additional cargos in FIRS.
Sorry, I know this must have already been explained repeatedly.
Re: FIRS Industry Replacement Set - Development & Translatio
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.
Re: FIRS Industry Replacement Set - Development & Translatio
What does this code block in sheep_farm.pnml?
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?
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);
}
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?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: FIRS Industry Replacement Set - Development & Translatio
See http://newgrf-specs.tt-wiki.net/wiki/NM ... ted_syntaxakasoft wrote:What does this code block in sheep_farm.pnml?
What mean magic number 161 and 65?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); }
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?
Yes, it's a procedure call. But it's part of the auto-converted code which will not yet work (unless I missed something).
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
Re: FIRS Industry Replacement Set - Development & Translatio
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.
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.
- MinchinWeb
- Traffic Manager
- Posts: 226
- Joined: 01 Feb 2011 12:41
- Contact:
Re: FIRS Industry Replacement Set - Development & Translatio
I reported this as a bug.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?
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
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: FIRS Industry Replacement Set - Development & Translatio
It's a limitation of OpenTTD.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?
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Who is online
Users browsing this forum: No registered users and 8 guests