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
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Pikka's Basic Industries (PBI)

Post by DaleStan »

Change the GRF order. Part of PBI gets loaded into TTD's memory space[0], and somewhere it contains something that looks like a pointer to whatever variable Patch wants to find/fix.

[0] PBI in particular in this case. In the general case, the GRFs located earlier in newgrf[w].cfg.
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
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Pikka's Basic Industries (PBI)

Post by wallyweb »

DaleStan wrote: ...
Oh yea! Now you tell me! :(
Well, at least I got a fresh GameGFX.exe, ttdpatch.cfg, clean registry and a bleeding ulcer out of the deal.

Ok ... easy enough as there are only three grf's to contend with. I moved pikkindw.grf and pikbrikw.grf above ttdpbasew.grf and that fixes it.

Thanks DaleStan. :bow:

Now the question is (Note that I did NOT say "This begs ..." :wink: ) when I want to load a s@#tload of bricks from Pikka, will I always have to mess up my neatly organized newgrf.cfg? Or, does this eventually get fixed and if so, who do I remind to get it done? :mrgreen:
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Pikka's Basic Industries (PBI)

Post by DaleStan »

There are two ways that it could be "fixed":
1) Pikka may change the offending sprite(s). This is unlikely to be intentional, but may happen as a side effect of something else.
2) Non-nightly versions of TTDPatch are compiled with version information. The search will then not find the offending sprite(s), since it won't be looking.

For some searches, a third solution (Have Patch search for a longer string.) is possible, but that can't be done in this case, and it is generally frowned upon anyway.
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
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Pikka's Basic Industries (PBI)

Post by wallyweb »

I know little about coding grf's but just a thought:

One of the two industry grf's knows that pikkindw.grf must be loaded before pikbrikw.grf . In coding this, could the issue I confronted have inadvertently been implemented?
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Pikka's Basic Industries (PBI)

Post by michael blunck »

[hassle with nightlies]
wallyweb wrote:In coding this, could the issue I confronted have inadvertently been implemented?
Possibly, or maybe not. Was that the first time you had this encounter? I have it all the time whenever new nightlies are released. It´s quite annoying, especially when testing .grfs. Some time back, Csaboka supplied me with a couple of "nightlies" including version information to make the testing procedure smoother. But meanwhile, these are outdated as well ...

Oh yeah.

Are we waiting for Josef for a new Beta? Or could a Beta be produced and uploaded by some other developer?

Just asking.

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

Re: Pikka's Basic Industries (PBI)

Post by wallyweb »

michael blunck wrote:Was that the first time you had this encounter?
This was the first and only time. The last time I placed these industries in a newgrf.cfg was back in September for the Nars Valley Project. where you can see the grf configuration. The last post in that series was December 8 and was without issues. I installed r1793 about 2 hours before the last run of that game. I just now reran that game without issue and Pikka's industries are loaded near the end. So why does the issue occur with Pikka's industries in other configurations, including the one where Pikka's industries and the ttdpbase grf are the only ones loaded?
Are we waiting for Josef for a new Beta? Or could a Beta be produced and uploaded by some other developer?
Right question, wrong thread? :wink:
albion
Engineer
Engineer
Posts: 2
Joined: 05 Jan 2008 18:20

Re: Pikka's Basic Industries (PBI)

Post by albion »

How can I use UKRSI in OpenTTD? I tried, but quarry and clay pit produce nothing.
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 »

the brick chain works for me fine on openttd
the only poroblem is quarries seem to be so rare that you are hard pushed to get one on a map smaller then 2048x2048
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

The quarry wasn't designed for the "smoother" land generation algorithm in OTTD.
albion
Engineer
Engineer
Posts: 2
Joined: 05 Jan 2008 18:20

Re: Pikka's Basic Industries (PBI)

Post by albion »

Thanks. The wrong grf order was the problem. But I have another question. I've tried the Modified Building Cost grf, but it doesn't change the railway building cost...
User avatar
Dave
Moderator
Moderator
Posts: 17249
Joined: 26 Dec 2005 20:19
Location: North London

