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

Fixed Edgar Attwood quest restart bug

VanessaHudgensFan

Freebooter
Banned
After you completed the Edgar Attwood quest on Bridgetown and Jamaica and you go back to one of those location again the qeust starts again.. However you can complete the Bridgetown part about a hunderd times without any problems but at the Port Royale part it will stuck. The crewmember sais Attwood left your crew just as always but when I go to the Tavern it went wrong. I can't talk to Jack Greenfield and Martin Wagner again so I think it would be better to disable the restart of the quest so the quest won't start again after you finished in and you go on land with Edgar Attwood. Not everyone uses him as captain hehehe :razz

I'm afraid I've no save games or something at the moment to confirm this :shrug
 
Game Version and storyline? And yes, a save plus the .log files after the....well, you know the drill. :pirate41:
 
Game Version and storyline? And yes, a save plus the .log files after the....well, you know the drill. :pirate41:

Yes I know and I have said I don't have these hehehe :p, no time to create them at the moment, I'm a little bit busy today, some other business needs my attention right now:razz

Standard storyline and still build 3.1. I've post this already in my first threads and I thing everyone knows for now which one I play hehehe,

Funny. You are the only one who asks with game version I play :razz
 
Here is a save, I have the quest complete here already one time, this is the second time the quests starts. Moor and in the Tavern you'll see the bug where I was talking about. You can't talk to Greenfield again and next to that I don't think it's supposed the quest starts again if you go to Port Royale or Bridgetown again is it?
 

Attachments

  • Attwood bug.zip
    1.1 MB · Views: 140
Place this file in:
POTC\PROGRAM\Storyline\standard\DIALOGS

That should fix the problem.
The quest was started each time you talked to edgar. I added a check in the dialog file:
Code:
if(!CheckAttribute(Pchar,"quest.Attwood")) //Added check so quest is only started once
            {
                Pchar.quest.Attwood.win_condition.l1 = "location";
                Pchar.quest.Attwood.win_condition.l1.character = "Edgar Attwood";
                Pchar.quest.Attwood.win_condition.l1.location = "Greenford_port";
                PChar.quest.Attwood.win_condition = "Attwood_Adventure";
            }
To check if the quest was already started. if this is the case it wont be started again.
Note if you test this the wincondition is probally set already, so best way to check if this works is by using a new savegame or execute the following command in the console:
Code:
DelteAttribute(pchar,"quest.Attwood.win_condition");
Then talk to Attwood again and go to the port.
Please let me know if this fixes it :).
 

Attachments

  • Edgar Attwood_dialog.c
    7.2 KB · Views: 161
Last edited:
Tried but don't work for me but I haven't start a new game, no time to play the whole story, there are still other bugs to fix ;)

How can I execute the above command through the console? Can you explain me this?
 
Copy the code to console.c (in PROGRAM)
and place it after
Code:
void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;
    int limit;

The press f12 ingame.
 
Copy the code to console.c (in PROGRAM)
and place it after
Code:
void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;
    int limit;

The press f12 ingame.

If I press F12 nothing happens and Edgar still leaves my crew on Bridgetown port
 
got the savegame?
 
This is the save I used to test. Talk to Edgar in the captain's cabin and then moored on land
 

Attachments

  • Edgar save.zip
    1.1 MB · Views: 129
