最新回复 发布由 astazou
-
-
6 hours ago, Nishiyandcs4 said:
Hello! Asta.
The DBS bot on my server is speaking very well!!
but...
I have another question,1) Why doesn't "Server Offline" show up when the server is terminated?
Even if the server is terminated, the live channel display will remain intact. Any special settings in index.js or BDSGameGUI.lua?2) Is the "Started since" display of the live channel not updated unless there is an event such as someone connecting while the server is running? Is it possible to have the display refreshed somewhat automatically (e.g. once every 5 minutes)?
3) Only the file name is displayed when the server is started, but if you change the mission file, the file path without .Miz will be displayed in the "Mission" display of the live channel. I'm running a dedicated server and the files get rebooted every 4-5 hours. Also, players in the server can arbitrarily change the file. In any case, the file path is displayed except at startup.
It would be helpful if you could tell me if you have time.
Thank you.
Hi,
Let's answer.
1) What I use on my side, is a windows script which is shutting down, the bot, DCS, SRS, restart the bot (to have the offline info) and then shutdown the serverTASKKILL /F /IM SR-Server.exe TASKKILL /F /IM node.exe timeout /t 10 TASKKILL /F /IM DCS_server.exe timeout /t 15 cd "C:\botDBS" pm2 start index.js timeout /t 10 shutdown -s -f -t 3
More info' here:
2) It shows the mission time since the mission started. What you ask is technically possible but I didn't want to have a loop/while check if there is nothing new on the server, to avoid the bot to spam the Discord API.
What I do on my server, I keep only the server "resume when client connected".3) I don't understand the problem. The problem is sometimes you see the path? If yes, it's not a big issue.
The problem is the mission name is not changing when you change mission? It changes for me. -
6 hours ago, Nishiyandcs4 said:
Hi, Asta, thanks for the quick response! !
Yes, I have set it up as you said, but the result is the same no matter how many times I run it.
In rare cases, "Server Offline" is displayed on the channel set as "Message Live ID", but it is the same display on the CMD prompt screen.
Also, sometimes I get an error like "unable to send".
It looks like the bot is trying to access channels with these IDs, but for some reason it is unable to access these channels.When I tried CTRL + click on the URL of the screen where the error is displayed, it will be displayed as
{"Mesage": "401: Unauthorized", "code": 0}.
Is this correct?If the bot it started, you can't run it again until it's stopped.
unable to send => Are you sure about the rights of the bot? On the Discord and on the channels?
I gave you URL from Github, weird, here is the same screen from Discord =>
https://cdn.discordapp.com/attachments/559138601573548052/1103554191584149536/image.png
Keep us in touch
See ya
-
3 hours ago, Nishiyandcs4 said:
Kon'nichiwa @Nishiyandcs4,
Don't worry, your english is more than good enough (and I'm really not perfect neither
)
I read "Unknown Message" and a 404 status.
It means you made an error on an ID.
Can you re-check your IDs according to this draw?
BotID (green) : ID of the bot
channelTchatID (pink) : ID of the channel where you are connected with events (and in-game tchat) of the simulator.
channelLiveID (blue) : ID of the channel where the bot will display the data about the server (name, password, players online, version, etc....)
messageLiveID (yellow) : ID of the message of the bot after your made "!init" for the bot to get his message
If those 4 IDs are correct, it will work

Oh, and @Snoopy tested the bot with several DCS instances, it's working! Thank you again for the test
You "just" need to duplicate the number of bot and redo the same.
Enjoy-
1
-
-
Hello mission editors,
I added a new script to remove craters, wreckages or debris after a player crashed in zones.
Enjoy! -
Hello,
I did the migration yesterday switching to dcs_server.openbeta, and it's working very well!
Thank you ED for this very useful update
Asta☠
-
2
-
-
On 4/14/2023 at 12:29 PM, Walshtimothy said:
amazing ! how did you change te hangar etc ?
Thank you