Re: Pikka's Basic Industries (PBI)

Post by Dave »

Don't think that works on OTTD either (?)
Official TT-Dave Fan Club

Dave's Screenshot Thread! - Albion: A fictional Britain
Flickr


Why be a song when you can be a symphony? r is a...
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Re: Pikka's Basic Industries (PBI)

Post by Villem »

It does, i have used it many times on my servers in the past, and so have others.
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Re: Pikka's Basic Industries (PBI)

Post by Raichase »

Vemarkis wrote:It does, i have used it many times on my servers in the past, and so have others.
Can confirm that, have been... erm... cajoled into using it myself, and it's less than exciting :tongue:. It does work though!
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
lewisd
Engineer
Engineer
Posts: 13
Joined: 09 Jan 2008 05:11

Re: Pikka's Basic Industries (PBI)

Post by lewisd »

I'm trying to use PBI in nightly r11798, in the scenario editor. Every time I try to place "Many random industries" the game crashes. If I remove PBI, it works. I also have the brick chain grf loaded, but removing it doesn't fix the problem.

Update: I just made it crash a different way too.
I removed the PBI grf, and applied the changes. I then did "Many random industries", and they all showed up fine. I added the PBI grf back, and when I applied changes, the game crashed.

I'm happy to provide a copy of the scenario I was editing, or any other info that might help diagnose the problem.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Pikka's Basic Industries (PBI)

Post by belugas »

Problem has been fixed not too long ago, on revision r11804.
You would have to wait for next nightly to be build, or compile the sources yourself :)
Yes, it was a bug in OpenTTD, not in Pikka's excellent work :oops:
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
lewisd
Engineer
Engineer
Posts: 13
Joined: 09 Jan 2008 05:11

Re: Pikka's Basic Industries (PBI)

Post by lewisd »

Oh, ok, great, thanks. :) I'll wait until the next nightly is built.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Pikka's Basic Industries (PBI)

Post by PikkaBird »

albion wrote:Thanks. The wrong grf order was the problem. But I have another question. I've tried the Modified Building Cost grf, but it doesn't change the railway building cost...
It should double the cost of building ordinary track. Assuming you don't have another grf which also doubles the cost?
User avatar
Expresso
Tycoon
Tycoon
Posts: 1760
Joined: 09 Aug 2004 00:14
Location: Gouda, the Netherlands

Re: Pikka's Basic Industries (PBI)

Post by Expresso »

I like this set a lot for the variation of industries, but there remain some problems which make it next to unplayable for me:
  • Basic industries (mines) will disappear once they're exhausted. Can't a parameter be implemented to control whether a mine will exhaust or not, and if it will at how much?
  • There's a maximum amount of resources a production industry can stockpile. Can't this limit at least be made optional or controllable (via a parameter)?
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Re: Pikka's Basic Industries (PBI)

Post by Raichase »

Expresso wrote:I like this set a lot for the variation of industries, but there remain some problems which make it next to unplayable for me:
  • Basic industries (mines) will disappear once they're exhausted. Can't a parameter be implemented to control whether a mine will exhaust or not, and if it will at how much?
Funny thing is, thats the most attractive part of the set to me :)).
[*]There's a maximum amount of resources a production industry can stockpile. Can't this limit at least be made optional or controllable (via a parameter)?[/list]
Again, thats a feature to me, but I see a lot of people commenting on it, so I'd support it as far as the idea goes, but I wouldn't use it :)).
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Pikka's Basic Industries (PBI)

Post by George »

Expresso wrote:I like this set a lot for the variation of industries, but there remain some problems which make it next to unplayable for me:
  • Basic industries (mines) will disappear once they're exhausted. Can't a parameter be implemented to control whether a mine will exhaust or not, and if it will at how much?
  • There's a maximum amount of resources a production industry can stockpile. Can't this limit at least be made optional or controllable (via a parameter)?
ECS industries also have the same problems, but amount are much higher (up to 20 times higher for some industries). Is it playable for you, or even these huge stockpiles are unacceptable for you?
Image Image Image Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 16 guests