Wanted: coder for integrated patch graphics file

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

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

The patchdevs (includeing me) think useing one GRF will reduce the support cost for TTDPatch A LOT, we can even warn the user if the grf isn't there.

If a feature isn't enabled the data is unused. (A grf doesn't enable switches)

A completly different point, you merge signals with dbsetxl, you moved from a single canals file (I wait since ages for it) to a include one in newshipsxl

So why we shouldn't do the same?


PS: I told Josef it would be wise to make files always lowest priority with some way, this resulted in the idea to make any grfid FFFFFFF file (blue ones) to always have lowest priority even if you put it at the end of the newgrf config... (If people have something against it please tell us now)

-edit-
The DBSetXL isn't anymore the only big set out there, so people aswell need to load signals, that means they need to atleast 10 grfs today. Don't get me wrong, I still play only with the DBSetXL because it simple rocks :wink: but I think there is a point to merge them (even if you put all the necessary stuff in your grfs to reduce the grf count to say 5 files)
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

michael blunck wrote:I see the benefits but IMO there are some drawbacks as well. Many people are using custom .grfs for elrails, foundations, signals, .... There may be even scenarios which need a special handling of its components like AlpineClimate, etc.
Since they're action 5's with GRFID=FFFFFFFF, any grf with a regular GRFID will override them, no matter whether they come before or after it in the cfg. I will also now extend this special handling to action 3 and action A, so the presence of this grf file will not stop any other grf file from working properly, no matter where in newgrf.cfg it is placed.
Josef, I understood that you wanted to have all these .grfs into one file (for downloading) but not into one single .grf?
Sorry, then I've not been clear. The main reasons I wanted to have these in a single grf file is a) less clutter in the GRF Status Window and b) easier to check if it's present and complete, and give an appropriate error message if not, and c) easier to give instructions on how to install missing graphics (instead of "I'm missing tram tracks" -> "download tramtrk.grf", "I'm missing canals" -> "download canals.grf" etc. there's only one possible answer for all of these).
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Post by michael blunck »

I whole-heartedly agree with this, I've noticed quite a few people registering just to ask "how do I get tram tracks to show up" or "my electrified rails look the same as normal rails". If this GRF is released, these questions would hopefully become a thing of the past.
No. They´ll ask the same question as before but instead of "install tramtrk.grf in ttdpatch.cfg" the answer would change to "install newgrf.grf in ttdpatch.cfg". :twisted:
The patchdevs (includeing me) think useing one GRF will reduce the support cost for TTDPatch A LOT,
Well, from my experience it´s a misbelief to think that reducing 10 files to 1 would cut support cost to 1/10. Especially not if some of those files would not be needed all the time.
we can even warn the user if the grf isn't there.
That can be done as well for 10 files. Conceptually, it´d be even more stringent because patch feature and additional graphics file come in pairs, usually. See my post above: "electrifiedrailways on" (action05 type 05) needs the associated file "elrails.grf" (or a better name, doesn´t matter conceptually).
If a feature isn't enabled the data is unused. (A grf doesn't enable switches)
Yes, I know, but that wasn´t the original question. Yours is addressing the implementation. I always thought that TTDPatch would be based on a modular approach? 8)
A completly different point, you merge signals with dbsetxl,
DBXL has a special sort of semaphores.
you moved from a single canals file (I wait since ages for it) to a include one in newshipsxl So why we shouldn't do the same?
Because it´s not the same. Do you remember that we had that "one-file-fits-all" concept (ages ago)? It was called "ttdpatch.grf" (only including signals back then) and still can be found in many newgrf.cfg files! Which raises another point: I bet that the new file will be added to the existing "elrails.grf", "trkfound.grf", etc., pp. instead of replacing them. :twisted:
PS: I told Josef it would be wise to make files always lowest priority with some way, this resulted in the idea to make any grfid FFFFFFF file (blue ones) to always have lowest priority even if you put it at the end of the newgrf config...
Yes, that´s a good idea but has been discussed before. :)
-edit-
The DBSetXL isn't anymore the only big set out there, so people aswell need to load signals, that means they need to atleast 10 grfs today.
I don´t understand? I only wanted to point out that there are

- many custom .grfs out there for special TTDPatch features (mainly action5 based), and
- there are some vehicle sets which include own graphics to override default TTDpatch action5-based .grfs.