For the hangar, I installed the mod (link in the .zip), then, I replaced the "ukrytie" by the name of the hangar mod, I adjusted the position and the scale, and it works
You can read the sceneVR.lua to see how I imported models, placed them, rotated them, etc...see ya
-
1
-
-
Hello,
Thank you for all your sharing, with all those example I made mine: https://www.digitalcombatsimulator.com/fr/files/3330144/
see ya
-
1
-
-
On 3/17/2023 at 11:49 AM, MarkP said:
hey, yea. Just saw it down below x) i was confused since in the first screenshot in the howto there were already all 4 columns filled. Thanks.
I just got it working. Man. Thanks! Its awesome!!
edit: two questions.
1. The IP of my server is static and i have a DNS record for it. Is there any way to set the IP in the config to be the dns record?
2. Is there a way to provide a autostart?
Hey, just saw your edit messages
1) Yes, you can "hard code/write" the IP adress with the bot, line 196, or close, at this line:messageToShow += str_DCSip+"**"+myIP+":"+linesDCSConf[i].split("[\"port\"] = ")[1].split(",")[0]+"**\n";
you can replace the variable "myIP" by an IP adress (for example here: 123.123.123.123):
messageToShow += str_DCSip+"**"+"123.123.123.123"+":"+linesDCSConf[i].split("[\"port\"] = ")[1].split(",")[0]+"**\n";
2) Sure, I'm doing it myself, I use Windows task scheduler to run a script starting the bot, I recommend you to have a look here:
See ya
-
1
-
-
1 minute ago, MarkP said:
Ohh thats neat! Im trying it right now.
Can you clarify which ID goes to which "line"? I understood it that we have 4 IDs: Bot itseslf, broadcastchannel, textchannel, and whats the 4th? The Token?And to which const goes which ID? Thats unclear to me.
Thanks for the work!!
Hi,
With this screen it should help:
Blue: ID of the Discord channel "live" (where you have the technical info' from your server)
Yellow: ID of the message in the channel "live" (you need to make it appears first using !init)
Purple: ID of the channel "tchat" (where you can talk between Discord and the DCS ingame tchat and also see the events (connections, slot, takeoff, ...))
Green: ID of the bot. -
On 2/25/2023 at 6:25 PM, Snoopy said:
Was starting the install and a lot of the reference images in Github are no longer loading.
Hi @Snoopy, I just uploaded all the images directly on Github, it will be fine now
-
1
-
-
1 hour ago, NatoAviator said:
Hey, awesome work...I've followed the steps on GitHub, but stuck here...where do I download?
- Shutdown your DCS server - Done
- Install node.js link (tested and working well with 18.14.0 and 19.6.0) - Done
- Create folder where the bot will be installed and go inside using the Windows Command Prompt (CMD) - Done
-
When inside, type
npm init - Done -
Install node plugins
npm install discord.js - Done - Download and unzip the .zip file - I'M STUCK HERE, where do I go to download?
Hey,
The best away is to click the "release" button link and download the zip (as for the A4 mod and SRS)
you can also hit the green "< > Code" button to download the project.
See ya
-
Hello DCS servers admins
Today is the day, I just released my bot!
You'll find here the instructions and the files to download it:
https://github.com/frasta/DCS-Discord-bot
I hope you'll enjoy it
see ya
-
Ok, I've now a better solution for the link between the ingame chat and the the Discord channel

I'm gonna push it to a friend for test purpose, if everything is fine, I'll write a guide and I'll publish it
-
5
-
-
Hello,
Almost 4 years ago I did a Discord bot to share to players what is the current mission on the server, mission time (to see if it's day or night), and even see who is flying on a server without need to start DCS.
So I did something using Node.JS + Discord.IO.
But it's not a very neat solution because it means each server owner needs to create and host his own Discord.The best solution would be ED to has his own Discord bot because all those data are already available:

Then, only one bot would be existing, and server owners wouldn't need to host their own Discord bot to connect their server to their community Discord.Of course I opened to ED a ticket to see if there were interested (maybe 3 year ago?), at this moment we didn't give a next.
I continued to develop my bot, I shared a bit more information, server's password, SRS version and parameters for example. But those data would not be accessible from a ED server (I guess, but I may be wrong):

But one day, the Discord.io framework wasn't supported anymore, so I had a redo a part of the bot, but the bot was still working, even today is still working, so I postponed a lot before redoing the bot.
In the same time, I saw other Discord bot for DCS, for examples https://github.com/DCS-gRPC/Custodian or https://github.com/Special-K-s-Flightsim-Bots/DCSServerBot , but it wasn't the same language (remember, I basically choose NodeJS) and it wasn't the functional possibilities I was looking for. I don't really want to manage my DCS server, I prefer to create more "social" interactions between the DCS server and the Discord server.
The last months, I finally re-did the entire bot to migrate from Discord.io to Discord.js and I also redid the lua part.Now, the current bot is sharing more data, and I called it :
DIGITAL BOT SIMULATOR
The server automatically says when the DCS server is OFF:

And I also create a channel to follow what's happening in the mission, as you can see, I can share lot of events :

During a dogfight we can see:

And sometimes an accident:
For now, I share almost everything, but I'll make an easy true/false panel to let the admin chooses what he wants to share on the Discord.
I'm also trying to find a solution to talk from the Discord channel to the in-game DCS chat.
I already did something working with the old bot, still also working:

But the technical solution wasn't very clean, so I prefer to investigate and see if I can do something better.
If you want to see the bot running, you can have a look on my Discord server: https://discord.gg/ZUZdMzQ .For now I'm still working on it, but yes :
I plan to make it available pushing it to Github with a guide for any admins to download it and use it on it's own server.
I just don't know when.If you have any questions, please, do it in a public place (on this topic or in a public channel on a Discord, you can also find me on the official DCS Discord server or on the modding hub Discord server) ). I don't want to answer in private because your question(s) could interests other players.
See you soon
Asta☠-
7
-
-
Update for the "no shoot zone" script, I had to move the explosion behind the center of the plane of 2 meters to avoid the pilot to be killed (it was causing a crash in rare cases on the BS3)
-
2
-
-
Hello,
here is what my new dedicated DCS World server looks like with all its automated implementation.
- During the week, start at 3:00 PM.
- On weekends, start at 10:00 AM.
- And shut down at 2:00 AM every day.
(I'm on Paris time)
Why these hours?
Because I did some statistics and based myself on the time slots where there were the most connections.
> Number of connections per day cumulated over two months by time slot <

With this, I reduced the server's running time by approximately 50%.
I naturally reserve the right to change the hours
What did I need to do this?
- Modify the bios so that the PC starts as soon as there is power ( "Restore on AC/Power Loss" to put on: "Power On").
- To start DCS and SRS, I just do that:

- Two scripts, one to launch the Discord bot (if you have one) and the other to shut down DCS, SRS and the PC before the timer cuts off the power. I put them in attachment
- The Windows Task Scheduler, my configuration looks like this:
)
- A plug timer (I use a Novkit TE02)
With all that, you're autonomous if you need inspiration! If you have other specific questions about your equipment, you'll need to search the documentation of your equipment, on Google (or on ChatGPT).
For other question, please ask here, or any other public place, but no PM/DM, questions could interest other people
Can we say that the server is now eco-friendly?

Happy virtual flights.

Asta☠
My Discord: https://discord.gg/ZUZdMzQ-
1
-
1
-
-
1 hour ago, XCNuse said:
I've never gotten to this stage; but does it handle updating without... intervention?
ie: if you go to update, does it attempt to reinstall for that example, Falklands on that original drive? Or does it properly update the new location's files?
I'm still with Kaltokri here though; for starters... the maps don't need to be that large for dediservers. Otherwise, we need the ability to not be forced to install these files if the sizes are just going to increase every time a map increases.
I get storage is "cheap"... but cheap isn't free; and for many, storage isn't accessible either.
According to players doing that for their client DCS, no problem with updates.
if I've a problem at the next update, I'll tell you (if no message, it means it's good
)
And yes, that's why I saied "if you have an old SSD/HDD". The solution isn't perfect and isn't possible for everyone, I know, but it still interesting enough to be shared.
In my case, I use a HDD from my first laptop, 2007, 15 years old, it's 120Go, not a lot, but enough to make my server working again. So I formated it and I pluged it to my server
-
1
-
-
Guys, there is a temporary solution if you have an old HDD/SSD somewhere in your house.
Working like a charm for me.
Solution shared by Robert de Vries on the ED's Discord, thank you again if you read me Robert de Vries!-
1
-
-
-
Update for the "no shoot zone", it was triggering even for Mig21's jato, now it's fixed
-
1
-
-
Hello,
Small news from Bignewy saying it's in progress, so we need to be patient
if you want the source's link: https://discord.com/channels/542985647502393346/724903980198789170/1053608650570215424 (ED's Discord)
-
1
-
-
Hello players,
I added a new script to punish players who shoot in forbidden zone.
Enjoy!-
2
-
-
Hello à tous,
Petit partage de la dernière vidéo de Sklang qui interview, en français, le développeur de Tacview : Vyrtuoz !
La vidéo :Son origine, son histoire, les coulisses de l'appli', comment se passe le dév', etc...
N'hésitez pas à partager autour de vous, c'est susceptible d'intéresser vos amis/groupes/escadrons de vol
++-
2
-
-
Hello à tous,
Petit partage de la dernière vidéo de Sklang qui interview, en français, le développeur de LotAtc : DArt !
La vidéo :
Son origine, son histoire, les coulisses de l'appli', comment se passe le dév', etc...
Peut être de quoi faire découvrir le monde du contrôle et/ou LotAtc à certains d'entre vous ?
N'hésitez pas à partager autour de vous, j'ai beau être abonné à cette chaine, Youtube ne l'a pas mis en avant.
Donc à vous de la diffuser à votre entourage si c'est susceptible d'intéresser vos amis/groupes/escadrons de vol
++-
1
-










)
[Discord bot for DCS] DBS (Digital Bot Simulator) by Asta☠
在 Multiplayer Server Administration
发布于
I need to have the log before to see what's going on.
Probably a problem of special character? (?!/\|'&"...) Tell me when you find it and I'll see to correct it