Log in

View Full Version : Creative Assembly Need help solving a modding problem!



BloodBath
07-07-2005, 06:20
An idea occured to one of our modding teammates yesterday that he wanted to create a combination of two gerenal units at the begining of the imperial campaign by setting descr_strat.txt.
His basic idea is setting the two gerenal units' starting X-Y coordinate to the same,as follows:


character Flavius Julius, named character, leader, command 0, influence 0, management 0, subterfuge 0, age 47, , x 89, y 82
traits GoodCommander 2, NaturalMilitarySkill 1, GoodDefender 1, PoliticsSkill 3, GoodAdministrator 2, Austere 1
ancillaries aged_retainer
army
unit roman generals guard cavalry early exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0
unit roman triarii exp 1 armour 0 weapon_lvl 0
unit roman archer exp 1 armour 0 weapon_lvl 0

character Lucius Julius, named character, heir, command 0, influence 0, management 0, subterfuge 0, age 31, , x 89, y 82
traits GoodCommander 1, PoliticsSkill 2, GoodAdministrator 3, Energetic 2
ancillaries freeman_clerk
army
unit roman generals guard cavalry early exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0

Then I can't load the campaign game and get an error message saying "cannot attach 2 armies together..." when I quit.But in the campaign game it's true that we can combine troops however many the general units.
I wonder if there's a way to make it possible for the combination of general units by setting descr_strat.txt.
Can anyone help me?

Epistolary Richard
07-07-2005, 07:05
Generally speaking, putting anything on top of anything else in descr_strat is a bad idea. You won't be able to put generals on ships either. I don't know of a way to achieve the result you want.

BloodBath
07-07-2005, 10:46
Thanks very much,Epistolary Richard!But can't we really figure it out?
Even [cF]Adherbal or Myrddraal or Vercingetorix or even JeromeGrasdyke has no idea?
Help!! ~:confused:

Stuie
07-07-2005, 19:16
I haven't tried this (and don't have time right now) but since the error is about combining the armies, try removing the army entry from one of them. Like this:


character Flavius Julius, named character, leader, command 0, influence 0, management 0, subterfuge 0, age 47, , x 89, y 82
traits GoodCommander 2, NaturalMilitarySkill 1, GoodDefender 1, PoliticsSkill 3, GoodAdministrator 2, Austere 1
ancillaries aged_retainer
army
unit roman generals guard cavalry early exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0
unit roman hastati exp 1 armour 0 weapon_lvl 0
unit roman triarii exp 1 armour 0 weapon_lvl 0
unit roman archer exp 1 armour 0 weapon_lvl 0

character Lucius Julius, named character, heir, command 0, influence 0, management 0, subterfuge 0, age 31, , x 89, y 82
traits GoodCommander 1, PoliticsSkill 2, GoodAdministrator 3, Energetic 2
ancillaries freeman_clerk

BloodBath
07-08-2005, 10:06
Worth trying and I tried.But I got another error message reading "cannot create a character without an army..." or something.
:disappointed: Maybe there's really NO WAY.Thank you all the same.

JeromeGrasdyke
08-01-2005, 16:50
This is a shortcoming in the world setup code, that's for sure. There is one possiblity, which is creating the two characters seperately on the campaign map, and then moving one into the other's army using a script that runs on startup. It's more than a little awkward, but should work... although you will probably get a small delay on starting the game.

Epistolary Richard
08-01-2005, 17:26
Now why didn't I think of that? The console command move_character as that tends to make the two occupy the same space without interacting. However, the move script command might work, this is from the Prologue script:


move Gaius Julius, 20, 50

Set up the campaign script as following:

1) Set up the character normally in descr_strat in an adjacent tile to the character you want him to merge with

2) Put the following lines at the bottom of your descr_strat

script
campaign_script.txt
Create a new text file in the imperial_campaign folder called campaign_script in which write




wait 1
move Gaius Julius, 20, 50 ; character name followed by the co-ordinates you want to move him to
end_script
Do include a few blank lines at the top of the file, it seems to matter.

You can find the co-ordinates of the tile by placing the cursor on it and then typing show_cursorstat into the RomeShell console.

You can find out more about scripts here:
A Beginner Guide to Scripting (https://forums.totalwar.org/vb/showthread.php?t=46738)
and here:
Research: Parameters for commands & console commands (https://forums.totalwar.org/vb/showthread.php?t=46877)

.

BloodBath
08-05-2005, 07:45
Oh God! JeromeGrasdyke!I never thought you would come and help!It really works.Thanks a lot! And also my sincere thanks to Epistolary Richard.
Hmmm,nearly a month since my first post,haha!