Jump to content

Slmod for DCS 1.5/2.0


Recommended Posts

2019-07-24 14:46:17.800 INFO LuaNET: SLMOD WARNING: ./Scripts/MissionScripting.lua is not up to date. Installing new ./Scripts/MissionScripting.lua.

2019-07-24 14:46:17.800 ERROR VFS: VFS_open_write: CreateFile(./Scripts/MissionScripting.lua): Access is denied.

 

2019-07-24 14:46:17.800 INFO LuaNET: SLMOD ERROR: Unable to open ./Scripts/MissionScripting.lua for writing, reason: can't open "./Scripts/MissionScripting.lua" for 'w'

 

It doesn't have permission to change the file. Run game as admin or manually update the file with the contents of SlmodMissionScripting.lua.

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

2019-07-24 14:46:17.800 INFO LuaNET: SLMOD WARNING: ./Scripts/MissionScripting.lua is not up to date. Installing new ./Scripts/MissionScripting.lua.

2019-07-24 14:46:17.800 ERROR VFS: VFS_open_write: CreateFile(./Scripts/MissionScripting.lua): Access is denied.

 

2019-07-24 14:46:17.800 INFO LuaNET: SLMOD ERROR: Unable to open ./Scripts/MissionScripting.lua for writing, reason: can't open "./Scripts/MissionScripting.lua" for 'w'

 

It doesn't have permission to change the file. Run game as admin or manually update the file with the contents of SlmodMissionScripting.lua.

 

Thank you, I run game as admin, but FPS dropped from 60 to 15-20.

Link to comment
Share on other sites

With interest from the admins at Hoggit, and frankly my own curiosity, I am in the process of adapting the stats code to keep track of which aircraft you were in when you fired a weapon instead of it being a generalized weapon counter.

 

I'd like to do one last sprint on this update. So if there are any existing issues or potentially minor features you might want to see added in the near term, please say so. I've added a few items to the github milestone

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

Thaanks for considering my MOTD suggestion

Feedback: Still running great all week on our busy server, so two tumbs up from me,

once again thanks for taking the time to keep SLMOD working and increasing its features

No more pre-orders

Click here for tutorials for using Virpil Hardware and Software

 

Click here for Virpil Flight equipment dimensions and pictures.

.

Link to comment
Share on other sites

"-time", time remaining for the current mission, such as in BuddySpikes servers.

