Jump to content

Are single scripts ignored, if put to an archive?


Magus01

Recommended Posts

Hello,

 

it is a beginners question: If have a single script, which does not override something in the game (or any other mod). It is a set of new global functions, which are supposed to be called via console hotkeys. The script is not my work! But it works fine, if I enable console hotkeys. (This is the script from the Companion Commands mod).

 

The mod puts the script as a loose file to data/scripts. If I do this, all works fine.

 

Now I just wanted to add the script to an archive, and not enable loose files in my game. I have no mods except UFO4P, so this works.

 

So I went and put the source provided to data/scripts/source/user. The CK found the script, and I could compile it. I put this script - and nothing else - into a ba2 archive (using the CK), and saved an empty mod. The naming should be correct:

 

Mod Name: ModName.esp

Archive Name: ModName - Main.ba2

 

But this does not work. I tested the mod with LOOT, and LOOT said, that archive data are loaded. But they are not loaded, but ignored. The console hotkeys work fine, but if I try to call one of the mods global functions, it says they do not exist. I also tried to call them directly via console - same result.

 

So it seems, that an empty mod (no game data modified) plus an archive with a single new script does not work. The script - the only thing which matters - is ignored.

 

I also tried to do that 'per hand', by creating an empty mod via FO4Edit, saving it, and creating the archive with the archive tool. The result is the same, and this too does not work.

 

Is this a known problem? A bug? I can live with it, I can enable loose files and use it this way. But my method should work, or am I wrong here?

 

Thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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