Jump to content
  • 0

TexGen and DyndoLOD errors since 2.30


Question

Posted

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.

6 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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
Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.