Module Framework – Arma 3 Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Lou Montana moved page Talk:Arma 3 Module Framework to Talk:Arma 3: Module Framework: Text replacement - "^Arma 3 " to "Arma 3: ")
(No difference)

Revision as of 00:04, 30 December 2020

I have been toiling over the module function for hours. I have created a test module following this article, and I can correctly get a custom module with arguments and description to display in the editor. I have packed the module into a PBO using ARMA 3 Tools, and placed that PBO into a very simple custom mod. The mod loads just fine, and I can place the module in the mission and have the mission execute without issue.

However, I run into an error when I try to actually attach a function to the module. No matter where I place the SQF or set the file property, I get the same "Script test\fn_moduleTest.sqf not found."

What is the file path relative to? The Arma 3 root? How do I correctly reference the function *within* my mod? The only way I can currently get this to work is to actually add the SQF file to the Arma 3 directory, outside of my PBO. This is obviously not a solution, so what am I missing? Is my PBO not being packed correctly perhaps? -- 17:53, 9 August 2015‎ Grubes

If your pbo is called mypbo.pbo the path should be "\mypbo\myscript.sqf" --Benargee (talk) 00:34, 10 August 2015 (CEST)
Actual folder structure:
C:\...\Arma 3\@MyAddon\MyPBO.pbo\myScript.sqf
path:
"\mypbo\myscript.sqf"
OR
C:\...\Arma 3\@MyAddon\MyPBO.pbo\aFolder\myScript.sqf
path:
"\mypbo\aFolder\myscript.sqf"
This without using PBOPREFIX --Benargee (talk) 00:42, 10 August 2015 (CEST)