Speed Posted April 21, 2012 Author Share Posted April 21, 2012 (edited) Hi Speed, Thanks for keeping your scripts updated. I just came back after a long break and its nice to see this has evolved so much! I for the love god can not figure out why my ATIS is not working in this mission. I created a test mission as well and it works in that one but the one I have posted here, it does not work. Everything as far as triggers and script wise is the same. Something is breaking down on me. Could you take a look Speed? Well, it would be evolving a lot further if I would just sit down and get the last major thing that needs to be done for the next version done, then do a bunch of testing and documentation... I have some nice features in Slmodv6, fully working already. Anyway, there were a few problems with your mission you uploaded, but it looks like the reason nothing worked was because you stumbled across a probable bug in DCS- it looks like triggered actions may no longer work for naval units. This may be a new, unreported bug. As soon as I moved your triggered actions onto a land unit ("SCRIPT2"), things started working again. Who knows, maybe this bug only afflicts certain triggered actions. Somehow, I doubt it- a bug in naval triggered actions could go unnoticed for a while, except by someone like you who decides to go against the grain and make your script unit some dude in a boat :P Heck, I used to have a need for triggered actions on naval units (TLAM strikes), but fire at point doesn't work for ships any more :cry: (or at least, last I checked). Anyway, I'm uploading the fixed version. I also had to fix the trigger logic in the first two triggers, which I'm sure was only messed up because you were pulling your hair out trying to figure out WTF was wrong.Operation Raindrop fixed.miz Edited April 21, 2012 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 More sharing options...
mia389 Posted April 21, 2012 Share Posted April 21, 2012 Yeah, I was working on that for hours before I came to you. How in the world did you find that out? I was so stumped at why it wasn't working. My test mission was working fine but my scriptman was a land based one. Good find and thanks for your time looking at it! On another note great documentation you have written up. I also downloaded your test missions and watched your youtube videos. You have really opened up mission editing. I cant wait to try some of these functions. Link to comment Share on other sites More sharing options...
Mechanist Posted April 27, 2012 Share Posted April 27, 2012 (edited) Hi! I'm new to the slmod but not new to mission editing, scripting or modding. My problem is simple, i can't get this mod working. Tried the demo missions (all of them), read the whole theard but I can't get the mod working. I've watched the videos so i know how it suposed to work. Here are my specs: - Win7 64 bit, SP1 and regularly updated, one user only administrator level - DCS A-10C 1.1.1.1 no mods beside SLMod, the run as administrator checkbox checked - Installed the modman version without servman v5.3. (also tied the servman version, didin't work either) - Checked all file and it is there. - Hosted my own server, as internet, or lan, waited 10-30 second to initialise - Opened the chat with RCtrl+M, RAlt+M, or from the chat button in the briefing menu. Also trie the command in small and with capital letters. Also every time I launch my DCS multiplayer exe an slmod_deamon.vbs file apears with more then a page of text. As an experienced mission editor I really want the extended opportunities of this mod, does anyone can help me what do I wrong? Thanks in advance! Edited April 27, 2012 by Mechanist "Fighters make movies, bombers make history." Link to comment Share on other sites More sharing options...
Speed Posted April 27, 2012 Author Share Posted April 27, 2012 (edited) Hi! I'm new to the slmod but not new to mission editing, scripting or modding. My problem is simple, i can't get this mod working. Tried the demo missions (all of them), read the whole theard but I can't get the mod working. I've watched the videos so i know how it suposed to work. Here are my specs: - Win7 64 bit, SP1 and regularly updated, one user only administrator level - DCS A-10C 1.1.1.1 no mods beside SLMod, the run as administrator checkbox checked - Installed the modman version without servman v5.3. (also tied the servman version, didin't work either) - Checked all file and it is there. - Hosted my own server, as internet, or lan, waited 10-30 second to initialise - Opened the chat with RCtrl+M, RAlt+M, or from the chat button in the briefing menu. Also trie the command in small and with capital letters. Also every time I launch my DCS multiplayer exe an slmod_deamon.vbs file apears with more then a page of text. As an experienced mission editor I really want the extended opportunities of this mod, does anyone can help me what do I wrong? Thanks in advance! What do you mean about "every time I launch my DCS multiplayer exe an slmod_deamon.vbs file apears with more then a page of text."- specifically- that the daemon "appears"? It's supposed to run just about invisibly. The daemon was the solution I have been using to send commands from the mission scripting Lua environment to the net Lua environment. Now if by "appear", you mean, it keeps being created in Saved Games/DCS whatever/Logs, then that is what's supposed to happen. If by "appear" you mean, some window/command prompt is popping up on your desktop for more than just a fraction of a second, then that's not supposed to happen. In the processes list, the Slmod daemon is listed as "wscript.exe" IIRC. It automatically closes itself if DCS is closed (it searches for DCS.exe in the processes list and closes itself if it doesn't find it). Anyway, I have devised a method now to wholly replace, or almost wholly replace, the daemon, but that will take some time to get working. What mission are you running? Try this one: http://forums.eagle.ru/attachment.php?attachmentid=60049&d=1323598985 That's the parallel options system example mission. After starting it, try entering "-sol" in chat. Make sure, if you're using a Servman version, to have the original server.lua present in ./Scripts/net If it still doesn't work, upload dcs.log. Make sure you upload dcs.log immediately after attempting to run one of the example missions (such as the one linked above). dcs.log will report any Lua errors. dcs.log is in the <Drive>\Users\<Your account name>\Saved Games\DCS Whatever\Logs folder. If you don't have "hide file extensions for known file types" disabled in Windows folder options, then you might just see the file "dcs". Also, if you don't have "hide file extensions for known file types" disabled in Windows folder options, then you should disable this highly annoying option. I'm pretty sure MS just included the option to prevent people from accidentally changing something like "IMG_0013.jpg" to "STEVEN" and then calling up and complaining on MS tech support that they can't open their pictures any more. For folks with at least a slight level of technical competence, which probably includes every single person on these forums, this option just makes life more difficult. BTW, I only mention it because like a third of the time try to get someone to send me their dcs.log, they tell me they don't have a dcs.log or they end up sending me dcs.log.old. Edited April 27, 2012 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 More sharing options...
Mechanist Posted April 27, 2012 Share Posted April 27, 2012 Well this happens when I launch the dcs multiplayer exe: Also it wont close when i close the dcs... and here is the log what you requested (ran the misson you posted, but i allready had them): http://mh59.mgszki.hu/users/_mech/dcs.log I hope it helps, and thanks for the quick reply! "Fighters make movies, bombers make history." Link to comment Share on other sites More sharing options...
Speed Posted April 27, 2012 Author Share Posted April 27, 2012 (edited) Thanks Mechanist! You've found a bug with Slmod. The problem is pretty clear- you've associated .vbs files with Notepad. Then, in Slmod, back when I wrote this code like 9 months ago, I never thought of this potential problem: local summon_daemon_string = [[sTART "]] .. daemon_name.. [[" /MIN /D "]] .. daemon_dir ..[[" "]] .. daemon_name .. [["]] os.execute(summon_daemon_string) I suck at the Windows command prompt stuff anyway (which is what os.execute launches). So basically, I tell windows to open the file slmod_daemon.vbs in the C:\Users\<Your account name>\Saved Games\DCS whatever\Logs. However, my error was that I let Windows decide what program to open it with. Windows makes this assumption based off of the default program associated with that file extension. By default, for .vbs, this is wscript.exe. For whatever reason, on your computer, you've associated .vbs with Notepad. This is certainly a "my bad", I shouldn't make any kinds of assumptions as to what programs are associated with what file types, but considering how inept/inexperienced I am with the Windows command prompt, I hope this is understandable. I should be able to fix this in the next version of Slmod, which is nearing release. In the meantime, it's not hard to at all change it so that .vbs files open with wscript.exe on your computer instead of Notepad, and that will fix your problem. 1) Find the file "slmod_daemon.vbs" in C:\Users\<Your account name>\Saved Games\DCS whatever\Logs (or hell, just temporarily rename any file with a .vbs extension). 2)Right click on this file, select properties. 3) In the properties pop-up window, besides where it says "Opens with: <program name>", select the "Change" button. If wscript.exe is listed here, select it. You're done. 4) If wscript.exe is NOT listed there, then you need to select the "Browse" button. On my Win7 64 laptop I am using right now, wscript.exe is located at C:\Windows\System32\wscript.exe. Its icon looks like a little red, blue, and green cube. wscript.exe is supposed to be included in every install of Windows, XP and up, I think. It's a scripting utility for managing files and the like, sorta like a better, more advanced, capable, and efficient batch file. If you actually want to open .vbs files with Notepad, you can always right click and select "Open with" instead of changing the default program. Edited April 27, 2012 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 More sharing options...
Mechanist Posted April 27, 2012 Share Posted April 27, 2012 Wow thanks! Unfortunetly i won't be able to test it for a day or two, but this will be the first thing to test when i get home. Will post the results. "Fighters make movies, bombers make history." Link to comment Share on other sites More sharing options...
Mechanist Posted April 28, 2012 Share Posted April 28, 2012 (edited) Wow got it working! Excellent mod! But it was tricky: Firts I did what you recomended but then I got this error message: "There is no script engine for file extension ".vbs"." well i'm not sure because I'm using the hungarian version and mine said ""A fájlkiterjesztéshez (.vbs) nem tartozik parancsnyelv-értelmező." Witch I would translate it as follows: "There is no command language interpreter for the (.vbs) extention. So I searched the forums on this issue and I found this script to write in the windows cmd assoc .vbs=VBSFile ftype vbsfile=%SystemRoot%\System32\WScript.exe "%1" %* And now it works. Thanks very much for the help! Edited April 28, 2012 by Mechanist "Fighters make movies, bombers make history." Link to comment Share on other sites More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 (edited) Dear "Speed", I do not know English and to see your response, I require the translator of google, so I appreciate simplicity in the response. Thank you. I just want to make is that when I type in chat the mission: "apoyof16", a patrol of F-16 appears and destroy targets. (Spanish) Apoyof16 = (English) Supportf16 I created a HMMWV M1025 APC side of the "red" and in "triggered" the same, I put the following script command: slmod.chat_cmd ('apoyof16', 16, -1, 'red') the rest of the trigger: Perform command-Run Script - Name: Apoyof16 In the trigger I created: TYPE: 1 ONCE NAME: apoyof16 EVENT: No event Conditions: 16 Flag is true Actions: Activate Group (Apoyo F-16) Two f-16 that make up the patrol, I have since departing from the air (WP0) with a lag time of 10 hours of the start of the mission and I have set a waypoint (WP1) with the objectives . And there's no way to write to the chat: "apoyof16" (without quotes), then nothing. Can you help me, what am I doing wrong? Sorry if this response is already a post of this thread, but it is very difficult to translate and understand the post. I do what I can.Thank you very much. Edited April 29, 2012 by UNICOP Link to comment Share on other sites More sharing options...
Speed Posted April 29, 2012 Author Share Posted April 29, 2012 Tambien, usted necesita usar un "trigger" para funcionar la Lua. En total, necesita dos "triggers": -------------------- trigger #1: TYPE: 1 ONCE NAME: EVENT: No event Conditions: TIME MORE (5) Actions: AI TASK (HMMWV M1025 APC / 1. Run Script "Apoyof16") -------------------------- trigger #2: TYPE: 1 ONCE NAME: apoyof16 EVENT: No event Conditions: 16 Flag is true Actions: Activate Group (Apoyo F-16) ... Send me the mission if you cannot get it working, I can probably fix it quickly. 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 More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 Speed: Thank you very much for your answer, but still not working. I have done what you have told me, but do not see the F-16: ( I send the mission because I do not know where else to search. Thanks again.the_diligence.rar Link to comment Share on other sites More sharing options...
Speed Posted April 29, 2012 Author Share Posted April 29, 2012 Speed: Thank you very much for your answer, but still not working. I have done what you have told me, but do not see the F-16: ( I send the mission because I do not know where else to search. Thanks again. That is strange. The mission works correctly for me: Can you run the mission, then give me your "dcs.log" file? 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 More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 Can you tell me: where I can find that file? Link to comment Share on other sites More sharing options...
_Heater_ Posted April 29, 2012 Share Posted April 29, 2012 Can you tell me: where I can find that file? go in C:\Users\ROOT\Saved Games\DCS Warthog\Logs Simulatori: DCS A-10C II Warthog - DCS F/A-18C Hornet - DCS F-16C - VRS F/A-18E - HOTAS: TM Warthog - Cougar \ HP Reverb G2 \ WinWing Panels Tally: I see the degenerate commie who wants to ruin our day. **Air Combat Wings** - 32nd Virtual Fighter Wing || Discord https://discord.gg/XySM5na || Twitch Segui le nostre Live! Link to comment Share on other sites More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 (edited) Speed: I suppose it's this file that I must be wrong. I've taken from here: C: \ Users \ ROOT \ Saved Games \ DCS Warthog \ Log \ dcs.log.old Si heater, pero ahí me salen tres archivos: - dcs - dcs.log.old - dcs_framedcs.log.rar Edited April 29, 2012 by UNICOP Link to comment Share on other sites More sharing options...
Speed Posted April 29, 2012 Author Share Posted April 29, 2012 Can you tell me: where I can find that file? For English windows: C:\Users\<your account name>\Saved Games\DCS Warthog\Logs 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 More sharing options...
_Heater_ Posted April 29, 2012 Share Posted April 29, 2012 pruebe a cambiar la extensión de dcs.log.old en dcs.log Simulatori: DCS A-10C II Warthog - DCS F/A-18C Hornet - DCS F-16C - VRS F/A-18E - HOTAS: TM Warthog - Cougar \ HP Reverb G2 \ WinWing Panels Tally: I see the degenerate commie who wants to ruin our day. **Air Combat Wings** - 32nd Virtual Fighter Wing || Discord https://discord.gg/XySM5na || Twitch Segui le nostre Live! Link to comment Share on other sites More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 (edited) speed: you've put there, is in the post above But it seems it that I put this here.dcs.rar Edited April 29, 2012 by UNICOP Link to comment Share on other sites More sharing options...
Speed Posted April 29, 2012 Author Share Posted April 29, 2012 speed: you've put there, is in the post above But it seems it that I put this here. You are correct. I am sorry, I did not see your most recent messages. ------------------------------------------------------------------- Your problem with "Slmod" is probably an incorrect installation. This is the fifth line of "dcs.log": 00000.102 DEBUG NET: Can't load net/main.lua: can't open './Scripts/net/slmodbeta5_3.lua' This means the game cannot find the file "slmodbeta5_3.lua". The most likely reason this message is appearing is because the file "slmodbeta5_3.lua" is in the wrong location. The file "slmodbeta5_3.lua" must be placed in this location: "./Scripts/net". For me, "./Scripts/net" is located at: "C:\Program Files\Eagle Dynamics\DCS A-10C\Scripts\net". It might be different on your computer. If I am wrong, and you put "slmodbeta5_3.lua" in the correct location, I am not sure what the problem is. I will have to think about it. I hope this is clear. 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 More sharing options...
UNICOP Posted April 29, 2012 Share Posted April 29, 2012 Dear Speed: Thank you very much for your help. YOU ARE A MACHINE!. In the end it was a wrong installation of Slmod. Thanks to you and your haste, my squadron was able to fly today's mission. We thank all members and if you need anything, here we are. http://www.achs.com Link to comment Share on other sites More sharing options...
Hamblue Posted May 1, 2012 Share Posted May 1, 2012 Tonight I hosted a mission called On Station which advertises use of SL Mod. The start screen noted 2 commands /spawntask, and /getupdate. When in game I tried both and got invalid command for them. I have SLMod installed. Is there something I have to do to activate it or just follow the install instructions? Thanks Asus Sabertooth P67 Motherboard 2600k CPU, 16 gig DDR3, 1600. Samsung 830, 256 gig hard drive, GTX780 Video Card, Warthog Hotas, Razer Mamba mouse. Saitek Combat Rudder Pedals. Trackir 5, Verizon FIOS 25Meg Up/Down Link to comment Share on other sites More sharing options...
Speed Posted May 1, 2012 Author Share Posted May 1, 2012 (edited) Tonight I hosted a mission called On Station which advertises use of SL Mod. The start screen noted 2 commands /spawntask, and /getupdate. When in game I tried both and got invalid command for them. I have SLMod installed. Is there something I have to do to activate it or just follow the install instructions? Thanks Note that the commands should be "spawntask" and "getupdate", as set by Grimes, who made the mission. So just say "spawntask" in chat, NOT "/spawntask". Any chat message string that begins with a "/" character is intercepted by server.lua/Servman, which think you are trying to give a command. So strings that being with "/" should not be used as a slmod.chat_cmd anyway. Edited May 1, 2012 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 More sharing options...
Hamblue Posted May 1, 2012 Share Posted May 1, 2012 (edited) Thanks I'll ave it a try with both commands and it just posted as a regular message. I tried both with quotes and without. To get to chat I'm hitting esc then clicking on chat. Edited May 1, 2012 by Hamblue Asus Sabertooth P67 Motherboard 2600k CPU, 16 gig DDR3, 1600. Samsung 830, 256 gig hard drive, GTX780 Video Card, Warthog Hotas, Razer Mamba mouse. Saitek Combat Rudder Pedals. Trackir 5, Verizon FIOS 25Meg Up/Down Link to comment Share on other sites More sharing options...
Speed Posted May 1, 2012 Author Share Posted May 1, 2012 Thanks I'll ave it a try with both commands and it just posted as a regular message. I tried both with quotes and without. To get to chat I'm hitting esc then clicking on chat. No, there are no quotes. I would highly recommend rebinding "open chat box" or whatever they've named that keystroke to the "tab" key. 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 More sharing options...
Hamblue Posted May 3, 2012 Share Posted May 3, 2012 Rebound the Open Chat to the Tab key and still not working. :( Asus Sabertooth P67 Motherboard 2600k CPU, 16 gig DDR3, 1600. Samsung 830, 256 gig hard drive, GTX780 Video Card, Warthog Hotas, Razer Mamba mouse. Saitek Combat Rudder Pedals. Trackir 5, Verizon FIOS 25Meg Up/Down Link to comment Share on other sites More sharing options...
Recommended Posts