Dangerzone Posted April 28, 2023 Posted April 28, 2023 5 hours ago, commiccannon said: Thank you, this is perfect then, any way of setting it up en mass or do i need to have triggers for all ~60 slots and ~600 aircraft It depends on how you code it. But you only have to do it for the client aircraft. My suggestion is instead of coding each aircraft individually - have a standard prefix to start with that allows you to quickly find or get a group/filter of the clients. Then iterate through that group to set the flag. That way, instead of having to do it for every single client, you're only specifying it for each individual airfield. It's a bit more depth in coding - but less code in the end than manually having lines for 600 separate client aircraft/slots, and makes it much easier to add new clients when you need without having to change more code again. (Just add using the existing prefixes to add more aircraft).
Dangerzone Posted April 28, 2023 Posted April 28, 2023 12 minutes ago, commiccannon said: Hey, just did some testing and when i trigger a slot blocking it kicks whoever is in that slot, is this a config option or am i missing something? Attached is the test mission, Always blocked is well always blocked, works as expected, the sometimes blocked should be blocked when the someone is in the never blocked aircrafts spawn location Test3.miz 12.69 kB · 0 downloads OK - I'm not sure what's going on there. I could have sworn that players weren't kicked out of their aircraft when slots were changed, but maybe I've gotten that wrong. Just very quickly without testing - do you have the line ssb.kickPlayers = true -- Change to false if you want to disable to kick players. set to true or false? I'm not convinced this is the culprit, but I'm not in a position to test your mission at the moment, and don't know what you have configured on the server side scripting anyway. Try changing it to false and see what happens if you have it set to true.
Jackal84 Posted May 6, 2023 Posted May 6, 2023 @CiribobHello, I'd like some help please. Is it possible to have ssb allow slots to players who are connected on a specific discord channel somehow?
Flasher Posted May 17, 2023 Posted May 17, 2023 Is this script still working ? For me nothing work on beta or official 2.8
cfrag Posted May 17, 2023 Posted May 17, 2023 11 hours ago, Flasher said: Is this script still working ? Yes. Perhaps it helps if you told us what you tried, what you expected to see, what you got instead, and why you think that that is incorrect. first thing to check is of course that you installed ssb into the correct Hooks folder and that your mission is running as multiplayer server.
cfrag Posted May 18, 2023 Posted May 18, 2023 (edited) 2 hours ago, Flasher said: OK is it normal it only works in dedicated server ? That’s what @Ciribob meant when he stated in the OP that SSB only needs to be installed by the server host. Implicitly he meant to convey that yes, the mission must be run as multiplayer. You can run any mission locally as MP, and often that gives a slight performance boost, so it’s worth a try, even if you solo. No need for dedicated server. Edited May 18, 2023 by cfrag
termi_te Posted June 1, 2023 Posted June 1, 2023 Hi, I can't seem to get this script to work. I put the SimpleSlotBlockGameGUI.lua into all the directories I could find in the documentation: C:\Users\MyUsername\Saved Games\DCS.openbeta\Scripts C:\Users\MyUsername\Saved Games\DCS.openbeta\Scripts\hooks C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Scripts C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Scripts\hooks I tested the sample mission from the GitHub repository and it doesn't work. I launched a multiplayer server from inside the game. What am I doing wrong?
cfrag Posted June 1, 2023 Posted June 1, 2023 (edited) There are a couple of pitfallls, one is that you must restart DCS after installing ssb. why don’t you post your mission, say what you expect to see and why, what you see instead, and we can try to reproduce the issue. Edited June 1, 2023 by cfrag
Dangerzone Posted June 2, 2023 Posted June 2, 2023 Also worth checking is to confirm that you also desanitized your missionscripts file in your mail install\scripts dir? Log files would be helpful along with your mission too please.
cfrag Posted June 2, 2023 Posted June 2, 2023 While I don't think that de-sanitizing helps for SSB, I think it won't hurt either. Just remember to sanitize DCS afterwards unless you really want your Missions be able to wrtite to your storage.
74DELTA Posted August 7, 2024 Posted August 7, 2024 (edited) Anyone have luck with this since the Dynamic Spawn Patch last month? Not making any progress. It does work. figured it out. Thanks again Ciribob for another amazing script! you are incredible. Edited August 7, 2024 by 74DELTA fixed it.
Lekaa Posted August 14, 2024 Posted August 14, 2024 On 8/7/2024 at 11:43 PM, 74DELTA said: Anyone have luck with this since the Dynamic Spawn Patch last month? Not making any progress. It does work. figured it out. Thanks again Ciribob for another amazing script! you are incredible. How is it workikg for you?
GeoS72 Posted August 14, 2024 Posted August 14, 2024 All, While reporting that a problem was fixed is good for you, providing the solution to your problem would help the next guy a lot more. For example, downloaded the current lua file (if possible, cite location) then pasted file into the correct folder (state which folder). Or say, "modified line x in lua file from value A to value B." Thank you!
74DELTA Posted August 14, 2024 Posted August 14, 2024 Fair point, but in this case it was user error because the instructions were not clear to me. my trigger in ME only had the trigger.action.setuserflag ("groupname", 0). As soon as I figured out that I needed to set flags to 100 to prevent the spawning it worked fine. added the line trigger.action.setUserFlag("HELI2",100) to that same trigger and it works as designed. Also after some digging, the file "SimpleSlotBlockGameGui.lua" needs to be in the \scripts\hooks\ path to work. Not the "\scripts" folder.
GeoS72 Posted August 15, 2024 Posted August 15, 2024 @74DELTA, Good to hear that your problem was solved. Thank you for sharing the solution to your problem. Even though it was a self-inflicted wound, you recognized the problem and fixed it. Well done! Just to clarify the file location for SimpleSlotBlockGameGui.lua: It should be in the Saved Games folder: C:\Users\UserName\Saved Games\DCS\Scripts\Hooks
Bossco82 Posted August 27, 2024 Posted August 27, 2024 Just wanted to check on this if someone can help out. I have been using simple slot blocker and this script "SimpleSlotBlockGameGui.lua" to stop red spawning on a blue airfield and vice versa. Has a working version of this been adapted to dynamic slots yet? Cheers.
Kanelbolle Posted August 27, 2024 Posted August 27, 2024 10 minutes ago, Bossco82 said: Just wanted to check on this if someone can help out. I have been using simple slot blocker and this script "SimpleSlotBlockGameGui.lua" to stop red spawning on a blue airfield and vice versa. Has a working version of this been adapted to dynamic slots yet? Cheers. Unless you are using regular slots in combination with dynamic slots, you don't need a script to block them. Dynamic slots does this natively, blue players can't spawn on red airfield/Farps and vice versa. But to answer your question, no it has not been updated. If you open the GitHub page, you can see it was modified 2 year's ago. WARGAMES Servers: https://forum.dcs.world/topic/301046-wargames-server-pvp-and-pve-campaign-servers/ Scripts: RGC & SPGG https://github.com/AGluttonForPunishment/
Bossco82 Posted August 27, 2024 Posted August 27, 2024 36 minutes ago, Kanelbolle said: Unless you are using regular slots in combination with dynamic slots, you don't need a script to block them. Dynamic slots does this natively, blue players can't spawn on red airfield/Farps and vice versa. But to answer your question, no it has not been updated. If you open the GitHub page, you can see it was modified 2 year's ago. Thanks for the reply, at the moment on a PvP mission I made that is correct. However, for example I have F-4 Phantoms set to blue with a blue template. If a player goes on red it only shows the airfields and helo farps they own. Problem is they can select the blue aircraft and spawn them as a red aircraft. Im trying to find a way to block this if it is possible. Cheers.
cfrag Posted August 28, 2024 Posted August 28, 2024 (edited) 19 hours ago, Bossco82 said: Problem is they can select the blue aircraft and spawn them as a red aircraft. Im trying to find a way to block this if it is possible. I believe that this is how currently dynamic player spawning works: it looks which aircraft are "available" at an airfield. Blue aircraft aren't blue, they are available, so you can red-spawn them if you own the airfield, since they are present at the airfield. To prevent this, you'd have to oldschool the blue planes as non-dynamic player spawns, and protect spawning from red-owned airfields using some scripting. Edited August 28, 2024 by cfrag
Recommended Posts