• 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!

Wikki tutorials(adding characters)Errors

Vassal

Hopeless Pirate Modder
Storm Modder
Hey Verruck i follow the codes,instructions,etc and everything else but when i open the engine when i play an error occured it says"Runtime error" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> can you tell me what to do?
 
Well dunno how to make it and i don't know how to start a game in modpacherhelper can teach me?
 
The General one, or the `Post-Build` one?

Re: error log.
Open POTC folder.
Open tools.
`Double-click` POTCModHelper.exe
Go to settings tab.
Check Debug Mode.
Click Start Game.
Wait for POTC to crash, then click OK to the box, then click Generate Report, and `copy-paste` it here.
 
I use the "Post build tutorial" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
The one by scheffnow then, not me...

but, the problem could be that there was a typo in the code. Do me a favor, open the file CharacterUtilite.c and look for the "GetNewCharacter" function... se if it is typed like "GetNewCharacter" if not then fix it and report back with what it used to say...
 
Hello, just wanted to say,

The Wiki is fully Interactive, if you register you can add your own things by yourself too <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Also, in cases like that you can post Comments too <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<!--QuoteBegin-NathanKell+--><div class='quotetop'>QUOTE(NathanKell)</div><div class='quotemain'><!--QuoteEBegin-->The General one, or the `Post-Build` one?

Re: error log.
Open POTC folder.
Open tools.
`Double-click` POTCModHelper.exe
Go to settings tab.
Check Debug Mode.
Click Start Game.
Wait for POTC to crash, then click OK to the box, then click Generate Report, and `copy-paste` it here.<!--QuoteEnd--></div><!--QuoteEEnd-->Nthan i followed your instructions in the error log but when i pressed the start new game tab nothing happens
 
And Verruck the other tutorial on making a character in city file doesn't work,when i go to the place i put the character,the character i not there even i start a new game,it doesn't show up! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/ohmy.gif" style="vertical-align:middle" emoid=":eek:" border="0" alt="ohmy.gif" />
 
btw .... did you guys not have added all possible characters in the build ?
i ment i saw that you added so there waz 196/? somethings and no room for more diff. char/npc
 
<!--QuoteBegin-Verruckt+--><div class='quotetop'>QUOTE(Verruckt)</div><div class='quotemain'><!--QuoteEBegin-->scheffnow's is definantly better. did you ever look up that function?<!--QuoteEnd--></div><!--QuoteEEnd-->Hey i have added a new character but its the tutorial you made verruct,by the way what function are you talking? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mellow.gif" style="vertical-align:middle" emoid=":|" border="0" alt="mellow.gif" />
 
@vassal, go back tot he wiki, in the `post-build` sectrion there is a tutorial by scheffnow, use that one. In his tutorial i ran into a problem, and i already explained which function:

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->but, the problem could be that there was a typo in the code. Do me a favor, open the file CharacterUtilite.c and look for the <b>"GetNewCharacter"</b> function... se if it is typed like "GetNewCharacter" if not then fix it and report back with what it used to say...<!--QuoteEnd--></div><!--QuoteEEnd-->

@jack sparrow jr, can you rephrase the question?
 
Verruckt: Remember, it's your tut that got us _all_ started adding characters. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
The Function your talking is this <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/pirate2.gif" style="vertical-align:middle" emoid=":p:" border="0" alt="pirate2.gif" />

ref GetNewCharacter(string Fullname)
{
int i;
ref Character;
for(i=0; i<TOTAL_CHARACTERS; i++)
{
makeref(Character,Characters);
if(Character.fullname == Fullname || Character.id == "0")
{
break;
}
}
return Character;
}
 
That'd be it, yes.
Crap, I can't remember whether that's supposed to be TOTAL or MAX. And I don't have my desktop (waaah). Well, either will work at the moment, so it's no trouble.
 
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->@jack sparrow jr, can you rephrase the question?<!--QuoteEnd--></div><!--QuoteEEnd-->

I ment that i have read somewhere .... that there can be only 196 characters and npc in the game ...... we.lll I could be wrong .....
 
Back
Top