View Full Version : I tried adding Archers to RTR, but it crashes on campaign map load
Okay, I was fed up with no archers for Rome in Rome: Total Realism, so I copied some archers from Persia into Rome. The descr_unit follows:
type aor roman archer
dictionary rtr_aor_asia_roman_archer
category infantry
class missile
voice_type Light_1
soldier aor_roman_eastern_archer, 50, 0, 0.8
attributes sea_faring,hide_forest,hide_long_grass,can_sap,hardy
formation 1, 1, 2.4, 2.4, 4,square
stat_health 1, 0
stat_pri 5,2, arrow, 130, 30, missile, archery, piercing, none, 25, 1
stat_pri_attr no
stat_sec 7,2, no, 0, 0, melee, simple, piercing, sword, 0, 0.5
stat_sec_attr no
stat_pri_armour 8, 2, 0, flesh
stat_sec_armour 0, 0, flesh
stat_heat 0
stat_ground 0, 0, 0, 0
stat_mental 5,low,untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 540, 0, 52, 56, 540
ownership slave, romans_scipii, romans_julii, romans_brutii, roman
I left the dictionary the same, so I have no idea what's wrong. It didn't crash until I added it to the building, via Hadrian. Here's the building line:
recruit "aor roman archer" 0 requires factions { roman, } and not marian_reforms No idea what's wrong... Help, please? :furious3:
TruePraetorian
01-29-2008, 00:20
Okay, I was fed up with no archers for Rome in Rome: Total Realism, so I copied some archers from Persia into Rome. The descr_unit follows:
type aor roman archer
dictionary rtr_aor_asia_roman_archer
category infantry
class missile
voice_type Light_1
soldier aor_roman_eastern_archer, 50, 0, 0.8
attributes sea_faring,hide_forest,hide_long_grass,can_sap,hardy
formation 1, 1, 2.4, 2.4, 4,square
stat_health 1, 0
stat_pri 5,2, arrow, 130, 30, missile, archery, piercing, none, 25, 1
stat_pri_attr no
stat_sec 7,2, no, 0, 0, melee, simple, piercing, sword, 0, 0.5
stat_sec_attr no
stat_pri_armour 8, 2, 0, flesh
stat_sec_armour 0, 0, flesh
stat_heat 0
stat_ground 0, 0, 0, 0
stat_mental 5,low,untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 540, 0, 52, 56, 540
ownership slave, romans_scipii, romans_julii, romans_brutii, roman
I left the dictionary the same, so I have no idea what's wrong. It didn't crash until I added it to the building, via Hadrian. Here's the building line:
recruit "aor roman archer" 0 requires factions { roman, } and not marian_reforms No idea what's wrong... Help, please? :furious3:
Maybe, as for the first bold, try changing it back to the original archer instead of aor_roman_eastern_archer.
For the second, its self explanatory I would think :yes:
Maybe, as for the first bold, try changing it back to the original archer instead of aor_roman_eastern_archer.
For the second, its self explanatory I would think :yes:
What's the original archer? I'd love to just have it back, but RTR overwrote the original units and added all of it's own, so I can't just add it back. I wish I could make a seperate install, but it just says "Do you really want to remove this and all of it's files". Also, I don't know what's self explanatory. I'm really new to this :laugh4:
TruePraetorian
01-29-2008, 03:02
Oh, my mistake. Didn't know you were new :embarassed: .
What I meant by original is that the line says "roman_eastern" or whatever, shouldn't it say parthian, or again whatever faction you copied it from? Try that, it might be referencing the wrong model. Also, you might want to check out some guides on the forums about adding new units. I was looking at one today for my problem about hording, and its a very good tutorial...it also walks you through taking a unit from one faction and copying it to another, which is exactly what you are doing.(Im not looking at your post right now and am having trouble with internet, so sorry I can't provide links...it honestly makes me feel bad :sad:).
For the "self explanatory" thing, the second word I bolded just says "roman" under faction ownership. Either you forgot to add "romans_senate", or it is there for no good reason. Delete it if it was the latter, otherwise replace it with romans_senate.
Red Spot
01-29-2008, 11:45
like TruePraet. already pointed out the tutorials in the scriptorium will help you a lot but will require you taking the time to understand the hierarchie of files used/modded ...
Anyway to get an archer to use quick and dirty ... you basicly did the correct stuff, if thats an existing archer and all you did was add the "roman" tag than all I can see is that you did the correct thing, though I cant help suggesing not to use Hadrian and Caligula (?) tools, they are old and iirc all the people that I know of using it I know of cause they ended up posting topics "it crashes my game ....!!"
If the archer is available to romans, meaning the unit has been properly set up for you to use than all you need to do is add a recruitment-line in export_descr_buildings .. though I cant help think that the unit isnt, as if it would be properly set up why cant you recruit it ...?!?
I would almost say the unit has no texture in descr_model_battle, but that doesnt matter afaik when just on the campaign-map...
G
I've been using Caligula to add some units, it works good, but I had a problem with Hadrian making an entire script like this:
and not and not rare_resource }
for every one. Thank god for Notepad++!
Did you also add the tag for romans_julii (roman faction in RTR) in the descr_model_battle.txt ?
Anyway, in the EDU, if you add the tag roman then you don't need to add ownership roman_julii and roman_scipii since roman is the culture which included both romans_julii (Republic of Rome) and romans_scipii (Rebel faction in custom battle).
Also after every changes it is wise to delete the map.rwm from base folder.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.