English Solved Script function never called

Peragh

User
14/3/22
6
0
100
Hey dear The-Programmer Forum.

I'm relatively new to scripting Arma 3 and wanted to try out a few basic things, I wanted to try my hand at an excavation script. Now to my problem.

I have focal files

S’il vous plaît, Connexion ou S'inscrire pour voir le code !


S’il vous plaît, Connexion ou S'inscrire pour voir le code !


S’il vous plaît, Connexion ou S'inscrire pour voir le code !

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

So and because I'm dating it's probably because of the call in actionKeyHandler, I also adjusted the functions.h and moved the files into Core\functions and also adjusted it in the Function.hpp.
Unfortunately, this still doesn't work and I don't know how best to debug it in Arma to find out what the problem is.

I have the problem that the script is not even executed or any hints are displayed


Thank you in advance
 
Vos logs serveur | Your server logs
https://paste-me.net/usiqi
Vos logs client | Your client logs
https://paste-me.net/komey
Solution
Hello!

You've actually declared the "fnc_startAusgrabung" function in the "life_fnc_ausgrabung" function, which isn't very useful. And it's not working because "fnc_startAusgrabung" is never called, so it's better to remove it.

You should do something like that :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

I'm the Boss

Admin
2/1/20
552
2
43
1 100
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Dear user,

Based on the code you provided, it seems that you are missing the initialization of the function fnc_startAusgrabung in your script. To fix this, you need to add the following line to your script:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

This line will compile the fn_ausgrabung.sqf file and assign it to the function fnc_startAusgrabung.

Additionally, make sure that you have correctly set up the peragh_functions class in your functions.hpp file, as it seems to be missing the function ausgrabung definition. Double-check the spelling and ensure that the function is properly placed in the peragh\functions folder.

To debug the script, you can use the diag_log command to output debug information to the Arma 3 game log. For example, you can add diag_log "Start ausgrabung"; at various points in your script to see if the code execution reaches those sections.

I hope this helps! Let me know if you have any further questions.

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
 

Peragh

User
14/3/22
6
0
100
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Dear user,

Based on the code you provided, it seems that you are missing the initialization of the function fnc_startAusgrabung in your script. To fix this, you need to add the following line to your script:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

This line will compile the fn_ausgrabung.sqf file and assign it to the function fnc_startAusgrabung.

Additionally, make sure that you have correctly set up the peragh_functions class in your functions.hpp file, as it seems to be missing the function ausgrabung definition. Double-check the spelling and ensure that the function is properly placed in the peragh\functions folder.

To debug the script, you can use the diag_log command to output debug information to the Arma 3 game log. For example, you can add diag_log "Start ausgrabung"; at various points in your script to see if the code execution reaches those sections.

I hope this helps! Let me know if you have any further questions.

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
But for that I have the call in the fn_actionKeyHandler.sqf:
 

I'm the Boss

Admin
2/1/20
552
2
43
1 100
But for that I have the call in the fn_actionKeyHandler.sqf:
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Dear user,

Apologies for the oversight. It seems that you're missing the necessary code to call the fnc_startAusgrabung function in the fn_actionKeyHandler.sqf file.

To fix this, you need to add the following line to your fn_actionKeyHandler.sqf script, assuming that fnc_startAusgrabung is defined correctly:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

This line will call the fnc_startAusgrabung function and execute the code within it.

Make sure that the fn_actionKeyHandler.sqf is properly called or included in your mission/script setup to ensure that the function call is triggered correctly.

Feel free to ask further questions.

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
 

Peragh

User
14/3/22
6
0
100
Okay, thanks for the help, but now I have another question: how do I best call fn_ausgrabung.sqf? so in my fn_actionKeyHandler.sqf
 
Activité
Pour l'instant, il n'y a personne ici