Jump to content

Slmod- multiplayer server mod for new mission logic functionality


Recommended Posts

nothing here, It seems to work as expected but I really don't use too many functions here.

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.

Link to comment
Share on other sites

  • 2 weeks later...

It is possible with and without.

 

First, with SLMOD you can export stats from missions into files, it's in the config file options.

You can then use those files to build a DB and display stuff from there using PHP.

 

Now, you can achieve this without SLMOD as well, I've written a small guide-http://forums.eagle.ru/showthread.php?t=124715

 

Good luck.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Howdy everyone. 1.2.9 is upon us and I have an update for slmod. Speed is still gone so I've just done some minor maintenance fixes. The F-86 update caught me by surprise a day early, so I may have been hasty in packaging the update. If there are any issues let me know.

 

Fixed a minor bug due to a change in the scripting engine.

Added gun stats support for F-86, FW-190, and Mig-21.

Added support for witchcraft, *see spoiler.

 

 

 

Ok, so this isn't entirely tested, actually its not tested at all. The witchcraft debug mod requires you to edit missionScripting.lua. Because slmod is installed into your savedgames DCS folder and it contains its own missionScripting.lua called 'slmodMissionScripting.lua' the slmod version takes precedence over whatever you have changed on your own. I have simply added the needed witchcraft modifications to the slmodMissionScripting file, but left them commented out. If you want to enable witchcraft you will have to remove the comment marks on the appropriate lines. Again this isn't tested.

slmod_v7_2_63.zip


Edited by Grimes
  • Like 1

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

Yes, me too. I installed the new version and got errors on server computer that crashed the server. I uninstalled and reinstalled the previous version and although the server PC seems to be working again my client PC gets connection interrupted when I try to join any mission in the MP menu.

Link to comment
Share on other sites

Whoops, forgot to change a config file when I made a new folder name... I've updated the earlier post and it should be good to go.

 

Or if you feed adventurous you can edit the slmodconfig.lua so that line 93 simple reads: slmod.version = '7_2'


Edited by Grimes

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

After doing a complete reinstall of DCS World I am a little nervous about trying this again. When you referred to "Fixed a minor bug due to a change in the scripting engine" Can you be more specific? The only thing I am concerned about is full functionality with existing MP missions. Is there any reason to install the new version for that?

Link to comment
Share on other sites

I changed this

 

for index, data in pairs(Unit.getAmmo(event.initiator)) do

 

into this

 

for index, data in pairs(Unit.getByName(eventCopy.initiator):getAmmo()) do

 

They both are supposed to do the same thing, but the former wasn't working for some reason. It has to do with the gun stats collection, which is also related to me adding the stats for the Mig-21, F-86, and Fw-190.

 

 

Its not likely something that will impact existing missions from functioning. It really depends on how those missions may have coded stuff.

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

Can anyone help with an SLMod error message please?

When the first player joins the server, it crashes with..

Mission Script Error

[string "slmod.sendData()":1: attempt to index global 'slmod' (a nil value)

stack traceback:

[C]:

[string "slmod.sendData()":1: in main chunk

 

I have DCS world 1.2.9 and SLMod 7.2.63

I have tried other versions of DCS World and earlier versions of SLMod with the same result.

 

Thanks

Matt

Link to comment
Share on other sites

When did you download it? Because I updated the slmodv7_2_63.rar file from this thread several hours after it was initially posted: http://forums.eagle.ru/showpost.php?p=2128411&postcount=681

 

Check the slmodconfig.lua file to make sure line 93 simple reads: slmod.version = '7_2'

instead of slmod.version = '7_2_63'

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

Can anyone help with an SLMod error message please?

When the first player joins the server, it crashes with..

Mission Script Error

[string "slmod.sendData()":1: attempt to index global 'slmod' (a nil value)

stack traceback:

[C]:

[string "slmod.sendData()":1: in main chunk

 

I have DCS world 1.2.9 and SLMod 7.2.63

I have tried other versions of DCS World and earlier versions of SLMod with the same result.

 

Thanks

Matt

Thanks All for your help.

I was running from a user account which had insufficient permissions.

Elevating to Administrator solved the problem.

Matt

Link to comment
Share on other sites

Hello ladies and gents!

 

I have a quick question, would it be easy for me, as a person who has messed with lua very limited, just switched some weapons onto other aircraft ;), to create a lua script with a command like "-admin say stop fighting or a ban for both of you!" to make that text into a text box like a trigger function on the mission editor at the top right of the screen? Or, with the default settings of Slmod, at the top right when you type -admin. You get the gist... And if it's easy enough, can you post the command here? I'll try to do my best and experiment with it, but until then, I'm kind of desperate :). Thanks!

 

EDIT:

I'll pay a **** bucks just to have this command, and to have it private, just for my server :).

 

EDIT #2:

 

local ToggleSayVars = {}

ToggleSayVars.menu = SlmodAdminMenu

ToggleSayVars.description = 'Say in chat "-admin say" to tell everybody on the server something.'

ToggleSayVars.active = true

ToggleSayVars.options = {display_mode = 'chat', display_time = 5, privacy = {access = true, show = true}}

ToggleSayVars.selCmds = {

[1] = {

[1] = {

type = 'word',

text = '-admin',

required = true

},

[2] = {

type = 'word',

text = 'say',

required = true

},

[3] = {

type = 'word',

text = 'admintext',

required = true

}.

}

}

 

local AdminName

if client_id == 1 then

AdminName = net.get_name(1)

elseif slmod.clients[client_id] and slmod.clients[client_id].ucid and Admins[slmod.clients[client_id].ucid] then

AdminName = Admins[slmod.clients[client_id].ucid]

else

AdminName = '!UNKNOWN ADMIN!' -- should NEVER get to this.

end

 

if net.is_paused() then

net.resume()

slmod.scheduleFunctionByRt(slmod.basicChat, {'Slmod: admin "' .. AdminName .. '" said "'admintext'"'}, net.get_real_time() + 0.1) -- scheduled so that reply from Slmod appears after your chat message.

end

 

AdminItems[#AdminItems + 1] = SlmodMenuItem.create(ToggleSayVars) -- add the item into the items table.

 

This is in the adminmenu file.

What do I need to change here so that it works?...

 

 

-Prey


Edited by PreyofWar
Link to comment
Share on other sites

Is this making the server work harder? adding stutters ?

 

Any performance impact should be negligible.

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

Slmod broke with 1.2.10?

 

 

Only my server, or the others too?

 

I'll test it out on my end, but what exactly was broken with 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

line 93: slmod.version = '7_2'

 

 

Problem

In

Chair

Not

In

Computer

 

 

:music_whistling:

 

wow I love this definition ;)

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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