View Full Version : calvary charges crash my game,help please
VAE VICTUS
01-25-2006, 07:21
i messed around with the eastern infantry stats like so:
type east infantry
dictionary east_infantry ; Eastern Infantry
category infantry
class spearmen
voice_type Light_1
soldier persian_sparabara, 60, 0, 1
mount_effect horse +4, chariot +4, camel +4
attributes sea_faring, hide_forest, can_sap
formation 1, 1, 2, 2, 5, square, phalanx
stat_health 1, 0
stat_pri 7, 6, no, 0, 0, melee, simple, piercing, spear, 25 ,0.73
stat_pri_attr no
stat_sec 5, 2, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr no
stat_pri_armour 3, 2, 5, leather
stat_sec_armour 2, 2, metal
stat_heat 0
stat_ground 2, 1, 0, -1
stat_mental 2, normal, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 100, 100, 40, 50, 100
ownership eastern, slave
the game works,but everytime (in a battle)if cavalry charge into them the game crashes, and no err sign shows up and i have show_err on it so i dont know whats wrong.can anyone help me?
Lentonius
01-25-2006, 16:04
I would not be able to certify this, but in my mind the line
mount_effect horse +4, chariot +4, camel +4
may be mucked up, as it is the only thing that would effect cavalry charges. I think it's the horse bit maybe, not having a comma before it..
If that bit was mucked up when the 'horses' engaged in a battle the game would not recognise their bonuses to the infantry...
good luck:2thumbsup:
VAE VICTUS
01-25-2006, 23:14
well it seems that only cavalry units have that line so i deleted and i still have the same problem.thia is what it looks like now:
type east infantry
dictionary east_infantry ; Eastern Infantry
category infantry
class spearmen
voice_type Light_1
soldier persian_sparabara, 60, 0, 1
attributes sea_faring, hide_forest, can_sap
formation 1, 1, 2, 2, 5, square, phalanx
stat_health 1, 0
stat_pri 7, 6, no, 0, 0, melee, simple, piercing, spear, 25 ,0.73
stat_pri_attr no
stat_sec 5, 2, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr no
stat_pri_armour 3, 2, 5, leather
stat_sec_armour 2, 2, metal
stat_heat 0
stat_ground 2, 1, 0, -1
stat_mental 2, normal, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 100, 100, 40, 50, 100
ownership eastern, slave
any ideas?
VAE VICTUS
01-25-2006, 23:18
correction, even when they come into contact with ground units the game will crash with no explanation
Thats easy. You left out the attribute for stat_pri_attr.
wlesmana
01-26-2006, 19:32
If EDU.txt is bugged, the game probably wouldn't load.
Did you edit DMB at all? Are you using the right skeleton?
Its most likely he doesnt have a cavalry swordman skeleton in the DBM and so when the unit switches it crashes.
Is it only one unit? If it is its in the DBM, Unit file is parsed on loading the game, the Model file is only parsed when loading a battle.
Lt
Watchman
01-27-2006, 14:45
Shouldn't phalanx troops have all kinds of things in stat_pri_att ? Like some sort of "spear" and, assuming it's the latest patch, bonus_spear or whatever that now was ?
wlesmana
01-28-2006, 11:56
No, those are not required.
Dromikaites
02-04-2006, 09:01
It looks to me that those sparabara experience the old "spears + sword" bug.
There seems to be a problem with models that use the combination of spearman skeleton for the primary weapon and swordsman for the secondary one.
That bug only applied to infantry not cavalry. and in 1.5 its fixed.
I would say he is missing a skeleton and has the secondary sword causing the crash, I have seen this before many times.
Lt
Dromikaites
02-05-2006, 10:47
That bug only applied to infantry not cavalry. and in 1.5 its fixed.
I would say he is missing a skeleton and has the secondary sword causing the crash, I have seen this before many times.
Lt
You're probably right about the sword. However in 1.5/1.6 if the model has a primary weapon and a secondary one but only one skeleton, the game doesn't load and there's an error report telling us we're missing one skeleton (I don't know if this was also the case fore 1.2). If he uses 1.5/1.6 with -show_err he should be able to spot that.
So he either doesn't use 1.5/1.6 or there's another skeleton combination causing the CTD, but you are right, the problem is due to the sword. What if he simply didn't add the sword as the secondary weapon to the model?
wlesmana
02-06-2006, 06:50
Or using the wrong skeleton. For instance using fs_javelinman. Because that is buggy for actual melee. He might have been using an entry for DMB that has 2 skeletons but in EDU he only gave it primary attack or changed missile into melee.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.