v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Talk:Raw file

From Dwarf Fortress Wiki
Jump to navigation Jump to search

One object type per file?[edit]

iirc I seen this mentioned on the forums, if so can someone please make note of it on the page, to avoid confusion of people using multiple objects per file. --Jan (talk) 11:13, 3 January 2023 (UTC)

I might be misunderstanding you, but you can definitely have more than one object defined per file, and I'm pretty certain this is universally true. I can't think of any file that doesn't have multiple objects defined in it. Alpacalypse (talk) 16:18, 9 March 2023 (UTC)

Parsing changes[edit]

It seems that filenames are no longer irrelevant. In my test it appears that filename must start with object name:

Filename : <Object-name>-whatever-you-want-.txt

With each raw file beginning with same file name and presumably followed by the same [OBJECT:<Object-name>] (I haven't tested the last) --Jan (talk) 18:48, 6 January 2023 (UTC)

AFAIK, this is correct. Might be worth making a distinction between object name/object type if mentioned on the wiki though. As technically, I think you are referring to the object type/category here; CREATURE:COW and CREATURE:DOG, could be construed as two creature "object" names, but they could both be in the same vanilla_creatures/objects file. Alpacalypse (talk) 16:29, 9 March 2023 (UTC)

Related to Jan's comment above: It seems that the file header name (the one in the actually body text) can usually (but maybe not always) be anything you want. I did have some results where it seemed like this might be able to change the load order of the modded files, but would need more testing to confirm. Alpacalypse (talk) 16:30, 9 March 2023 (UTC)

Links to related pages[edit]

I might add a "files" disambiguation page and add this to it. There are also a lot of pages on specific raw files and raw file usage that could be linked to from this page. It's a shame to have them tucked away and hard to find when they are often very informative and useful references from the wiki. Alpacalypse (talk) 16:16, 9 March 2023 (UTC)

I went ahead a made a "Raws" navigation template. Too many individual files to list, so (currently red) links are directory names, grouped into similar categories. If nothing else, I thought it might make for a handy reference of all the raw file directories, whilst documenting raws on the wiki is still a WIP. Of note: there is also a Category:Raws which needs a lot of work to be a useful, and up to date, reference to related pages. --Alpacalypse (talk) 20:33, 12 March 2023 (UTC)