Pikka's Basic Industries (PBI) - 1.5 6th of September 2008

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

Post Reply
george11
Engineer
Engineer
Posts: 22
Joined: 01 Mar 2007 18:51

Re: Pikka's Basic Industries (PBI)

Post by george11 »

Hi there i have a question. Im using the old pb_ukrsi.grf, because it has the unlimited mines (rebuilding half of the rail network after 10 years is not very enjoyable), but i find the stockpile limits way too low. the steel mill gets maxed out on coal with just 1 train load and then stops accepting coal and bounces off the next train full of coal only to find itself running out later on, because trains are not comming so often (coal mine long distance away). I have managed to find how to decompile the grf and i found in the inf. file in wich the coding is held, but i cant find the stockpile limits (all in hex). can you give me some pointers at wich addres to look for them? im happy to edit the grf myself (i wont distribute it anywhere, its just for my usage). or if you could edit them and set them at least 5x times higher, that would be super. i dont mind paying for the industries 10 times more, but now they only run half the time, becasue they are either too full or too low on some or the other resource and usually just bouncing off most of the trains comming to it.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Pikka's Basic Industries (PBI)

Post by DaleStan »

george11 wrote:can you give me some pointers at wich addres to look for them?
  1. Run the GRF through grf2html.
  2. Find the ID for the string that names the industry you want to change.
  3. Find the action 0 that connects that text to an industry, and from that get the ID of the industry.
  4. Find the action 3 for that industry.
  5. In the 1/2/3 chain headed by that action 3, locate and modify the appropriate tests of the appropriate variables.
  6. Go back to the industry's action 0, and determine the IDs for the industry tiles that make up the industry.
  7. Locate the action 0s for each tile, and determine which tiles accept the problem cargo.
  8. Locate the action 3s for each such tile, and repeat step 5 for each.
Or, make the trains smaller and more frequent.
Or, fund a new industry of the same type near the one that keeps getting overloaded.

Pikka will be able to be more detailed, but this is the general theory for finding most things. String -> Text ID -> Action 0 (-> Item ID -> Action 3)
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
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Pikka's Basic Industries (PBI)

Post by George »

george11 wrote:Hi there i have a question. Im using the old pb_ukrsi.grf, because it has the unlimited mines (rebuilding half of the rail network after 10 years is not very enjoyable), but i find the stockpile limits way too low. the steel mill gets maxed out on coal with just 1 train load and then stops accepting coal and bounces off the next train full of coal only to find itself running out later on, because trains are not comming so often (coal mine long distance away). I have managed to find how to decompile the grf and i found in the inf. file in wich the coding is held, but i cant find the stockpile limits (all in hex). can you give me some pointers at wich addres to look for them? im happy to edit the grf myself (i wont distribute it anywhere, its just for my usage). or if you could edit them and set them at least 5x times higher, that would be super. i dont mind paying for the industries 10 times more, but now they only run half the time, becasue they are either too full or too low on some or the other resource and usually just bouncing off most of the trains comming to it.
ECS vectors have larger stockpiles. Did you try them?
Image Image Image Image
dasy2k1
Transport Coordinator
Transport Coordinator
Posts: 344
Joined: 20 Sep 2006 23:43
Location: UK
Contact:

Re: Pikka's Basic Industries (PBI)

Post by dasy2k1 »

When i have the brick chain enabled i only get one gravel quarry per map maximum...
even a map at 2048*2048!

a bit aquarwd if i want to service engeneer's yards :(
george11
Engineer
Engineer
Posts: 22
Joined: 01 Mar 2007 18:51

Re: Pikka's Basic Industries (PBI)

Post by george11 »

excellent. I have managed by your instructions to change all the values for bigger ones and encode them into the grf. thanks for the advice.
I have found out one other way to deal with small storage spaces. I have build a big station where all the long distance cargo is unloaded and then i have just 2 small trains hauling it from this "storage" station constantly feeding it to the factory. while it works fine, many of my trains are in negative profit, because they are just dumping all the cargo at the main station. no matter now i have solved the problem, thanks again.

PS i had some compactibility issues with the ECS, i dont think OTTD is fully compactibile with that grf set...
george11
Engineer
Engineer
Posts: 22
Joined: 01 Mar 2007 18:51

