Notices

Reply
 
Thread Tools Display Modes
Old 11-03-2011, 05:51 PM   #1
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,082
Reputation power: 80
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default Slmod- multiplayer server mod for new mission logic functionality

Slmod Version 7.0, multiplayer server mod for DCS World

I'm a little sick of writing, so I'll just paste in the intro from the Slmod Version 7.0 manual.
Quote:
Server Lua Mod, "Slmod", is a multiplayer server mod created by "Speed". Despite the uninspired name, it provides a significant set of enhancements for DCS multiplayer servers, including multiplayer server administration tools, multiplayer stats tracking, enhanced multiplayer server operation, enhanced mission scripting capabilities, and several other useful features. As it is a server mod, multiplayer clients do not need to have it installed to use it.

Slmod includes the SlmodStats system. It keeps persistent stats on multiplayer clients who join the server, tracking their kills, deaths, friendly fire incidents, flight time, etc. It can save and display player stats from their entire history on the server, or from just a single mission alone. More information can be found in the SlmodStats section of this manual.

Slmod also includes the Slmod Admin Menu. This menu allows registered server admins to remotely manage the server through chat-based menu system. Server admins can kick players, ban players, unban players, add players to the list of server admins, remove players from the list of server admins, restart the mission, load a different mission, pause/unpause the game, etc. More info about this feature can be found in the Slmod Admin Menu section of this manual.

Using the data acquired through SlmodStats, Slmod can auto-kick or auto-ban players for team hitting, team-killing, team-collision-hitting, and/or team-collision-killing. This feature is encompassed in the new SlmodAutoAdmin system, and is highly customizable. For more on this feature see the SlmodAutoAdmin section of this manual.

Slmod accomplishes enhanced mission scripting capabilities by adding several dozen new Lua functions to the “Mission Scripting” Lua environment. These new Lua functions provide capabilities to detect game world conditions that are undetectable with traditional triggers, allow increased client interaction with the game environment, and to output dynamic trigger text messages or chat messages. The function listing and how to use them can be found in the Slmod Scripting Functions Listing section of this manual.

In addition, Slmod also adds the following features:
- a help menu
- a chat logging system
-Pause or unpause the server based on whether or not clients are connected;
-A server Message of the Day (MOTD) system;
-The capability to export, in real time, alive unit information and events;
-Slmod Coordinate Conversion Utility (chat-based coordinate converter capable of converting between four different coordinate systems);

