Page 5 of 23

Re: Pikka's Basic Industries (PBI)

Posted: 21 Oct 2007 13:20
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.

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 02:09
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)

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 03:56
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?

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 16:50
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 :(

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 16:50
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...

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 16:52
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 :)

Re: Pikka's Basic Industries (PBI)

Posted: 22 Oct 2007 20:37
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.

Re: Pikka's Basic Industries (PBI)

Posted: 23 Oct 2007 09:27
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? :?

Re: Pikka's Basic Industries (PBI)

Posted: 23 Oct 2007 10:53
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.

Re: Pikka's Basic Industries (PBI)

Posted: 23 Oct 2007 15:59
by PaulC
Ah, so it's because steel and paper share the same cargo id, which wouldn't ordinarily be a problem in arctic?

Re: Pikka's Basic Industries (PBI)

Posted: 23 Oct 2007 19:52
by PikkaBird
Steel and paper share the same cargo ID by default, yes.

Re: Pikka's Basic Industries (PBI)

Posted: 24 Oct 2007 10:12
by Leviath.NL
Why does the Food Processing Plant use the original road graphics instead of the ones used by the user?

Re: Pikka's Basic Industries (PBI)

Posted: 24 Oct 2007 16:52
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.

Re: Pikka's Basic Industries (PBI)

Posted: 24 Oct 2007 16:57
by Leviath.NL
I don't think that's the case, I also found the sprites in the .pcx when I decoded PBI

Re: Pikka's Basic Industries (PBI)

Posted: 25 Oct 2007 07:35
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.

Something's Buggy Report

Posted: 10 Dec 2007 10:19
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.

Re: Pikka's Basic Industries (PBI)

Posted: 10 Dec 2007 10:35
by PikkaBird
Version data problem... If you search, there's a lot of it about. :)

Re: Pikka's Basic Industries (PBI)

Posted: 10 Dec 2007 11:10
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?

Re: Pikka's Basic Industries (PBI)

Posted: 10 Dec 2007 11:44
by PikkaBird

Re: Pikka's Basic Industries (PBI)

Posted: 10 Dec 2007 12:21
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.