Jump to content

Recommended Posts

Posted (edited)

What is the difference between hits and numHits in slMod? Are hits included in numHits? Didn't see a description in the documentation.

 

Edited by Jimmytime

OS: Windows 10 64bit / MB: MSI Gamers Edge /CPU:Intel CORE I5 9600K @ 4.5 GHz/ RAM: 32 GB / Gfx: Geforce 980 GTX TI x2 in SLI /Drives:1 970 NVMe & 2x SSD RAID 0 /Joystick: Thrustmaster HOTAS Warthog/ TrackIR 5/Saitek Rudder

Posted

numHits is the number of hit events within a short timespan that the weapon registers. hits is then for each unique hit event for that weapon. In the past there were instances where multiple hit events from the same weapon could occur on the same object. Say that generated 10 hit events. The events code in slmod would match those 10 events and add + 1 to hits and +10 to numHits.

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

Posted

Thank you for the clarification. In regards to the following:

Mk-82AIR
hit
0
kills
1
shot
4
numHits
4

Would that indicate there were no direct hits but one or more objects were damaged by 4 bombs and eventually one kill?

 

OS: Windows 10 64bit / MB: MSI Gamers Edge /CPU:Intel CORE I5 9600K @ 4.5 GHz/ RAM: 32 GB / Gfx: Geforce 980 GTX TI x2 in SLI /Drives:1 970 NVMe & 2x SSD RAID 0 /Joystick: Thrustmaster HOTAS Warthog/ TrackIR 5/Saitek Rudder

Posted

The hit value depends on whether that weapon is still being tracked by slmod. If it is then it will +1 to the hits, if not it ignores it. Unfortunately with DCS it is a bit sporadic whether or not the weapon is still accessible on hit events. More often than not it isn't accessible and is something that may need to be addressed. 

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

Posted
1 hour ago, Grimes said:

The hit value depends on whether that weapon is still being tracked by slmod. If it is then it will +1 to the hits, if not it ignores it. Unfortunately with DCS it is a bit sporadic whether or not the weapon is still accessible on hit events. More often than not it isn't accessible and is something that may need to be addressed. 

Apologies if I'm posting in the wrong place here, but I'm not sure where else to ask... how do I find my ucid? I'm exploring running my own server and got slmod, but I have no idea how to find people's ucid, so I figure I'd start with my own. 

Posted

In the stats file that is created by slmod all of the stats are indexed by UCID. So open the lua file up in notepad++ or your text editor of choice and search for your user name. It is in a pretty basic table format of: 

 

[ucid] = {
   ["times"] = {   --- aircraft specific stats here
   },
   {"names"] = { -- any user name the player has connected to the server with. Largest value is most recent. If a value is re-used it gets moved in the list to highest value.
      
   },
   ["id"] = 30 --- unique player index in the order in which they were created
}

 

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

  • Recently Browsing   0 members

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