Jump to content
Sign in to follow this  
r.flagg

RPT Error - sqf file not found, yet it is in my mission folder

Recommended Posts

I get error messages in my RPT file, as well as popup dialog boxes, telling me certain files are not found when in fact they are in my main mission folder.

The ones I'm seeing right now are scripts I'm calling from my unit's (s1) init line. And the scripts (such as loadout.sqf) are working because I'm getting the loadout it calls for.

What am I doing wrong? Is it the arrangement of my init.sqf file? I never really understood how to arrange that file, I just keep adding things to it as I add various scripts to my mission.

execVM "briefing.sqf";


[slick1,escort1] execVM "scripts\heloGoTo\heliTaxi_init.sqf";

NORRN_noAerialTaxiAtStart = true;

//this section is for Civ Kill Count by SHK

SHK_DeadCivilianCount = 0;
SHK_DeadCivilianLimit = 3;
SHK_EndMission = false;
[] spawn {
 waituntil {SHK_EndMission};
 cuttext ["Game over. Unfortunately, you killed too many civilians.","PLAIN",2];
 sleep 10;
 endmission "END2";
};

SHK_fnc_deadCivilians = {
 hintsilent format ["Civilians dead: %1",_this];
 if (_this >= SHK_DeadCivilianLimit) then {
   SHK_EndMission = true;
   publicvariable "SHK_EndMission";
 };
};
SHK_eh_killed = {
 private "_side";
 _side = side (_this select 1);
 if (_side == Resistance) then {
   SHK_DeadCivilianCount = SHK_DeadCivilianCount + 1;
   publicvariable "SHK_DeadCivilianCount";
   if isdedicated then {
     if (_this >= SHK_DeadCivilianLimit) then {
       SHK_EndMission = true;
       publicvariable "SHK_EndMission";
     };
   } else {
     SHK_DeadCivilianCount call SHK_fnc_deadCivilians;
   };
 };
};
if isserver then {
 {
   if (side _x == Civilian && _x iskindof "Man") then {
     _x addEventHandler ["killed", SHK_eh_killed];
   };
 } foreach allunits;
} else {
 "SHK_DeadCivilianCount" addpublicvariableeventhandler { (_this select 1) call SHK_fnc_deadCivilians };
};
[] spawn {
 waituntil {!isnil "BIS_alice_mainscope"};
 waituntil {!isnil "bis_fnc_variablespaceadd"};
 [bIS_alice_mainscope,"ALICE_civilianinit",[{_this addEventHandler ["killed", SHK_eh_killed]}]] call bis_fnc_variablespaceadd;
};



if(!isServer) then {waitUntil{!isNull player}};
DAC_Zone = compile preprocessFile "DAC\Scripts\DAC_Init_Zone.sqf";
DAC_Objects	= compile preprocessFile "DAC\Scripts\DAC_Create_Objects.sqf";
execVM "DAC\DAC_Config_Creator.sqf";


call compile preprocessFileLineNumbers "SLP\SLP_Init.sqf";
enableSaving [false, false];

["ca\missions_pmc\data\ui_gps_ca.paa",-0.05,0.16] call bis_fnc_customGPS;



server execVM "revive_init.sqf";

[] execVM "player_respawn.sqf";



FUNKTIO_3DTEXTA=compile preprocessFile "3dText.sqf";

s1 setVariable ["NORRN_taxiHeli", slick1, true];

Share this post


Link to post
Share on other sites

I bet a million pounds, the files are actually called loadout.sqf.txt

Load these files up in a decent editor, such as notepad++ and save them back out as allfiles.* sqf

Share this post


Link to post
Share on other sites

No, that much I'm aware of. So, you just lost the bet. (but donation to charity is acceptable) Though I am still grateful that you read and replied. Thanks.

Another example is legheal.sqs by Celery. Which is also in my unit's init line.

Share this post


Link to post
Share on other sites

At the moment it's just this, as I was in process of moving and removing stuff trying to troubleshoot my issue.

heroes = group this; xhandler = [this] execVM "loadout1.sqf"; onMapSingleClick "player setPos _pos";

At other times it has looked like this;

heroes = group this; [this] exec "legheal.sqs"; xhandler = [this] execVM "loadout1.sqf";

And other variations of course.

I'm currently spending most of my time on Lingor, just fyi.

Oh, I also just remembered, one message I've seen of file not found is initintro.sqs, and I don't even know what that is.

(just pulled this from my rpt as example from a different mission start/stop I did as test, I don't know what either of those are supposed to be for)

[15351,409.23,0,"XEH: VehicleCrewInit: 14"]
Warning Message: Script initintro.sqs not found
Warning Message: Script particles.sqf not found
[15353,409.608,0,"XEH: PostInit Started"]

I run Steam version of OA through ARma2 launcher.

Share this post


Link to post
Share on other sites

are the files being called in the correct directory? Are they named correctly? Earlier you said "loadout.sqf" and then later you referenced it as "loadout1.sqf" etc.

Share this post


Link to post
Share on other sites

upload your mission to let others check - saves you typing and people can actually help you ;)

Share this post


Link to post
Share on other sites

Thank you for the replies, and I apologize for the delay in responding. First of all, just to show that I'm more than willing to cooperate with such generous assistance;

https://sites.google.com/site/rflaggtoc/wip-missions/Roaming20Lingor202012.lingor.7z?attredirects=0&d=1

that should be the link to the file on my google storage.

However, the last thing I want to do is waste anyone's time, so I should say that I now think my problem is not the mission, but rather some sort of issue with Lingor, and/or some weird combo of Lingor and Arma2 launcher, or something like that. Because I get the same weird type of error messages if I don't even touch that WIP mission of mine, and load something like the Lingor demo mission for the Module Improvement Project;

http://forums.bistudio.com/showthread.php?116246-BIS-Module-Improvement-Project

So while I still don't understand what the issue is, I don't think it's that specific mission, and I probably should have posted this thread in another section.

Guess the reason i was confused was because the first messages I was seeing was for those lines in my unit's init, which made me think it was something in the mission.

I will continue to try to troubleshoot this. I've been doing things like redownloading Lingor, updating my CBA ( I was away from Arma2 for some months), etc.

Thanks for the responses. Love this place.

(Just as an aside, I love the old script I found just recently which enables me to order two of my squad to deploy and then DisAssemble static weapons in their backpacks with ease (kylania). And I still use at least a handful or more of Proper addons when I play (kju) - can't thank guys like you enough.)

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  

×