Chemicalvamp
Landlubber
Hi everyone. At first i thought i knew what i was doing but now my game crashes when i try out my new ships <img src="style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" />
All that i know i learned from dissecting supermods ship that was added. (searched all files to see what contained "british brig" and "Brig_rn")
Personally i like the corvette, its speed makes it a great boarding vessel, but after so long you need a better one.
so I made a new ship:
copied corvette_walk.c renamed it to clipper_walk.c
copied the Corvette1 models directory and renamed it to Clipper1 (also the files within i.e. Clipper1.gm)
copied the corvette interface thumbnail and renamed it to Clipper.tga.tx
copied the Corvette1 texture directory and renamed it to Clipper1 (also the files within hull 1 2 and 3 i.e. bortoutClipper1.tga.tx)
here are the changes i made to the game files:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
<b>Pictures.ini</b>
[SHIPS_clipper]
sTextureName = ships\clipper.tga
wTextureWidth = 128
wTextureHeight = 128
picture = ship,0,0,128,128
<b>common.ini</b>
String = Clipper, "Clipper"
String = Clipper_descr,"Description test clipper."
<b>ships.h</b>
#define SHIP_CLIPPER 14
<b>ships_init.c</b>
///////////////////////////////////////////////////////////////////////////
/// Clipper
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_CLIPPER]);
refShip.Name = "Clipper";
refship.Soundtype = "corvette";
refShip.Class = 2;
refShip.Cannon = CANNON_TYPE_CANNON_LBS24;
refShip.MaxCaliber = 24;
refShip.Weight = Tonnes2CWT(700);
refShip.Capacity = 3100;
refShip.CannonsQuantity = 46;
refShip.rcannon = 19;
refShip.lcannon = 19;
refShip.fcannon = 4;
refShip.bcannon = 4;
refShip.MaxCrew = 320;
refShip.MinCrew = 32;
refShip.BoardingCrew = 160;
refShip.GunnerCrew = 40;
refShip.CannonerCrew = 92;
refShip.SailorCrew = 300;
refShip.SpeedRate = 18.5;
refShip.TurnRate = 52.0;
refShip.Price = 168000;
refShip.HP = 3200;
refShip.SP = 100;
refShip.AbordageLocation = "Boarding Deck_02";
refship.Type.Merchant = false;
refship.Type.War = true;
refShip.fWindAgainstSpeed = 2.8;
refShip.sea_enchantment = 2.1;
refShip.lowpolycrew = 12;
refShip.buildtime = 100;
</div>
And i got:
runtime error
I want to add about 8 ships, a few to every class.. mostly class 2, since theres only one. and make it include the ship that came with supermod, rar it and share..
I'm still messing around with it, i made two folders one has a copy of the supermod originals, and the second has my modified versions. ide upload it but its about 30 mb too big. please let me know if you need any more info!
All that i know i learned from dissecting supermods ship that was added. (searched all files to see what contained "british brig" and "Brig_rn")
Personally i like the corvette, its speed makes it a great boarding vessel, but after so long you need a better one.
so I made a new ship:
copied corvette_walk.c renamed it to clipper_walk.c
copied the Corvette1 models directory and renamed it to Clipper1 (also the files within i.e. Clipper1.gm)
copied the corvette interface thumbnail and renamed it to Clipper.tga.tx
copied the Corvette1 texture directory and renamed it to Clipper1 (also the files within hull 1 2 and 3 i.e. bortoutClipper1.tga.tx)
here are the changes i made to the game files:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
<b>Pictures.ini</b>
[SHIPS_clipper]
sTextureName = ships\clipper.tga
wTextureWidth = 128
wTextureHeight = 128
picture = ship,0,0,128,128
<b>common.ini</b>
String = Clipper, "Clipper"
String = Clipper_descr,"Description test clipper."
<b>ships.h</b>
#define SHIP_CLIPPER 14
<b>ships_init.c</b>
///////////////////////////////////////////////////////////////////////////
/// Clipper
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_CLIPPER]);
refShip.Name = "Clipper";
refship.Soundtype = "corvette";
refShip.Class = 2;
refShip.Cannon = CANNON_TYPE_CANNON_LBS24;
refShip.MaxCaliber = 24;
refShip.Weight = Tonnes2CWT(700);
refShip.Capacity = 3100;
refShip.CannonsQuantity = 46;
refShip.rcannon = 19;
refShip.lcannon = 19;
refShip.fcannon = 4;
refShip.bcannon = 4;
refShip.MaxCrew = 320;
refShip.MinCrew = 32;
refShip.BoardingCrew = 160;
refShip.GunnerCrew = 40;
refShip.CannonerCrew = 92;
refShip.SailorCrew = 300;
refShip.SpeedRate = 18.5;
refShip.TurnRate = 52.0;
refShip.Price = 168000;
refShip.HP = 3200;
refShip.SP = 100;
refShip.AbordageLocation = "Boarding Deck_02";
refship.Type.Merchant = false;
refship.Type.War = true;
refShip.fWindAgainstSpeed = 2.8;
refShip.sea_enchantment = 2.1;
refShip.lowpolycrew = 12;
refShip.buildtime = 100;
</div>
And i got:
runtime error
I want to add about 8 ships, a few to every class.. mostly class 2, since theres only one. and make it include the ship that came with supermod, rar it and share..
I'm still messing around with it, i made two folders one has a copy of the supermod originals, and the second has my modified versions. ide upload it but its about 30 mb too big. please let me know if you need any more info!