Jump to content


Photo

TexGen and DyndoLOD errors since 2.30


  • Please log in to reply
6 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,524 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

#4 klaasfakie

klaasfakie

    Prisoner

  • Members
  • 2 posts

Posted 21 October 2017 - 05:43 PM

i am not english i will try to be precise i download dyndolod 2.35 and run texgen but dyndolod activate not texgen so no textures generated only lod


  • 0

#5 sheson

sheson

    Dragon Prince

  • Mod Authors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,524 posts

Posted Yesterday, 04:31 AM

Sorry but not sure what you are trying to say.

If there is an error either post the log or a screenshot of the problem.
  • 0

#6 klaasfakie

klaasfakie

    Prisoner

  • Members
  • 2 posts

Posted Yesterday, 08:48 AM

i mean when i run texgen it suppose to run texgen but it does not it runs dyndolod instead i see dyndolod and texgen file size exactly same size that right? both do same only lod dont know how else to say sorry if you dont understand


  • 0

#7 sheson

sheson

    Dragon Prince

  • Mod Authors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,524 posts

Posted Yesterday, 09:36 AM

DynDOLOD and TexGen are the same executable and they simply run different pas scripts based on their executable name.

If the filename is TexGen.exe/TexGenx64.exe it executes ..Edit Scripts/DynDOLOD TexGen.pas

Any other executable name like DynDOLOD.exe/DynDOLODx64.exe for example defaults execution to ..Edit Scripts/DynDOLOD Worlds.pas

This should be impossible to change or overwrite. Make sure the filenames are correct and remove any additional command line parameters.

Edited by sheson, Yesterday, 09:43 AM.

  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users