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

warehouse problems

Sigh... All new installers. New install. Same result. :rumgone No Bartholomeu for me.

Got an error log this time.
 
To Armada and Pieter : Yes, we need someone fixing the bugs. In the past, we had many of them. Maybe, Pieter, you should send a Pm for everybody who fixed the Build Mod these last years. :shrug

To miklkit : I'm not using at the moment the PC which the BuildMod is installed but maybe Talisman could help you telling how to add in the console.c the Lay_questdelay function with the right case used in the questreactions.c to enter in the warehouse. You just need to load a save you made just after the fight with the Spanish soldiers outside the warehouses and press F12.
 
miklkit, why are you missing all sorts of music files?

I think I tried that through our Notification PM Thread already. Didn't work so far. :modding
 
Hmm. If I read it correctly, they aren't missing but can not be opened. In other words corrupted. I have noticed that there are places that should have music, but do not. A few weeks ago this puter suffered an instant off power loss. This usually results in the "scrambled eggs" syndrome. I dl'ed all new installers except for the sound, which is not stock. That shouldn't cause this problem though, especially since it happened before the power outage as well.
 
Bartolomeu

I am not sure about the Lai_questdelay function - can not find it.

Below is the code ( i think ) in the quests_reaction.c that is for the attack on the warehouses. ( from beach landing - to back at beach after attack )

Is it this ---> locations[FindLocation("Santiago_warehouse_01")].reload.l1.disable = 1; from case attack 2 that is not working for miklkit ?


Code:
case "surmaestra":
SetCurrentTime(24, 0);
locations[FindLocation("Santiago_outskirts")].disableencounters = 1;
Locations[FindLocation("Santiago_outskirts")].vcskip = true;
locations[FindLocation("Cuba_Jungle_04")].disableencounters = 1;
Locations[FindLocation("Cuba_Jungle_04")].vcskip = true;

ChangeCharacterAddressGroup(CharacterFromID("Roxanne Lalliere"), "Cuba_Shore_05", "goto", "locator10");
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_13";
LAi_ActorDialog(characterFromID("Roxanne Lalliere"), pchar, "", 2.0, 1.0);

break;

case "surplage":

pchar.quest.versrock.win_condition.l1 = "location";
pchar.quest.versrock.win_condition.l1.location = "Cuba_Jungle_04";
pchar.quest.versrock.win_condition = "aurocher";

LAi_SetActorType(characterFromID("Roxanne Lalliere"));
LAi_SetImmortal(CharacterFromID("Roxanne Lalliere"), 1);
LAi_ActorFollowEverywhere(characterFromID("Roxanne Lalliere"), "", 60.0);

break;

case "aurocher":

pchar.quest.versentre.win_condition.l1 = "location";
pchar.quest.versentre.win_condition.l1.location = "Santiago_outskirts";
pchar.quest.versentre.win_condition = "attack";
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_14";
LAi_ActorDialog(characterFromID("Roxanne Lalliere"), pchar, "", 2.0, 1.0);

break;

case "attack":
locations[FindLocation("Santiago_outskirts")].reload.l3.disable = 1;
locations[FindLocation("Santiago_outskirts")].reload.l4.disable = 1;
locations[FindLocation("Santiago_outskirts")].reload.l5.disable = 1;
ChangeCharacterAddressGroup(CharacterFromID("Roxanne Lalliere"), "Santiago_outskirts", "officers", "reload1_1");
ChangeCharacterAddressGroup(CharacterFromID("Emilio Soares"), "Santiago_outskirts", "officers", "reload1_2");
ChangeCharacterAddressGroup(CharacterFromID("Pedro Rivera"), "Santiago_outskirts", "officers", "reload1_2");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa_16", "goto", "goto1");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREHOUSE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa2_16", "goto", "goto2");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREHOUSE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa3_16", "goto", "goto3");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREHOUSE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa4_16", "goto", "goto4");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREHOUSE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "soldier_spa5_16", "reload", "reload3");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
sld.dialog.filename = "Roxanne Lalliere_dialog.c";
sld.dialog.currentnode = "begin_26";
sld.id = "soldado";
LAi_SetActorType(characterfromID("soldado"));
LAi_ActorDialog(characterfromID("soldado"), PChar, "", 0.5, 10);

break;

case "debutbat":
LAi_SetOfficerType(characterFromID("Pedro Rivera"));
LAi_SetGuardianType(characterFromID("soldado")); 
LAi_group_MoveCharacter(characterFromID("soldado"), "WAREHOUSE_SOLDIERS");
LAi_group_FightGroups("WAREHOUSE_SOLDIERS", LAI_GROUP_PLAYER, true);
LAi_group_SetCheck("WAREHOUSE_SOLDIERS", "finbat");

break;

