<!--quoteo(post=163475:date=Sep 24 2006, 04:43 PM:name=Humble)--><div class='quotetop'>QUOTE(Humble @ Sep 24 2006, 04:43 PM) [snapback]163475[/snapback]</div><div class='quotemain'><!--quotec-->
Using the ships_init, I've figured out how to mod ships, well not completely. Just the speed and turning, so I can spin around fast in a circle, LOL. So now I'd like to find a way to mod just my character's ship.
That would require modding a save game I would think? What program would that require and would it be a lot more complex than modding the init files? If so.. nevermind then, my knowledge of programing is one BASIC class back in highschool. Unless there could be an easier way?
<!--QuoteEnd--></div><!--QuoteEEnd-->
I dont know of any easy way (I mean, without coding experience).
You could try to edit your save file with a hexeditor, but thats dangerous, tricky, might not work in any way, and even if it does, when you begin a new game your ship will be the same as before.
An easier way is to edit the code, making an unique ship just for you. Here's what to do:
- open the ships\ships.h and add a new define, like this
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
#define SHIP_MANOWAR 17
#define SHIP_MY_UNIQUE_SHIP 18 // <-- the new define
<!--c2--></div><!--ec2-->
- open the ships\Ships_init.c. Select one of the existing ships and copy its entire code. Paste the code after the MANOWAR.
Remenber to change the begginning of the code properly, like this
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
// (before this point should come the MoW init code)
/// My Unique Ship
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_MY_UNIQUE_SHIP]);
// (then comes the rest of your ship init code)
<!--c2--></div><!--ec2-->
- now open the characters\characters_init.c. There are two lines like
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> ch.Ship.Type = GenerateShip(SHIP_LUGGER, 1); <!--c2--></div><!--ec2-->
change them to
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> ch.Ship.Type = GenerateShip(SHIP_MY_UNIQUE_SHIP, 1); <!--c2--></div><!--ec2-->
- begin a new game to see the effects.
One note: backup your files before doing any change.