Re: Pikka's Basic Industries (PBI)

Post by george11 »

yeah, its because the gravel quarry needs a special set of sloped tilesa and a right distance to a biggish town. You can create a slope near a town and then do prospecting and he will choose the only avilabile site he can find
9the one you just strategically prepared :)
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Pikka's Basic Industries (PBI)

Post by Ameecher »

george11 wrote:PS i had some compactibility issues with the ECS, i dont think OTTD is fully compactibile with that grf set...
It's recommended that you use one industry .grf at a time, just like you are recommended to use only trainset.
Image
User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: Pikka's Basic Industries (PBI)

Post by PaulC »

I'm having a minor problem with this grf...

When I'm using PBI in arctic, the cargo for the paper trucks (default rvs) is set as steel rather than paper. I'm assuming this is a bug rather than a feature of the grf? :?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

The default vehicles know only cargo ID, not cargo labels, so they are not compatible with new cargos. It's neither a feature nor a bug.
User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: Pikka's Basic Industries (PBI)

Post by PaulC »

Ah, so it's because steel and paper share the same cargo id, which wouldn't ordinarily be a problem in arctic?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

Steel and paper share the same cargo ID by default, yes.
Leviath.NL
Traffic Manager
Traffic Manager
Posts: 152
Joined: 28 Jan 2006 15:00

Re: Pikka's Basic Industries (PBI)

Post by Leviath.NL »

Why does the Food Processing Plant use the original road graphics instead of the ones used by the user?
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: Pikka's Basic Industries (PBI)

Post by SquireJames »

Because the PBI industries sprites are seperate to the road sprites, and as such when the road sprites are overrruled by a later grf, that same grf is not told to replace the Food Processing Plant sprites.
Image
Leviath.NL
Traffic Manager
Traffic Manager
Posts: 152
Joined: 28 Jan 2006 15:00

Re: Pikka's Basic Industries (PBI)

Post by Leviath.NL »

I don't think that's the case, I also found the sprites in the .pcx when I decoded PBI
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Re: Pikka's Basic Industries (PBI)

Post by m3henry »

If you note, Pikka has drawn a specialised road tile just for the entry of the food processing plant, it is not a default road tile, so new road grf sets dont replace it.
The occasional look back at your past can teach you a great many things...
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Something's Buggy Report

Post by wallyweb »

If somebody has already reported this, please let me know and I'll add "- Reminder" to the title name.

Windows98SE OEM
TTDPatch r1793

The problem is with the Brick Chain pikbrikw.grf v1.2 27/09/2007
If I disable the Brick Chain, the error goes away.
Note that I tested this with only the mandatory ttdpbasew.grf (latest version) and pikkindw.grf (v1.2 27/09/2007) and pikbrikw.grf (v1.2 27/09/2007) loaded ... nothing else.

The png shows the error.
The zip contains my configuration files.
Attachments
Well, somebody failed!
Well, somebody failed!
You_Fail.png (15.77 KiB) Viewed 3955 times
You_Fail.zip
Goodies wrapped in zip paper gift wrap
(27.34 KiB) Downloaded 91 times
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

Version data problem... If you search, there's a lot of it about. :)
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Pikka's Basic Industries (PBI)

Post by wallyweb »

PikkaBird wrote:Version data problem... If you search, there's a lot of it about. :)
That's what my doctor said about the flu. :P
The problem with a search is it returns about 5,699,754 hits (ok ... so I exagerate) with a lot of OTTD stuff even in the Patch threads. Unfortunately, seeing as how I am a human, I have less than 100 years to live. I must devote much of that time to eating, sleeping, @#!@#&g, and playing TTDX games. Seeing as how I only have this issue with your Brick chain, perhaps you could post a link or two or add a little detail as to what the issue might be? :wink:

EDIT: By the way, did you scroll down on the png image to see the actual error?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Pikka's Basic Industries (PBI)

Post by wallyweb »

PikkaBird wrote:Read the page. :P
Thanks Pikka. I just did. Now, before I go through all those steps, any hints as to why this only happens with your Brick chain and nothing else? I would think that the nightly page's description implies something more general that would affect every attempt to launch the game and that is not happening to me.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot], pasantoro and 42 guests