What does 'author' do in levelinfo.conf of level_groups?

All about creating levels and level sets, custom elements and custom artwork.

Moderators: Flumminator, Zomis

Post Reply
Tomi
Posts: 339
Joined: Wed Aug 03, 2005 3:37 pm
Location: Slovakia

What does 'author' do in levelinfo.conf of level_groups?

Post by Tomi »

I have a question for people who know much about RnD inner workings and source code.
Does Rocks'n'Diamonds somewhere use the 'author' from levelinfo.conf files which have "level_group:true"? Would everything work as before if I removed all 'author' lines from those files?
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> I have a question for people who know much about RnD inner workings
> and source code.

That's me, I think... ;-)

> Does Rocks'n'Diamonds somewhere use the 'author' from levelinfo.conf
> files which have "level_group:true"?

Yes, it does! It uses them as the default author information for all subsequent level sets and single levels in that level group, if no author field is specified there.

> Would everything work as before if I
> removed all 'author' lines from those files?

As long as all level sets in that group specify an "author" field, yes.

If any level set misses this field, and the single levels also have no author field, "Unknown author" is used (or something like that).

At least that's how it should work in theory (and if I remember right, it also does work that way in practice.)
Post Reply