Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: enemy profiles
New feature: enemy profiles[message #320833] Sat, 25 May 2013 23:01 Go to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Enemy Profiles

A new feature made for the KS campaign is the introduction of enemy and militia profiles (http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/319379.html). In several new xmls you can define the name, visuals and traits of enemy soldiers and militia. Enemies and militia will then be drawn from these pools. No profile can appear twice at once. If the pool is empty, soldiers are generated as usually.

This gives you the ability to add a bit of personality to nameless grunts.

The traits one specifies are the minimum amount, traitslots left open can be filled from the game. The usual STOMP rules for 3 traits apply (enemies can only get up to 3 traits, and only up to 2 major traits.

This works with new traits only!

There are 6 new xmls in the new folder TableData/Profiles:

  • SoldierProfileEnemyAdmin.xml, SoldierProfileEnemyRegular.xml and SoldierProfileEnemyElite.xml are settings for enemies
  • SoldierProfileMilitiaGreen.xml, SoldierProfileMilitiaRegular.xml an SoldierProfileMilitiaVeteran.xml are the settings for militia.
You can turn this feature on/off via the Ja2Options.ini settings
SOLDIER_PROFILES_ENEMY   = TRUE
SOLDIER_PROFILES_MILITIA = FALSE

The xml settings are:
<PROFILE>
    <uiIndex>1</uiIndex>
    <szName>OMG! This is, like, the longest name ever. Are you serious? That's a lot of space you are using here. This is excessive, isn't it?</szName>
    <uiBodyType>4</uiBodyType>
    <uiHair>5</uiHair>
    <uiSkin>4</uiSkin>
    <uiTrait1>5</uiTrait1>
    <uiTrait2>5</uiTrait2>
    <uiTrait3>19</uiTrait3>
  </PROFILE>

You can add a name as long as you want... but only the first 128 letters will be used. :goodnews: That should be enough I think...
http://i40.tinypic.com/34q4j77.jpg
Yep, that's long enough. Notice we got the correct trait numbers (see table below).

Explanation for the tags:
uiIndex           number of profile, 0 is a template            
szName            name of soldier                                                                  
uiBodyType        body type:                                                                        
                  1: REGMALE                                                                        
                  2: BIGMALE                                                                        
                  3: STOCKYMALE                                                                     
                  4: REGFEMALE                                                                      
                                                                                                    
uiHair            hair colour:                                                                      
                  1: WHITEHEAD                                                                      
                  2: BLACKHEAD                                                      
                  3: BROWNHEAD                                                                      
                  4: BLONDHEAD                                                                      
                  5: REDHEAD                                                                        
                                                                                                    
uiSkin            skin colour:                                                                      
                  1: PINKSKIN                                                                       
                  2: TANSKIN                                                                        
                  3: DARKSKIN                                                                       
                  4: BLACKSKIN                                                                      
                                                                                                    
uiTrait1, uiTrait2, uiTrait3: according to the trait numbers:                                       
                  // MAJOR TRAITS                                                                   
                  AUTO_WEAPONS_NT, // 1                                                             
                  HEAVY_WEAPONS_NT, // 2                                                            
                  SNIPER_NT, // 3                                                                   
                  RANGER_NT, // 4                                                                   
                  GUNSLINGER_NT, // 5                                                               
                  MARTIAL_ARTS_NT, // 6                                                             
                  SQUADLEADER_NT, // 7                                                              
                  TECHNICIAN_NT, // 8                                                               
                  DOCTOR_NT, // 9                                                                   
                                                                                                    
                  // MINOR TRAITS                                                                   
                  AMBIDEXTROUS_NT, // 10                                                            
                  MELEE_NT, // 11                                                                   
                  THROWING_NT, // 12                                                                
                  NIGHT_OPS_NT, // 13                                                               
                  STEALTHY_NT, // 14                                                                
                  ATHLETICS_NT, // 15                                                               
                  BODYBUILDING_NT, // 16                                                            
                  DEMOLITIONS_NT, // 17                                                             
                  TEACHING_NT, // 18                                                                
                  SCOUTING_NT, // 19                                                                
                                                                                                    
                  COVERT_NT, // 20  // major trait, here for coding reasons
                  RADIO_OPERATOR_NT, //21
                  SNITCH_NT, //22
                  SURVIVAL_NT, //23        
Note that applying Technician, Doctor or teaching to the enemy is a bit... useless. Also, the standard soldier AI cannot handle being a covert operative, thus applying COVERT_NT is also not advised. The militia is also forbidden from using radios (that's your job!), and does not snitch, so those traits are also useless here. If you want enemy spies, go here.

Using a 0 for hair/skin/traits will cause this to be generated randomly by the game.

Quite a few of these slots will be filled by Shanga, whom I don't envy for adding >3k datasets :compcuppa: . All those backers will now be immortalized in our sacred SVN, yay! :venus:

This has been in the trunk since r6071.

Edit: As of r2249, edmortimer finally made profiles for militia. If you wonder why we now have so many spanish women shooting us in the back, you can read his thoughts behind this here.

[Updated on: Wed, 03 June 2015 22:30]

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Deleted feature: poison system
Next Topic: New feature: Campaign History
Goto Forum:
  


Current Time: Mon Dec 02 15:20:06 GMT+2 2024

Total time taken to generate the page: 0.00974 seconds