The reference to the DBXL was just an example.
Don't get me wrong, I still play only with the DBSetXL because it simple rocks but I think there is a point to merge them (even if you put all the necessary stuff in your grfs to reduce the grf count to say 5 files)
I really don´t understand. :(

regards
Michael
Image
User avatar
jonty-comp
Tycoon
Tycoon
Posts: 2542
Joined: 22 Oct 2005 16:05
Location: Chesterfield, England
Contact:

Post by jonty-comp »

michael blunck wrote:
I whole-heartedly agree with this, I've noticed quite a few people registering just to ask "how do I get tram tracks to show up" or "my electrified rails look the same as normal rails". If this GRF is released, these questions would hopefully become a thing of the past.
No. They´ll ask the same question as before but instead of "install tramtrk.grf in ttdpatch.cfg" the answer would change to "install newgrf.grf in ttdpatch.cfg". :twisted:
Yes, but there would be less of them. :P
Oh, and last time I looked, newgrfs went in newgrf.cfg. :shock:
User avatar
HaroldV
Traffic Manager
Traffic Manager
Posts: 178
Joined: 25 Feb 2005 16:24

Post by HaroldV »

michael blunck wrote:
[mb] Even if those switches are set, any other .grf with the same functionality could do the job, and there are many alternative .grfs out there, be it for foundations, catenary, or whatnot.
And if they are loaded after this one, they will override it completely and without problems.
You say it. But if they´re loaded before, the usual hassle begins. And mind you, I´ve seen too much messy newgrf.cfg files. :|
One fundamental grf, the first a newcomer downloads, the first they add to their newgrf(w).cfg -- far less likely to cause "grfs wrongly overiding because stuff is out of order and I(newbie) don't understand why" problems, than half a dozen separate grfs, surely?
[mb] From a user´s point of view this would be easy and straightforward, easier than having to "struggle" with parameters or facing "problems" with overriding .grfs.
I'll say it again, there are no "problems" with overriding grfs, and there is no "struggling" with parameters.
Well, ATM, there´s only one of those .grfs using parameters but nothing guarantees that this will remain in the future.
And if that happens (can you forsee any circumstances where it might?) PikkaBird gets more overtime. I don't see any problem. ;)
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Michael, I'm really not sure why you're so opposed to this integrated grf. In my view, the problem overriding other graphics is solved (has been solved for action 5 long ago, next nightly/beta will solve it for action 3/A as well), the parameters are not a problem since they're entirely optional, the section of the grf corresponding to inactive switches will be skipped so no precious sprites are wasted, and it can only simplify both installation and usage as well as support.

The only reasons to not do this that I can think of are
  • People always have to download a large file instead of only a few small files that they really need. But 316 KB isn't really large, so I don't think this is much of a concern, and eventually most people will try out most features, even if only briefly so they have to download the files anyway.
  • Memory usage, since the whole file would always be loaded instead of being able to remove the unneeded ones. Not really a problem either.
  • The artists are against it. If that's the case, please say so and we can remove your graphics from the integrated file.
What other reason not to do it would there be?
michael blunck wrote:
I whole-heartedly agree with this, I've noticed quite a few people registering just to ask "how do I get tram tracks to show up" or "my electrified rails look the same as normal rails". If this GRF is released, these questions would hopefully become a thing of the past.
No. They´ll ask the same question as before but instead of "install tramtrk.grf in ttdpatch.cfg" the answer would change to "install newgrf.grf in ttdpatch.cfg". :twisted:
But the fact that this also gives them all the other graphics will mean that a) if they ask for "tram tracks, canals and el.rails", we only need one answer and they only need to install one thing, and b) they aren't going to come back and ask "ok I've got canals now but what about el.rails" five minutes later.
The patchdevs (includeing me) think useing one GRF will reduce the support cost for TTDPatch A LOT,
Well, from my experience it´s a misbelief to think that reducing 10 files to 1 would cut support cost to 1/10. Especially not if some of those files would not be needed all the time.
Even if it's not reduced by 10:1 but only 2:1 it would be good. Less work for us, less work for the user.
we can even warn the user if the grf isn't there.
That can be done as well for 10 files.
Yes, but the patch can only show one red error message at a time. If all 10 files are missing, the user would find out about them one at a time or be told "some graphics are missing, go install them" which would be even less useful.

With a single file, it's also a lot more viable to have some kind of versioning system, where the patch notices if the grf is outdated and notifies the user accordingly.
PS: I told Josef it would be wise to make files always lowest priority with some way, this resulted in the idea to make any grfid FFFFFFF file (blue ones) to always have lowest priority even if you put it at the end of the newgrf config...
Yes, that´s a good idea but has been discussed before. :)
For action 5... not for action 3/A, which now implement this as well.
I don´t understand? I only wanted to point out that there are

