Jump to content
Sign in to follow this  
cyrilfiggis

Script not found when mission is exported to singleplayer

Recommended Posts

Hi there,

I have a mission that I made in the editor. On the player's init line I call a file called introDialogue.sqf using the execVM command as such

nul = execVM "introDialogue.sqf";

This works in the editor preview, but when I go to export the mission to singleplayer, I get an error saying that the file cannot be found. I have checked the .pbo and everything is in there, and I exported the mission with the same name as the editor version. I am really at a loss here, any help would be appreciated.

Share this post


Link to post
Share on other sites

If it doesn't include the player, why whould you put it in his init? You can just put it in the init.sqf as

[] execVM "introDialogue.sqf";

Though the file not being found shouldn't be the error even in this case, just bad syntax (or should it be?). The editor preview can be very deceptive sometimes...

Share this post


Link to post
Share on other sites

When I make that change, it doesn't work in preview mode either.

--EDIT--

I did the change wrong. When I do it correctly, it still works in preview, but it does not work in Singleplayer export. No error is being raised that I can see.

--EDIT 2--

I was able to solve the issue by placing the command inside a trigger instead of an init field. Worked like a charm. Thanks for your help wak.

Edited by CyrilFiggis

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×