As it is named, Slmod is a server mod. It does not need to be installed by clients. It also will not function in single player. As tracks are replayed using the single player .exe, Slmod may also break track replay if any of the Slmod mission scripting functions were used to trigger in-game events. If your mission does not use any Slmod mission scripting functions (the vast majority won't, especially now that we have a very capable mission scripting environment already built in), then you don't need to worry about this.

Keep in mind that Slmod is NOT supported by Eagle Dynamics. In order to obtain many of its capabilities, Slmod must utilize some Lua functionalities not officially supported by Eagle Dynamics, or even necessarily intended for user modding in the first place. Because of this, and because Eagle Dynamics is constantly upgrading and improving the game world, Eagle Dynamics cannot be held responsible for a patch causing Slmod to no longer function correctly. That said, I will do my very best to keep Slmod functioning through future patches. Most of the code that Slmod is dependent on is not likely to undergo drastic changes in the near future, there are always such things as bugs, and sometimes relatively minor changes can have major ripple-down effects.
TLDR:
- Adds Admin Menu for server management/administration with abilities to load missions, pause/unpause the server, kick/ban players, register other admins, etc.
- Adds SlmodStats multiplayer stats system that tracks player stats
- Adds Autokick/Autoban feature
- Adds new functions to Mission Scripting (see below)
- Adds server message of the day (MOTD) system
- Adds a chat log feature
- Adds a feature keep the mission paused when no one is in it
- Adds a help menu to give all Slmod commands
- Adds a coordinate conversion utility
- And even more...


Here's a quick list of the functions Slmod adds to mission scripting:
Spoiler:

Chat input/output functions:
slmod.chat_cmd (allow host and multiplayer clients to set flags with chat)
slmod.msg_out (output a message)
slmod.msg_out_w_unit (output a message that includes a multiplayer unit/pilot name)
slmod.CA_chatmsg (sends a chat message only to Combined Arms players)
slmod.msg_MGRS (output a message and current mean MGRS coordinates of a set of units)
slmod.msg_LL (output a message and current mean lat/lon coordinates of a set of units)
slmod.msg_leading (output a message and coordinates of leading edge of a set of units)

Parallel Tasking System:
slmod.add_task (add a task to the parallel tasking system)
slmod.add_red_task (add a task to the parallel tasking system, red only)
slmod.add_blue_task (add a task to the parallel tasking system, blue only)
slmod.remove_task (remove a task from the parallel tasking system)
slmod.remove_red_task (remove a task, red only)
slmod.remove_blue_task (remove a task, blue only)
slmod.show_task (manually show a task)
slmod.show_red_task (manually show a task, red only)
slmod.show_blue_task (manually show a task, blue only)
slmod.show_task_list (manually show the task list)
slmod.show_red_task_list (manually show the task list, red only)
slmod.show_blue_task_list (manually show the task list, blue only)
slmod.set_PTS_list_output (change the display mode and/or display time of the tasking list)
slmod.set_PTS_task_output (change the display mode and/or display time of the tasks)

Parallel Options System:
slmod.add_option (add an option to the parallel options system, both sides)
slmod.add_red_option (add an option to the parallel options system, red only)
slmod.add_blue_option (add an option to the parallel options system, blue only)
slmod.remove_option (remove an option from the parallel options system, both sides)
slmod.remove_red_option (remove an option, red only)
slmod.remove_blue_option (remove an option, blue only)
slmod.show_option_list (manually show the options list, both sides)
slmod.show_red_option_list (manually show the option list, red only)
slmod.show_blue_option_list (manually show the option list, blue only)
slmod.set_POS_output (change the display mode and/or display time of the option list)

Events-based functions:
slmod.mapobj_destroyed (detect destruction of specific map object(s))
slmod.mapobj_dead_in_zone (detect destruction of map objects in a zone)
slmod.units_firing (detect when units are firing weapons)
slmod.units_hitting (detect when units hit other units with weapons)
slmod.units_killed_by (detect when units kill other units)
slmod.units_crashed (detect when aircraft crash)
slmod.pilots_dead (detect when pilots die)
slmod.units_ejected (detect when pilots eject)

Weapons-tracking functions:
slmod.weapons_impacting_in_zones (detect when weapons impact in ME trigger zones)
slmod.weapons_impacting_in_moving_zones (detect when weapons, impact within a radius around units)
slmod.weapons_in_zones (detect when weapons fly within ME trigger zones)
slmod.weapons_in_moving_zones (detect when weapons fly within a radius around units)

Unit property based functions:
slmod.num_dead_gt (detect when the number of units dead in a large set of units is greater than a certain number)
slmod.units_LOS (detect line of sight between two sets of units)
slmod.units_in_zones (detect when units are within a set of zones)
slmod.units_in_moving_zones (detect when units are within a moving zone around other units)

Flag manipulation functions:
slmod.rand_flags_on (randomly turn on a range of flags)
slmod.rand_flag_choice (randomly select a single flag to become true)

Attached to this post is the Slmod verison 6.0 quick reference guide- it's a little out of date as more functions have been added in the meantime, but all the information it has is still accurate.

Here are download links:
Download Slmod Version 7.0

Download Slmod Version 7.0 Manual

The manual should be fairly comprehensive, but let me know if you find typos or something I missed.

Installation is pretty easy-
NOTE: INSTALL DIRECTIONS HAVE CHANGED SINCE PREVIOUS VERSION
Installation Instructions:
0) Download and extract Slmod Version 7.0.
1) You should have a "Scripts" folder located in folder you extracted. Copy this folder in your C:/Users/<Your Account>/Saved Games/DCS/ folder.

Note: Slmod will not need to be reinstalled after an autoupdate, as long as it exists within Saved Games/DCS, it will
reinstall itself!

Configuration Instructions:
1) Start DCS Multiplayer. By the time you get to the Master Server login menu, a new config.lua file will be created in C:/Users/<Your Account>/Saved Games/DCS/Slmod/. Exit multiplayer.
2) Configure the new config.lua file as desired. IT WOULD BE SMART TO EDIT THIS FILE IN Notepad++!!!

Uninstallation:
1) Copy the MissionScripting.lua file out of C:/Users/<Your Account>/Saved Games/DCS/Scripts/net/Slmodv7_0/Original Files/,
then paste this file over your C:/Program Files/Eagle Dynamics/DCS World/Scripts/MissionScripting.lua file....
OR JUST DO A REPAIR VIA THE DCS AUTOUPDATER.
2) Delete the "Scripts" folder located in your C:/Users/<Your Account>/Saved Games/DCS/ folder.

Compatibility with other mods that use Scripts/net/server.lua (such as Servman or LOtAtc):

1) Install Slmod as normal, except DO NOT PASTE IN THE Scripts/net/server.lua FILE INCLUDED WITH SLMOD. Instead, copy lines 185 to 206 from the Scripts/net/server.lua file included with Slmod, and paste just those lines onto the end of whatever the other mod uses in place of the default server.lua (in Servman, that would be servman_server.lua, not sure about LotAtc). That should be all it takes.
Attached Files
File Type: pdf Slmodv6_0 Quick Reference Guide rev0.pdf (82.4 KB, 1425 views)
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.

Last edited by Speed; 05-29-2013 at 02:32 AM.
Speed is offline   Reply With Quote
Old 11-03-2011, 05:56 PM   #2
chromium
3rd Party Developer
 
