Jump to content

Recommended Posts

Posted

Hi all, 

 

I'm having a problem with SRS in the last few days. From some reason, it doesn't turn the "game" socket to green and i can't transmit or receive anything. the weird thing is that I don't remember changing anything in DCS or SRS and one day it just stopped working...

Radio overlay shows "unknown" as you can see in the attached pic.

 

tried to uninstall and reinstall, delete logs, checked settings... looks ok to me, but still doesn't work.

 

I'm using the latest beta ver. 

 

Thanks a lot in advance 🙂

SRS.JPG

 

🇮🇱 DCS World 🇮🇱

Posted

Make sure you  have the proper SRS export lines in your export.lua under saved games/DCS.Openbeta/Scripts as well as the Hook directory with the DCS-SRS-hook.lua file.

In the export.lua you should have a line with

pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil);

 

Posted
16 hours ago, BaD CrC said:

Make sure you  have the proper SRS export lines in your export.lua under saved games/DCS.Openbeta/Scripts as well as the Hook directory with the DCS-SRS-hook.lua file.

In the export.lua you should have a line with

pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil);

 

 

Thanks man,

But how to I open a *.lua file in order to check it? 

 

🇮🇱 DCS World 🇮🇱

Posted

https://discord.gg/vqxAw7H

Go to the SRS Discord for help, as listed in help in the SRS client

Sent from my HD1903 using Tapatalk

  • Like 2

Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD

CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup

Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script

 

Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :)

DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord

Posted
On 12/6/2020 at 9:14 PM, Ciribob said:

https://discord.gg/vqxAw7H

Go to the SRS Discord for help, as listed in help in the SRS client

Sent from my HD1903 using Tapatalk
 

 

Thanks a LOT man. Got the help I needed there.

Here's the solution:

 

 

- DELETE Saved Games/DCS/Scripts folder ENTIRELY and in DCS.openbeta if present

- DELETE Saved Games/DCS/mods/services/DCS-SRS and Saved Games/DCS.openbeta/mods/services/DCS-SRS

- DELETE global.cfg in the SRS installation directory

- Reinstall with the installer / AutoUpdater with the latest version from the site

- Restart DCS after reinstall / install

  • Like 3

 

🇮🇱 DCS World 🇮🇱

  • 3 months later...
  • 1 year later...
  • 1 year later...
Posted

My 5 cents about how to debug and fix this issue.

You do not really have to remove all your scripts and mods in order to fix this. In most cases the problem is one of the scripts which is loaded from Export.lua before SRS.

Simply speaking move the following line:
```
pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil);
```


to be the first line in your Export.lua

The reason for this is any of the scripts loaded in Export.lua has a BUG and crash, it will prevent all remaining scripts to load.
So if your SRS script is at the end it will not load because of earlier error.
You can always look into dcs.log to see if there are messages to point to root cause, but also here is another hint.

Pay attention to fact that SRS is loaded with pcall. This will make any errors inside SRS script to be silently dropped and continue loading remain scripts from export.lua
There are two outcoms from this:
- you can remove pcall and load SRS with
```
local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]);
```
That way if SRS script has problem, you will se error in dcs.log (I would not bet on this as this script is well written, though some UDP socket creation problems and WIndows firewall might be catch this way)
- secondly, you can use this idea to load other less trustful scripts by pcall, so they will not interrupt loading of remain scripts in the order.

Finally keep in mind DCS-SimpleRadioStandalone.lua is just one scripts from 3 in total. This one is for exporting data from your plane (hence export.lua) to simulate radio behaviour in SRS app. And this script is usually the one which does not load properly. There are 2 other ones loaded as hooks, but those are responsible for UI so you would not saw the "Srs is not connected" message which is the main distinctive aspect mentioned as observation for this problem, meaning UI scripts are fine and only the data export is not working.

  • 5 months later...
Posted

This thread is/was a lifesaver!!!  @Rosly, thank you.  I just saved our MP evening because of this intel.  

System Specs:

Spoiler

📻Callsign:Kandy  💻Processor:13th Gen Intel(R) Core(TM) i9-13900K - 🧠RAM: 64GB - 🎥Video Card: NVIDIA RTX 4090 - 🥽 Display: Pimax 8kx VR Headset - 🕹️Accessories:  VKB Gunfighter III MCG Ultimate, VKB STECS Standard, Thrustmaster TPR Pedals, Simshaker JetPad, Predator HOTAS Mounts, 3D Printed Flight Button Box 

📹 Video Capture Software:  Open Broadcaster Software (OBS), 🎞️ Video Editing Software:  PowerDirector 365

Into The Jungle Apache Campaign - Griffins  Kiowa Campaign - Assassins  Thrustmaster TWCS Mod

 

  • 1 month later...
Posted

Yeah, here too, that entire line was missing from my lua file. It all worked three days ago (first time it was ever fired up in DCS), three days later the green connection icon for "game" was black. I have no idea how a line in a file can simply vanish by itself. I'll see if it works next time I go on our group's MP server.

  • Like 1
  • 3 weeks later...
  • Recently Browsing   0 members

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