Jump to content

OMOD Script Help


Sharlikran

Recommended Posts

If VersionLessThan 0.9.13
  Message "This mod must be installed by OBMM version 0.9.13 or later to prevent script errors."
  FatalError
EndIf

SetVar InstallFiles 1

If InstallFiles = 1
CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true
CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true
EndIf

 

This syntax is not correct according to LHammonds Legacy Script analyzer. It keeps telling me the function is not defined.

 

I Tried:

For Count 1 2
 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true
 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true
EndFor

 

All I want to do is copy two files from one folder to another folder. To me the below example is all I should have to do.

 

If VersionLessThan 0.9.13
  Message "This mod must be installed by OBMM version 0.9.13 or later to prevent script errors."
  FatalError
EndIf

CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true
CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true

 

However that's not right either. What is a better resource of syntax. I skimmed over a few posts but all the entries for CopyDataFile state

 

CopyDataFile <From> <To> [RecurringSubdirectories]

 

So then my syntax should be right. Why is my command to copy file here being treated an an undefined function when it's in the list of commands for the script file?

 

Or Pascal-ish? ^_^ LOL!!!

 

Procedure Install;
 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true
 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true
End;

Edited by Sharlikran
Link to comment
Share on other sites

  • Recently Browsing   0 members

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