-
Content Count
1114 -
Joined
-
Last visited
-
Medals
Community Reputation
158 ExcellentAbout bardosy
-
Rank
Master Gunnery Sergeant
core_pfieldgroups_3
-
Interests
Game development, bike, movies, boardgames, wargames
Profile Information
-
Gender
Male
-
Location
Budapest, Hungary
Contact Methods
-
Biography
I create campaigns since OFP.
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Increment a variable: "Invalid number in expression" error
bardosy replied to bardosy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OMG, you are the best rubberduck! Thank you!!! When I search for the error msg, I found out the problem: } forEach (units _group_i): It's not a comma in the end of this line. Sorry for annoying, but thank you very much!!!!- 2 replies
-
- 1
-
- error
- invalid number
-
(and 1 more)
Tagged with:
-
Increment a variable: "Invalid number in expression" error
bardosy posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I created a group of units in SQF script and then add a killed eventHandler to all of them: { _x addEventHandler ["Killed", { params ["_unit", "_killer"]; hullaszamlalo = hullaszamlalo + 1; }]; } forEach (units _group_i): "hullaszamlalo" is a global variable, what is zero in init.sqf But when the create units script run, I got a "Invalid number in expression" error to "...o + 1;" It sounds like I cannot add one to a variable. Probably a noob mistake. Need a rubberduck to point to my noobness.- 2 replies
-
- error
- invalid number
-
(and 1 more)
Tagged with:
-
Repeatable trigger for any gorup member
bardosy replied to bardosy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Very good question! Thanks. I inform the player about this. The situation: paratroopers arrive without equipment (only pistols) and they have to find their weapon container and rearm - meanwhile Greek shepherds hunt them. So the players rush to the containers for rearm, but rearming AI soldiers by commands is a pain. So I want to help in this and if any AI soldier is near to this container, they automatically get his weapons. So I dont want to add an addAction what is rearm all his AI soldiers, because its too easy, he have to lead or command his men to the container (meanwhile they are hunted). But - during my sleep - I could drop the trigger-idea and probably I will to make a script what checks in every 5 second if any player-lead AI soldier is close enough to the container and then rearm. And if all the soldiers is done, then exit. EDIT: Yeah, script works like charm. I think sometimes we just dont need trigger. -
Repeatable trigger for any gorup member
bardosy replied to bardosy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Your first idea works, when one soldier rearmed then send all of them away and then back. But it very painful to rearm all. The second one didnt work. I guess the last line never run, bc its in the onDeact field what is only run, when deact. But this line should deact. So I tried to put it in the end of the second line *what is on the onActi field. But still not works. But I understand your concept and it should work, but doesnt. I am so desperate I am thinking about to delete the trigger in the end of the script (what is run by the trigger) and create a very similar again, what is fire the script again... 🤣 -
Repeatable trigger for any gorup member
bardosy replied to bardosy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks! I will try this. -
Repeatable trigger for any gorup member
bardosy posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am a little bit rusty and forgot a lot of things. So I stucked in this issue: There is a container on the map and a repeatable trigger around it. The owner of the trigger is the player. The trigger activated by "any group member" "present". I want if any of my soldier arrive to the trigger he get a new weapon. I made the script and it works for the first soldier, but not the others. It seems the trigger activated only once (if two of mu soldier arrive at once, the script works well both of them, but the trigger never deactivated, so when the third soldier arrive he didnt get the new weapon. I tried to write "true" to onDeactivate field and hoped it will autamitically deactivate the trigger when activated, but not. Any useful tip? -
bardosy changed their profile photo
-
Hey Johnnyboy Yesterday I tested SOG AI with my mission Search and Rescure. I wantr only share with you the ending, because maybe you can improve SOG AI by this experience. So at the very late game I have to liberate two POW pilots. They joined to my squad. Yes, Iknow SOG AI dont handle lately joined AI. Thats ok. I ordered them with vanilla command to follow me. The terrain is not too AI freindly there so I use your wheel many times to order my original AI to follow me. Everything went fine. But once I thought, the original AIs can be faster if I order them with your "move there". So I used the wheel and order them to "move there". And then, the two pilot UNjoin from my squad. They didnt die or injured, they just stand where they were when I use the wheel. All the original AI move where I told them. But the two pilot were not in my squad anymore. It was not a showstopper (maybe a little story-killer), because the rescue helicopter took us and fly to the base and mission successful ended. But the tro pilot left in the rice field. 🙂 Fortunately my napalm script didnt work again, because by my original version, after the rescue helikopter took us, an F4 just napalm the rest of the prison camp. If it went fine, those pilots would roasted. Back in the functionality: I thought you mod just dont care with the lately joined AIs, so I expect the original AIs will run to the point where I sent them, and the pilots will follow me slowly (as vanilla "back to formation" do), but they were detached from the squad.
-
Congratulation! And I report: I tried the Boots for walking mission with SOG AI and works fine. I was very accurate to find any issue, but I couldn't. Even my tasks worked fine. I know it's not yet your script, but it looked great (and rare in PF) when AI walk across a bridge without stucking. Oh and finally I met with those infamous patrol dogs. 🙂
-
It1s not SOG AI related, but I could fix the napalm strike script, plus I add your napalm effect script. And it looks great.
-
I only use SOG AI mod. No other mods.
-
About stuck AI: yeah, you are right, its a cheat and immersion killer. And I saw that "come to me" but didnt know I should try to use it 🙂 When the guy stucked in a hut I tried everything with vanilla BIS commands: change stance, go there, RTF... etc but he couldnt move. That forced/animation swim and bridge crossing sounds VERY good!!! You are the man!
-
Another feedback: I tried my Secure Transport mission with SOG AI. Here are my experience: * I dont know it's just the leapfrog or you did something else with the AI, but leapfrog is VERY EFFECTIVE. Yeah, it's not a fast train, but do the job: my squad became an advance panzer train. And also it looks extremly cool. In vanilla SP the player is the Rambo and team only support him. But with leapfrog, they do the job of a regular soldier and I can be the Team Leader. What is perfect! (I saw many feedbacks in Workshop forum and they are right: you should do this leapfrog command available as a mod for basic Arma (not just for SOG). Yeah, I get it, there is no command wheel, but if you just add in the action menu, it would be perfect! * I dont know it was you, but it's the healing system, but my men has a bandage after they were healed by the medic. Very good mood. * I know it's not easy (I mean the scripting is easy, but not too realistic), but you should add a command to action menu (like "treat you all") when some of AI team mate is far enough from the group (or detect somehow he is stucked - but if he is far away it's possible because he is stucked). So the player SL has an ability to unstuck him from action menu (just teleport him a few meters away or teleport him next to a closer AI teammate. I know and you know SOG terrain is a nightmare to AI and they always trapped. If you add a little help to the players (even if it's a little bit unrealistic) add a huge help. Or if you have a better idea how to teleport a little bit realistic, it could solve your problem? not all PF mission is playable, because AI cant cross river... etc. So if you add some teleport option, player can swim or boat cross the river and then teleport the AIs. * I get this circle again. Forget it! Probably connected somehow the medic and healing system. It's somehow the medic do the revive, but the revive gui somehow show for the player? It was present on my screen, but once the AI medic cannot reach the wounded guy, so I go there and treat him. And then I saw the revive circle and when I revive the guy, the circle is dissapear. But yeah, you dont have to waste time on this, it's not a big issue. I just try to discover this circle for you. * I dont know why, but in the very late game (Secure transport is a very long mission and a lot of walking and I mostly use leapfrog command), But sometimes I add follow me order or move there order. And in the late game, two guy refuse the follow me and the move there commands. They just lay in the ground (in the GUI, under their name was "stop", like during the leapfrog, when half the squad is just "stop". I dont know some code from leapfrog interfere with this OR they did this strange disobey because their colorcode-mate (they were the read team) was stucked in a fence 6 km away (and they just wait for him?). Finally they follow me and everything went fine... * I experienced second time: if I play with SOG AI, my tasks f*cked up: In the beginning I saw the task: "get in the helicopter", but when I do, it never became complete. The heli triggered and transport us into the AO, but the task never checked and I dint get the new task. The whole mission went fine (but only because I know what to do, bc there was no tasks). I use an old task framework by FHQ (because it's better for MP) maybe its interfere with your script. Johnnyboy! This is a fantastic MOD. Pls consider my suggestion about the "untrap AI" option! Also a question: is it possible to use SOG AI in PF campaign by a friend: I mean, we played all PF mission by two and it was very hard. If we could use SOG AI and your AI team, it made all these mission most enjoyable.
-
I saw your YT video about Boots for walking mission. I commented it, but I have one question what is more esily to answer here. In the village I saw you to use the bis revive (when your AI didnt help) How is it works for you? When I did it, your script told me I am wounded and cannot command my men.
-
Johnnyboy, I tried Valkyr in 4th times at night and your stuff works fine (mine not soo). I didnt play with arma in the last 5-6 months and all the updates since then ruined a lot of things: * Somehow - when I play in SP - the task system didnt work. I didnt get new tasks. But all the triggers works, so I (who know what to do) can play it to the end, but there was no tasks. What is very odd, because the first 3 try I had. * Somehow a litle white circle with transparent black fill is appear around my crosshair (I could play with it. Even it was easier to aim). I am not sure, maybe it's from your GUI? Maybe not. * My napalm script (spawn a F4 with napalm and drop it) didnt work: the F4 spawned and fly correcly, but it didnt drop the bombs. Probably they change the name of the class of the bomb, so when I "fire" it, it's just dont do. * The cannon on the beach (what I should use as arty map) is start jumping when I activate arty map. Sometimes it jumps into the water and damage the cannon and kill me. Other times, I could filfull the task (fire enough to the target area), so trigger activated and I could continue, but everything looks sooo ugly. So my point is, I tried in SP mode and SOG AI works fine. I dont know why command wheel didnt appear in the first try. Oh, just a small suggestion: maybe it's just me, but I had to try all the keys on keyboard to found the key to the command wheel. You should mention the Tab key in the description of Workshop. (But if all the other guys could use it without problem, maybe it's obvious, and I am just dumb.)
-
Hey Johnnyboy! Thanks for this excellent mod! Please let me share my experience and correct me if I did something wrong! I tested it with my Valkyrie mission. First I tried it in SP mode but it cannot open your command wheel. So I tried in MP (first with my original AI teammates, but something went wrong so I decide to disable all AI and use your teams) So I describe my third attempt: I choose a 9 men Army group from your list. I load the men to the helicopter with BIS "get in" order. And in the AO they unload nicely by my fixed script. Then I game them a frogleap order to east and it was a beauty how they perform it. They use grenade what is better than BIS AI. Then we turn back (get a new task) to the hospital. (In my second try - when I use my original team, not yours - I gave them a circle order from your wheel, but when I want to advance again, I use BIS follow me and it wont work, only your wheel's follow me). So then I game the new frog leap command to the hospital and they do it as it should be. In the hospital garden I saw a hiding VC, so I dropped my grenade (what accidentaly was a WP) and it was nice to saw your fantastic script: the poor VC run towards to me in flames and before he died, he burn me too. Excellent. But now the problems started. I ordered my AI team to hold (bc they are usually poor performance in building) and enter the building alone. In both second and third try the hiding VC in the building killed me: once in the second floor and other time in the ground level. When I was dying in the first floor, the rescue guy cannot reach me: he went UNDER me (so the exact location, but in the wrong floor) and cannot revive. When I was dying in the ground level, two guys come to revive me, but they couldnt: one of them is just stop and the second one cannot pass him (he stucked, because of the other guy) When I was in the first floor, I hold the Space for BIS respawn: all my men died with me and all of them respawn with me (those were my original men by the mission), but I cannot order them anymore by your wheel bc "When you are wounded, cannot command" (I was not wounded. Probably the respawn didnt reset this variable) When I was in the ground floor, I dont want to respawn, bc I thought all the problem was bc of the respawn, so I wait, how the two AI will solve this problem. I dont really know what happend (maybe BIS respawn modul timeouted, or one of the guy finally revive me, but the VC immediately kill me again.... everything happen so fast), but I was forced to respawn. All my men died with me, but they didnt respawn (those were your men). And I still cannot command by wheel (not just because I had no men, but still warn me, I am wounded, what was not true) My question is: what did I do wrong? Should I edit my mission and remove the BIS respawn modul? Can your AI locate me in 3D (not just 2D) when I wounded?