Jump to content

Slmod for DCS 1.5/2.0


Recommended Posts

i seem to remember someone mentioning about staying in spectators and pressing ESC twice or something like that - this allows moose to launch or something, may want to have a poke about.

 

Thanks Specter

Custom built W10 Pro 64Bit, Intel Core i9 9900k, Asus ROG Maximus Code XI Z390, 64GB DDR4 3200 RGB, Samsung 1TB NVme M.2 Drive, Gigabyte AORUS 2080TI, 40" Iiyama Display. Wacom Cintiq Pro 24, HOTAS Virpil T50 Stick / FA-18C TM Stick and Virpil T50 Throttle, MFG Crosswind Graphite Pedals. HP Reverb

 

SPECTER



[sIGPIC][/sIGPIC]

 

Lead Terrain Developer / Texture Artist

Link to comment
Share on other sites

Trying to add slmod v7 to DCS Dedi server but does not work at all. Did as per instructions. Any help would be great. Thanks

 

Doesn't create the DCS/Slmod folder and new config file after install and running the server???


Edited by Elliottc26
Clarity

[sIGPIC][/sIGPIC]

 

Gumbo's Flying Circus - Visit Twitch to Watch!

 

PC Specs: 2700x @ 4Ghz, 32Gb 3200 DDR4, 8GB Palit RTX 2080, Intel SSD7 NvMe, Samsung 860 Evo SSD, AOC G2460PF 144hz 1ms 1080p Freesync monitor, Windows 10 Home 64-bit, Thrustmaster Warthog, TrackHat :pilotfly:

Link to comment
Share on other sites

3467.237 SLMOD ERROR: Client 2 was kicked for not existing in slmod.clients database

 

what does this error mean? I have one dedicated server among 4, and this problem only occurs on this server.

 

Two of us get this error shortly after logging into the server:

 

Kicked

 

Slmod: You were not found in internal slmod.clients database, sorry, please reconnect.

 

 

this is in the slmod.log

 

3467.237 SLMOD ERROR: Client 2 was kicked for not existing in slmod.clients database

Link to comment
Share on other sites

what does this error mean? I have one dedicated server among 4, and this problem only occurs on this server.

 

Two of us get this error shortly after logging into the server:

 

Kicked

 

Slmod: You were not found in internal slmod.clients database, sorry, please reconnect.

 

 

this is in the slmod.log

 

3467.237 SLMOD ERROR: Client 2 was kicked for not existing in slmod.clients database

 

 

If you are using LotAtc 2.0.0-alpha1, it is my fault, I block some functions of SlMod (and SRS), it will be fixed in next version, sorry!

Link to comment
Share on other sites

Currently running Slmod v7_5 on a DCS World Open Beta dedicated server which is sitting on the stable branch of DCS.

 

 

The -help, -stats and -admin commands work printing the messages as defined in the config, BUT, most multi worded commands such as -stats me, -full stats me and more do not work, absolutely nothing gets printed anywhere.

 

 

Here is the odd thing, the -stats ac me command works just fine and the most all the admin commands i tried worked fine as well. So im assuming it is something with recalling players stats. I have the Slmod.log and DCS.log if I need to get anything else for diagnosis please let me know.

 

Slmod.log:

