Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: raw files  (Read 822 times)

Metalax

  • Bay Watcher
    • View Profile
    • Steam Profile
raw files
« on: November 13, 2007, 03:47:00 am »

I believe it's true but I'd like it confirmed, are all files in raw/objects/ read on worldgen/startup, not caring what they are named or how many files there are? I know this works for the creature definitions and from the way all the matgloss files start with OBJECT:MATGLOSS I'd assume it's the same for them.

It would also be good to know just what parts of the data is stored by the save files from when the world was genned or the site was created, and which is read from the files. I know that new entries usually require a regen, while some tags for creatures can be editted and applied on reopening the game and loading.

Also can a file have more than one type of definition in it? eg

code:

[OBJECT:MATGLOSS]

[MATGLOSS_STONE:SANDSTONE]
[NAME:sandstone][COLOR:6:7:0][TILE:'#']
[SEDIMENTARY][AQUIFER][SEDIMENTARY_OCEAN_SHALLOW]

[MATGLOSS_STONE:MORION]
[VALUE:2][COLOR:0:7:1][TILE:15][GEM:morion:STP]
[ENVIRONMENT:ALL_STONE:CLUSTER_SMALL:100]

[MATGLOSS_STONE:LIMONITE]
[NAME:limonite][COLOR:6:7:1][TILE:156]
[ENVIRONMENT:SEDIMENTARY:VEIN:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:IRON:100]
[SOLID_DENSITY:3796]
[VALUE:8]

[MATGLOSS_WOOD:SAGUARO]
[NAME:saguaro][ADJ:saguaro]
[TILE:198]
[PREFSTRING:amazing arms]
[DRY]
[BIOME_ANY_DESERT]

[OBJECT:REACTION]

[REACTION:LIGNITE_TO_COKE]
[NAME:make coke from lignite]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:LIGNITE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:COAL:COKE]
[FUEL]


If so then it would be possible to have single file mods that don't overwrite any of the normal raws, as long as no editing of existing entities is needed of course.

Logged
In the beginning was the word, and the word was "Oops!"

Fenrir

  • Guest
Re: raw files
« Reply #1 on: November 13, 2007, 08:03:00 am »

I think so. You need to include the name of the file at the top (without it's extension .txt). I made a new file and inserted my first mod, a poodle, and it worked. I don't know which tags don't require a regen, or if it can have more than one definition in it, I'll have to try.

Side Note: I tried to make my poodle [MESCHEVIOUS] (because they are). I tested it, but they didn't pull any levers. They need a grasping limb for that, right?

Logged

Exasperation

  • Bay Watcher
    • View Profile
Re: raw files
« Reply #2 on: November 13, 2007, 10:25:00 am »

You could also try spelling it [MISCHIEVOUS].
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: raw files
« Reply #3 on: November 13, 2007, 12:55:00 pm »

About regening worlds after editing creatures;

If you remove a creature and then open a save file that contained that creature, the game will crash.
If you add a creature it will not show up if you don not generate a new world, play-now adventurers are an exception, megabeasts might be so.
If you change the "label" of a creature it counts as removing the old one and creating a new one.

I think the other raws follow a similar pattern; don't touch the labels and you are fine.

I can off course be wrong, but this is a god rule of thumb.

Edit: whit labels I mean for example [CREATURE :DWARF], [ITEM_WEAPON:ITEM_WEAPON_WHIP] or [MATGLOSS_STONE:ONYX].

[ November 13, 2007: Message edited by: Armok ]

Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Fenrir

  • Guest
Re: raw files
« Reply #4 on: November 13, 2007, 05:15:00 pm »

quote:
Originally posted by Exasperation:
<STRONG>You could also try spelling it [MISCHIEVOUS].</STRONG>

Yes, correct spelling may help!  :D
Logged