Jump to content

Need Help in OMOD Script


samadchaz

Recommended Posts

here is my script

 

If VersionLessThan 1.1.2

Message "This mod must be installed by OBMM version 1.1.2 or later to prevent install script errors."

FatalError

EndIf

DontInstallAnyDataFiles

 

IfNot OblivionNewerThan 1.2.416

Message "This mod requires Oblivion 1.2.416 or higher. Please download and install the official patch."

FatalError

EndIf

DontInstallAnyDataFiles

 

IfNot ScriptExtenderNewerThan 0.0.20.6

Message "HUD Status Bars requires Oblivion Script Extender. This cannot work without it." "WARNING - MISSING OBSE"

FatalError

EndIf

DontInstallAnyDataFiles

 

IfNot DataFileExists "Hud Status Bars.esp"

Message "HUD Status Bars mod not detected. This cannot work without it." "WARNING - MISSING MAIN MOD"

FatalError

EndIf

DontInstallAnyDataFiles

 

DisplayImage "SS3.jpg" "HUD Alive!"

DontInstallAnyDataFiles

 

IfNot DataFileExists "Oblivion XP.esp"

Message "Oblivion XP not detected.Oblivion XP bar will not appear" "Oblivion XP"

EndIf

 

IfNot DataFileExists "DarNifiedUI Config Addon.esp"

Message "DarNifiedUI Config Addon not detected. HUD Aive could strongly benefit from that mod." "DarNifiedUI Config Addon.esp"

EndIf

 

DontInstallAnyDataFiles

If DialogYesNo "This will Install ini file,Continue?"

InstallDataFile "ini\\Hud Status Bars.ini"

EndIf

 

DontInstallAnyDataFiles

If DataFileExists "Oblivion XP.esp"

If DialogYesNo "Oblivion XP detected ,Continue installing Oblivion XP Bar?"

CopyDataFolder "Textures" "Textures" True

CopyDataFolder "Menus" "Menus" True

EndIf

EndIf

 

 

I dont know where I am going wrong. Its giving me following error

"you cannot copy a folder over itself"

 

first script, please help.

Link to comment
Share on other sites

As far as I know the 'CopyDataFolder' steps are all done internally in the temporary folder the archive got extracted to, not your data folder. So when you call 'CopyDataFolder "Textures" "Textures"' it's instructed to do exactly what it's complaining about, copying "its" 'Textures' folder over "its" 'Textures' folder, not "yours". Simply calling 'InstallDataFolder "Textures"', or what the corresponding command is, would do what you're trying to achieve here by 'CopyDataFolder "Textures" "Textures"'.
Link to comment
Share on other sites

OBMM should know your game path from the registry, but I think there's also a config dialog where all those pathes can be set up.

What exactly are you trying to achieve by installing resource files to some place outside of your game, where they can't be found?

Link to comment
Share on other sites

thanks for reply:)

I want to replace/install in this folder

My Documents/My Games/Oblivion/Pluggy/

I want to install a log file there made by Darnified UI config Addon.

I cant use Conscribe( I think it store values in savegame)

Edited by samadchaz
Link to comment
Share on other sites

  • Recently Browsing   0 members

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