Jump to content

Slmod- multiplayer server mod for new mission logic functionality


Recommended Posts

This function does work, I use it frequently.

 

Upload the mission, and C:\Users\<your account name>\Saved Games\DCS\Logs\dcs.log.

 

Hi Speed,

 

sorry now it works great. The Editor have not change the script File in the .miz Package by missionsave. :doh:

Link to comment
Share on other sites

Everything I've tested so far with Slmod works in 1.2.1, this is no surprise. ;)

 

After doing an auto-update, you will notice that Slmod, and any other mods, are uninstalled after the update completes. Do not worry, it is very easy to reinstall them. Look in your main DCS directory, there will be an _backup folder. Find the most recent _backup folder, copy everything in this folder, and paste it back into your main DCS directory. Say "yes" to any folder mergers, and chose to "copy and replace" (overwrite) all duplicate files. There- you've just re-installed all your mods :)

 

Slmod version 6.2 should be coming soon- main obstacle is finishing the documentation.

 

I've begun work on stats-keeping code I hope to include in Slmod version 6.3.


Edited by Speed

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.

Link to comment
Share on other sites

Hi Speed,

 

your Beta to V6.2 runs very good what means no crashes so far :)

But I do have one issue. The server starts always in pause mode and didn't unpause when someone connects. I believe the problem must be between my ears maybe you can give me a hind :smartass:

 

Regards

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

Hi Speed,

 

i have a script with the hitting function. Now i have the problem thats the trigger it´s to slow when two or three hittings come fast.

 

This ist she slmod script.

 

 

slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat')

 

And in the Editor i have this trigger.

 

Continious --> FLAG True --> incrase Flag +1 AND Falg 3 false.

 

 

This not count every hitting when it`s to fast. I think a better way is a script without a trigger. But for this i need a Return Value in the function.

 

Sample

hitting = 0

if(slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat') = true){

hitting = hitting + 1

}


Edited by Traxx
Link to comment
Share on other sites

Hi Speed,

 

your Beta to V6.2 runs very good what means no crashes so far :)

But I do have one issue. The server starts always in pause mode and didn't unpause when someone connects. I believe the problem must be between my ears maybe you can give me a hind :smartass:

 

Regards

 

is this not a feature from DCS World.... in your network.cfg (c:\User\yourname\Save Games\DCS\Config\)

 

line 11

pause_on_load = true,

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

Hi Speed,

 

i have a script with the hitting function. Now i have the problem thats the trigger it´s to slow when two or three hittings come fast.

 

This ist she slmod script.

 

 

slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat')

 

And in the Editor i have this trigger.

 

Continious --> FLAG True --> incrase Flag +1 AND Falg 3 false.

 

 

This not count every hitting when it`s to fast. I think a better way is a script without a trigger. But for this i need a Return Value in the function.

 

Sample

hitting = 0

if(slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat') = true){

hitting = hitting + 1

}

 

Hi Traxx, I hope you will understand offcourse my bad english.

 

All slmod functions only update once a second. So if there are more than one hit recognized it will only react on th first. By the way change your Trigger conditon to "switched condition". Otherwise there will be more than one count added to your flag counter.....

 

Regards

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

Hi Traxx, I hope you will understand offcourse my bad english.

 

All slmod functions only update once a second. So if there are more than one hit recognized it will only react on th first. By the way change your Trigger conditon to "switched condition". Otherwise there will be more than one count added to your flag counter.....

 

Regards

 

 

Die Trigger Einstellungen sind nciht das Problem, ich denke das es mit Switched Condition noch langsamer wird als mit Continious.

 

 

