Jump to content


Photo

TexGen and DyndoLOD errors since 2.30


  • Please log in to reply
2 replies to this topic

#1 filmguy93

filmguy93

    Prisoner

  • Members
  • 2 posts

Posted 05 October 2017 - 02:13 PM

Hey there! I have been having some trouble with the recent updates (2.30-2.35). TexGen throws this error 

Exception in unit  line -1: Error in unit 'userscript' on line 523 : Undeclared Identifier 'ResourceOrFileExists'

Checking DynDOLOD TexGen.pas and lines 519-532 are as follows.

for j := 0 to Pred(FileCount) do begin
    e := FileByLoadOrder(j);
    if Assigned(e) then
    sFileName := 'DynDOLOD\' + AppName + '_TexGen_noalpha_' + Lowercase(RemoveNonAlphaNum(GetFileName(e)) + '.txt');
523-->    if not ResourceOrFileExists(sFileName) then
      sFileName := ScriptsPath + 'DynDOLOD\' + AppName + '_TexGen_noalpha_' + Lowercase(RemoveNonAlphaNum(GetFileName(e)) + '.txt');
    if ResourceOrFileExists(sFileName) then
      slFiles.Add(sFileName);    
    sFileName := 'DynDOLOD\' + AppName + '_TexGen_alpha_' + Lowercase(RemoveNonAlphaNum(GetFileName(e)) + '.txt');
    if not ResourceOrFileExists(sFileName) then
      sFileName := ScriptsPath + 'DynDOLOD\' + AppName + '_TexGen_alpha_' + Lowercase(RemoveNonAlphaNum(GetFileName(e)) + '.txt');
    if ResourceOrFileExists(sFileName) then
      slFiles.Add(sFileName);
  end;

And DyndoLOD returns this error

Exception in unit  line -1: Error in unit 'lodgenalt' on line 81 : Not enough parameters

Is this a user error or is something else going on. I'm running Skyrim LE on MO 1.3.11. Thanks.


  • 0

#2 sheson

sheson

    Dragon Prince

  • Mod Authors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,522 posts

Posted 05 October 2017 - 04:24 PM

Make sure all old files are overwritten with the ones from the latest standalone archive. For example, the function ResourceOrFileExists is defined in ..DynDOLOD\Edit Scripts\DynDOLOD\lib\functions.pas, if it can not be found, the function.pas is from an old version.


  • 0

#3 filmguy93

filmguy93

    Prisoner

  • Members
  • 2 posts

Posted 05 October 2017 - 04:28 PM

Yep that was it. Thank you!


  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users