chromium Posted June 13, 2014 Posted June 13, 2014 nothing here, It seems to work as expected but I really don't use too many functions here. 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.
runny Posted June 28, 2014 Posted June 28, 2014 @ Speed 2 Questions 1. Is it possible to use SLMOD to output a file and then use that file to export data to a website. Thanks for taking the time to read. I'm also interested in this..
xcom Posted June 28, 2014 Posted June 28, 2014 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. 1 [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Grimes Posted July 26, 2014 Posted July 26, 2014 (edited) 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 July 26, 2014 by Grimes 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Midnight Posted July 26, 2014 Posted July 26, 2014 Oh oh, now I totally buggered up my SLMOD, how do I apply this update Grimes?
Blooze Posted July 26, 2014 Posted July 26, 2014 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. [sIGPIC][/sIGPIC]
Grimes Posted July 26, 2014 Posted July 26, 2014 (edited) 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 July 26, 2014 by Grimes The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Blooze Posted July 26, 2014 Posted July 26, 2014 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? [sIGPIC][/sIGPIC]
Grimes Posted July 26, 2014 Posted July 26, 2014 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
xray20 Posted July 29, 2014 Posted July 29, 2014 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
Blooze Posted July 29, 2014 Posted July 29, 2014 Try going to your program files/Eagle Dynamics folder, right click, properties,security and giving yourself permissions. Even if you have already done that before, try it again. [sIGPIC][/sIGPIC]
xcom Posted July 29, 2014 Posted July 29, 2014 Have you installed it correctly? It seems that it is trying to get to to the SLMOD functions and can't find them. Check missionscripting.lua. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Grimes Posted July 30, 2014 Posted July 30, 2014 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
xray20 Posted July 31, 2014 Posted July 31, 2014 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
PreyofWar Posted August 4, 2014 Posted August 4, 2014 (edited) 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 August 4, 2014 by PreyofWar
theGozr Posted August 5, 2014 Posted August 5, 2014 Is this making the server work harder? adding stutters ? Fly it like you stole it..
Grimes Posted August 5, 2014 Posted August 5, 2014 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Interceptor Posted August 7, 2014 Posted August 7, 2014 Slmod broke with 1.2.10? Only my server, or the others too?
xcom Posted August 7, 2014 Posted August 7, 2014 Working on DCS Israel. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Interceptor Posted August 7, 2014 Posted August 7, 2014 Slmod broke with 1.2.10? Only my server, or the others too? PICNIC :music_whistling:
Grimes Posted August 7, 2014 Posted August 7, 2014 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Interceptor Posted August 8, 2014 Posted August 8, 2014 line 93: slmod.version = '7_2' Problem In Chair Not In Computer :music_whistling:
chromium Posted August 8, 2014 Posted August 8, 2014 line 93: slmod.version = '7_2' Problem In Chair Not In Computer :music_whistling: wow I love this definition ;) 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.
Recommended Posts