Jump to content

DCS-SimpleRadio Standalone


Ciribob

Recommended Posts

I have a quick question: Can I install this program anywhere? Example. My C: drive?

Does it have to paired up with DCS files to work?

In your examples it shows (C:/Users//Saved Games/DCS.openbeta/Logs)

 

I don't have anything like this in my folders. I have not installed the program yet either.

Saved games? Is that where you DCS world is? Want to get it right the 1st time....

Thank you.

Link to comment
Share on other sites

I have a quick question: Can I install this program anywhere? Example. My C: drive?

Does it have to paired up with DCS files to work?

In your examples it shows (C:/Users//Saved Games/DCS.openbeta/Logs)

 

I don't have anything like this in my folders. I have not installed the program yet either.

Saved games? Is that where you DCS world is? Want to get it right the 1st time....

Thank you.

 

The first line is at your own discretion so you can put that wherever you want, i.e. the install location of simple radio itself. The second line should point to you Saved games folder being:

C:\User\YourUserName\Saved games\

It should automatically point to the right folder but be sure it doesn't point to the DCS folder within Saved games...

 

 

EDIT: about teamspeak, not sure there but you should get the standalone version which shouldn't ask anything about teamspeak.. Thus you could still join a TS server & hear everyone.. Download is at the following site:

https://github.com/ciribob/DCS-SimpleRadioStandalone/releases

Download DCS-SimpleRadioStandalone.zip


Edited by Raffson

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

not sure this is correct thread for my feedback, but I'm experiencing problems with current version 1.2.9.2

 

I've been with SR since 1.2.7, and am considering myself an experienced user of it

but with this new 1.2.9.2 version, I'm experiencing following problems:

After I power up my airplane (M2K's Battery Switch On), I choose main battle frequency, connect to the server in SR, toggle overlay and select the necessary radiostation. In 80% of such coldstart attempts I can't hear anything on the frequency. I perform a sortie, get back to the airfield, land and suddenly start hearing comms (sometimes even before landing, on my final). And it's working fine till my next respawn (another cold start). Sometimes breaks during a sortie.

Is it already reported ?


Edited by ZHeN

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

TS and SR are in no way compatible or anything, you can run them both at the same time though. If you do you should run them both as administrator.

 

Not sure where you're going with this, either you mean entering a domain name which I don't have or I'm missing something here.. Checking my ip is what I want to automate if you look at the code so guessing your advise is not going to work for me..

 

Thanks for trying though!

 

There were times when a hostname would resolve into an IP address, doesn't work here anymore but i doubt we're in the same country and on the same ISP. You could try to ping your hostname.


Edited by Coug4r

-

If man were meant to fly he'd be filled with helium.

Link to comment
Share on other sites

TS and SR are in no way compatible or anything, you can run them both at the same time though. If you do you should run them both as administrator.

 

There were times when a hostname would resolve into an IP address, doesn't work here anymore but i doubt we're in the same country and on the same ISP. You could try to ping your hostname.

 

Yeah I'm not sure I have a hostname assigned.. As mentioned in earlier posts, I could use noip but that's not exactly what I want.. I'm getting damn close to a solution here but for some reason the http request takes a dump on me so gotta figure out what the deal is.. once that's done I think it'll work just fine..

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

The other question: What about Team Speak?

Will others be using team speak, and I will not hear them?

 

1st time attempting this, Thank you

 

 

Completely separate from TS which is why it's great. Just as an example... in our group we meet and brief on TS, then once the server is up everyone logs into SRS, mutes their TS mic and jumps in game. We then meet back up on SRS on pre-planned freqs.

 

If there are issues everyone is still "listening" on the TS channel so the person with the issue can just un-mute their TS mic and we'll hear them.

VFA-25 Fist of the Fleet

[sIGPIC][/sIGPIC]

Virtual Carrier Strike Group One | Discord

Link to comment
Share on other sites

Hi Ciribob.

 

Any news about an online test with other clients around for the audio mix distortion issue?

 

Thanks for your great efforts.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

Link to comment
Share on other sites

Yeah I'm not sure I have a hostname assigned.. As mentioned in earlier posts, I could use noip but that's not exactly what I want.. I'm getting damn close to a solution here but for some reason the http request takes a dump on me so gotta figure out what the deal is.. once that's done I think it'll work just fine..

 

Quick search on this and found this, in case you get stuck:

 

http://lua-users.org/lists/lua-l/2010-04/msg00347.html

 

or this snippet:

 

-- Get the current WAN address for this machine 

function GetPublicFacingIP()   
local html = {};   
local request = http.request {     
url = "http://checkip.dyndns.org/",     
sink = ltn12.sink.table(html)   };   
html = tostring(table.concat(html));   
local ip = "";   
for match in string.gmatch(html, "([%d]+)([%.]*)") do     
ip = ip .. match .. ".";   
end    
return ip; 
end


Edited by Coug4r

-

If man were meant to fly he'd be filled with helium.

Link to comment
Share on other sites

Quick search on this and found this, in case you get stuck:

 

http://lua-users.org/lists/lua-l/2010-04/msg00347.html

 

or this snippet:

 

-- Get the current WAN address for this machine 

function GetPublicFacingIP()   
local html = {};   
local request = http.request {     
url = "http://checkip.dyndns.org/",     
sink = ltn12.sink.table(html)   };   
html = tostring(table.concat(html));   
local ip = "";   
for match in string.gmatch(html, "([%d]+)([%.]*)") do     
ip = ip .. match .. ".";   
end    
return ip; 
end

 

It's basically what I'm trying but somehow it won't work when dcs executes the script.. I get very strange outputs when using pcall & checking the type of my html variable.. The only difference here is that you are using a sink but that shouldn't be the issue.. Nevertheless I will try it tomorrow & let you know what comes out but I have serious doubts if this will actually work.. As I mentioned in earlier posts, pcall says I'm trying to call a nil value which can't be the case.. Also I got a very strange output when asking sending tostring(http) to the log, which should give me an address pointing to a table but instead it says it's pointing to a JSON encode/decode object.. The weirdest past is that when I try to execute the essential part of the script locally then it all works fine.. I'm starting to think it's a bug from dcs itself or some outdated Lua-DLLs that dcs uses.. I'm seriously hoping I missed something on how to correctly use http requests in dcs' Lua but somehow I can't imagine it to be different from http's regular use.. As one would say in the Netherlands, Teringzooi! :lol:

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

OMFG finally, I got it to work! This is how my AutoConnectGameGUI.lua looks like now...

-- Version 1.2.9.2
-- ONLY COPY THIS FILE IS YOU ARE GOING TO HOST A SERVER!
-- The file must be in Saved Games\DCS\Scripts or Saved Games\DCS.openalpha\Scripts
-- Make sure you enter the correct address into SERVER_SRS_HOST below.
-- You can add an optional Port. e.g. "127.0.0.1:5002"

package.path  = package.path..";.\\LuaSocket\\?.lua;"
package.cpath = package.cpath..";.\\LuaSocket\\?.dll;"

function externalip()
   local http = require("socket.http")
   local json = loadfile("Scripts\\JSON.lua")()
   local resp,code,headers,status = http.request("[url]http://ipinfo.io/json[/url]")
   if code ~= 200 then return nil, "Failed fetching external IP; "..tostring(status) end
   local data, err = json:decode(resp)
   if not data then 
       return nil, "Failed fetching external IP; "..tostring(err)
   end
   if data.ip then
       return data.ip
   else
       return nil, "Failed fetching external IP; no ip field was returned"
   end
end

-- User options --
local SRSAuto = {}
local ipaddr, err = externalip()
net.log(string.format("%s:%s", tostring(ipaddr), "9987")) --verify your IP in dcs.log
SRSAuto.SERVER_SRS_HOST = tostring(ipaddr)..":9987" --change ":9987" to whatever port you're using
SRSAuto.SERVER_SEND_AUTO_CONNECT = true -- set to false to disable auto connect or just remove this file

-- DO NOT EDIT BELOW HERE --
SRSAuto.unicast = false

-- Utils --
local HOST_PLAYER_ID = 1

SRSAuto.MESSAGE_PREFIX = "SRS Running @ " -- DO NOT MODIFY!!!

local socket = require("socket")

SRSAuto.UDPSendSocket = socket.udp()
SRSAuto.UDPSendSocket:settimeout(0)

SRSAuto.logFile = io.open(lfs.writedir()..[[Logs\DCS-SRS-AutoConnect.log]], "w")
function SRSAuto.log(str)
   if SRSAuto.logFile then
       SRSAuto.logFile:write(str.."\n")
       SRSAuto.logFile:flush()
   end
end

-- Register callbacks --
SRSAuto.onPlayerConnect = function(id)
if not DCS.isServer() then
       return
   end
if SRSAuto.SERVER_SEND_AUTO_CONNECT and id ~= HOST_PLAYER_ID then
       SRSAuto.log(string.format("Sending auto connect message to player %d on connect ", id))
       net.send_chat_to(string.format(SRSAuto.MESSAGE_PREFIX .. "%s", SRSAuto.SERVER_SRS_HOST), id)
end
end

SRSAuto.onPlayerChangeSlot = function(id)
   if not DCS.isServer() then
       return
   end
   if SRSAuto.SERVER_SEND_AUTO_CONNECT and id ~= HOST_PLAYER_ID then
       SRSAuto.log(string.format("Sending auto connect message to player %d on switch ", id))
       net.send_chat_to(string.format(SRSAuto.MESSAGE_PREFIX .. "%s", SRSAuto.SERVER_SRS_HOST), id)
  end
end

DCS.setUserCallbacks(SRSAuto)
net.log("Loaded - DCS-SRS-AutoConnect")

Figured out that you must copy-paste some files within the DCS installation directory.. To get this to work, you must go to DCS-Installation-Folder/LuaSocket & create a new folder called "socket".. Then copy http.lua, ltn12.lua, mime.lua & url.lua into that folder.. All those files are available in the LuaSocket folder so it's really easy, but for some reason this particular script couldn't find it when it was in LuaSocket itself.. Beware, don't delete/move the files from LuaSocket cause they might be referenced from a different place so instead do a plain copy of those files into the "socket" folder that you've created in LuaSocket..


Edited by Raffson

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

Well, the country matches... Probeer 't vandaag zelf wel ff :)

 

Actually, the country doesn't match, but close enough to know what "Teringzooi" means :thumbup:

Got it to work so no worries anymore, well, actually, you could try my solution & see if it also works for you cause maybe it only works for myself but yeah, can't really test that out :lol:

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

Ok cool :) Had a try myself too, the one thing that wouldn't work was the http request. If it's necessary to have those files somewhere else then it makes sense Servman had a copy of those somewhere other than under the DCS World directory. Nice job!

-

If man were meant to fly he'd be filled with helium.

Link to comment
Share on other sites

Ok cool :) Had a try myself too, the one thing that wouldn't work was the http request. If it's necessary to have those files somewhere else then it makes sense Servman had a copy of those somewhere other than under the DCS World directory. Nice job!

 

Not necessarily outside the DCS World directory, just within a new folder called "socket" within the "LuaSocket" folder that's located in the DCS World directory.. Anyway, up to the next challenge, getting rid of http and using UPnP to discover the external IP since I don't feel like being dependent on a website xD

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

not sure this is correct thread for my feedback, but I'm experiencing problems with current version 1.2.9.2

 

I've been with SR since 1.2.7, and am considering myself an experienced user of it

but with this new 1.2.9.2 version, I'm experiencing following problems:

After I power up my airplane (M2K's Battery Switch On), I choose main battle frequency, connect to the server in SR, toggle overlay and select the necessary radiostation. In 80% of such coldstart attempts I can't hear anything on the frequency. I perform a sortie, get back to the airfield, land and suddenly start hearing comms (sometimes even before landing, on my final). And it's working fine till my next respawn (another cold start). Sometimes breaks during a sortie.

Is it already reported ?

 

On which server? Is the server definitely running the latest version?

 

It sounds like it has Line of sight turned on which it why you're losing comms?

 

When you lose comms, what frequency is shown on the overlay?

 

Are you sure that the volume is up on the radio and Easy comms are OFF for the Mirage?

 

 

Hi Ciribob.

 

Any news about an online test with other clients around for the audio mix distortion issue?

 

Thanks for your great efforts.

 

Sorry, due to quite a big change in life circumstances, i've been unable to work on this for a while or organise a time for testing.... Sorry all!

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

Link to comment
Share on other sites

On which server?

TAW EU-Server-3 Kaukasus Offensive

Is the server definitely running the latest version?

I'm not sure about that, I think it's running 1.2.8

It sounds like it has Line of sight turned on which it why you're losing comms?

no comms at all ! even with visual on players from my team

 

When you lose comms, what frequency is shown on the overlay?

251 - main battle frequency of that server

 

Are you sure that the volume is up on the radio and Easy comms are OFF for the Mirage?

yes, I am sure

I mentioned in my message that I considered myself an experienced user of SR

 

you probably won't believe it, but yesterday after another crash, I respawned, started up and my SR started working with overlay set to another radiostation (frequency 124.00)

when I switched overlay to radio station with main battle frequency (251.00), it stopped working.

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

not sure this is correct thread for my feedback, but I'm experiencing problems with current version 1.2.9.2

 

I've been with SR since 1.2.7, and am considering myself an experienced user of it

but with this new 1.2.9.2 version, I'm experiencing following problems:

After I power up my airplane (M2K's Battery Switch On), I choose main battle frequency, connect to the server in SR, toggle overlay and select the necessary radiostation. In 80% of such coldstart attempts I can't hear anything on the frequency. I perform a sortie, get back to the airfield, land and suddenly start hearing comms (sometimes even before landing, on my final). And it's working fine till my next respawn (another cold start). Sometimes breaks during a sortie.

Is it already reported ?

 

more observations:

I connect to the server, cold start, DON'T CHOOSE MAIN BATTLE FREQUENCY (251) in Overlay, I just don't touch it

 

can't hear anything on SR

 

I should die and respawn again and THEN it works on wrong frequency.

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

more observations:

I connect to the server, cold start, DON'T CHOOSE MAIN BATTLE FREQUENCY (251) in Overlay, I just don't touch it

 

can't hear anything on SR

 

I should die and respawn again and THEN it works on wrong frequency.

Can you get a recording? Twitch or YouTube?

 

After starting up, retune the radio to a different frequency and then back to 251 and try transmitting

 

Does the ptt light come on?

 

If you do a recording, make sure the overlay is visible.

 

Have you had this happen in any other place? I can't replicate at all....

 

Sent from my SM-G900F using Tapatalk

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

Link to comment
Share on other sites

How about if you actually sign up with DYNDNS service of sort and use DN in auto connect?

 

In my earlier posts I mentioned that I've used noip in the past which is basically the same thing.. But anyhow, I've got a solution posted in one of the previous messages so currently I'm sorted out..

Gigabyte X470 AORUS UG

Ryzen 5 2600X

NVidia GTX 1070Ti 8GB

Vengance RGB DDR4 32GB

TrackIR5

TM HOTAS Warthog

Link to comment
Share on other sites

  • Recently Browsing   0 members

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