My English isn´t better. :( The Problem isn´t the slmod function, the trigger in the Editor is to slow. The slmod funktion register 5 hits (5 chat messages) and the trigger count 3 when the hits to fast.

 

I think so mutch, the best possibility would be the slmod function hitting and killed_by can incrase and deincrase Flags.

Link to comment
Share on other sites

I think so mutch, the best possibility would be the slmod function hitting and killed_by can incrase and deincrase Flags.

 

Das wäre die Goldrandlösung :D

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

I have a strange issue, anytime my server restart a mission or load a mission it crashes the server!!!!!

 

I use only DCS world current version and SLMOD.....

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

Hi Speed,

 

i have a script with the hitting function. Now i have the problem thats the trigger it´s to slow when two or three hittings come fast.

 

This ist she slmod script.

 

 

slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat')

 

And in the Editor i have this trigger.

 

Continious --> FLAG True --> incrase Flag +1 AND Falg 3 false.

 

 

This not count every hitting when it`s to fast. I think a better way is a script without a trigger. But for this i need a Return Value in the function.

 

Sample

hitting = 0

if(slmod.units_hitting(BlueUnits, RedUnits, 3, -1, '%s -- hit -- %s', 'it', 5, 'chat') = true){

hitting = hitting + 1

}

 

Yes, you can't accurately count hits with the units hitting function.

 

Unfortunately, it's not possible to make a Slmod function that returns a value. This is because there is no path through Lua/memory from the mission scripting Lua environment into the environment where Slmod operates, so there is no way to return back a value. The closest thing Slmod could do to return values would be to allow the specification of a variable name. Slmod could then use the a_do_script function the "mission" Lua environment to create a new global variable in the "mission scripting" Lua environment.

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.

Link to comment
Share on other sites

I have a strange issue, anytime my server restart a mission or load a mission it crashes the server!!!!!

 

I use only DCS world current version and SLMOD.....

 

You left out something vital: does it happen without Slmod installed too?

 

I need lots of additional info before I can investigate a bug like this.


Edited by Speed

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.

Link to comment
Share on other sites

I think so mutch, the best possibility would be the slmod function hitting and killed_by can incrase and deincrase Flags.

 

Good idea- this should be workable as an additional, optional variable.

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.

Link to comment
Share on other sites

You left out something vital: does it happen without Slmod installed too?

 

I need lots of additional info before I can investigate a bug like this.

 

Havened checked this out. Will give it a try but how can I remotely restart a mission without slmod??? I know i cant :D

So, will see if it does it when I do it manualy....

 

Regards

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

Yes, you can't accurately count hits with the units hitting function.

 

Unfortunately, it's not possible to make a Slmod function that returns a value. This is because there is no path through Lua/memory from the mission scripting Lua environment into the environment where Slmod operates, so there is no way to return back a value. The closest thing Slmod could do to return values would be to allow the specification of a variable name. Slmod could then use the a_do_script function the "mission" Lua environment to create a new global variable in the "mission scripting" Lua environment.

 

Is a expansion for the functions hitting and killed_by possible ? This functions switching a Flag to true, why should not order if you can give to the functions values about incrase or deincrase this Flag?

Link to comment
Share on other sites

Havened checked this out. Will give it a try but how can I remotely restart a mission without slmod??? I know i cant :D

So, will see if it does it when I do it manualy....

 

Regards

 

Just for INFO: the server crashes even without installed SLMOD.

Don't know what I can do, have completly deinstalled DCSW and made a fresh installation but no change :mad:

 

@Speed wasn't your fault.....but I'm at the end of any ideas, with Version 1.2.0 there was no such issue!?

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

Havened checked this out. Will give it a try but how can I remotely restart a mission without slmod??? I know i cant :D

So, will see if it does it when I do it manualy....

 

Regards

 

Oh, so this is on loading or restarting a missions with the -admin tools? I thought you just meant in general. Like I said- I need more info. When I test out the -admin restart and mission loading sub menu on my own local machine, I get no crashes- that's as of 10 minutes ago, and after 10 mission restarts/loads.

 

Understand though, that the function used to load a mission in the net environment, net.load_mission, has a history of problems. It caused occasional server CTDs back in 1.1.1.1 or 1.1.1.0 if I remember correctly. It seemed to occasionally CTD a client or two in 1.2.0. However, I have yet to witness a server-side crash caused by the net.load_mission function in DCS World.

 

Anyway, if the problem persists, upload your C:\Users\<User Account Name>\Saved Games\DCS\Logs\dcs.log file, a crash file out of this directory, and also give me any pertinent info you can think of, such as:

 

1) How long had the mission been running?

2) Where there any clients connected? If so, how many?

3) Do you use an unusual file structure for DCS?

4) Did you modify the config.lua file in \Saved Games\DCS\Slmod\?

5) Operating system?

6) Are you running DCS as administrator? Even if you are administrator on your machine, you have to manually grant programs admin rights in Windows 7.

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.

Link to comment
Share on other sites

Just for INFO: the server crashes even without installed SLMOD.

Don't know what I can do, have completly deinstalled DCSW and made a fresh installation but no change :mad:

 

@Speed wasn't your fault.....but I'm at the end of any ideas, with Version 1.2.0 there was no such issue!?

 

Not good- sounds like a general DCS issue.

 

If you could give me the info I ask for above (minus the bit that is specific only to Slmod) I'll look into it.

 

OH YES ALSO:

 

Rename the C:\Users\<Your Account Name>\Saved Games\DCS folder, and see if your server still crashes on reload.

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.

Link to comment
Share on other sites

Will do so tommorow, arrgg today..later on....now I have to take some sleep :pilotfly:

My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2

Link to comment
Share on other sites

×
×
  • Create New...