Slmod started at Nov 13, 2019, 22:54:46
11.592  SLMOD INFO: using settings defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\config.lua
11.595  SLMOD INFO: ./Scripts/MissionScripting.lua is up to date, no installation required.
11.597  SLMOD INFO: SlmodUtils.lua loaded.
11.597  SLMOD INFO: SlmodEvents.lua loaded.
11.598  SLMOD INFO: SlmodUnits.lua loaded.
11.599  SLMOD INFO: SlmodMenu.lua loaded.
11.6  SLMOD INFO: SlmodConvMenu.lua loaded.
11.6  SLMOD INFO: SlmodPTSMenu.lua loaded.
11.601  SLMOD INFO: SlmodPOSMenu.lua loaded.
11.602  SLMOD INFO: SlmodAdminMenu.lua loaded
11.605  SLMOD INFO: no stats , loading from file: C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\\SlmodStats.lua
11.616  SLMOD INFO: using SlmodStats.lua as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\SlmodStats.lua
11.638  SLMOD INFO: no penStats , loading from file: C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\\SlmodPenaltyStats.lua
11.639  SLMOD INFO: using SlmodPenaltyStats.lua as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\SlmodPenaltyStats.lua
11.646  SLMOD INFO: SlmodStats.lua loaded.
11.647  SLMOD INFO: no metaStats , loading from file: C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\\SlmodMetaStats.lua
11.678  SLMOD INFO: using SlmodMetaStats.lua as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\SlmodMetaStats.lua
11.678  SLMOD INFO: SlmodMetaStats.lua loaded.
11.68  SLMOD INFO: SlmodAutoAdmin.lua loaded.
11.68  SLMOD INFO: SlmodPingCheck.lua loaded.
11.681  SLMOD INFO: SlmodVote.lua loaded.
11.7  SLMOD INFO: SlmodLibs.lua loaded.
11.701  SLMOD INFO: SlmodDebugger.lua loaded.
11.701  SLMOD INFO: SlmodMOTD.lua loaded.
11.702  SLMOD INFO: SlmodHelp.lua loaded.
11.703  SLMOD INFO: SlmodCallbacks.lua loaded
11.703  SLMOD INFO: SlmodTests.lua loaded.
15.874  SLMOD INFO: Modifying netview... results: , true
15.881  SLMOD INFO: connected client 1
15.881  SLMOD INFO: num clients: 1
21.329  SLMOD INFO: successfully loaded (name = slmod.basicSerialize) function into export.
21.33  SLMOD INFO: successfully loaded (name = slmod.serialize) function into export.
21.33  SLMOD INFO: successfully loaded (name = slmod.oneLineSerialize) function into export.
21.33  SLMOD INFO: successfully loaded (name = slmod.serializeWithCycles) function into export.
21.33  SLMOD INFO: successfully loaded (name = slmod.deepcopy) function into export.
21.331  SLMOD INFO: successfully loaded (name = slmod.tableshow) function into export.
21.331  SLMOD INFO: using banned ucids and/or ips as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\BannedClients.lua
21.331  SLMOD INFO: using server admins as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\ServerAdmins.lua
21.331  SLMOD INFO: load exempt clients
21.331  SLMOD INFO: using exempt ucids as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\ExemptClients.lua
21.358  SLMOD INFO: successfully loaded unitAttributes.
21.378  SLMOD INFO: no misStats , loading from file: C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\Mission Stats\\Roki_Challenge_v1.1- Nov 13, 2019 at 20 30 27.lua
21.378  SLMOD INFO: Old Mission Stat file doesnt exist
21.379  SLMOD INFO: weapons_impacting_code loaded successfully to server env
21.379  SLMOD INFO: using random seed -3904
21.38  SLMOD INFO: slmod.importMissionZones: zones successfully loaded to net environment.
21.383  SLMOD INFO: successfully completed slmod.getMissionUnitData()
44.019  SLMOD INFO: successfully loaded (name = slmod.basicSerialize) function into export.
44.02  SLMOD INFO: successfully loaded (name = slmod.serialize) function into export.
44.02  SLMOD INFO: successfully loaded (name = slmod.oneLineSerialize) function into export.
44.02  SLMOD INFO: successfully loaded (name = slmod.serializeWithCycles) function into export.
44.02  SLMOD INFO: successfully loaded (name = slmod.deepcopy) function into export.
44.021  SLMOD INFO: successfully loaded (name = slmod.tableshow) function into export.
44.022  SLMOD INFO: using banned ucids and/or ips as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\BannedClients.lua
44.022  SLMOD INFO: using server admins as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\ServerAdmins.lua
44.022  SLMOD INFO: load exempt clients
44.022  SLMOD INFO: using exempt ucids as defined in C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\ExemptClients.lua
44.046  SLMOD INFO: successfully loaded unitAttributes.
44.066  SLMOD INFO: no misStats , loading from file: C:\Users\TaskForceDingo\Saved Games\DCS.openbeta_server\Slmod\Mission Stats\\Roki_Challenge_v1.1- Nov 13, 2019 at 22 54 56.lua
44.066  SLMOD INFO: Old Mission Stat file doesnt exist
44.067  SLMOD INFO: weapons_impacting_code loaded successfully to server env
44.067  SLMOD INFO: using random seed -3881
44.069  SLMOD INFO: slmod.importMissionZones: zones successfully loaded to net environment.
44.073  SLMOD INFO: successfully completed slmod.getMissionUnitData()
107.404  SLMOD INFO: connected client 2
107.404  SLMOD INFO: num clients: 2
261.307  SLMOD INFO: connected client 3
261.307  SLMOD INFO: num clients: 3

 

