Map Components Decorations

Various bits and pieces that are useful for creating new mods
Post Reply
User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 7:54 pm

Map Components Decorations
Here are some Decorations, that came from Rodeas’ Borneo. They are animated. The Assets folder should be placed in the UserMaps folder. The XML files should be added to the RRT_Decorations_MAPNAME.XML file.
You can change the size of the decoration by changing the scale number in the XML file <fScale>9.0</fScale>
Jancsika
.....and if you have some of your own, please contribute. :wink:

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 7:59 pm

Deer by Rodea
Animated
Attachments
Deer.rar
(208.79 KiB) Downloaded 1122 times
Deer1.jpg
Deer1.jpg (10.11 KiB) Viewed 24347 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:05 pm

Dock by STEP Inc
You can use this as a harbor in a city.(The whales do not belong)
Attachments
Dock.rar
(729.97 KiB) Downloaded 1149 times
Dock1.jpg
Dock1.jpg (12.29 KiB) Viewed 24340 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:13 pm

Elephants by Rodea
Animated. There are two XML files to load.
Attachments
Elephant.rar
(132.59 KiB) Downloaded 1058 times
Elephant1.jpg
Elephant1.jpg (10.73 KiB) Viewed 24331 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:17 pm

Fish by Rodea
Animated
Attachments
Fish.rar
(45.8 KiB) Downloaded 1076 times
Fish2.jpg
Fish2.jpg (7.78 KiB) Viewed 24325 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:20 pm

Horse by Rodea
Animated
Attachments
Horse.rar
(509.89 KiB) Downloaded 1175 times
Horse1.jpg
Horse1.jpg (7.69 KiB) Viewed 24320 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:22 pm

Panther by Rodea
Animated
Attachments
Panther.rar
(198.3 KiB) Downloaded 1053 times
Panther2.jpg
Panther2.jpg (12.9 KiB) Viewed 24319 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:25 pm

Water Mill by Rodea

Animated
Attachments
Water_Mill.rar
(200.1 KiB) Downloaded 1118 times
Water_Mill.jpg
Water_Mill.jpg (17.54 KiB) Viewed 24308 times

User avatar
Jancsika
Posts: 921
Joined: Thu Nov 02, 2006 3:40 pm
Location: Maryland

Re: Map Components Decorations

Post by Jancsika » Sun Jan 24, 2010 8:27 pm

Whale by Rodea
Animated
Attachments
Whale.rar
(240.69 KiB) Downloaded 1105 times
Whale2.jpg
Whale2.jpg (9.94 KiB) Viewed 24305 times

TMILLER
Posts: 63
Joined: Thu May 24, 2012 1:07 pm

Re: Map Components Decorations

Post by TMILLER » Sun Dec 02, 2012 5:21 pm

While working on version 2 of my US_Southeast map I wanted to have bears in the Smoky Mountains. Bears are a popular tourist attraction in the National Park there. Even though the Bears.kfm file which comes with SMR references many kf animation files for the bears, I could not get the bears to move. After studying other maps with animated decorations I discovered that none of the maps have more than one animation active in the map, even though there may be several available. I studied the files presented here by Jancsika and Rodea and found a different way to structure the xml files so that multiple animations of the same figure are active during game play. For example, one of the most popular animated figures is the elephant, but the xml files given in this thread only activate the elephant walking in a circle while moving its trunk and ears. There are also kf files that make the elephant trumpet his trunk and paw the ground. Similarly the fish and whale can be made to swim and jump, not just jump. The panther, lion, and bear have kf files which allow them to fortify, strike, fall down and die, etc. To get more than one action activated in any decoration I found that the xml file structure can be modified as shown in the attached file for the bear, whale, fish, and elephant.

For multiple animations, following the “Animations” line, define a “State” for each kf event you want to include in the animation. Each State must have a unique ID number. For 5 events, you can simply define 5 States, with IDs 1-5. The “Sequence ID” must match the Event ID number for the event of the kf file you want to activate as seen in NifSkope. For example, Bear_MD_strikeA.kf has an Event ID number 1022. Next, fMinPlayTime must be entered in seconds. This can be determined by viewing the animation in NifSkope and note the duration of each animation you want to use. The Bear Strike is only 1 second, while the Elephant “normal” event (where it walks around in a circle) is 30 seconds. If you enter too short of a time the animation will stop before it is completed. Last, enter fMaxPlayTime. I used a few tenths of second longer than the fMinPlayTime so only one complete animation event is shown at a time. After all “States” are listed, then add “Transitions” as a sibling of “State” and “Transition” lines for each animation you want to activate as a child of “Transitions”. See my example to follow this. The only information you need for each “Transition” is the State ID number and the “Chance” that it occurs. If you use 0 for each “Chance” entry, every animation will have an equal probability of being selected at the end of the previous animation. If you want one animation to have priority over others you will need to enter a higher probability for your favored event vs the others. Probabilities should be between 0-1 for each event. I just left them all 0, and let them all have equal probability of being chosen. Since the animations are all only a few seconds long, they all will occur in a minute or less.

I discovered this file structure mostly by trial and error, but it works. I now have bears striking at jumping fish in a mountain stream. See attached pics. Compare the attached xml file structure with the xml file structure attached to each of the decorations in this thread. To activate multiple animations make sure each State has a different ID number; do not have “Transitions” as a child of “State”, but on the same line as “State” (i.e. as a sibling of “State” or as a child of “Animations”). Good Luck.
Attachments
Bear_Fishing1.jpg
Bear_Fishing2.jpg
RRT_Decorations_US_Southeast.7z
(853 Bytes) Downloaded 1037 times

Post Reply