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

Hornblower Main Quest

Darth-me

Landlubber
Ok, so far I'm making the first chapter of Midshipman Hornblower, where he's onboard the ship (what's it called again) at anchor in Spithead. (this section will be very condensed). You will have no ship of your own (somehow), if anyone could tell me how, I'd be very happy. I'm thinking either dock it at some other random port, but then it would appear on your ship page, or just not allow you to sail the ship.

Here's the code:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>// Hornblower Quest -->
case "Hornblower_start":
SetEnterLocationQuest("Tutorial_Deck", "Hornblower_start_check", 0);
break;


case "Hornblower_start_check":
if(pchar.name == "Horatio" && pchar.lastname == "Hornblower")
{
PChar.quest.Hornblower = "The_Midshipman_Berth";
}
break;


case "Go_to_Duel":
PChar.quest.Hornblower = "Duel";
DeleteEnterLocationQuest("Tutorial_Deck", "Hornblower_start_check");
//SetQuestHeader("Hornblower_quest");
Pchar.quest.Hornblower_Duel.win_condition.l1 = "location";
Pchar.quest.Hornblower_Duel.win_condition.l1.location = "redmond_port";
PChar.quest.Hornblower_Duel.win_condition = "Hornblower_Duel";
break;


case "Chris_Ship_Search":
AddPartyExp(pchar, 100);
</div>

So, can anyone tell me if that's right?

But when I try to load the game, it crashes, then points me (in the error log) to a line miles from where i was working, and says:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>COMPILE ERROR - file: quests\quests_reaction.c; line: 15974
Duplicate variable name: iNation
</div>

Thanks
 
Maybe you should duel somewhere else, but not in port, I suggest some beach (maybe temporary) But I have no idea where that error comes from!
 
Is this going to be a main quest where the player actually plays Hornblower? That'd be awesome! In that case you could just set the player ship to the Indefatigable; after all that IS the ship the player sails on. Then you can disable the go-to-sea locator, so you can't sail her. That should work. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />

As for your problem: I don't actually see an error in your code, unless the missing <i>break;</i> at the end of <i>case "Go_to_Duel":</i> really isn't there. In that case adding that <i>break;</i> would hopefully solve the problem.
 
Yes it is a quest where you play as Hornblower. That idea should work! While Hornblower is on the whatever it's called before he moves to the indefatigable, just make it so you can't sail of in the indefatigable, then, after the duel, go to the scene where Hornblowers taking charge of the prize full of rice. That would work!
 
<!--quoteo(post=241164:date=Feb 25 2008, 02:35 PM:name=Darth-me)--><div class='quotetop'>QUOTE (Darth-me @ Feb 25 2008, 02:35 PM) <a href="index.php?act=findpost&pid=241164"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->where does the <i>break;</i> go?<!--QuoteEnd--></div><!--QuoteEEnd-->

For the break; it always goes at the end of your case, so far they are where they should be in your code, however the "Chris_Ship_Search" do not have the break; at the end, I think it's that sentence that Pieter were referring to not the "Go_To_Duel" as he mention. Also check the other work that you done and make sure they are no miss in it. What I mean is that make sure that the : and the ; are at the right place. Missing those will give you an error with the engine.exe, also you won't see anything in the error log for this.

For the break; If you miss any the error log will do that, it will report an error way after where you enter the code for the quest. So break; close the case, if break; is missing the case is not close and the game will continue loading codes until it can't then crash. And it will report an error where it crash. So if the game continue reading codes and crash at line 15987 in the quest_reaction.c file, the error log will say that line 15987 as an error and need attention.

Hope this help.


Cheers, <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Ehm; never mind. The <i>break;</i> already is there; I didn't pay proper attention. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
Did you have that error before making any changes? Do you have a backup of your PROGRAM folder before the changes? If so, put the backup back, then put your code changes in again and try and find out when the error starts to occur. Also you might want to have a look at line 15974 in quests\quests_reaction.c to see what's there. Open the file in Notepad/Notepad++ and use Ctrl+G to skip straight to a certain line.

Also now that we have support for actual separate storylines in the Alpha 8 WIP version, your quest should become a part of this at some point. See attached screenshot. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
I don't know but it's seem there's gonna be a lot of work for a story line with Horatio, having the ability to choose a story line in the future build will be totally kool. Great work guys. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />


Cheers, <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
His first posting is aboard the HMS <i>Justinian</i> (74) under Captain Keen.

Got any questions, fire away! I'll be glad to help. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Of course. But we happen to HAVE an HMS Indefatigable, but not HMS Justinian. <img src="style_emoticons/<#EMO_DIR#>/user_comment.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="user_comment.gif" />
In any case everything is up to Darth-me who is making the actual quest. Don't let my screenshot fool you; that is 100% temporary. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
 
Ok, I'm going to use just the normal 74 gun ship of the line OR RN 3rd Rate or something for the Justician.

I was going to model my own Indefatigable, but could someone link to this one you speak of?
 
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Also now that we have support for actual separate storylines in the Alpha 8 WIP version, your quest should become a part of this at some point. See attached screenshot. smile.gif<!--QuoteEnd--></div><!--QuoteEEnd-->

Does this mean I'll have to get alpha8?
 
Ok, I've tried taking all my edited code out off those 2 files, and put the code in a couple of text documents, so they're safe. But i still errors. Is it something to do with the fact that to keep a version for playing on I copied my Program Files/Bethesda Softworks/Pirates of the caribbean and renamed it? <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
<!--quoteo(post=241421:date=Feb 26 2008, 12:13 PM:name=Darth-me)--><div class='quotetop'>QUOTE (Darth-me @ Feb 26 2008, 12:13 PM) <a href="index.php?act=findpost&pid=241421"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Ok, I've tried taking all my edited code out off those 2 files, and put the code in a couple of text documents, so they're safe. But i still errors. Is it something to do with the fact that to keep a version for playing on I copied my Program Files/Bethesda Softworks/Pirates of the caribbean and renamed it? <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

I don't think so.

I ask Pieter the other day if you can install the game more then once and it's says yes no problem. So what I did is that I copy the entire game folder to a different folder and named it Mod Pirates of the Caribbean and it work ok.


Cheers, <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
<!--quoteo(post=241417:date=Feb 26 2008, 05:52 PM:name=Darth-me)--><div class='quotetop'>QUOTE (Darth-me @ Feb 26 2008, 05:52 PM) <a href="index.php?act=findpost&pid=241417"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Does this mean I'll have to get alpha8?<!--QuoteEnd--></div><!--QuoteEEnd-->I do recommend you get it once finished, but for now the whole Selectable Storylines mod is officially unreleased.
 
:sigh: I'm sorry, but while I've been meaning to carry on with this quest for ages, I never get round to it. If you want this in Build 14, I suppose someone else'll have to do it. Sorry. I can just never find time to work on it. I might be able to carry on oneday, but if someone else wants to do it, go ahead, you can even have what little I've done - and I mean little. Sorry
 
Can you please upload what you do have? That might help the next person to get started. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
It's really not much, you'll be shocked.

Damn, the quests_reaction.c is bigger than available attachment space, even if I had no other attachments...

I might be able to do some skinning modelling in the future, but coding is too much of a commitment.
 
Back
Top