DCS.log is too long to add as well as the Slmod log, let me know if the DCS.log is needed.

Link to comment
Share on other sites

Sounds like either the wrong commands are being returned or it is doing the command but perhaps there is an error somewhere. Which is possible because of changes to the stats file I made.

 

Ensure you are on develop build 115. Perhaps try checking the stats of different players and if it works for some but not for others then that'll narrow it down a bit.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Ensure you are on develop build 115. Perhaps try checking the stats of different players and if it works for some but not for others then that'll narrow it down a bit.

 

 

Can confirm i am running build 115.

So far I have had 5 different people online and none could bring up any stats.

 

In the meantime, how would one read the stats off manually. Should I be looking at the SlmodPenaltyStats.lua and the SlmodStats.lua?

Also how would one read it?

 

I think I can follow the slmodstats.lua

   ["[color=red]<UCID>[/color]"] = 
   {
       ["times"] = 
       {
           ["MiG-29G"] = 
           {
               ["total"] = 1590.626,
               ["weapons"] = 
               {
                   ["R-73 (AA-11 Archer)"] = 
                   {
                       ["numHits"] = 0,
                       ["kills"] = 0,
                       ["shot"] = 1,
                       ["hit"] = 0,
                   }, -- end of ["R-73 (AA-11 Archer)"]
                   ["GSh-30-1"] = 
                   {
                       ["kills"] = 0,
                       ["shot"] = 5,
                       ["hit"] = 0,
                       ["gun"] = true,
                       ["numHits"] = 0,
                   }, -- end of ["GSh-30-1"]
               }, -- end of ["weapons"]
               ["inAir"] = 1190.471,
           }, -- end of ["MiG-29G"]
       }, -- end of ["times"]
       ["joinDate"] = 1573286068,
       ["lastJoin"] = 1573287719,
       ["id"] = 154,
       ["names"] = 
       {
           [1] = "[color=red]<PLAYERNAME>[/color]",
       }, -- end of ["names"]
   }, -- end of ["[color=Red]<UCID>[/color]"]

Its broken into player blocks; Broken down into what aircraft they shot down? then how they were shot down ending with the players name, correct?

 

Is the penalty file the same? The main thing i want to be able to read out from the penalty lua is what each players penalty score is.

Link to comment
Share on other sites

SlmodStats.lua doesn't really store "how you died", it is just a tally of assorted stats. For the sake of keeping things small it only adds entries once they occur. So kills will be broken down into categories like

 

["kills"] = 
               {
                   ["Ground Units"] = 
                   {
                       ["total"] = 2,
                       ["EWR"] = 2,
                   }, -- end of ["Ground Units"]
               }, -- end of ["kills"]

 

SlmodPenaltyStats.lua just contains all the TK information. This way you can reset the main stats file while keeping any TK data. Because it is relevant to TKs it DOES store the shooters aircraft, the weapon used, and the object type that was destroyed for each individual instance.

 

If you are willing to, could you PM me your stats file so I can check a few player's stats to see if I can get it to display. Also if you know the name of someone effected it would be easier for me to verify it is bugged. When updating all of this I had a few instances of lua errors occurring when tallying the stats so it never displayed the stats. It is possible that I missed a combination of stats in testing that causes an error.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