Join Date: Dec 2008
Location: Milan
Posts: 2,354
Reputation power: 19
chromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nice
Default

First Question: if I install this as user, and then host a mission, it works?
__________________
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.
chromium is offline   Reply With Quote
Old 11-03-2011, 05:58 PM   #3
Scorpi
Member
 
Join Date: Aug 2009
Posts: 165
Reputation power: 8
Scorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the rough
Default

excellent
__________________
ARMA 3 SUPPORTER
I7 2600K/ P8P67/ 2x 120GB SSD OCZ Agility 3/ 32GB DDR3/ MSI GTX680 Twin Frozr II /WIN 8 Pro 64-bit/ HOTAS WARTHOG™/ TIR5/ G19
Scorpi is offline   Reply With Quote
Old 11-03-2011, 06:45 PM   #4
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,082
Reputation power: 80
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default

Quote:
Originally Posted by chromium View Post
First Question: if I install this as user, and then host a mission, it works?
All that matters is that the person hosting the mission have it installed- and then it only does something if the mission is designed for it in the first place. As of right now, there is only a single mission designed for it (16th Mojeaux made it, and you can download it here: http://files.digitalcombatsimulator.com/en/117466/ ) but that will be changing, as I intended to release two to three missions myself in the near future.
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.
Speed is offline   Reply With Quote
Old 11-03-2011, 06:48 PM   #5
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,082
Reputation power: 80
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default

One more thing I would like to add,

If you want to try it out but are a little worried about leaving it on all the time (you shouldn't be, but that doesn't stop folks from worrying anyway, or blaming the mod for every single crash or lock up they get- mods often get wrongly blamed due to the "guilty by association" thought process), there is a very easy and quick way to effectively uninstall the mod, without really uninstalling it. To completely disable it, just change the last line of "server.lua" in Scripts\net from:

Code:
dofile('./Scripts/net/slmodbeta5_2.lua')
to
Code:
--dofile('./Scripts/net/slmodbeta5_2.lua')
This will shut off EVERYTHING Slmod related, even the daemon.

This should totally not be necessary, ever, but I thought it would be a good idea to mention it for those that think the mod is causing them some kind of problem- and besides, I can't guarantee that the mod won't cause anyone any problems till it gets tested on a wider base of users!

I might also add that in the next version of Slmod, which I will probably NOT call a "beta", I plan to try to make it so that Slmod stays in dormant mode EVEN WHEN you are server host- unless it detects that there is a Slmod function call somewhere inside the mission file.
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.

Last edited by Speed; 11-03-2011 at 06:56 PM.
Speed is offline   Reply With Quote
Old 11-03-2011, 08:30 PM   #6
Moa
Senior Member
 
Moa's Avatar
 
Join Date: Feb 2009
Location: Wellington, New Zealand
Posts: 1,087
Reputation power: 60
Moa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to beholdMoa is a splendid one to behold
Default

Excellent work Speed.
Moa is offline   Reply With Quote
Old 11-03-2011, 09:58 PM   #7
Headspace
ED Testers Team
 
Headspace's Avatar
 
Join Date: Dec 2008
Location: USA
Posts: 1,176
Reputation power: 32
Headspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to allHeadspace is a name known to all
Send a message via Skype™ to Headspace
Default

Nice work Speed. You have really dug deep into the mission layer.
__________________

My DCS How-To Videos TARS
Headspace is offline   Reply With Quote
Old 11-08-2011, 12:38 AM   #8
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,082
Reputation power: 80
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default

A somewhat humorous application demonstration of the slmod.units_firing, slmod.units_hitting, and slmod.msg_out_w_unit functions can be seen here:
http://www.youtube.com/watch?v=U9otyjbHYKI
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.

Last edited by Speed; 11-08-2011 at 12:47 AM.
Speed is offline   Reply With Quote
Old 11-08-2011, 02:11 AM   #9
Scorpi
Member
 
Join Date: Aug 2009
Posts: 165
Reputation power: 8
Scorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the roughScorpi is a jewel in the rough
Default

Yeah, i love Samuel L. Jackson.

I also something!



Thanks a lot for the slmod!
__________________
ARMA 3 SUPPORTER
I7 2600K/ P8P67/ 2x 120GB SSD OCZ Agility 3/ 32GB DDR3/ MSI GTX680 Twin Frozr II /WIN 8 Pro 64-bit/ HOTAS WARTHOG™/ TIR5/ G19

Last edited by Scorpi; 11-08-2011 at 06:23 AM.
Scorpi is offline   Reply With Quote
Old 11-08-2011, 03:25 AM   #10
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,082
Reputation power: 80
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default

Let me just say Scorpi, for the record, about the events and names in the video I posted, I had to take SOME name while I was enacting the team-killing scenario. Any perceived resemblance or similarities to real persons or events is purely coincidental.
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.

Last edited by Speed; 11-08-2011 at 03:29 AM.
Speed is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:37 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.