- many custom .grfs out there for special TTDPatch features (mainly action5 based), and
- there are some vehicle sets which include own graphics to override default TTDpatch action5-based .grfs.
I don't however see how that's relevant to this discussion. These grfs will continue to work as before, no matter whether the patch graphics are in one single file or distributed over a dozen files.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Which reminds me, does this new file uses Action5 for canals? As this code is long dead (not used anymore) and switched to Action321 system, the file doesn't need to carry Action5 canal sprite anymore...

-edit-
And the 0C code comments can be removed aswell
Last edited by eis_os on 18 Jul 2006 18:35, edited 1 time in total.
User avatar
jonty-comp
Tycoon
Tycoon
Posts: 2542
Joined: 22 Oct 2005 16:05
Location: Chesterfield, England
Contact:

Post by jonty-comp »

Patchman wrote:
michael blunck wrote:
I whole-heartedly agree with this, I've noticed quite a few people registering just to ask "how do I get tram tracks to show up" or "my electrified rails look the same as normal rails". If this GRF is released, these questions would hopefully become a thing of the past.
No. They´ll ask the same question as before but instead of "install tramtrk.grf in ttdpatch.cfg" the answer would change to "install newgrf.grf in ttdpatch.cfg". :twisted:
But the fact that this also gives them all the other graphics will mean that a) if they ask for "tram tracks, canals and el.rails", we only need one answer and they only need to install one thing, and b) they aren't going to come back and ask "ok I've got canals now but what about el.rails" five minutes later.
My point exactly.
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Post by michael blunck »

Michael, I'm really not sure why you're so opposed to this integrated grf. [...]
Josef, I´m in no way "opposed" to it, at least not "so". I´ve only raised some proper questions which led to some further improvements, which is a good thing, IMO. 8)
I will also now extend this special handling to action 3 and action A, so the presence of this grf file will not stop any other grf file from working properly, no matter where in newgrf.cfg it is placed.
That´s a good thing and it´ll remove most of the problems I was thinking of. The other good argument I´ve heard from you is that having only one file would give "less clutter in the GRF Status Window". (Although I´ve seen newgrf.cfgs holding more than 100 .grfs 8) )

Anyhow, I still think that in principal the more modular, flexible, efficient, and user-friendly solution would be to have a set of individual and properly defined files than having one large single file addressing entirely different tasks - but due to TTDPatch´s limitations (e.g. error message handling) it could well be that this cannot be implemented as easily.
The artists are against it. If that's the case, please say so and we can remove your graphics from the integrated file.
That´s not the reason. I gave you allowance to "integrate them" into one large downloadable file and this holds as well for that new "unified" .grf approach.

@eis_os
Which reminds me, does this new file uses Action5 for canals?
I already told you that canals in NewShips XL don´t use action05s.
And the 0C code comments can be removed aswell
I don´t use this, you may talk to George, though. :lol:

regards
Michael
Image
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Some of the grf's I coded do use 0C (so the other person could try to maintain it), so I'm against removing 0C...

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Action 0C should not (must not?) be removed from the newgrf spec. On the other hand, no action Cs should appear in any release GRFs.

The latter is what I thought was being discussed.
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
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

Maybe an option could be added to grfcodec / nforenum then to not process / comment out ActionC for full releases?
[edit] ok, well why shouldn't they be in a released grf?

~ Lakie
Last edited by Lakie on 18 Jul 2006 21:54, edited 1 time in total.
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

I don't really like that idea, because it can break counted action 7/9 jumps.

...And because it would require that (if grfcodec stripped the 0C's) grfcodec change sprite 0, something that I'd rather leave in nforenum's camp.
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
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

I left the action 0Cs in the canal block (which is from George, AFAIK) because I was too lazy to remove them. It's a straight copy and paste from the grf on the patch website, so they do use actions 2 and 3.

I will ask Josef on IRC if there's anything else needs to be changed in the file.
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Who said that 0C should be removed from the specs?!!? I only said that the <patch>.grf doesn't need to have them to reduce even more the size of the file. Hopefully thats now clear...
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

dos version is fine
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

I was sure that was what you said, Oskar, but it sounded to me like there might be some confusion, so I attempted to clarify.
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
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 12 guests