-reg command seems not to work.

I've all the messages in the chat box, incl. "you have been registred as an admin on this server", but no entry is added to the ServerAdmins.lua

 

 

-admin doesn't work.

 

 

Any suggestions?

SYSTEM: Mainboard MSI MEG X570 | CPU Ryzen 7 5800X @ 4.5 GHz | RAM 64 GB @ 3200 MHz | GPU GIGABYTE RTX 4090 | 1 TB SSD | Win 10 x64

DEVICES: ASUS 27" LCD | TrackIR 5 | LukeClip | Quest 3 | PointCTRL | Virpil HOTAS | MFG Crosswind | TableMount MonsterTech

MODULES: To much to list. But I stopped buying more, because of too much bugs in e.g. A-10C(II). @ED: Fix the bugs and I spend money on modules again. Promised.

PROJECTS: OpenFlightSchool: DE / EN

Link to comment
Share on other sites

I loaded the master branch from 23.11.2019.

Sorry but I'am unable to find a version number in the files.

SYSTEM: Mainboard MSI MEG X570 | CPU Ryzen 7 5800X @ 4.5 GHz | RAM 64 GB @ 3200 MHz | GPU GIGABYTE RTX 4090 | 1 TB SSD | Win 10 x64

DEVICES: ASUS 27" LCD | TrackIR 5 | LukeClip | Quest 3 | PointCTRL | Virpil HOTAS | MFG Crosswind | TableMount MonsterTech

MODULES: To much to list. But I stopped buying more, because of too much bugs in e.g. A-10C(II). @ED: Fix the bugs and I spend money on modules again. Promised.

PROJECTS: OpenFlightSchool: DE / EN

Link to comment
Share on other sites

It is in the DCS.log.

 

LuaNET: SLMOD INIT: Loading Slmodv7_5_115...

 

I haven't merged the registration fix from development branch to the master branch yet.

https://github.com/mrSkortch/DCS-SLmod/tree/develop

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Updated to build 116.

 

Fixed issue with player deaths not counting correctly and not clearing from the system. Was causing errors like this one:

 

SLMOD INFO: SlmodStats- hit client unitName: Pilot #029, hits[#hits]: ['blah blah blah'] {bigTable} no longer exists, running death logic.

 

Basically it was counting pilot death or ejects but not the crash.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

A couple of questions:

 

1) Is common for player ID numbers to change? Every now and then one of our admins finds they cannot access the admin menu and has to be re-registered. Checking the admin list file, they will subsequently have two entries with different ID codes.

 

2) In regards to updating when a new patch comes out I am having to first run a repair which replaces missionscripting.lua with the default version before updating otherwise the DCS updater will not update and skip to launching the server. Is this normal behavior?

 

Thanks!

My Rig:

 

 

CPU: i9-9900k - Corsair H150 Cooler. RAM: 32GB, 3200Mhz.

Mobo: Asus MAXIMUS Formula XI - Main Drive: 512GB NvME SSD

DCS Drive: 512GB NvME SSD - Graphics: GTX 1070 Ti. Display: 23" 1080p LG LCD.

Input: Razer Naga & Blackwidow Ultimate, TrackIR 5, HOTAS Warthog & MFDs (x4), Saitek Rudder Pedals, TurtleBeach PX22 Headset.

 

 

Link to comment
Share on other sites

FYI I have decided to add a few items to the stats. Basically fleshing out how your aircraft died, where you landed at, and time spent refueling. https://github.com/mrSkortch/DCS-SLmod/issues/45

 

A couple of questions:

 

1) Is common for player ID numbers to change? Every now and then one of our admins finds they cannot access the admin menu and has to be re-registered. Checking the admin list file, they will subsequently have two entries with different ID codes.

 

2) In regards to updating when a new patch comes out I am having to first run a repair which replaces missionscripting.lua with the default version before updating otherwise the DCS updater will not update and skip to launching the server. Is this normal behavior?

 

