• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

editing ship files

Captain cannon

Landlubber
I am not the most experienced person so don't laugh <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> How do you edit files like ships, character and weapon files? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mellow.gif" style="vertical-align:middle" emoid=":|" border="0" alt="mellow.gif" />
 
We wouldn't laugh, Captain Cannon! We're happy to help if we can... The things you've asked about are not easily explained, however. Exactly what is it you wish to do? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />
 
Is possible, but you have to start a new game. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />

Edit PROGRAM\Characters\characters_init.c to edit your character's profile.
Edit PROGRAM\Ships\ships_init.c to change ships around.
Edit PROGRAM\ITEMS\initItems.c to change around items.
<b><span style='color:red'>BACK UP ALL FILES BEFORE EDITING TEM!!!</b></span>

Check out <a href="http://robotsdontbleed.com" target="_blank">http://robotsdontbleed.com</a> - he has a lot of useful tutorials, or you could try the Wiki. The link is on the POTC Modding forum (Pinned)

Cheers
Colo
 
Thanks alot <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
Look for the tutorial "Making new items" at <a href="http://robotsdontbleed.com/tutorials/" target="_blank">Robots Dont Bleed</a>.
 
I've tried it and i've made an new sword, and set it so I can buy it at the stores at level 1, but i can't get it!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> I've tried starting a new game but that still won't work.
If you don't know why this is could you tell me how to equip it as your starting weapon.
 
Ok, open up characters_init.c.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PROGRAM/Characters/characters_init.c<!--c2--></div><!--ec2-->
Scroll all the way down to the bottom, where it says stuff about the goods in your hull. It should look like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// MainCharacter start parameters
    ch.Ship.HP = 300;
    ch.Ship.crew.quantity = 30;
    SetCharacterGoods(&Characters[0],GOOD_BALLS,300);
    SetCharacterGoods(&Characters[0],GOOD_GRAPES,100);
    SetCharacterGoods(&Characters[0],GOOD_KNIPPELS,100);
    SetCharacterGoods(&Characters[0],GOOD_BOMBS,300);
    SetCharacterGoods(&Characters[0],GOOD_CHOCOLATE,1500);
    SetCharacterGoods(&Characters[0],GOOD_LEATHER,300);<!--c2--></div><!--ec2-->
Add this under that:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GiveItem2Character(ch, "ITEM ID OF THE NEW SWORD YOU MADE");<!--c2--></div><!--ec2-->
C is case sensitive, so be sure you copied exactly what I wrote (with the Sword's Item ID filled in)

The item ID is this: (quoted from the Windmill Slayer)
<!--QuoteBegin-PROGRAM/ITEMS/initItems.c+--><div class='quotetop'>QUOTE(PROGRAM/ITEMS/initItems.c)</div><div class='quotemain'><!--QuoteEBegin-->//windmill slayer
makeref(itm,Items[n]);
itm.id = "blade23"; <span style='color:red'><b><<<<This thing right here!!</span></b>
itm.groupID = BLADE_ITEM_TYPE;
itm.name = "itmname_blade23";
itm.describe = "itmdescr_blade23";
itm.folder = "items";
itm.model = "blade23";
itm.picIndex = 16;
itm.picTexture = "ITEMS_3";
itm.price = 10000;
itm.dmg_min = 30.0;
itm.dmg_max = 50.0;
itm.piercing = 0;
itm.minlevel = 10;
itm.rare = 0.1;
itm.block = 20;
itm.param.time = 0.1;
itm.param.colorstart = argb(64, 64, 64, 64);
itm.param.colorend = argb(0, 32, 32, 32);
n++;<!--QuoteEnd--></div><!--QuoteEEnd-->
Hope it helps.
-Colo
 
Do you have to add the line "giveitem2character" 'cause I haven't got it in the character_init.c file. When you change the stats for ships or items do you have to press the "I" key or something in the game to change them to what you set?
 
I think you need to buy them again, because the stats are saved for every ship you own. I'm not 100% sure about that though. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
I don't know... there seemed to be too many risks involved with that mod. I just make a new game.

Yeah, just add it onto the end.
 
If your using build 12 with ccc stormy start and swak weapons <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" /> ...i can help you <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
It's a nice challenge. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
Back
Top