Jump to content

Recommended Posts

Posted
Thanks nomdeplume for sharing... i have had a play around with your .ahk script and it looks promising... but when i modify it and point it to my install directory it opens the dcs.exe file and then closes it agian after a few seconds. I am thinking its some kind of permissions issue or perhaps part of the loop in the start of the script. did you have this problem when deploying on your system?

Check you're specifying the game directory and working directory properly - the game won't launch if the working directory is set to the "bin" directory the exe itself is in. It needs to have the working directory set to the base directory of the game.

 

It's also possible it could be a permissions thing, as AHK probably doesn't launch things with admin permissions, which you might need especially if the game's installed in the default program files directory. You could try running the AHK script itself as an administrator.

 

You could try this variation if you'd prefer; add at the very start of the script:

 

dcsdirectory = C:\Games\DCS A-10C

(adjusted to suit your system) and then replace the line that launches the game with:

 

Run, %dcsdirectory%\bin\dcs.exe --net-mode gui, %dcsdirectory%

If you're still having problems you could remove the bit of code that shuts the game down completely - that way you'll know for sure that it's not the script. However if it's exiting immediately I don't think it could be the script, since the launch process takes well over a minute.

 

Edit: this is pretty OT for the thread, so if you still have problems send me a privmsg on the forums.

  • Replies 227
  • Created
  • Last Reply

Top Posters In This Topic

Posted

It is OT, but It is also really useful... maybe split in another thread?

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

Thanks mate.... that post got me on the right track to find the issue. I was copying the game directory and working directory from the shortcut icon on the desktop which has " " around the path as it had spaces in it. I removed these from the .ahk script and it started working streight away.

 

Yes agree that this would make a good thread all on its own for others trying to automate and run a dedicated server. Perhaps i will pull all this info together and post under its own topic.... giving full kudos to Nomdeplum of coarse!!!!

[sIGPIC][/sIGPIC]

Posted (edited)
Are you able to share the script that you use to restart the server and or the method of checking its alive. .

 

Here is what I have so far. Please let me know if you fixed any holes or bugs.

keep_alive.zip

Edited by jd1941
  • 2 weeks later...
Posted

Hello everyone,

 

Im just after some advice from somone that has Servman running on there server. I have servman installed and running on our a10 server, everything is functioning as it should except for mission voting and /load #.

 

Every time somone trys to vote or load a mission the server will crash and needs to be restarted.

 

I'v read this post several times and tried everything that I can think of to no avail.

 

Any assistance would be appreciated.:thumbup:

 

Thanks for all your work Panzer:)

[sIGPIC][/sIGPIC] ASUS Rampage II Extreme, i7 930@4.2GHz, Water cooled, 6GB G.Skill Trident DDR3 1600, RevoDrive3 X2 240GB, ATI 7970, Antek 1000w, Sony 46", HP TouchScreen, Helios, TIR 5, TM Warthog, CH Rudder Pedals, Win 7 64.

  • 1 month later...
Posted

Hi guys.

 

I have good news for all.

 

I've tested the servman in DCS world, and it works perfectly, :pilotfly:

 

Now with commands like, "/Load x mision" or " /Vote x mision" the server doesn't crash, and change the mission.

 

I Had to create a new folder in C:\dcsworld\missions\multiplayer because it didn't exist in the original installation.

 

I'm so happy today :D

  • Like 1
Posted

Oh, thank you for testing that - I haven't gotten around to it yet. So much to do these days.

Many thanks to you. :)

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted

Hello Panzer,

 

I was just browsing through the servman serverlog and noticed something strange.

After restarting our server last night, because it had dropped out of the dcs master server list, I did a quick testflight to see if everything was running ok and then left the server. Now, about 1h08 after I left (@00:25:56) the server I see that there is a client disconnect with the same client-id as mine before, but with no callsign (@01h34:31) and the same thing happens 9 seconds later again. Any idea what causes that ?

 

 

05/12/12 00:25:24 : LANDING: Player id = [2], RED player "74th_Bengo" landed.

05/12/12 00:25:56 : Disconnected client: [2] "74th_Bengo"

05/12/12 00:25:56 : SERVER:paused_on_miz():PAUSE

05/12/12 00:25:56 : Automatic restart of current mission (server empty)

05/12/12 00:25:56 : SERVER:paused_on_miz():RESUME

05/12/12 00:25:57 : ----------------------------------------

