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.

Included in Build Unrecognized Text in Questbook!

Discussion in 'Features Archive' started by Kpax7, Aug 23, 2015.

  1. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,683
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    I dunno how the file reading function works, but I don't suspect this to be the problem. I think the first option is the problem.
     
    Pieter Boelen likes this.
  2. jsv

    jsv Freebooter Storm Modder

    Joined:
    Nov 5, 2013
    Messages:
    303
    Gender:
    Male
    I had this problem yesterday and in my case it was related to options corruption. The garbage in the questbook looked exactly the garbage from the end of the options file (minus unprintable symbols). Removing the latter removed the former as well. :shrug
     
    Pieter Boelen likes this.
  3. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,584
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Thanks. At least that one is manageable then. :cheers
     
  4. Mirsaneli

    Mirsaneli Freebooter Storm Modder

    Joined:
    Nov 21, 2015
    Messages:
    448
    Gender:
    Male
    The Chronicles of Horatio Hornblower storyline. I just started new game. This is part of the quest book linked to International relations tutorial.

    [​IMG]
     
  5. jsv

    jsv Freebooter Storm Modder

    Joined:
    Nov 5, 2013
    Messages:
    303
    Gender:
    Male
    That's a known long standing bug. It's still unclear whether it can be fixed. See Unrecognized Text in Questbook!
    Sometimes deleting the options file in the main PotC folder helps with this. And sometimes it doesn't.
     
  6. Mirsaneli

    Mirsaneli Freebooter Storm Modder

    Joined:
    Nov 21, 2015
    Messages:
    448
    Gender:
    Male
    It's ok. It doesn't bother me. Just because we are close to the Public release, I thought it should be removed. But if it's an old bug, let it be.
     
  7. jsv

    jsv Freebooter Storm Modder

    Joined:
    Nov 5, 2013
    Messages:
    303
    Gender:
    Male
    I'd still recommend to check if your options file has any garbage (something that looks pretty much like the end of your questbook entry, only weirder) in it. When that file is corrupted, that might cause other problems.
     
  8. Mirsaneli

    Mirsaneli Freebooter Storm Modder

    Joined:
    Nov 21, 2015
    Messages:
    448
    Gender:
    Male
    How can that happen? I just reinstalled the whole game together with the new build update... o_O
     
  9. jsv

    jsv Freebooter Storm Modder

    Joined:
    Nov 5, 2013
    Messages:
    303
    Gender:
    Male
    You were running the game, that's enough. It happens all the time. Looks to me like some kind of memory-related bug in the engine (buffer overflow or something), but I don't really know.
    When I first started playing PotC, it was already a well-known issue. :)
     
    Mirsaneli likes this.
  10. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,584
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Might I assume that this does not happen in the same spot every time?
    So far, whenever this bug crops up, it seems extremely inconsistent.
     
  11. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,683
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    From what I can tell this only seems to happen when the last entry of the text file is given in the questbook.
    We could try to add another entry in all text files which just isn't used. Maybe that fixes it?
     
  12. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,584
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Haven't the foggiest. Maybe? :shrug
     
  13. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    646
    Gender:
    Male
    BRILLIANT observation @Grey Roger :monkeydance

    Reinstalling the correct game version and going back to my repeatable Goldbug example back in September and placing a blank line at the end of the questbook file entries then starting a new game gets rid of the garbage, replacing the file as was without a clear blank line (and starting a new game) gives garbage again.

    So possibly ensuring all questbook files have a blank line at the end may clear most if not all of these annoying quirks.
     
    Kpax7 and Pieter Boelen like this.
  14. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,584
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    That's awesome news indeed! Anyone care to af some white lines at the bottom of all those files then? :woot
     
    Kpax7 likes this.
  15. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    646
    Gender:
    Male
    I'll do it to get this cleared up. I note the other example in this thread was last entry in "trade" questbook file which further suggests this may fix this issue completely.
     
    Kpax7 and Pieter Boelen like this.
  16. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,584
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Thanks very much! :cheers
     
  17. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    646
    Gender:
    Male
    Actually what seems to be the difference is a carriage return or not on the last text line.

    With a carriage return present scrolling down in notepad takes you to the blank line below (I don't think you actually need a blank line physically in the file (ie a second carriage return) but will check. Without a carriage return the scroll stops on the text line. All the quoted garbage cases here have the latter situation, which is also how many of the more recent questbook files are formatted.

    It may be @Levis idea of values carried forward from the previous use of a longer string comes into play if there is no CR to signal the end of the current string.
     
    Pieter Boelen likes this.
  18. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    646
    Gender:
    Male
    Revised questbook files to ensure all have carriage return on last text line (or extra unfilled text entries etc). I will add a link in fixes too.
     

    Attached Files:

    Kpax7, Jack Rackham and Pieter Boelen like this.
  19. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Wow you checked ALL those files! Thanks a lot. :doff
     
    Kpax7 likes this.
  20. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    646
    Gender:
    Male
    No problem it was very simple and quick to do and you're very welcome, I did think about it because I know you jealously guard the integrity of your files (as with all modders I suspect and rightly so) but then I thought it's only a carriage return I would be adding so I went ahead with everyone's files and hope I didn't upset anyone in the process.
     
    Pieter Boelen likes this.

Share This Page