1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Rogers' guards suddenly got Muskets?

Discussion in 'Woodes Rogers (Howard Pyle)' started by Jack Rackham, May 27, 2015.

  1. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    All Rogers' guards are equipped with muskets (in hip mode). They should have pistols and they are all staytype.
    Their lastname is "crew".
    Some are ok at first visit but change as well to muskets at next.
    What can this be? Some general code for "soldiers"? Any idea Pieter? It looks awful.
     
  2. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,615
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Check the bottom of PROGRAM\Periods.c . I thought we set up an attribute that you can add to characters to prevent them getting automatic soldier-weapons?
    You used that before, right?
     
  3. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Ehrmm, it has my signature...? :oops:
    1) Ok so I have to set that to each one of the 60-70 guards? :modding

    I tried
    if(HasSubStr(curchar.id,"wr_")) return; but that will cover only some of my characters.

    2) Is it normal these days that musket are in hip mode?
     
  4. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Ok, I think I fixed it:

    I set ch.auto_weapons = "off";
    at the very beginning of my TempQuetsChar file and it seems to go for all in there.
     
  5. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,615
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Not intentionally, no. Is that ALL the time? Can anyone confirm?
    I did observe some weirdness with the muskets again a few days back, but assumed that was just the normal problem.

    Is there already a Bug Tracker issue for the muskets? One day, we should really rewrite it to use EventHandlers instead.

    What does the file look like then? That sounds like a really strange solution.

    Only LAi_SetGuardianType and LAi_SetPatrolType should trigger soldier behaviour.
    There are Civilian versions available for both to avoid this.
     
  6. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Here's the start of the file:


    void CreateTempQuestCharacters(ref n)
    {

    object chobj;
    ref ch;

    makeref(ch, chobj);

    ch.auto_weapons = "off";

    ch.old.name = "Richard";
    ch.old.lastname = "Bolitho";
    ch.name = TranslateString("","Richard");
    ch.lastname = TranslateString("","Bolitho");
    ch.id = "Bolitho";
    etc etc

    Yes it's strange because these guys are Staytypes.
     
  7. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,615
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Are they getting set to another type elsewhere?
    That solution looks like it shouldn't even work, but if it does, you won't hear me complaining.
    Still, the individual ch.auto_weapons = "off"; would probably be safer.

    If they really ARE treated as soldiers, then their character models should be overridden from what you set too.
    Is that happening? If not, perhaps something else is going on.

    You can also do a DumpAttributes on one of the offending characters and see if he actually DOES have the .issoldier attribute.
    If he doesn't, you have discovered that the problem comes from somewhere else.
     
  8. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    I found it. When spoken to they change to actortype. So they can "actorturntocharacter" (pchar).
    Talk to one and all got muskets.
    I had reset them to Guardiantype (the standing ones). So the strange fix was no fix at all but now
    it works. By resetting them to staytype.
     
  9. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,615
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    So they DID get reset to Guardiantype some time later? Indeed if that happens, they would be given a musket on the next location reload. :facepalm
     
  10. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    The fix comes with Goldbug update soon.
     
    Pieter Boelen likes this.
  11. Hylie Pistof

    Hylie Pistof Curmudgeon Staff Member QA Tester Storm Modder

    Joined:
    Jan 15, 2010
    Messages:
    13,767
    Gender:
    Male
    In regular game play the muskets behave like they always have. They are normally on your shoulder but the soldiers sometimes get them on their hips. When that happens I draw my sword and then sheath it again. When I move to the next map the soldiers have their muskets on their shoulders again.
     

Share This Page