case "finbat":		
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_15";
LAi_ActorDialog(characterFromID("Roxanne Lalliere"), pchar, "", 2.0, 1.0);

LAi_SetActorType(characterFromID("Pedro Rivera"));
LAi_ActorFollowEverywhere(characterFromID("Pedro Rivera"), "", 60.0);

break;

case "finbat_2":
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
LAi_ActorFollowEverywhere(characterFromID("Roxanne Lalliere"), "", 60.0);
pchar.quest.versentreun.win_condition.l1 = "location";
pchar.quest.versentreun.win_condition.l1.location = "Santiago_warehouse_01";
pchar.quest.versentreun.win_condition = "attack2";              

break;

case "attack2":	
locations[FindLocation("Santiago_warehouse_01")].reload.l1.disable = 1;
LAi_SetOfficerType(characterFromID("Pedro Rivera"));

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa_16", "goto", "goto7");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa2_16", "goto", "goto6");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDE_SOLDIERS");
LAi_group_FightGroups("WAREINSIDE_SOLDIERS", LAI_GROUP_PLAYER, true);
LAi_group_SetCheck("WAREINSIDE_SOLDIERS", "entrepot_1");


break;

case "entrepot_1":	
locations[FindLocation("Santiago_warehouse_01")].reload.l1.disable = 0;
locations[FindLocation("Santiago_outskirts")].reload.l5.disable = 0;
pchar.quest.versentredeux.win_condition.l1 = "location";
pchar.quest.versentredeux.win_condition.l1.location = "Santiago_warehouse_02";
pchar.quest.versentredeux.win_condition = "attack3";
LAi_SetActorType(characterFromID("Pedro Rivera"));
LAi_ActorFollowEverywhere(characterFromID("Pedro Rivera"), "", 60.0);

break;

case "attack3":
ChangeCharacterAddressGroup(CharacterFromID("Roxanne Lalliere"), "Santiago_warehouse_02", "officers", "reload1_2");
LAi_SetOfficerType(characterFromID("Pedro Rivera"));
LAi_SetOfficerType(characterFromID("Roxanne Lalliere"));

locations[FindLocation("Santiago_warehouse_02")].reload.l1.disable = 1;
sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa3_16", "goto", "goto18");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDES_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa4_16", "goto", "goto8");
GiveItem2Character(sld,"blade2");					
EquipCharacterByItem(sld,"blade2");					
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDES_SOLDIERS");
LAi_group_FightGroups("WAREINSIDES_SOLDIERS", LAI_GROUP_PLAYER, true);
LAi_group_SetCheck("WAREINSIDES_SOLDIERS", "entrepot_2");

break;

case "entrepot_2":	
locations[FindLocation("Santiago_warehouse_02")].reload.l1.disable = 0;
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_16";
LAi_ActorDialog(characterFromID("Roxanne Lalliere"), pchar, "", 2.0, 1.0);

break;

case "allezdehors":
DoQuestReloadToLocation("Santiago_outskirts", "goto", "goto8", "");			
ChangeCharacterAddressGroup(CharacterFromID("Roxanne Lalliere"), "Santiago_outskirts", "officers", "reload2_2");
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_17";
LAi_SetActorType(pchar); 
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
LAi_ActorWaitDialog(CharacterFromID("Roxanne Lalliere"), Pchar); 	                       
LAi_ActorDialog(pchar, characterFromID("Roxanne Lalliere"), "", 10.0, 1.0);

break;

case "chercherivera":
LAi_ActorGoToLocator(PChar, "goto", "goto11", "riveraback", 10.0);

break;
case "riveraback":
LAi_ActorTurnByLocator( pchar, "goto", "goto11");
LAi_QuestDelay("riveraback_2", 1.0);

break;

case "riveraback_2":
LAi_SetPlayerType(pchar); 
ChangeCharacterAddressGroup(CharacterFromID("Pedro Rivera"), "Santiago_outskirts", "reload", "reload2_back");

LAi_SetActorType(characterFromID("Pedro Rivera"));
Characters[GetCharacterIndex("Pedro Rivera")].dialog.currentnode = "begin_6";
LAi_ActorDialog(characterFromID("Pedro Rivera"), pchar, "", 2.0, 1.0);

break;

case "fuirsoldats":
LAi_SetActorType(pchar); 
LAi_ActorGoToLocator(PChar, "goto", "goto10", "", 40.0);
LAi_ActorRunToLocation(characterFromID("Roxanne Lalliere"), "goto", "goto10", "none", "", "", "", 0.0);
LAi_ActorRunToLocation(characterFromID("Emilio Soares"), "goto", "goto10", "none", "", "", "", 0.0);
LAi_SetOfficerType(characterFromID("Pedro Rivera"));
LAi_QuestDelay("discusplage", 6.0);

break;