1. The big string of seemingly random letters and numbers is generated by ED and should be associated with that persons account. Slmod is just grabbing the value it is given. I don't know what defines it, like if it can change because they switched PCs or something along those lines. I can't say I've ever seen it change though. As long as they are using the same login it should be the same. How many times has it changed and has that person change accounts, PCs, PC hardware, or anything like that?

 

2. I've never had to do that. Then again I pretty much exclusively use a batch to force an update and not launch the game. At any rate the auto updater should recognize that the file has been modified, download the correct version, then replace it. When finished he slmod modified file should go into a _backup.xyz folder in your main DCS install folder. Could be a permissions issue maybe?

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • 2 weeks later...

Grimes,

 

1) The UCID’s have only changed a few times per user. A couple times has been around when someone has gotten new hardware, but not always. I suspect major updates like 2.4 -> 2.5 might do it or internal updates to ED servers, but I am speculating as well.

 

2) I don’t think there are any issues, the running Windows profile is an administrator and other than what is related to that LUA file, repairs and updates work fine. I’ll look over it again though. Can you share the batch script by chance?

 

Thanks!

My Rig:

 

 

CPU: i9-9900k - Corsair H150 Cooler. RAM: 32GB, 3200Mhz.

Mobo: Asus MAXIMUS Formula XI - Main Drive: 512GB NvME SSD

DCS Drive: 512GB NvME SSD - Graphics: GTX 1070 Ti. Display: 23" 1080p LG LCD.

Input: Razer Naga & Blackwidow Ultimate, TrackIR 5, HOTAS Warthog & MFDs (x4), Saitek Rudder Pedals, TurtleBeach PX22 Headset.

 

 

Link to comment
Share on other sites

Major updates shouldn't have done it. Hardware or I've heard of an instance of switching from steam to standalone might be plausible. How many people are we talking about and how often have they changed?

 

 

bin\dcs_updater update @openbeta 

Just put that into a batch file in your install folder. Its great for checking for updates if you launched the game in the last 24 hours.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • 3 weeks later...

SLMOD and Fresh Dedicated Server Install

 

Trying to add slmod v7 to DCS Dedi server but does not work at all. Did as per instructions. Any help would be great. Thanks

 

Doesn't create the DCS/Slmod folder and new config file after install and running the server???

 

Afternoon Elliotc26, Did you get a fix for your question, I'm in same boat fresh Dedi server and install of SLMOD that its doesn't create the folder in question.

 

Thanks in advance,

 

Dangermouse..

Dangermouse

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

Check your DCS.log to make sure it is attempting to load slmod.

 

The critical lines start at

 

LuaNET: SLMOD INIT: Loading Slmodv7_5

 

and end with

 

SLMOD INFO: SlmodTests.lua loaded.

 

 

Once the mission starts you should see other slmod related logs that are bookend by these lines.

LuaNET: SLMOD INFO: successfully loaded (name = slmod.basicSerialize) function into export.

...

LuaNET: SLMOD INFO: successfully completed slmod.getMissionUnitData()

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Morning Grimes,

 

Thanks for the pointers, Ive looked an no there are NO SLMOD cmds in the Log. I can see my LuaNET SRS cmds…

 

Like Elliot said my build is vanilla dedicated server and loading I think the latest SLMOD 7.0.060 version. I installed it into the \USERNAME\Saved games\DCS\Scripts folder which puts a subfolder in the scripts dir called net.... as per the instructions. are these correct ?

 

Thanks for your assistance..

 

Jim

Dangermouse

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

Use master or develop branch.

https://github.com/mrSkortch/DCS-SLmod

 

7.0 isn't compatible with DCS since the DCS 1.5 patch. Gotta use slmod 7.5 or greater.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Afternoon Grimes,

 

Thanks for that but I’m struggling with the install it doesn’t seem to work...

 

This is my issue:- this is not happening when u run the dedicated server build ....

When you first run DCS after installing slmod a new folder named "slmod" in saved games\DCS will be create.

 

I’m sure I pulled the correct scripts file so will try again...

 

Jim

Dangermouse

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • Recently Browsing   0 members

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