Neon Posted September 6, 2017 Posted September 6, 2017 Ok so how do sites like buddyspike show server status? I am just trying to make a small thing for my units website. 1 [sIGPIC][/sIGPIC]
Johnny_Rico Posted September 13, 2017 Posted September 13, 2017 Its a good question, that I too would like to know the answer to METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests
BaD CrC Posted January 10, 2018 Posted January 10, 2018 That would be cool. I'd like to have an indication as to whether the dedicated server is up and running on the BSD website. https://www.blacksharkden.com http://discord.gg/blacksharkden
Flighter Posted January 22, 2018 Posted January 22, 2018 PHP snipet for testing TCP socket connectivity (server) Hi guys. Assuming you have a web server with php capability (almost all), use the code below either embedded in a page or by itself in a file (eg test.php). Adapt the ip, port and messages to your server and liking. Any html tags will work in the messages. Note that if the server is down you may have to wait for 2 seconds (last parameter on the fsockopen function, may want to experiment/trim it) before the rest of the page loads. Good luck <?php // Enter your ip, port and messages below // You can use any html format for the messages // for example : // $messageOK = "<img src='serverok.gif' alt='Server OK'>"; // $ip = "94.130.23.93"; $port = 10308; $messageOK = "JUST DOGFIGHT Server is UP <br/>\n"; $messageNR = "JUST DOGFIGHT Server is DOWN <br/>\n"; // // ---------------- $fpntr = fsockopen($ip, $port, $errnumber, $errstring, 2); if (!$fpntr) { echo $messageNR; } else { echo $messageOK; fclose($fpntr); } ?> 1 JUSTDOGFIGHT server - For Nickname reservation, stats, server map, instructions and other content visit our site justdogfight.com Smile
Johnny_Rico Posted January 23, 2018 Posted January 23, 2018 thanks for posting that METAR weather for DCS World missions Guide to help out new DCS MOOSE Users -> HERE Havoc Company Dedicated server info Connect IP: 94.23.215.203 SRS enabled - freqs - Main = 243, A2A = 244, A2G = 245 Please contact me HERE if you have any server feedback or METAR issues/requests
Casimir06 Posted April 29, 2019 Posted April 29, 2019 Greetings - apologies for bringing this thread back from the dead, but we're trying to do something similar. This works, but we would like to know if it's possible for one to grab the server name and / or the currently connected pilots. I've seen this on a couple other servers, but don't know the variables or commands necessary to add to this script to accomplish that. Is that info available?
Maverick87Shaka Posted April 29, 2019 Posted April 29, 2019 Greetings - apologies for bringing this thread back from the dead, but we're trying to do something similar. This works, but we would like to know if it's possible for one to grab the server name and / or the currently connected pilots. I've seen this on a couple other servers, but don't know the variables or commands necessary to add to this script to accomplish that. Is that info available? For use that script you need a webserver ( IIS, apache, NGINX ) and the PHP engine installed and working on it. If you're total new to this, you can try to use XAMPP, you'll find a lot of tutorial on google/youtube on how to setup your first webserver with this tool. FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen. Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest Support us on twitch subscribing with amazon prime account linked, it's free!
ElementLT Posted April 29, 2019 Posted April 29, 2019 may take a little bit of coding to get what you are looking for. are you currently using a framework or script? Coming Soon... The Fraternity Returns : https://thefraternitysim.com/
Casimir06 Posted April 29, 2019 Posted April 29, 2019 We do have a webserver with PHP installed on it. I've been working with PHP for years - it's more of an issue of not knowing what to look for from the DCS server instance to display the server name and connected users through the script. We're currently using Flighter's posted script from above and it works great - we just want to add to that.
ElementLT Posted April 30, 2019 Posted April 30, 2019 We do have a webserver with PHP installed on it. I've been working with PHP for years - it's more of an issue of not knowing what to look for from the DCS server instance to display the server name and connected users through the script. We're currently using Flighter's posted script from above and it works great - we just want to add to that. cool! if you already have coding skills this should be a breeze for ya. There is actually a couple of different ways to do this. You're going to need a way to gather all of your clients and then check to see which of those clients are active. You can then write those client names/id's to a file and then pull that data from your file via php to post on your web pages. This will allow you to count how many users are live on your server and who those users are. All though not required frameworks like MIST or MOOSE really make this process much easier. If you already know php, adding lua to your toolbelt should also be a breeze. Coming Soon... The Fraternity Returns : https://thefraternitysim.com/
Casimir06 Posted May 1, 2019 Posted May 1, 2019 You're going to need a way to gather all of your clients and then check to see which of those clients are active. You can then write those client names/id's to a file and then pull that data from your file via php to post on your web pages. Right, we have that set up in a database already, which I can either grab that way or create a txt file - either way should work. This will allow you to count how many users are live on your server and who those users are. This is the part where I need some guidance. How do I get this info from the DCS server instance? Admittedly, while I have used PHP for a long time, my usage of it to do things like this is limited - it's mostly been in database driven webpage development.
ElementLT Posted May 1, 2019 Posted May 1, 2019 Right, we have that set up in a database already, which I can either grab that way or create a txt file - either way should work. This is the part where I need some guidance. How do I get this info from the DCS server instance? Admittedly, while I have used PHP for a long time, my usage of it to do things like this is limited - it's mostly been in database driven webpage development. To get this info from your server you're going to need to dig into the lua code. this is where mist, moose or any other framework comes into play. you're going to have to do a bit of research. Here are a couple of links to help you get started HOGGIT (THE OG): https://wiki.hoggitworld.com/view/DCS_mission_editor MIST: https://forums.eagle.ru/showthread.php?t=98616 Moose: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/index.html Coming Soon... The Fraternity Returns : https://thefraternitysim.com/
BoneDust Posted May 1, 2019 Posted May 1, 2019 (edited) To get this info from your server you're going to need to dig into the lua code. this is where mist, moose or any other framework comes into play. you're going to have to do a bit of research. Here are a couple of links to help you get started HOGGIT (THE OG): https://wiki.hoggitworld.com/view/DCS_mission_editor MIST: https://forums.eagle.ru/showthread.php?t=98616 Moose: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/index.html Hmmm, I'm familiar with MOOSE. I didn't think we'd need that to display the server(s) status in a vbulletin 5.5.1 widget. I thought just a PHP file would do it. Anyhow, when we get this sorted out we will share how with the community because it seems people know how and keep it to themselves; not very community spirited. We are making progress :thumbup: Edited May 1, 2019 by BoneDust Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB| NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling power supply | Pimax Crystal VR
ElementLT Posted May 1, 2019 Posted May 1, 2019 Hmmm, I'm familiar with MOOSE. I didn't think we'd need that to display the server(s) status in a vbulletin 5.5.1 widget. I thought just a PHP file would do it. Anyhow, when we get this sorted out we will share how with the community because it seems people know how and keep it to themselves; not very community spirited. We are making progress :thumbup: your joking right? I have learned most of my DCS stuff from this great community. Sorry, I do not have code to simply cut-n-paste for you to use. Not every setup is the same. I'm using lua, php, and python to make it all work. this may not be needed for your situation. Anyhow was just trying to help you figure things out or point you in the right direction. Maybe someone does a simple cut-n-paste solution that may work for you. Keep at it - im sure you'll get it. 1 Coming Soon... The Fraternity Returns : https://thefraternitysim.com/
BoneDust Posted May 1, 2019 Posted May 1, 2019 your joking right? I have learned most of my DCS stuff from this great community. Sorry, I do not have code to simply cut-n-paste for you to use. Not every setup is the same. I'm using lua, php, and python to make it all work. this may not be needed for your situation. Anyhow was just trying to help you figure things out or point you in the right direction. Maybe someone does a simple cut-n-paste solution that may work for you. Keep at it - im sure you'll get it. We appreciate your help and we were not looking for simple cut and past. I can only speak from our experience since leaving BMS; sorry if that offends you but that doesn't mean your right; of course I'm not necessarily right either. We each base our opinions on our own experiences. None-the-less, thanks for your help; it is appreciated. :thumbup: Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB| NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling power supply | Pimax Crystal VR
xcom Posted June 22, 2019 Posted June 22, 2019 just try opening a connection to server on your selected port :) [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Recommended Posts