Comments (5)
Hmmm, well it doesn't error check to make sure that table entry exists, but shouldn't be possible for that table entry to not exist, unless it fails to add the mission itself to the table. But it shouldn't get to that point if that is the case.
Can you go into \Saved Games<DCS saved games folder>\Slmod\ and open slmodMetaStats.lua. Look for the mission you are trying to vote in and tell me if it is listed? Should see something like this:
["missionStats"] =
{
["SomeMission"] =
{
["map"] = "PersianGulf",
["timesPlayed"] = 5,
["maxClients"] = 2,
["totalFlightHours"] = 0,
["voteEnabled"] = true,
["firstPlayed"] = "Dec 17, 2019 at 21 09 24",
["totalVoteLoaded"] = 0,
["mostRecentPlayed"] = "Dec 17, 2019 at 22 09 25",
["hoursHosted"] = 0.066846111111111,
}, -- end of ["SomeMission"]
from dcs-slmod.
this is what i got in that function
{
["mapStats"] =
{
["Caucasus"] =
{
["totalFlightHours"] = 87.742513888887,
["mostRecentPlayed"] = "Jan 05, 2020 at 21 46 34",
["firstPlayed"] = "Oct 08, 2019 at 04 25 41",
["missions"] =
{
["⚔AIM☠SKILL⚔ Training.map"] = "Oct 08, 2019 at 04 25 41",
["⚔AIM☠SKILL⚔AirTraffic"] = "Jan 03, 2020 at 06 18 23",
["⚔AIM☠SKILL⚔ PvETraining"] = "Jan 04, 2020 at 05 08 18",
}, -- end of ["missions"]
["maxClients"] = 37,
["timesPlayed"] = 321,
["hoursHosted"] = 937.62304555545,
}, -- end of ["Caucasus"]
}, -- end of ["mapStats"]
["missionStats"] =
{
["⚔AIM☠SKILL⚔ Training.map"] =
{
["map"] = "Caucasus",
["timesPlayed"] = 299,
["maxClients"] = 37,
["totalFlightHours"] = 74.747727222221,
["voteEnabled"] = true,
["firstPlayed"] = "Oct 08, 2019 at 04 25 41",
["totalVoteLoaded"] = 0,
["mostRecentPlayed"] = "Jan 03, 2020 at 23 22 29",
["hoursHosted"] = 887.49856944437,
}, -- end of ["⚔AIM☠SKILL⚔ Training.map"]
["⚔AIM☠SKILL⚔AirTraffic"] =
{
["map"] = "Caucasus",
["timesPlayed"] = 15,
["maxClients"] = 5,
["totalFlightHours"] = 9.69423,
["voteEnabled"] = true,
["firstPlayed"] = "Jan 03, 2020 at 06 18 23",
["totalVoteLoaded"] = 0,
["mostRecentPlayed"] = "Jan 05, 2020 at 21 45 51",
["hoursHosted"] = 25.876074444445,
}, -- end of ["⚔AIM☠SKILL⚔AirTraffic"]
["⚔AIM☠SKILL⚔ PvETraining"] =
{
["map"] = "Caucasus",
["timesPlayed"] = 7,
["maxClients"] = 4,
["totalFlightHours"] = 3.3005566666666,
["voteEnabled"] = true,
["firstPlayed"] = "Jan 04, 2020 at 05 08 18",
["totalVoteLoaded"] = 0,
["mostRecentPlayed"] = "Jan 05, 2020 at 21 46 34",
["hoursHosted"] = 24.248401666666,
}, -- end of ["⚔AIM☠SKILL⚔ PvETraining"]
}, -- end of ["missionStats"]
["missionStatsFile"] =
{
["currentMissionFile"] = "⚔AIM☠SKILL⚔ PvETraining- Jan 05, 2020 at 21 46 34.lua",
["previousMissionFile"] = "⚔AIM☠SKILL⚔AirTraffic- Jan 05, 2020 at 21 45 51.lua",
}, -- end of ["missionStatsFile"]
} -- end of metaStats``
but the admin load function work. i can change map like that.
from dcs-slmod.
Ok fixed it. Since it was loading the mission file it had an extra .miz at the end and it was assuming it didn't have that when looking for a table index.
from dcs-slmod.
ohh tks for the fast fix ^^
stay well and keep the good work
from dcs-slmod.
tested and working
from dcs-slmod.
Related Issues (20)
- Please create a stable version of the latest updates
- [2.7?] SLMOD ERROR: SlmodStats error- either tgtSide or initSide does not exist for hit event!
- Feature Request - Idle Spectator kick timeout HOT 3
- Technical info: Either the DB "api/db/db.json" does not exist, or there is no ["server"] index within it HOT 3
- Takeoffs count doubled
- Trains not being picked up by SL-MOD HOT 3
- Support for subfolders within load mission admin commands
- How to enable SLMOD? HOT 3
- [FeatureRequest]Please Add Anti Taxiway Take Off
- SLMOD ERROR: unable to load banned clients, malformed number near HOT 4
- [Feature Request] Combined Arms and special slots tracking stats
- Mission Script Error HOT 2
- Error in server log after updated to DCS 2.7.18.30348 Open Beta: "Airbase doesn't exist" HOT 2
- Mission error HOT 2
- Grading problem HOT 5
- SLMOD activation on two servers
- slmod.sendData() attempt to index global 'slmod' (a nil value) HOT 4
- Initiator and target UCID for mission events
- Suppress Unnecessary MOTD Elements
- Message Formats other than "chat" don't appear HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcs-slmod.