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.

Difference between revisions of "User:Deon"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
Line 17: Line 17:
  
 
[http://http://www.bay12games.com/forum/index.php?topic=18623.0 Mods and components for Mod Base]
 
[http://http://www.bay12games.com/forum/index.php?topic=18623.0 Mods and components for Mod Base]
 +
 +
=How to=
 +
 +
==How to add a new creature==
 +
 +
'''Body template'''
 +
 +
File with a name body_creature1.txt
 +
 +
body_creature1
 +
 +
[OBJECT:BODY]
 +
 +
[BODY:BODY1]
 +
[BP:BP1:bodypart1]
 +
[BP:BP2:bodypart2]
 +
[BP:BP3:bodypart3]
 +
 +
Let's add a completely new creature with a custom body which will be modular (will not overwrite any content) and will be easy to install.
 +
I will use [[Body tokens]], you can read their descriptions there.
 +
 +
I want to make a tripod creature.
 +
It has 3 legs, a tentacle as tail and a hand instead of head with a single eye on the palm.
 +
 +
Let's start with a body.
 +
Make a body_tripod.txt text file in your /raw/objects folder.
 +
According to the template the first string shold be the file name without the extension (.txt) and then you announce that the type of the content is body ([OBJECT:BODY]). Then we'll add a tripod body with no bodyparts still.
 +
 +
So now we have
 +
 +
creature_tripod
 +
 +
[OBJECT:BODY]
 +
 +
[BODY:TRIPOD]
 +
 +
Now we want to start to build the body structure.
 +
The main rule here is that if some bodypart was connected to another it should be listed after that.
 +
I.e. if we had an eye which is connected to the head we should announce head first and eye next.
 +
 +
So we will start with the main "carrier" - upper body, other parts are connected to it or to other parts which are connected to it.
 +
[BP:UB:upper body][UPPERBODY]
 +
* "BP" here indicates that it is a part of the announced BODY structure (TRIPOD).
 +
* "UB" is a unique (inside this creature) identintificator.
 +
* "upper body" is the displayed name. [UPPERBODY] token means that this is the main part where the chest armor would be worn if the creature could wear armor and also it can be "cloven asunder" etc.
 +
 +
[BP:LB:lower body][COBTYPE:UPPERBODY][LOWERBODY]
 +
* [CONTYPE:UPPERBODY] means that this part is connected to the part of this body which has the "UPPERBODY" token. Surprisingly it's UB (upper body) :).
 +
* It could be [CON:UB] also, CONTYPE tries to attach the bodypart to every another part with the listed token while the CON connects to a single bodypart with the indicated unique identificator (UB for the upper body).
 +
 +
Let's add a front leg.
 +
[BP:FL:front leg][CONTYPE:UPPERBODY][LIMB][STANCE]
 +
 +
BP, FL, "front leg", CONTYPE are the same things as before. However there 3 new tokens.
 +
*[LIMB] means that this part is a limb and can be easily lopped off, also it allows wrestling with it.
 +
*[STANCE] means that the creature uses this bodypart to stand. If the half of the total number of STANCE bodyparts is damaged the creature falls on the ground and cannot get up.
 +
 +
Two rear legs are added the same way, but they're connected to the lower body.
 +
[BP:RRL:right rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][RIGHT]
 +
[BP:LRL:left rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][LEFT]
 +
"Right" and "left" tokens do not require any special explanation.
 +
 +
Now we want a tail which can be used as a tentacle to wrestle and grap things.
 +
[BP:TAILT:tail tentacle][CONTYPE:LOWERBODY][LIMB][GRASP]
 +
* Here goes the "GRASP" token, it allows creatures to pick up items and grab bodyparts.
 +
 +
So now we have.
 +
 +
creature_tripod
 +
 +
[OBJECT:BODY]
 +
 +
[BODY:TRIPOD]
 +
[BP:UB:upper body][UPPERBODY][LOWERBODY]
 +
[BP:FL:front leg][CONTYPE:UPPERBODY][LIMB][STANCE]
 +
[BP:RRL:right rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][RIGHT]
 +
[BP:LRL:left rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][LEFT]
 +
[BP:TAILT:tail tentacle][CONTYPE:LOWERBODY][LIMB][GRASP]
 +
 +
Is it all right? No! We forgot the head-arm with a single eye.
 +
We could make more bodyparts to finish the picture but I want to teach you how to use BODYGLOSS.
 +
 +
Simply BODYGLOSS just renames the things while leaving the contents unharmed.
 +
Let's use a bit of imagination here.
 +
We already have a head on other creatures and a single eye from cyclops.
 +
 +
Bodygloss syntax is:
 +
[BODYGLOSS:ID:original:new]
 +
Where "ID" = unique identificator, "original" = the original name of the "new" is the name which replaces the original one.

Revision as of 12:35, 21 July 2008

Greetings

I'm a dedicated member of our great community so I wanted to organize a bit some of my things I already wrote for the community which are lost in swarms of forum threads. They may be useful for someone. I don't have a time for now to organize them but I hope they are understandable.

Guides

What is a tileset and how the graphics are determined?

http://www.bay12games.com/forum/index.php?topic=21176.msg227109#msg227109

Essential tags of a creature

http://www.bay12games.com/forum/index.php?topic=21045.msg225768#msg225768

Game Modifications

Middle-Earth mod (39+ compatible)

Mods and components for Mod Base

How to

How to add a new creature

Body template

File with a name body_creature1.txt

body_creature1

[OBJECT:BODY]

[BODY:BODY1]
[BP:BP1:bodypart1]
[BP:BP2:bodypart2]
[BP:BP3:bodypart3]

Let's add a completely new creature with a custom body which will be modular (will not overwrite any content) and will be easy to install. I will use Body tokens, you can read their descriptions there.

I want to make a tripod creature. It has 3 legs, a tentacle as tail and a hand instead of head with a single eye on the palm.

Let's start with a body. Make a body_tripod.txt text file in your /raw/objects folder. According to the template the first string shold be the file name without the extension (.txt) and then you announce that the type of the content is body ([OBJECT:BODY]). Then we'll add a tripod body with no bodyparts still.

So now we have

creature_tripod

[OBJECT:BODY]

[BODY:TRIPOD]

Now we want to start to build the body structure. The main rule here is that if some bodypart was connected to another it should be listed after that. I.e. if we had an eye which is connected to the head we should announce head first and eye next.

So we will start with the main "carrier" - upper body, other parts are connected to it or to other parts which are connected to it.

[BP:UB:upper body][UPPERBODY]
  • "BP" here indicates that it is a part of the announced BODY structure (TRIPOD).
  • "UB" is a unique (inside this creature) identintificator.
  • "upper body" is the displayed name. [UPPERBODY] token means that this is the main part where the chest armor would be worn if the creature could wear armor and also it can be "cloven asunder" etc.
[BP:LB:lower body][COBTYPE:UPPERBODY][LOWERBODY]
  • [CONTYPE:UPPERBODY] means that this part is connected to the part of this body which has the "UPPERBODY" token. Surprisingly it's UB (upper body) :).
  • It could be [CON:UB] also, CONTYPE tries to attach the bodypart to every another part with the listed token while the CON connects to a single bodypart with the indicated unique identificator (UB for the upper body).

Let's add a front leg.

[BP:FL:front leg][CONTYPE:UPPERBODY][LIMB][STANCE]

BP, FL, "front leg", CONTYPE are the same things as before. However there 3 new tokens.

  • [LIMB] means that this part is a limb and can be easily lopped off, also it allows wrestling with it.
  • [STANCE] means that the creature uses this bodypart to stand. If the half of the total number of STANCE bodyparts is damaged the creature falls on the ground and cannot get up.

Two rear legs are added the same way, but they're connected to the lower body.

[BP:RRL:right rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][RIGHT]
[BP:LRL:left rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][LEFT]

"Right" and "left" tokens do not require any special explanation.

Now we want a tail which can be used as a tentacle to wrestle and grap things.

[BP:TAILT:tail tentacle][CONTYPE:LOWERBODY][LIMB][GRASP]
  • Here goes the "GRASP" token, it allows creatures to pick up items and grab bodyparts.

So now we have.

creature_tripod

[OBJECT:BODY]

[BODY:TRIPOD]
[BP:UB:upper body][UPPERBODY][LOWERBODY]
[BP:FL:front leg][CONTYPE:UPPERBODY][LIMB][STANCE]
[BP:RRL:right rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][RIGHT]
[BP:LRL:left rear leg][CONTYPE:LOWERBODY][LIMB][STANCE][LEFT]
[BP:TAILT:tail tentacle][CONTYPE:LOWERBODY][LIMB][GRASP]

Is it all right? No! We forgot the head-arm with a single eye. We could make more bodyparts to finish the picture but I want to teach you how to use BODYGLOSS.

Simply BODYGLOSS just renames the things while leaving the contents unharmed. Let's use a bit of imagination here. We already have a head on other creatures and a single eye from cyclops.

Bodygloss syntax is:

[BODYGLOSS:ID:original:new]

Where "ID" = unique identificator, "original" = the original name of the "new" is the name which replaces the original one.