05/12/12 00:25:57 : Loaded mission "C:\\Games\\Eagle Dynamics\\DCS A-10C\\Missions\\Multiplayer\\DRAGONs_RookieTerrorists__BS2&WH_V69.miz"

05/12/12 00:25:57 : SERVER:paused_on_miz():PAUSE

05/12/12 00:25:57 : Chatlog has been enabled

05/12/12 00:25:57 : Loaded 0 records for the banlist

05/12/12 00:25:57 : Loaded 24 missions into missionlist

05/12/12 00:25:57 : INIT OK: Server configuration has been initialised correctly

05/12/12 00:26:00 : ----------------------------------------

05/12/12 00:26:00 : Started network game. My id=1, my name="LYNX"

05/12/12 00:26:00 : SERVER:resume_or_pause():PAUSE

05/12/12 01:34:31 : Disconnected client: [2]

05/12/12 01:34:31 : SERVER:paused_on_miz():PAUSE

05/12/12 01:34:31 : Automatic restart of current mission (server empty)

05/12/12 01:34:31 : SERVER:paused_on_miz():RESUME

05/12/12 01:34:31 : ----------------------------------------

05/12/12 01:34:31 : Loaded mission "C:\\Games\\Eagle Dynamics\\DCS A-10C\\Missions\\Multiplayer\\DRAGONs_RookieTerrorists__BS2&WH_V69.miz"

05/12/12 01:34:31 : SERVER:paused_on_miz():PAUSE

05/12/12 01:34:31 : Chatlog has been enabled

05/12/12 01:34:31 : Loaded 0 records for the banlist

05/12/12 01:34:31 : Loaded 24 missions into missionlist

05/12/12 01:34:31 : INIT OK: Server configuration has been initialised correctly

05/12/12 01:34:35 : ----------------------------------------

05/12/12 01:34:35 : Started network game. My id=1, my name="LYNX"

05/12/12 01:34:35 : SERVER:resume_or_pause():PAUSE

05/12/12 01:34:40 : Disconnected client: [2]

05/12/12 01:34:40 : SERVER:paused_on_miz():PAUSE

05/12/12 01:34:40 : Automatic restart of current mission (server empty)

05/12/12 01:34:40 : SERVER:paused_on_miz():RESUME

05/12/12 01:34:40 : ----------------------------------------

05/12/12 01:34:40 : Loaded mission "C:\\Games\\Eagle Dynamics\\DCS A-10C\\Missions\\Multiplayer\\DRAGONs_RookieTerrorists__BS2&WH_V69.miz"

05/12/12 01:34:40 : SERVER:paused_on_miz():PAUSE

05/12/12 01:34:40 : Chatlog has been enabled

05/12/12 01:34:40 : Loaded 0 records for the banlist

05/12/12 01:34:40 : Loaded 24 missions into missionlist

05/12/12 01:34:40 : INIT OK: Server configuration has been initialised correctly

05/12/12 01:34:43 : ----------------------------------------

05/12/12 01:34:43 : Started network game. My id=1, my name="LYNX"

05/12/12 01:34:43 : SERVER:resume_or_pause():PAUSE

i7 6700k/GTX1070-8G/MSI-Z170A Gaming Pro Carbon/32GB DDR4 Kingston HyperX PREDATOR DDR4 3000MHZ Vengeance 1600/TM Warthog #6106/Samsung SB350_S27B350H/OCZ Agility3 SSD 128GB / Win10-64/TIR5



 

 

Posted

Ah, yes - with the new DCS engine - I think I noticed that problem, but totally forgot about it.

It's a servman issue for sure, because DCS now changes your player status when you land or something. I have to go through that one more time to fix it.

 

I need to do a roundup of a few issues for the new DCS;

- Player status change when you land / takeoff causes server to pause and resume.

- Playerlist curruption may cause players to get booted for TK.

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted

Thank you Panzer.

i7 6700k/GTX1070-8G/MSI-Z170A Gaming Pro Carbon/32GB DDR4 Kingston HyperX PREDATOR DDR4 3000MHZ Vengeance 1600/TM Warthog #6106/Samsung SB350_S27B350H/OCZ Agility3 SSD 128GB / Win10-64/TIR5



 

 

  • 2 weeks later...
Posted
I've tested the servman in DCS world, and it works perfectly, :pilotfly:

 

