PDA

View Full Version : KTM on custom battle start.



Thor the Bassist
07-30-2008, 12:40
This battle loads and saves perfectly in the editor but doesn't load in battle just kicks back to the choose historic battle menu.


; Custom battle script generated by Romans Battle Editor

battle Osgiliath
playable
huns
sassanids
end
nonplayable
end


start_date 500 summer
end_date 500 summer


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; >>>> start of factions section <<<<

faction sassanids
settlement
{
level village
tile 69 152

year_founded 1264
fortification none roman, walls 0 towers 0 gates 0 gate_defences 0
population 0
battle_pos 32.947 407.451 -19.628 rotation_0 0
plan_set metw_osgiliath_set
faction_creator sassanids
}
character Boromir the_Mighty, general, age 25, , x 69, y 152

army
unit gondor general soldiers 30 exp 6 armour 3 weapon_lvl 2
unit gondor ithilien rangers soldiers 45 exp 2 armour 0 weapon_lvl 1
unit gondor ithilien rangers soldiers 45 exp 2 armour 0 weapon_lvl 1
unit gondor swords soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor swords soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor spears soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor spears soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor spears soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor swords soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor archers soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor archers soldiers 60 exp 0 armour 0 weapon_lvl 0
unit gondor archers soldiers 60 exp 0 armour 0 weapon_lvl 0

faction huns
character Burthrak Headsplitter, general, age 20, , x 69, y 152

army
unit mordor general soldiers 25 exp 3 armour 1 weapon_lvl 2
unit mordor olog soldiers 5 exp 0 armour 0 weapon_lvl 0
unit mordor orc spears soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc spears soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc spears soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc spears soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc swords soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc swords soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc archers soldiers 300 exp 0 armour 0 weapon_lvl 0
unit mordor orc archers soldiers 300 exp 0 armour 0 weapon_lvl 0
sieging


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; >>>> start of battle section <<<<

battle 69, 152 ambient_settlement
variable_weather_and_time ( day_time 12.00, year_day 0, duration 24.00, weather_seed 0 )

home_faction sassanids
alliance can_deploy can_view sassanids, defending
alliance can_deploy can_view can_delay huns, attacking

army sassanids, 0, supporting_armies 0

deployment_area_point -156.709, -502.067
deployment_area_point -426.509, -301.941
deployment_area_point -523.188, 2.591
deployment_area_point -406.697, 381.515
deployment_area_point -131.223, 544.593

unit 0, -396.424, 49.739, 89, formation_type square, formation_width 28.871
unit 1, -399.180, 99.288, 88, formation_type square, formation_width 44.434
unit 2, -397.745, 165.870, 88, formation_type square, formation_width 63.732
unit 3, -325.913, 29.007, 90, formation_type square, formation_width 40.928
unit 4, -326.366, -5.181, 87, formation_type square, formation_width 72.557
unit 5, -333.213, 28.098, 87, formation_type square, formation_width 38.044
unit 6, -332.486, -5.013, 86, formation_type square, formation_width 63.308
unit 7, -332.184, -41.129, 91, formation_type square, formation_width 79.351
unit 8, -324.060, -40.230, 90, formation_type square, formation_width 94.364
unit 9, -326.971, -74.500, 78, formation_type square, formation_width 91.931
unit 10, -316.390, -127.950, 70, formation_type square, formation_width 91.946
unit 11, -334.040, -73.078, 77, formation_type square, formation_width 60.255


army huns, 0, supporting_armies 0

deployment_area_point 426.274, 500.186
deployment_area_point 652.326, 331.136
deployment_area_point 719.425, 31.565
deployment_area_point 666.322, -263.998
deployment_area_point 497.876, -448.855

unit 0, 674.943, -37.796, -80, formation_type square, formation_width 76.546
unit 1, 678.444, 13.359, -92, formation_type square, formation_width 90.094
unit 2, 600.568, -130.674, -83, formation_type square, formation_width 75.912
unit 3, 611.682, -131.492, -83, formation_type square, formation_width 88.186
unit 4, 618.276, -130.602, -82, formation_type square, formation_width 68.805
unit 5, 628.935, -130.042, -83, formation_type square, formation_width 55.032
unit 6, 612.819, -21.295, -85, formation_type square, formation_width 70.229
unit 7, 631.278, -28.384, -84, formation_type square, formation_width 37.680
unit 8, 623.449, 84.016, -84, formation_type square, formation_width 163.264
unit 9, 640.466, 76.416, -84, formation_type square, formation_width 137.500




;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; >>>> start of objectives scripting section <<<<

objectives

alliance 0
condition destroy_or_rout_enemy

alliance 1
condition destroy_or_rout_enemy

Anything in there stand out as wrong?

Dol Guldur
07-30-2008, 14:01
Does it not give an error when exiting?

Is it meant to be "the_Mighty" with the underscore???

Try putting in deliberate errors in the unit names (it does report those) and see where it is being read too.

Thor the Bassist
07-30-2008, 14:30
There's no error when exiting other than one about regions.txt from the campaign.

The underscores are fine its first name: "Boromir" last name "the_Mighty".

I believe its reading all the way to the bottom of the units because it gives an error when I change the last name in the list so its reading up to that point.

Dol Guldur
07-30-2008, 15:17
The text associated with the {the_Mighty} internal surname is "the_Mighty"???

Anyway, maybe it is to do with the settlement then. Those can be fiddly things. Is it for BI or RTW?

HBs normally create reports on exits after KTMs in my experience. Common mistakes anyway.

The regions text may be masking another error report - you should resolve that one first.

Thor the Bassist
07-30-2008, 15:39
The regions thing is a P in the A. I dont know how to fix it it keeps telling me the region andrast is not found in the stringtable.

Its for BI and it is a custom settlement (bollocks) so it could be that but it should be fine from what i've done previously. I would have thought that if the settlement wouldn't work it would freeze sometime during the load bar not before it.

Dol Guldur
07-30-2008, 16:50
Dunno...I'd resolve that regions problem though or else you're gonna be blind to other error messages. It sounds like a coding error that could have fatal consequences.

EDIT: Also, you have assigned named character names to generals - try removing the surnames altogether.

Thor the Bassist
07-30-2008, 18:40
I dont know anything about the campaign map files - I believe Burns did that. The error is:


Script error in bi/metw/data/world/maps/base/descr_regions.txt at line 13 column 1

Couldn't find region name 'Andrast' in stringtable.

I dont know what the stringtable is but I guess I need to fiddle with that :dizzy2:.

As for the names Boromir actually isn't a named character in metw - Denethor is only 16 at the beginning of the campaign.

EDIT: I believe I've found the solution to the error.

EDIT2: It didn't fix it. The stringtable is the text files but it isn't finding the file which is in the right place.

Aradan
07-30-2008, 21:47
The region entry in descr_regions.txt has an extra space character, so it reads "Andrast ". Just get rid of that space.

Thor the Bassist
07-30-2008, 22:06
Fixed it. Seemed the base folder was searching in the BI regions and settlements for metw regions and settlements.