The savegame wont open for me now. probally it will do tomorrow. My computer tends to get more problems with opening savegames the longer I use it (or it just trows a BSOD with memory management errors :p ). Cause I don't suspect error logs like this are normal ;).
Code:
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'FullDialogPath' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'PathDlgLngExtn' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'wdmTimeOfLastMerchant' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'wdmTimeOfLastWarring' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'wdmTimeOfLastFollow' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'TAVERN_TEXT' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'TAVERN_TEXT' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'I don't want to help you. You've done too much harm to my country already' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'I don't want to help you. You've done too much harm to my country already' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'k at this patriot. Well, goodbye' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'k at this patriot. Well, goodbye' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'h you?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'h you?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'me?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'me?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ncrease the fleet, so the shipyard might be interested in some help.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ncrease the fleet, so the shipyard might be interested in some help.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' so the tailor might be interested in some hinteè:®ûÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' so the tailor might be interested in some hinteè:®ûÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'or goes the gouvenor is going to fight the natives, so the smith might be interested in some help.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'or goes the gouvenor is going to fight the natives, so the smith might be interested in some help.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'Y JOB' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'Y JOB' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'r mind. That sounds like to much work.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'r mind. That sounds like to much work.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'u got a big order. Guess you need some supplies then?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'u got a big order. Guess you need some supplies then?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ut. Could you fetch me ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ut. Could you fetch me ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ''m not interested' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ''m not interested' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'trying to trick you or maybe you»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'trying to trick you or maybe you»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'sk around more. I haven't got any offer......wish I had.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'sk around more. I haven't got any offer......wish I had.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'u very much. Here is your money.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'u very much. Here is your money.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'Maybe the shop wants your goods.»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'Maybe the shop wants your goods.»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'd go. Thanks.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'd go. Thanks.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'y you got a big order. Guess you need some supplies then?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'y you got a big order. Guess you need some supplies then?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'tore is all sold out. Could you fetch me ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'tore is all sold out. Could you fetch me ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'time.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'time.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'I will find someone else then' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'I will find someone else then' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'se folks' are trying to trick you or maybe you should ask around more. I haven't got any offer......wish I had.pè:¶ãÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'se folks' are trying to trick you or maybe you should ask around more. I haven't got any offer......wish I had.pè:¶ãÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ht you the materials you needed' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'ht you the materials you needed' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' before you so I have everything I need already. Maybe the shop wants your goods.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' before you so I have everything I need already. Maybe the shop wants your goods.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'well.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'well.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'nough room in your ship.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'nough room in your ship.' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'of job. Wouldn't it be nice if e»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'of job. Wouldn't it be nice if e»è;õÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'elped our island as much as that man did?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'elped our island as much as that man did?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'omeone to get him the materials he needed. Wouldn't it be nice if everyone was so kind?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'omeone to get him the materials he needed. Wouldn't it be nice if everyone was so kind?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'nd day. I don't know what's going on but the smith has no shortage on supplies it seems. Someone h fires are burè:¶ãÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'nd day. I don't know what's going on but the smith has no shortage on supplies it seems. Someone h fires are burè:¶ãÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' got them for him. Wouldn't it be nice if everyone helped each other?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: ' got them for him. Wouldn't it be nice if everyone helped each other?' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'IGH STATUS JOB' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'IGH STATUS JOB' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'alk_verts' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'alk_verts' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'x?é–?’AÝÏ    @é–?_ÐC@Ô?Q1P@PÒüÀi„¿¿~T@³IÁÕ¬¿/I@"»À^ÖD?·îP@þšñÀ„òŽ?C?ôEº@|›°?—«“?j4@&?{—?ep˜¿×À ¿×˜?€D5À—©«¿H–?u?ÒŘ¿[—?Ý€@ga¿¬s’?€-ß@’‘:@çs
@5ÃÀ@¡J;Àçs
@Ué¿@AïJÀóY@éÕx¿~ù¾ÐG±@4LÖ@î|×>×ë²@P«Ö@5
¿4èÏ@ìQè:¸íÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: 'x?é–?’AÝÏ    @é–?_ÐC@Ô?Q1P@PÒüÀi„¿¿~T@³IÁÕ¬¿/I@"»À^ÖD?·îP@þšñÀ„òŽ?C?ôEº@|›°?—«“?j4@&?{—?ep˜¿×À ¿×˜?€D5À—©«¿H–?u?ÒŘ¿[—?Ý€@ga¿¬s’?€-ß@’‘:@çs
@5ÃÀ@¡J;Àçs
@Ué¿@AïJÀóY@éÕx¿~ù¾ÐG±@4LÖ@î|×>×ë²@P«Ö@5
¿4èÏ@ìQè:¸íÇ' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: '@Ç<à@”Ã>ͱØ@UÎí@9›Þ¾¬î@´9Ž½«°%?|Ñ@UK¿F    „¿¼°Y?…3¶À¼\’¿Kæ¢?pÀV+L@‚@ÛŠu¿Áo#?¬î@"Þ2?Barque_walk_types' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: '@Ç<à@”Ã>ͱØ@UÎí@9›Þ¾¬î@´9Ž½«°%?|Ñ@UK¿F    „¿¼°Y?…3¶À¼\’¿Kæ¢?pÀV+L@‚@ÛŠu¿Áo#?¬î@"Þ2?Barque_walk_types' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: '' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load warning - variable: '' not found
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
Load - lost element
COMPILE ERROR - file: interface\perks\perks_init.c; line: 223
missing variable name

If someone else wants to check for me if this works that would be nice. Best way to check would be to have a clean savegame and see if that works. maybe @DavyJack could help?
 
Cause I don't suspect error logs like this are normal ;).
Looks a bit like what you get when loading savegames of a too-old modpack version.
I saw similar stuff when loading Beta 3.1 saves in Beta 3.2. But not quite that insane.
 
Place this file in:
POTC\PROGRAM\Storyline\standard\DIALOGS

That should fix the problem.
The quest was started each time you talked to edgar. I added a check in the dialog file:
Code:
if(!CheckAttribute(Pchar,"quest.Attwood")) //Added check so quest is only started once
{
Pchar.quest.Attwood.win_condition.l1 = "location";
Pchar.quest.Attwood.win_condition.l1.character = "Edgar Attwood";
Pchar.quest.Attwood.win_condition.l1.location = "Greenford_port";
PChar.quest.Attwood.win_condition = "Attwood_Adventure";
}

Already have these files (using the latest mod) but, the quest keeps on repeating randomly. What should I do then?
 
Back
Top