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

Regular boarding don´t work in Modpack version

<!--quoteo(post=134561:date=Nov 3 2005, 06:53 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Nov 3 2005, 06:53 PM) [snapback]134561[/snapback]</div><div class='quotemain'><!--quotec-->CORPSE_MODE 3 should work though, shouldn't it? Or maybe a different corpsemode would. I would hate to lose that mod just to have boarding working. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
Sorry, the version with the CORPSE_MODE 3 setting was made by Nathan, so I wasn't aware that with THAT setting you can NOT clear away the corpse (you can't even loot it then, huh? Probably because the character stays hostile and won't talk to you. Do we need this setting?). So while the corpse mod basically does not affect boarding the setting CORPSE_MODE 3 causes the problem that Rad had.

Though if you want to use setting 3 during boarding you could try this:

This section in Loc_ai\Lai_events.c keeps the dead hostile character in the game.

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->        if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") ) // NK persist original corpse 05-07-19
        {
            LAi_GenerateFantomFromMe(chr);
            SetCharacterTask_Stay(chr)
            //PopCharacterTask(GetCharacter(sti(chr.index)));
            LAi_Stunned_MakeCorpse(chr);
            LAi_SetImmortal(chr, true);
        }<!--c2--></div><!--ec2-->
If you add to the first line a check whether you are in a boardingscene

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    if(CORPSEMODE == 3 && !CheckAttribute(chr, "corpse") && !bAbordageStarted)<!--c2--></div><!--ec2-->
Corpsemode 3 would not affect boarding anymore.

Warning: This is only a proposal which I have not tested much. The safer solution would IMHO be not to use the CORPSE_MODE 3 setting anymore. But I don't know why this option was added and where it may be missed.
 
Hi, Charles. Thank you for helping. I am in the process of trying of all combination of parameters LOOTDEAD_ON and CORPSMODE under wich boarding works properly. Then I will try what you write here. It will be good think if this issue would worked out for good and all would function well. Personally I prefer so as boarding would work, looting of corpses would work and corpses stayed on the ground, all simultaneusly. But regular functional boarding is preference number one I think. And after some trying it should be implemented into the game and all the issue should be corrected. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
You should set:
#define LOOTDEAD_ON 0
#define CORPSEMODE 1

Loot dead should be OFF with the corpsemode on (otherwise you'd loot one character twice). Corpsemode 1 works just fine. When you kill a character, a new one will be generated on the spot which you can then loot. Corpsemode 3 never really did work I think. So just put it to corpsemode 1 and you should have the best of all worlds. You can loot corpses, but it won't break respawning (if there are too many characters in a location, the corpses just won't be genrated anymore) and the boarding would also work.
 
If I set LOOTED_ON 0 and corpsmode 1, so, is this looting of any corpse working or not? If not so in this case is for nothing. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
<!--quoteo(post=134605:date=Nov 4 2005, 12:29 PM:name=Rad)--><div class='quotetop'>QUOTE(Rad @ Nov 4 2005, 12:29 PM) [snapback]134605[/snapback]</div><div class='quotemain'><!--quotec-->If I set LOOTED_ON 0 and corpsmode 1, so, is this looting of any corpse working or not? If not so in this case is for nothing. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

Let me guess, you want to get the loot without the corps disappearing.

If so, you can set:
#define LOOTDEAD_ON 0
#define CORPSEMODE 2
 
<!--quoteo(post=134605:date=Nov 4 2005, 06:29 PM:name=Rad)--><div class='quotetop'>QUOTE(Rad @ Nov 4 2005, 06:29 PM) [snapback]134605[/snapback]</div><div class='quotemain'><!--quotec-->If I set LOOTED_ON 0 and corpsmode 1, so, is this looting of any corpse working or not? If not so in this case is for nothing. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
Rad <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /> , those two tweaks refer to two completely different mods: the old Lootdead mod which automatically gives you your dead opponent's gold and weapons, and the new Corpse mod which creates semipermanent corpses that you can loot manually. Some people prefer this, others the old method, so we left both options in.

I concede that this may look confusing, but the buildsetting states in plain English

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#define LOOTDEAD_ON     0  ..."Please leave this OFF if you have corpsemode other than off"<!--c2--></div><!--ec2-->

Pieter, maybe you could rename LOOTDEAD_ON to e.g. AUTOLOOTING; and CORPSEMODE to e.g. MANUAL_CORPSE_LOOTING so that <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->EVERYBODY<!--colorc--></span><!--/colorc--> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /> can understand it.

Or we combine the two and use for the automatic LOOTDEAD_ON e.g. CORPSEMODE 4 . That would make it impossible to use the two mods at the same time. How about that? Can you do that, shall I.. ?
 
Perhaps with Corpsemode 3 some people are not finding all the bodies.

This might be the case if they have fallen near/under the boarding gangplanks, and it is a night battle.
 
I just tried different variations for functioning boarding.

1. When I use LOOTDEAD_ON 1 and CORPSMODE 0 - boarding works.
2. - " - LOOTDEAD_ON 1 and CORPSMODE 1 - boarding works.
3. - " - LOOTDEAD_ON 1 and CORPSMODE 2 - boarding works.
4. - " - LOOTDEAD_ON 0 and CORPSMODE 1 - boarding works.
5. - " - LOOTDEAD_ON 0 and CORPSMODE 2 - boarding works.
6. - " - LOOTDEAD_ON 1 and CORPSMODE 3 - boarding don´t work.
7. - " - LOOTDEAD_ON 0 and CORPSMODE 3 - boarding don´t work.

I think it is sufficient information for me. I will be using variant 2 or 3 because it is the most proper for me. Although I don´t know that difference is between corpsmode 1 and 2 because in practise it seems to me the body in the course of using corpsmode 1 don´t disappear too as it is in the case of corpsmode 2.
I know looting and corpsmode are two diferent matters.
I think nothing needn´t be reworked it would be only good thing if people would be
inform that with corpsmode 3 their boarding won´t work. Maybe I would cancel all this corpsmode 3.

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />

I just tried for assurance this corpsmode 3 again and I can tell you that with using it boarding doesn´t work neither with LOOTDEAD_ON 0 nor 1!

Charles maybe I will try your variant rewriting this line as you suggest.

<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" />
 
I think the corpsemodes work like this:
Corpsemode 1: After you kill an enemy, a corpse is generated. After you manually loot the corpse, the corpse disappears.
Corpsemode 2: After you kill an enemy, a corpse is generated. After you manually loot the corpse, the corpse doesn't disappear.
Corpsemode 3: After you kill an enemy, you should be able to loot the original enemy (there isn't a new corpse generated). This breaks respawning and boarding and basically doesn't work too well.
So I would recommend using the default 1 mode, or the 2 mode if you really want to. But the 1 mode works just fine. The 3 mode certainly doesn't, so you just shouldn't use that. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
If mode 3 doesn't work too well, how about not mentioning it in Buildsettings anymore? That way nobody could run into that trap anymore, and there would be no need to delete the actual code.
 
Back
Top