case "discusplage":
locations[FindLocation("Santiago_outskirts")].reload.l3.disable = 0;
locations[FindLocation("Cuba_Shore_05")].reload.l3.disable = 1;
DoQuestReloadToLocation("Cuba_Shore_05", "goto", "locator9", "");
ChangeCharacterAddressGroup(CharacterFromID("Roxanne Lalliere"), "Cuba_Shore_05", "goto", "locator7");
ChangeCharacterAddressGroup(CharacterFromID("Pedro Rivera"), "Cuba_Shore_05", "goto", "locator8");
ChangeCharacterAddressGroup(CharacterFromID("Emilio Soares"), "Cuba_Shore_05", "goto", "citizen09");
LAi_SetOfficerType(characterFromID("Emilio Soares"));
Characters[GetCharacterIndex("Roxanne Lalliere")].dialog.currentnode = "begin_18";
LAi_SetActorType(pchar); 
LAi_SetActorType(characterFromID("Roxanne Lalliere"));
LAi_ActorWaitDialog(CharacterFromID("Roxanne Lalliere"), Pchar); 	                       
LAi_ActorDialog(pchar, characterFromID("Roxanne Lalliere"), "", 10.0, 1.0);
 
Hmm.

Here is my case attack 2.




case "attack2":
locations[FindLocation("Santiago_warehouse_01")].reload.l1.disable = 1;
LAi_SetOfficerType(characterFromID("Pedro Rivera"));

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa_16", "goto", "goto7");
GiveItem2Character(sld,"blade2");
EquipCharacterByItem(sld,"blade2");
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDE_SOLDIERS");

sld = LAi_CreateFantomCharacter(false, 0, true, true, 0.25, "Soldier_spa2_16", "goto", "goto6");
GiveItem2Character(sld,"blade2");
EquipCharacterByItem(sld,"blade2");
LAi_SetHP(sld, 80.0, 80.0);
LAi_group_MoveCharacter(sld, "WAREINSIDE_SOLDIERS");
LAi_group_FightGroups("WAREINSIDE_SOLDIERS", LAI_GROUP_PLAYER, true);
LAi_group_SetCheck("WAREINSIDE_SOLDIERS", "entrepot_1");


break;

case "entrepot_1":
locations[FindLocation("Santiago_warehouse_01")].reload.l1.disable = 0;
locations[FindLocation("Santiago_outskirts")].reload.l5.disable = 0;
pchar.quest.versentredeux.win_condition.l1 = "location";
pchar.quest.versentredeux.win_condition.l1.location = "Santiago_warehouse_02";
pchar.quest.versentredeux.win_condition = "attack3";
LAi_SetActorType(characterFromID("Pedro Rivera"));
LAi_ActorFollowEverywhere(characterFromID("Pedro Rivera"), "", 60.0);

break;
 
Ok, here's my idea:

Put this code in console.c:

pchar.quest.versentreun.win_condition.l1 = "location";
pchar.quest.versentreun.win_condition.l1.location = "Santiago_warehouse_01";
pchar.quest.versentreun.win_condition = "attack2";


Load a save made just after the fight with the Spanish soldiers outside the warehouses and press F12.
 
Oookay...

I have only used the console once 4-5 months ago. I have found it again, but where do I put these lines? On the bottom? I'm just an end user/lab rat not a coder.
 
Oookay...

I have only used the console once 4-5 months ago. I have found it again, but where do I put these lines? On the bottom? I'm just an end user/lab rat not a coder.

But a very useful labrat :onya - someone has to test things - don't underestimate your importance :drunk after all things things can only be said to be working correctly if an ordinary person can play it through without problems.

in the console at the top:-

put the code here--->

Code:
// Jerry-rigged console file.
//put code under ExecuteConsole() below.
//NK 04-08-28
// not needed I think extern void InitShips();
#include "SDK\LocatorWrite.c"
#include "Upgrade.c";
extern void InitItems();
extern void InitCannons();


void ExecuteConsole()
{
ref pchar = GetMainCharacter();
if (!bSeaActive) ref lcn = &Locations[FindLocation(pchar.location)];
ref ch;
int i;
int limit;

//	LAi_EnableReload();

pchar.quest.versentreun.win_condition.l1 = "location";
pchar.quest.versentreun.win_condition.l1.location = "Santiago_warehouse_01";
pchar.quest.versentreun.win_condition = "attack2"; 





// Give ship
// ------------------
//	GiveShip2Character(pchar,pchar.ship.type,pchar.ship.name,-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"NL_Amsterdam","Amsterdam",-1,HOLLAND,true,true);
//	GiveShip2Character(pchar,SHIP_CURSED,"Black Pearl",-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"CursedDutchman","Flying Dutchman",-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"FR_SteamFrigate","Jeanne d'Arc",-1,FRANCE,true,true);
 
Back
Top