Jump to content

cfxSSBClient - Simple Slot Blocking for capturable Airfields and FARPS


Recommended Posts

Posted

I have the same issue as xcwendy. The script is on the server and in the mission, I get the list of slots that are blocked or not but somehow I can still spawn in them.

CPU: AMD Ryzen 7 5800X, RAM: 4x16GB G.Skill Trident Z Neo DDR4-3600 CL16, GPU: Gigabyte RX6800XT Aorus Master, MB: Gigabyte X570 Aorus ultra

My userfile content is available here (liveries, mods and whatnot)

Posted
27 minutes ago, ienatom said:

I have the same issue as xcwendy

If you PM the mission to me, I can try and have a look what may be off.

 

  • Like 1
  • 1 month later...
Posted
On 5/10/2023 at 11:22 AM, ienatom said:

I have the same issue as xcwendy. The script is on the server and in the mission, I get the list of slots that are blocked or not but somehow I can still spawn in them.

It seems I have found the issue. The script now works fine provided you immediately unpause the mission before anyone enters a slot. 

The fix was to copy and paste the GameGUI file into the Scripts/Hooks folder in the game files. I missed this installing the original script the first time as it was "hidden" in one of the thread replies further down because of a game update that had made this necessary. 

  • Thanks 1
Posted
2 hours ago, xcwendy said:

provided you immediately unpause the mission before anyone enters a slot. 

Oh, indeed, thank you for that -- I think that the instructions could be more clear about that: the mission must be running in order for SSB to work. If the server pauses the mission, all lua scripts are paused too, and slot blocking will not occur until the server commences running.

 

  • 1 month later...
Posted

I am testing the cfxSSBClientTester.miz, the SimpleSlotBlockGameGUI.lua is in HOOKS folder.

In messages I have cfxGroups v1.1.0 running and cfxSSBClient v1.1.0 runinng, SBB Enabled

And i can slot in RED Hornet no problem, is not blocked not returning to spectator.

 

Posted (edited)

Hey, @Appocalypsebr, I'm sure we can get this sorted out quickly. I just verified on my DCS installation that (thankfully), everything works as intended. So, before we delve deeper into trouble-shooting, can I ask you to verify the following:

  • You have restarted DCS after properly installing SSB into /Hooks. This is required because scripts in /Hooks are only read when DCS starts up
  • You are running the mission as multiplayer. Server scripts only ever come into play when multiplayer is activated, and SSB is a server script
  • The mission is unpaused
  • Provided above points are true, SSB may briefly allow you to "slot into" an illegal slot, but it will prevent you from entering the game. Are you able to enter the game? In that case please verify that SSB is installed correctly

So, if possible, please see if all points above are true, and we'll then try and find our what's amiss.

Cheers,
-ch

Edited by cfrag
Posted
On 8/12/2023 at 5:36 AM, cfrag said:

Hey, @Appocalypsebr, I'm sure we can get this sorted out quickly. I just verified on my DCS installation that (thankfully), everything works as intended. So, before we delve deeper into trouble-shooting, can I ask you to verify the following:

  • You have restarted DCS after properly installing SSB into /Hooks. This is required because scripts in /Hooks are only read when DCS starts up
  • You are running the mission as multiplayer. Server scripts only ever come into play when multiplayer is activated, and SSB is a server script
  • The mission is unpaused
  • Provided above points are true, SSB may briefly allow you to "slot into" an illegal slot, but it will prevent you from entering the game. Are you able to enter the game? In that case please verify that SSB is installed correctly

So, if possible, please see if all points above are true, and we'll then try and find our what's amiss.

Cheers,
-ch

 

Yes sorry the script works only on DEDICATED SERVER, testing local machina client even in multiplyer do not works. The script is fine! Thank You!

Posted
10 minutes ago, Appocalypsebr said:

testing local machina client even in multiplyer do not works

That usually means that your installation of SSB for your local DCS has failed. Perhaps verify that you are placing the SSB server script into the correct /Hooks directory, and then restart DCS -- perhaps even re-boot just to make sure.  When starting the mission locally as multiplayer, make sure that the mission is running, i.e. it is NOT paused.

Posted

This is quite old, since then a few things changed. One is that the net environment was callable from the mission environment. It might spark some ideas for simplification, it might not, but I was goign through posts and thought I'd offer.
https://github.com/thebgpikester/MPSG

its just 70 lines long, does not need plugin environment and needs no setup, or config.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted
2 minutes ago, Pikey said:

This is quite old, since then a few things changed. One is that the net environment was callable from the mission environment. It might spark some ideas for simplification, it might not, but I was goign through posts and thought I'd offer.
https://github.com/thebgpikester/MPSG

its just 70 lines long, does not need plugin environment and needs no setup, or config.

 

I am using Pikey's MPSG on a current project.

Works like a champ for what I need and was zero effort to setup.  If all you need is to prevent slots spawning as bases they don't own, MPSG couldn't be easier.

$0.02.

 

 

  • Thanks 1
  • 5 months later...
Posted

Quick question. i am having issues getting the code to unbind the aircraft i have on my carriers. for whatever reason the aircraft i put on my carriers will never spawn so i was just wondering if there is a way to fix that?

Posted
16 hours ago, Aussie Air Wing said:

i am having issues getting the code to unbind the aircraft i have on my carriers.

Hmmm. That's interesting. IIRC, carriers can't change factions, so I've never tried this, but now I of course can think of some interesting scenarios where an AC only opens up after you capture some targets.

Do you have a mission for my to test this out so I can see if I can track down the issue?

  • Recently Browsing   0 members

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