Now with commands like, "/Load x mision" or " /Vote x mision" the server doesn't crash, and change the mission.

 

Tested this today, can now load and vote missions. Good find.

 

Now all I have to do is setup the a10 :pain:

[sIGPIC][/sIGPIC] ASUS Rampage II Extreme, i7 930@4.2GHz, Water cooled, 6GB G.Skill Trident DDR3 1600, RevoDrive3 X2 240GB, ATI 7970, Antek 1000w, Sony 46", HP TouchScreen, Helios, TIR 5, TM Warthog, CH Rudder Pedals, Win 7 64.

Posted (edited)

serverconfig.lua

 

Use notpad++ and goto line 168

 

Squadron Login.

squad_login_enable = true,

squad_prefix = "",

squad_suffix = "",

squad_username = "xxxxxx",

squad_password = "xxxxxx",

To use Squadron Login, Type in chat "/login xxxxxx xxxxxx"

 

Sub-admins

Goto line 205

 

local subadmins=

{

["armaholicbr"] = "your password" (Leave " and [ just add your password)

}

To use sub admin login, Type in chat "/login your password"

 

You need to login to Squadron Login 1st and then login to Subadmin 2nd.

 

BB

Edited by BigBlack
Left something out

[sIGPIC][/sIGPIC] ASUS Rampage II Extreme, i7 930@4.2GHz, Water cooled, 6GB G.Skill Trident DDR3 1600, RevoDrive3 X2 240GB, ATI 7970, Antek 1000w, Sony 46", HP TouchScreen, Helios, TIR 5, TM Warthog, CH Rudder Pedals, Win 7 64.

Posted

Tyvm! I saw the name subadmin and thought it wasn't what I needed. Everything OK now..

 

I'm trying to pause the mission when everyone leaves but it's not working for me, this is what I have:

 

pause_if_server_empty = true,

resume_if_server_not_empty = true,

 

Do I need to setup anything else for automatic pause to work?

 

Thanks again!

Voando.org - Brazilian Flight Community

Posted

Set these all to true

 

--If true the current mission will be paused once all players left the server. Set to false to disable.

pause_if_server_empty = true,

 

--If true the current mission will be unpaused when a new player enters an empty server. A mission will also be

--resumed ~1min after loading if the server is not empty. Set to false to disable.

resume_if_server_not_empty = true,

 

--If true the server automatically restarts the current mission when all players left the server.

--Set to false to disable.

restart_if_server_empty = true,

 

BB

  • Like 1

[sIGPIC][/sIGPIC] ASUS Rampage II Extreme, i7 930@4.2GHz, Water cooled, 6GB G.Skill Trident DDR3 1600, RevoDrive3 X2 240GB, ATI 7970, Antek 1000w, Sony 46", HP TouchScreen, Helios, TIR 5, TM Warthog, CH Rudder Pedals, Win 7 64.

Posted

Make sure you use notepad++ when making changers to your cfg

 

Check your PM I sent you our cfg.

 

BB

[sIGPIC][/sIGPIC] ASUS Rampage II Extreme, i7 930@4.2GHz, Water cooled, 6GB G.Skill Trident DDR3 1600, RevoDrive3 X2 240GB, ATI 7970, Antek 1000w, Sony 46", HP TouchScreen, Helios, TIR 5, TM Warthog, CH Rudder Pedals, Win 7 64.

  • 4 weeks later...
Posted

Panzertard, thank you for maintaining Servman! This fine tool is being implemented on Eno's Firehouse to trap team killers.

 

There was a mention in an early post about a global ban list or file. I am quite interested in this feature.

 

Wrecking Crew

Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.

Posted (edited)

Eh Panz... as crew mentions thank you thank you thank you for your work on this remarkable tool. We have put it to work as mentioned but I had a couple questions just regarding time delay on an empty server.

 

I have it configured to "pause when empty" and the delay to resume is 1 minute. I'm wondering if I did .5 or .25 if that would work or if I would need to figure out another way?

 

Whoops- after re-reading in here it seems this is the same problem you guys are having further up... The game isn't unpausing. Unfortunately, I don't want to have to restart each mission from scratch every time it goes from empty to populated.

 

Or- I just take the "pause" of... unfortunately that takes away from leaving a shorter mission up overnight- but if it's the difference between working and not working I guess that's what we'll do.

Edited by ENO

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

  • Recently Browsing   0 members

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