Jump to content

Recommended Posts

Posted
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).

Posted
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.

  • 2 weeks later...
  • 2 weeks later...
Posted
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.

Posted (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 by cfrag
  • 2 weeks later...
Posted

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?

 

Posted (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 by cfrag
Posted

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.

Posted

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.

 

  • 1 year later...
Posted (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 by 74DELTA
fixed it.
Posted
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?

Posted

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!

Posted

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.

Posted

@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

  • 2 weeks later...
Posted

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.

 

Posted
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.

Posted
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.

Posted (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 by cfrag
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...