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.

Fixed System.log: "Can't load texture resource\textures\.tx"

Discussion in 'Bug Archive' started by pedrwyth, Dec 6, 2015.

  1. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,627
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Mere_Mortal likes this.
  2. Mere_Mortal

    Mere_Mortal Free Like a Radical Storm Modder

    Joined:
    Jan 18, 2011
    Messages:
    568
    Gender:
    Male
    Occupation:
    Courting the Frown
    Location:
    Middle England
    I think I’ve been reserving the search function too much for Notepad++ :rolleyes:

    This might actually fit in with the error reportedly showing up at the shipyard since ship models might be handled there at some point.

    I’ve been seeing it on reloading to sea, which also suggests it’s a ship problem.
     
    Last edited: May 21, 2016
    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,627
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    It can be hard to see what has already been reported.

    Sometimes I have a hard time finding stuff myself, even if I KNOW it exists and generally know the general area too. :facepalm
     
  4. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,627
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Despite commenting out both lines, I still get three of those system.log entries when I start the Assassin storyline.

    That being said, this could still of course be one of the reasons that it happens.
    I'd suggest this to fix it:
    Code:
    string GetShipDecksTexture(ref chref)
    {
       if (!CheckAttribute(chref, "ship")) return "";
       int st = GetCharacterShipType(chref);
       if (st == SHIP_NOTUSED) return "";
       aref ship; makearef(ship, chref.ship);
       string path = "";
       string deck = GetLocalShipAttrib(ship, &ShipsTypes[st], "DeckTexturesDir");
       if (deck != "") {
         path = "Locations\decks\" + GetLocalShipAttrib(ship, &ShipsTypes[st], "DeckTexturesDir");
         if (CheckDirectory("RESOURCE\Textures\" + path, "*") == 0) path = "";
       }
       return path;
    }
    
    That basically removes some functionality, but not functionality that is actually used.
    Only the "BlackPearl" has "DeckTexturesDir" defined and she doesn't have it set per location ID.

    This also requires two changes elsewhere because I removed one of the input variables.
    I'll include this in my next upload. Can't hurt, I think.
     
  5. Mere_Mortal

    Mere_Mortal Free Like a Radical Storm Modder

    Joined:
    Jan 18, 2011
    Messages:
    568
    Gender:
    Male
    Occupation:
    Courting the Frown
    Location:
    Middle England
    Ah, well since I was constantly spawning the Black Pearl it might well have been triggering it in my case.
     
    Pieter Boelen likes this.
  6. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,627
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
  7. pedrwyth

    pedrwyth Privateer Storm Modder

    Joined:
    Jan 8, 2015
    Messages:
    648
    Gender:
    Male
    Back in February (last year now!) I commented that the original four instances were now 3 and perhaps I should do a winmerge between a couple of versions :rolleyes:- wish I could follow through sometimes because doing that today revealed the change to have been in BATTLEINTERFACE\landinterface.c and was as follows

    Code:
    // Viper
        objLandInterface.CommandTextures.list.t6.name = "battle_interface\UsedItems3.tga"; //Levis
        objLandInterface.CommandTextures.list.t6.xsize = 4;
        objLandInterface.CommandTextures.list.t6.ysize = 2;
        objLandInterface.CommandTextures.list.t7.name = "";
        objLandInterface.CommandTextures.list.t7.xsize = 4;
        objLandInterface.CommandTextures.list.t7.ysize = 4;
        objLandInterface.CommandTextures.list.t8.name = "";
        objLandInterface.CommandTextures.list.t8.xsize = 4;
        objLandInterface.CommandTextures.list.t8.ysize = 4;
      // Viper
    // KK -->
        objLandInterface.CommandTextures.list.t9.name = "";
        objLandInterface.CommandTextures.list.t9.xsize = 0;
        objLandInterface.CommandTextures.list.t9.ysize = 0;
    The //Levis line being changed from "" to a named .tga.

    Now suspiciously there are left three "" names which I suspected equate to the three instances cropping up at every land reload. Putting blank.tga in those gets rid of the three remaining logs in system :bounce- I hope without causing any actual problems.:popcorn:
     
    Talisman likes this.
  8. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,627
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Oh WOW, that's brilliant, @pedrwyth! I always did wonder about this and this seems to make perfect sense. :onya
     

Share This Page