Module Framework – Arma 3 Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "‎" to "")
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
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."
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‎ [[user:Grubes|Grubes]]
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 [[user:Grubes|Grubes]]


:If your pbo is called mypbo.pbo the path should be "\mypbo\myscript.sqf" --[[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 00:34, 10 August 2015 (CEST)
:If your pbo is called mypbo.pbo the path should be "\mypbo\myscript.sqf" --[[User:Benargee|Benargee]] ([[User talk: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 --[[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 00:42, 10 August 2015 (CEST)

Latest revision as of 11:55, 26 April 2023

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)