(if it's implemented, I'm not seeing it when running on my local server, maybe I'm doing something wrong?)

 

Its not an slmod command. And its not something the API or slmod can know unless you have a set mission time. Its certainly possible to add functionality to tell slmod how long a mission is supposed to run for and then it could check that via chat command.

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

Nothing wrong. Slmod filters out some things that are seen in the chat from being added to its chat logs. Mostly for the sake of preventing chat spam. Connect and disconnect messages appear to be currently part of that filter.

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

Well I was finally able to get Simod working, so that is a great thing. Anyone willing to help provide solutions on how to parse the various data files (lua and txt) for uploading to a website mysql database? Thanks in advance for any suggestions or assistance.

vCAPT Scott "LoVis" Gray

Chief of Naval Personnel

Virtual United States Navy - VUSN

vusn.org

Link to comment
Share on other sites

Well I was finally able to get Simod working, so that is a great thing. Anyone willing to help provide solutions on how to parse the various data files (lua and txt) for uploading to a website mysql database? Thanks in advance for any suggestions or assistance.

 

Some quick google-fu resulted in this: https://keplerproject.github.io/luasql/

The stats files used by slmod are just lua tables, though they are sizable ones.

 

 

 

FYI to everyone. Please consider the release branch to be the stable build and development branch to be, well for development builds. As such I have pushed a patch to development branch of some heavily WIP code with VERBOSE logging. I have made a major change in the stats file formatting.

 

In essence I have moved kills, weapons, losses, PVP, and potentially some new stats into the stats relative to the aircraft that performed those itself. I also moved everything dealing with teamkills to its own stat file. There are two new values for when a player first joined the server and when they most recently were active on the server.

 

The stat display is being updated to work with both formats. Basically any new stats will be added to the new format if you keep the old stat file. If you do decide to keep the old stat file, or at least want to backup the teamkill information, I have added an admin command: -admin cleanup. This command will go through all of your stats and move the teamkill information for each player to its own file, then delete that teamkill entry from the main stat file. If you have a lot of entries this may take some time.... That command also features an optional value to delete any teamkill stat older than X days.

 

 

New Format

 

 

{
       ["times"] = 
       {
           ["Su-25T"] = 
           {
               ["inAir"] = 180.072,
               ["total"] = 180.072,
               ["weapons"] = 
               {
                   ["Vikhr M"] = 
                   {
                       ["hit"] = 0,
                       ["kills"] = 1,
                       ["shot"] = 1,
                       ["numHits"] = 1,
                   }, -- end of ["Vikhr M"]
               }, -- end of ["weapons"]
               ["kills"] = 
               {
                   ["Ground Units"] = 
                   {
                       ["Unarmored"] = 1,
                       ["total"] = 1,
                   }, -- end of ["Ground Units"]
               }, -- end of ["kills"]
               ['actions'] = {
                   ["losses"] = 
                   {
                       ["pilotDeath"] = 1,
                       ["crash"] = 0,
                       ["eject"] = 0,
                   }, -- end of ["losses"]
               }, -- end of ["actions"]
           }, -- end of ["Su-25T"]
        }, -- end of ["times"]
       ["lastJoin"] = 14081711810,
       ["id"] = 2,
       ["names"] = 
       {
           [1] = "Bob",
       }, -- end of ["names"]
}

 

 

Old Format

 

 


   {
       ["times"] = 
       {
           ["M-2000C"] = 
           {
               ["inAir"] = 1744.2,
               ["total"] = 2596.626,
           }, -- end of ["M-2000C"]
       }, -- end of ["times"]
       ["kills"] = 
       {
           ["Buildings"] = 
           {
               ["Other"] = 0,
               ["Static"] = 0,
               ["total"] = 0,
           }, -- end of ["Buildings"]
           ["Ground Units"] = 
           {
               ["Arty/MLRS"] = 0,
               ["SAM"] = 2,
               ["Unarmored"] = 0,
               ["IFVs"] = 2,
               ["AAA"] = 0,
               ["Infantry"] = 1,
               ["Other"] = 0,
               ["EWR"] = 0,
               ["APCs"] = 0,
               ["Tanks"] = 1,
               ["Forts"] = 0,
               ["total"] = 6,
           }, -- end of ["Ground Units"]
           ["Ships"] = 
           {
               ["Warships"] = 0,
               ["total"] = 0,
               ["Unarmed"] = 0,
               ["Subs"] = 0,
               ["Other"] = 0,
           }, -- end of ["Ships"]
           ["Helicopters"] = 
           {
               ["Other"] = 0,
               ["total"] = 1,
               ["Attack"] = 0,
               ["Utility"] = 1,
           }, -- end of ["Helicopters"]
           ["Planes"] = 
           {
               ["UAVs"] = 0,
               ["Fighters"] = 11,
               ["Bombers"] = 0,
               ["total"] = 18,
               ["Transports"] = 0,
               ["Support"] = 0,
               ["Other"] = 0,
               ["Attack"] = 7,
           }, -- end of ["Planes"]
       }, -- end of ["kills"]
       ["weapons"] = 
       {
           ["M-61"] = 
           {
               ["kills"] = 3,
               ["shot"] = 501,
               ["numHits"] = 100,
               ["gun"] = true,
               ["hit"] = 0,
           }, -- end of ["M-61"]
           ["AGM-88C"] = 
           {
               ["hit"] = 0,
               ["kills"] = 0,
               ["shot"] = 7,
               ["numHits"] = 0,
           }, -- end of ["AGM-88C"]
       }, -- end of ["weapons"]
       ["id"] = 182,
       ["PvP"] = 
       {
           ["losses"] = 0,
           ["kills"] = 0,
       }, -- end of ["PvP"]
       ["losses"] = 
       {
           ["pilotDeath"] = 7,
           ["crash"] = 6,
           ["eject"] = 0,
       }, -- end of ["losses"]
       ["names"] = 
       {
           [1] = "Bob",
       }, -- end of ["names"]
   }

 

 

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

Some quick google-fu resulted in this: https://keplerproject.github.io/luasql/

The stats files used by slmod are just lua tables, though they are sizable ones.

Thanks Grimes, I did stumble across that one and just wanted to make sure I was on the right path. I will give it a try and hope for the best. Thanks!!!

vCAPT Scott "LoVis" Gray

Chief of Naval Personnel

Virtual United States Navy - VUSN

vusn.org

Link to comment
Share on other sites

I have installed slmod, and the -help and -conv command work, but using the -reg command for admin, does not work... I have set an admin register password. Using the command line version to run the server, not using the dedicated package

Link to comment
Share on other sites

I have installed slmod, and the -help and -conv command work, but using the -reg command for admin, does not work... I have set an admin register password. Using the command line version to run the server, not using the dedicated package

 

 

I found a message in here with who the string of admin users needs to be and was able to fix this. Is there a way to shrink the VR text so it fits into the boxes it creates in the test box? Some commands are cut off and some options are cut off as well.

 

Thanks

Link to comment
Share on other sites

It uses the chat functionality and trigger messages built into the game. Maybe check the VR section of the forum to see how you can customize that info. Slmod really has no control over how it is displayed to you, it only has an option to send the message via chat or triggered message.

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

Just uploaded slomd again. I was looking and i got everything set the way i want and now i have the config.lua and configOLD.lua. Can someone tell me why it changes like that and what lua file is the script reading.

TFP Kane"Sticks"

 

 

 

The Flying Pandas Info

 

Website: http://www.tfpgaming.com

Teamspeak: 66.150.214.230

Discord: https://discord.gg/EdVprTy

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

Just uploaded slomd again. I was looking and i got everything set the way i want and now i have the config.lua and configOLD.lua. Can someone tell me why it changes like that and what lua file is the script reading.

 

It typically means that there are new options in the config file. Instead of modifying your config file in any way, slmod saves your old version as a backup and creates a new file with the new options in it.

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

  • 4 weeks later...

Good morning

 

I Just installed the update for this and for some reason its not working with the dedicated servers I have up. I can't reg as admin. This was working perfectly before going over to dedicated servers. Is there something I'm missing?

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

Good morning

 

I Just installed the update for this and for some reason its not working with the dedicated servers I have up. I can't reg as admin. This was working perfectly before going over to dedicated servers. Is there something I'm missing?

Take a look at your config, mine got overwritten after update. Also, ensure you got the dev branch update.

vCAPT Scott "LoVis" Gray

Chief of Naval Personnel

Virtual United States Navy - VUSN

vusn.org

Link to comment
Share on other sites

Take a look at your config, mine got overwritten after update. Also, ensure you got the dev branch update.

 

master and development branch are both valid on 2.5 DCS. The big difference right now is that development branch has quite a few changes to how stats are saved.

 

Any chance you can send me an example of what it shroud look like..

 

Just check to see if there is a configOLD.lua. Anytime the config file contains an update it creates a whole new file and moves the old one into the configOLD.lua. Thus you need to go through and update the config to contain any settings to match what you previously had. This is unfortunately needed to list notes associated with different options in the file. I could update it so that it'll just add any new settings, but it could result in things being out of order and would be missing the notes for valid settings.

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

I just installed slmod for the first time and -reg is not writing to the admin file.

 

I get all the correct responses in the server when I use the command but nothing is written in the serveradmins.lua

 

An example of how to manually add an admin directly to the lua would solve my problem as I don't really intend to use the -reg command but I don't have any syntax example of what the serveradmins.lua should look like.

 

 

 

 

EDsignaturefleet.jpg

Link to comment
Share on other sites

Examples are in the config near the exemption list. You can get the ucid by looking at the stats file for the player. The player name isn't used by the code, it does it all by ucid, but the name is still useful to know who is who. Guess I gotta check the -reg command again.

 

["<player's ucid>"] = "<player's name>",

 

Admins = 
{
   ['63kjhdfgdo45dsfsdfsdfsg5hfgaa2'] = 'playerName'
} -- end of Admins

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

Examples are in the config near the exemption list. You can get the ucid by looking at the stats file for the player. The player name isn't used by the code, it does it all by ucid, but the name is still useful to know who is who. Guess I gotta check the -reg command again.

 

["<player's ucid>"] = "<player's name>",

 

Admins = 
{
   ['63kjhdfgdo45dsfsdfsdfsg5hfgaa2'] = 'playerName'
} -- end of Admins

 

Thanks for the quick response and for this very useful mod.

 

 

 

 

EDsignaturefleet.jpg

Link to comment
Share on other sites

Examples are in the config near the exemption list. You can get the ucid by looking at the stats file for the player. The player name isn't used by the code, it does it all by ucid, but the name is still useful to know who is who. Guess I gotta check the -reg command again.

 

["<player's ucid>"] = "<player's name>",

 

Admins = 
{
   ['63kjhdfgdo45dsfsdfsdfsg5hfgaa2'] = 'playerName'
} -- end of Admins

 

Thanks

found it in a old backup.

 

Wood

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • Recently Browsing   0 members

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