Page 1 of 1

Modding guide: making new units

Posted: Mon Jan 07, 2013 7:49 am
by JJKettunen

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 11:20 am
by Hellfirejet
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.

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 11:57 am
by Myrddraal
Answered over @ the slith forum [:'(]

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 12:36 pm
by Hellfirejet
That solution did not solve the problem,something else must be crashing the game I'm afraid?[&:]

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 1:53 pm
by Hellfirejet
My script files have been made available over on the slitherine forum,thanks for assisting me with this cheers [&o]

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 5:35 pm
by Myrddraal
For all of you guys following this on this forum, the picture is completed on the Slith thread.

RE: Modding guide: making new units

Posted: Mon Jan 07, 2013 7:38 pm
by Hellfirejet
Thanks for all you help much appreciated.[;)]

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

Image