Modding guide: making new units

Post new mods and scenarios here.

Moderator: MOD_Commander_The_Great_War

Post Reply
JJKettunen
Posts: 2293
Joined: Tue Mar 12, 2002 6:00 pm
Location: Finland

Modding guide: making new units

Post by JJKettunen »

User avatar
Hellfirejet
Posts: 3040
Joined: Fri Oct 15, 2010 1:19 pm
Location: Fife Scotland
Contact:

RE: Modding guide: making new units

Post 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.
Make it so!
Myrddraal
Posts: 335
Joined: Tue Nov 13, 2012 7:41 am

RE: Modding guide: making new units

Post by Myrddraal »

Answered over @ the slith forum [:'(]
User avatar
Hellfirejet
Posts: 3040
Joined: Fri Oct 15, 2010 1:19 pm
Location: Fife Scotland
Contact:

RE: Modding guide: making new units

Post by Hellfirejet »

That solution did not solve the problem,something else must be crashing the game I'm afraid?[&:]
Make it so!
User avatar
Hellfirejet
Posts: 3040
Joined: Fri Oct 15, 2010 1:19 pm
Location: Fife Scotland
Contact:

RE: Modding guide: making new units

Post by Hellfirejet »

My script files have been made available over on the slitherine forum,thanks for assisting me with this cheers [&o]
Make it so!
Myrddraal
Posts: 335
Joined: Tue Nov 13, 2012 7:41 am

RE: Modding guide: making new units

Post by Myrddraal »

For all of you guys following this on this forum, the picture is completed on the Slith thread.
User avatar
Hellfirejet
Posts: 3040
Joined: Fri Oct 15, 2010 1:19 pm
Location: Fife Scotland
Contact:

RE: Modding guide: making new units

Post by Hellfirejet »

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

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

Image
Attachments
Productionpanel.jpg
Productionpanel.jpg (175.73 KiB) Viewed 377 times
Make it so!
Post Reply

Return to “Mods and Scenarios”