Modding guide: making new units (Full Version)

All Forums >> [Current Games From Matrix.] >> [World War I] >> Commander - The Great War >> Mods and Scenarios



Message


JJKettunen -> Modding guide: making new units (1/7/2013 9:49:58 AM)

http://www.slitherine.com/forum/viewtopic.php?f=218&t=40182




kirk23 -> RE: Modding guide: making new units (1/7/2013 1:20:46 PM)

Ok I have an unknown problem,if I add the Battlecruiser to the game as Austrian as you specified,the game crashes,if I rename it Battleship instead and run the game all works perfectly.I have my Battlecruiser script below can anyone tell what the problem is because I'm stumped?

{
id = 22,
name = "battlecruiser",
type = "naval",
chassis = "water",
class = "naval",
icon = "battlecruiser",
levels =
{
{
hp = 100,
mp = 14,
ap = 1,
LOS = 3,
range = 1,
shock = 2,
attack = 12,
defense = 10,
airattack = 6,
airdefense = 18,
bombard = 4,
assault = 0,
ammunition = 2,
}
},
retreat = 0,
costPP = 70,
costMP = 8,
turns = 20,
upkeepPP = 2,
upkeepMP = 0,
weapon = "heavy",
factions = { 0, 1, 2, 3, 4, 8, 10 },
strengthValue = 25,

stats =
{
groundattack = 1,
airattack = 6,
navalattack = 7,
subattack = 1,
stratattack = 8,
basedefense = 10,
highdefense = 8,
bombard = 3,
shock = 2,
},
firstStrike = 1,
},
},
}


Before anyone says anything I know that Austria never ever had Battlecruisers,I just followed the instructions from the Slitherine forum.




Myrddraal -> RE: Modding guide: making new units (1/7/2013 1:57:39 PM)

Answered over @ the slith forum [:'(]




kirk23 -> RE: Modding guide: making new units (1/7/2013 2:36:15 PM)

That solution did not solve the problem,something else must be crashing the game I'm afraid?[&:]




kirk23 -> RE: Modding guide: making new units (1/7/2013 3:53:26 PM)

My script files have been made available over on the slitherine forum,thanks for assisting me with this cheers [&o]




Myrddraal -> RE: Modding guide: making new units (1/7/2013 7:35:01 PM)

For all of you guys following this on this forum, the picture is completed on the Slith thread.




kirk23 -> RE: Modding guide: making new units (1/7/2013 9:38:15 PM)

Thanks for all you help much appreciated.[;)]

There be Battlecruisers to build in game now chaps![:D]

[image]local://upfiles/36378/C868243B81DB4EF882A3BD4EC2427C87.jpg[/image]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.808594