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

Small Help Needed?

Noooo, don't pay the church, go out into the jungle and rescue a few damsels - they'll give your reputation a boost, and you'll make a profit in the bargain! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
Especially with the birds that offer to sleep with you, mate!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" /> <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" />
 
In quests_reaction.c, case donation.
It's been a while since I wrote that, so I don't recall what numbers you have to change. But it _should_ be relatively `self-explanatory`.
It works on a sliding scale btw; the further your rep is (in either direction) from neutral, the more it costs to change it.

Also change the amounts given in each priest's dialog.
 
Hello, sorry.

I just read some of the `Wiki-tutorials`, and i have some problems
with adding a character without getting in the way of other mods.

In the Section 'Adding characters to PotC' by Scheffnow a file named
NK.c (whoever NK might be <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" /> ) should be edited to define
the `Mod-to`-be. This one was renamed to buildungs.c, which does not
appear to be the file with the same function as NK.c intitaly was.

Am i just easily confused ? Do i have to use buildings.c ?

Thanks in advance <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />
 
Yup, it's now called BuildSettings.h, and it just has lots _more_ of those #defines. There are a lot more toggles in build 11.
So just add a new one somewhere in it, maybe even hit enter a few times on either side of it so it stands alone; and also add a comment (// blahaha) to say what it does.
 
Okay, i'll do it....

'There is no trying, either you do it or not.'
-little green 900 year old guy with no idea what grammar is-


Laterz !
 
Hmmm, well (1.. 2.. 3.. 4.....)

Okay now i cooled of a bit. But i just can say that the tutorial i was refering to,
does not work, for me, that is. Maybe i am just very incompetent. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" />

But i guess there are some typos in the `code-examples`, like a missing
semicolon in the section about editing the reinit.c, between the brackets.
I also suspect one or the other procedure that is used might be outdated,
because Verruckt uses different procedures to add characters
in his tutorials.

Well, as i said i am probably just incompetent. Or maybe the tutorial
is not flawless. Could some Crack probably review it ? I am desperate,
i already worked out a whole quest and can only add the locations i
need in a brute force manner, so far. If i follow the tutorial to the letter
i just get an error message from the C++ runtime Library concerning
an Abnormal program Termination.

It is pretty sure a far voyage to create a quest, but it is frustrating to
stumble at the first step. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />

Thank you very much in advance.
Manbert
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_praise.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="icon_praise.gif" />
 
Looks fine to me (with one exception; GetNewCharacter should be gGetNewCharacter in all instances; fixed now).

What errors are you getting? Go to engine.ini and set (per the tutorial) tracefilesoff = 0 and then post your error log.

Verruckt's character tutorials were written before the latest build, and thus handle character creation by adding to a character init file (and thus require starting a new game). The info they contain is certainly still true, however, and will still be helpful.
 
Hey Thanks so far, yeah before i changed the GetNewCharacter to
gGetNewCharacter i got an error in my Modfile in the corresponding
line.

Now the game does not crash right away, but now it just freezes, the
error message in the error.log file :

RUNTIME ERROR - file: modelsmodels.c; line: 195
missed attribute: fullname
RUNTIME ERROR - file: modelsmodels.c; line: 195
no rAP data
(Repeated very many times)

Probably just another of my mistakes, i am actually famous for
producing those whenever i start to code <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />

And another thing, refering to the system log the Game tries to
open a file that is not there, i also checked the corresponding folder
myself (message in the system.log):

Scanning modules
(... left out a few lines here ...)
BeginScene
The method call is invalid For example, a method's parameter may have an invalid value
resourcesoundsmusicTITLE.ogg: Can`t open file
resourcesoundsmusicTITLE.ogg: Can`t open file
resourcesounds: Can`t open file
resourcesounds: Can`t open file

This is especially weird isn't it ? Not necessary to mention that i did not
remove those files, i think.

Thankx again.
Manbert<i></i>
 
Regarding fullname: bug in function. Should check character.id, not fullname.
Regarding TITLE: set PGMUS to 0 if you don't have the Pirates! Gold Music Pack installed
Regarding sounds: I have no idea.
 
Thanks a lot !

Especially because of the short time it took to answer my silly requests.

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />
Manbert
 
Sameday service, with a smile. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
You're quite welcome. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Well <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> (With special thanks to Cat)

Another example from my error.log :

RUNTIME ERROR - file: Reinit.c; line: 68
Invalid function call
RUNTIME ERROR - file: Reinit.c; line: 68
function 'Reinit' stack error
RUNTIME ERROR - file: Reinit.c; line: 68
Invalid function call
RUNTIME ERROR - file: Reinit.c; line: 68
function 'Reinit' stack error

My addition to reinit.c sits at lines 36 to 39 JIC you wondered.
A little piece of my reinit.c :

//trace("bef init items");
if(LoadSegment("itemsinitItems.c"))
{
InitItems(); // <----------------- this is line 68
//trace("after init items in if");
UnloadSegment("itemsinitItems.c");
}
//trace("after init items");

Now, after i changed the "fullname" in modelsmodels.c
to character.id, the game does not freeze anymore
(the sound files seem to be no prob at all, after all)
but the character i added doesn't show up.
Isn't there something that should be done about the
charactersInit - files in order to add new characters ?

I somehow can't shake the feeling i am the only one having so
MANY problems in the very beginning.

Laterz !
 
errrm.... Oxbay_port.
Location.locator was errr... goto3 (so i could see him
right away.)
Everything else was literally from the Wiki.

I also tried to place him sitting in the tavern, which also
did not work.
 
So he just didn't appear?
And your little init function was called from reinit()?

Hmm. If still no luck and you desire, send me the modified files and I'll have a peek.
 
Yup i modified the reinit.c just like the Wiki told me to.
But i guess its best to send you the files.

Thanx again !

Duke Manbert
 
Back
Top