What am i doing wrong here?
I have tried managed to get the game to load and with realistic ship purchase off all ships are generated as normal depending on your rank. When i turn realistic ship purchase on the game still loads but only the ships from rand 2 are generated or more spacifically those marked in shipsuntilities as.
And not all ships from that group are generated, only Lugger, Bermuda Sloop, Tartan and War Tartan are generated. I figured because in the original code i had done it like this for every rand.
I figured maybe its because of this missing for the above the above rand.
So i added each rand into the realistic ship purchase enteries and the game wouldn't load. I then thourght maybe its because there are already open and closed brackets which are effecting code, but if i remove them from all rands the game doesn't load any ships.
I then made it so the ships for none realistic mod would be all enetered together and the ones for the realistic mod would have there enteries but that didn't work instead no ships was generated because it doesn't know which ships to generate for which rand due to the rands not been part of the realistic ships purchase enteries.
How do i work my way around this. Bellow is the shipsutilities file which i have got working. Also included is the _mod_on_off file which is used to turn the mod on or off obviously. Any help on this would be very helpfull and much appritiated.
Thanks in advance
Luke.
I have tried managed to get the game to load and with realistic ship purchase off all ships are generated as normal depending on your rank. When i turn realistic ship purchase on the game still loads but only the ships from rand 2 are generated or more spacifically those marked in shipsuntilities as.
Code:
"ship2");
And not all ships from that group are generated, only Lugger, Bermuda Sloop, Tartan and War Tartan are generated. I figured because in the original code i had done it like this for every rand.
Code:
if(!REALISTIC_SHIP_PURCHASE) // = If Realistic Ship Purchase is NOT enabled
{
}
if (iTest_ship == 2)
{
if (iTest_ship == 1) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_LUGGER), "ship2");
if (iTest_ship == 2) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_BERMSLOOP), "ship2");
if (iTest_ship == 3) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_PINK), "ship2");
if (iTest_ship == 4) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_LUGGER_h), "ship2");
if (iTest_ship == 5) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Galeoth_h), "ship2");
if (iTest_ship == 6) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Cutter), "ship2");
if (iTest_ship == 7) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Sloop_Cutter1_18), "ship2");
if (iTest_ship == 8) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_LuggerVML), "ship2");
if (iTest_ship == 9) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_HMS_Bounty), "ship2");
if (iTest_ship == 10) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Hooker1), "ship2");
if (iTest_ship == 11) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_brig_n1), "ship2");
}
else // = If Realistic SHIP_PURCHASE IS enabled
{
if (iTest_ship == 1) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_BERMSLOOP), "ship2");
if (iTest_ship == 2) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Cutter), "ship2");
if (iTest_ship == 3) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_LuggerVML), "ship2");
if (iTest_ship == 4)FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_WAR_TARTANE), "ship2");
if (iTest_ship == 5)FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Gunboat), "ship2");
if (iTest_ship == 6) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_BERMSLOOP), "ship2");
if (iTest_ship == 7) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_EDINBURG), "ship2");
if (iTest_ship == 8) FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_Cutter), "ship2");
}
I figured maybe its because of this missing for the above the above rand.
Code:
}
if (iTest_ship == 2)
{
So i added each rand into the realistic ship purchase enteries and the game wouldn't load. I then thourght maybe its because there are already open and closed brackets which are effecting code, but if i remove them from all rands the game doesn't load any ships.
I then made it so the ships for none realistic mod would be all enetered together and the ones for the realistic mod would have there enteries but that didn't work instead no ships was generated because it doesn't know which ships to generate for which rand due to the rands not been part of the realistic ships purchase enteries.
How do i work my way around this. Bellow is the shipsutilities file which i have got working. Also included is the _mod_on_off file which is used to turn the mod on or off obviously. Any help on this would be very helpfull and much appritiated.
Thanks in advance
Luke.