OMOD Script Help

Post » Thu May 03, 2012 7:47 am

If VersionLessThan 0.9.13   Message "This mod must be installed by OBMM version 0.9.13 or later to prevent script errors."   FatalErrorEndIfSetVar InstallFiles 1If InstallFiles = 1CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" trueCopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" trueEndIf

This syntax is not correct according to http://hammondslegacy.com/obmm/tools_obmm_anolyzer.asp 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" trueEndFor

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."   FatalErrorEndIfCopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" trueCopyDataFile "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   [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" trueEnd;
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Thu May 03, 2012 9:46 am

Nevermind after some trial and error I figured it out

If VersionLessThan 0.8.11   Message "This mod must be installed by OBMM version 0.8.11 or later to prevent script errors."   FatalErrorEndIfCopyDataFolder "00 Core Files" "OBSE\\Plugins" FalseCopyDataFolder "10 Plugy Docs" "Docs\\Pluggy Docs" False
User avatar
Rebekah Rebekah Nicole
 
Posts: 3477
Joined: Fri Oct 13, 2006 8:47 pm


Return to IV - Oblivion