-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripted Optic error in last 2 CBA udpates #1297
Comments
Full RPT file required. |
Still needs an RPT file. No one else seems to be able to reproduce this issue. |
Feel free to reply if you're still here. Closing this as no one else has the problem, and since there are no logs, I assume it is a user problem. |
I get the same error in my mission on every startup. Here is an extract of the RPT file (only CBA lines and the error lines shown): Error message
|
Post full RPT. Excerpts are useless. |
It happens in the moment one second after joining the mission where my script file automatically adds the weapon optics via Error message
|
I need the whole RPT file. |
Here is the full RPT file: RPT fragment
|
That is not the full file. It starts with:
etc. |
The "one second after mission start" issue is not the problem. I now retested it by calling the problematic functions about 20 seconds after mission start. Same problem. Here the full RPT: RPT fragment
|
Ah you need the RPT from ArmA game start on. Ok. I delete the RPT always before starting a mission. No problem. I restart ArmA. |
Yes, I do... Also, you misspelled "Arma". |
Yes. Now post the RPT. This is not a chat. |
Here the RPT file. But the error is gone ... I restart the game again. So strange... RPT file
|
This is just crazy ... The error does not appear anymore after game restart. Also the second game restart did not bring back the error. I will now restart my computer and check for the error again. RPT file
|
I spoiler tagged your posts, because this issue got very long. <details><summary>RPT file</summary> ``` </details> |
I restarted my computer. I cannot reproduce the error. (But since I had this error for weeks every day dozens of times every time I tested the mission I hopefully get the error again soon and the I send a complete RPT.) |
Ah now I got it! The error does not happen when the game has freshly started and its the first time I start the mission. But going back to mission selection screen and starting the mission again brings up the error :-) RPT file===================================================================== == C:\Program Files (x86)\Steam\steamapps\common\Arma 3\arma3_x64.exe == "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\arma3_x64.exe" -name=Schmitt -showScriptErrors "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@CBA_A3;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@ace;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@ace_optional;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@acex;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Achilles;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@acre2;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Metis_Enhanced;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Metis_Marker;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Metis_Nature;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Suppress;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@bw Original output filename: Arma3Retail_DX11_x64 Exe timestamp: 2019/11/11 15:08:30 Current time: 2020/03/07 01:00:13Type: Public Allocator: C:\Program Files (x86)\Steam\steamapps\common\Arma 3\Dll\tbb4malloc_bi_x64.dll [2017.0.0.0] [2017.0.0.0]
|
Since you know scripting, what does |
I thought I knew scripting, but since I dont get your question perhaps I dont ... (I would answer: It reports exactly what you see in the RPT file) Perhaps it helps if I send you the mission file. You can start the mission when you have at least the mods: ACE, CBA, BWMod, Redd Vehicles active. [SMT]HostileActivities_8_09.Malden.zip The error happens automatically in the beginning of the mission. No need to do anything. |
I mean, if you put the variable into the debug console, what is the value of |
1.95 |
I added some logging info to my sqf scripts: diag_log format ["read value of variable cba_optics_OpticBodyTexture: %1", cba_optics_OpticBodyTexture]; leading to this result showing that the variable is not filled in the moment when it should have its final value:
|
Not how this works. I downloaded your mission and will try to reproduce. Do I need to restart the mission multiple times from the editor? |
I always do main menu >multiplayer > host server > select mission > start (no editor involved) |
I am getting different error messages about mission scripts. |
The script that leads to the error is located here: [SMT]HostileActivities_8_09.Malden\functions\50_spieler\fn_spielerAusruesten.sqf |
"I am getting different error messages about mission scripts." |
Here: RPT file
|
Ok, ok. Never tried to start without ACRE before. Obviously the game does not like to equip an empty walkie talkie. So if you have ACRE also start ACRE. Sorry for inconvience. I was not prepared for doing a prerelease of my mission here. |
For you as coding expert, here is the reason for the error above. I should have told you you either need ACRE or TFAR to run the mission. It is optional which one you choose. But if you dont use any the variable is empty.
|
I do not have ACRE installed. Anyway, seems to me like it has to do with the awkward way you are creating units at mission start and some race conditions in hosted MP games. |
I updated the mission so that no ACRE is required anymore. You only need these mods: @CBA_A3;@ace;@acex;@bwa3;@bwa3_ace;@Redd_n_Tank_Vehicles; Here is the mission file: [SMT]HostileActivities_8_09.Malden.zip And here is the RPT file generated with that mission file: RPT file===================================================================== == C:\Program Files (x86)\Steam\steamapps\common\Arma 3\arma3_x64.exe == "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\arma3_x64.exe" -name=Schmitt -showScriptErrors "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@CBA_A3;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@ace;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@acex;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@bwa3;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@bwa3_ace;" "-mod=C:\Program Files (x86)\Steam\steamapps\common\Arma 3\pzgrenbtl402\@Redd_n_Tank_Vehicles;" -beserviceOriginal output filename: Arma3Retail_DX11_x64 Type: Public Allocator: C:\Program Files (x86)\Steam\steamapps\common\Arma 3\Dll\tbb4malloc_bi_x64.dll [2017.0.0.0] [2017.0.0.0]
|
Thanks for the help. I guess this covers whatever OP was doing as well. |
Arma 3 1.96
CBA 3.14
NIARMS complete
CUP weapons
Error popup when using some optics, first appared in CBA 3.13
15:32:15 Error in expression < cba_optics_OpticBodyTexture;
_ctrlBody ctrlSetPosition _bodyPosition;
_ctrlBody>
15:32:15 Error position: <ctrlSetPosition _bodyPosition;
_ctrlBody>
15:32:15 Error Type Number,Not a Number, expected Number
15:32:15 File x\cba\addons\optics\fnc_loadScriptedOptic.sqf..., line 70
The text was updated successfully, but these errors were encountered: