Jump to content
ℹ️ Download History temporarily unavailable ×

irswat

Premium Member
  • Posts

    958
  • Joined

  • Last visited

Everything posted by irswat

  1. It's weird because I use hold key in the shout command function, to execute a shout, and it works perfect. Map works, but it's being iffy. I'll try tapkey.
  2. elseif curCMDFromList=="Map" int MapKey = Input.GetMappedKey("Quick Map") Input.HoldKey(MapKey) utility.wait(0.01) Input.ReleaseKey(MapKey) elseif curCMDFromList=="Save" int SaveKey = Input.GetMappedKey("Quicksave") Input.HoldKey(SaveKey) utility.wait(0.01) Input.ReleaseKey(SaveKey) ;debug.trace("save") elseif curCMDFromList=="Exit" || curCMDFromList=="Quit" Debug.QuitGame() elseif curCMDFromList=="Sheath" int SheathKey = Input.GetMappedKey("Ready Weapon") Input.HoldKey(SheathKey) utility.wait(0.01) Input.ReleaseKey(SheathKey) elseif curCMDFromList=="Run" int RunKey = Input.GetMappedKey("Toggle Always Run") Input.HoldKey(RunKey) utility.wait(0.01) Input.ReleaseKey(RunKey) endif Map works, none of the other commands work. Even exit doesn't work.
  3. I did not know you could return none. in code that's return none ?
  4. counter3=0 MatchingWords=TalleyofMatchingWords[LoopCounter] ListOfMatchingPercentages[LoopCounter]=(((MatchingWords as float/LengthOfCMDItem as float) * 100) as float) while counter3<=FormListSize if ListOfMatchingPercentages[counter3]>tempWinner tempWinner=ListOfMatchingPercentages[counter3] itempWinner=counter3 GreatestMatch=TalleyofMatchingWords[itempWinner] endif counter3+=1 endwhile if OverLoadSwitch=="Weapon" FormToReturn=WeaponFormList.GetAt(itempWinner) MatchFound=true elseif OverLoadSwitch=="Potion" FormToReturn=PotionFormList.GetAt(itempWinner) MatchFound=true elseif OverLoadSwitch=="Armor" FormToReturn=ArmorFormList.GetAt(itempWinner) MatchFound=true elseif OverLoadSwitch=="Spell" FormToReturn=SpellFormList.GetAt(itempWinner) MatchFound=true elseif OverLoadSwitch=="Arrow" FormToReturn=AmmoFormList.GetAt(itempWinner) MatchFound=true endif if GreatestMatch==0 FormToReturn=Game.GetForm(0x0511F099) endif form to return is a form. The problem was I found a bug in the code. it's a voice command engine and the engine was issued a nonsensical command. I thought it was a bug in this code here, and it partially is. What was happening is the function that extracts words from the voice command dump was not resetting the curCMDfromDump variable. So when I issued a command "use frostbite venom", the word "use" goes in curCMDfromDump. This command parsed and executed correctly, but the next cmd was nonsense. It was supposed to be "sheath quick" but windows SAPI thought I said "she's quick". The "use" CMD was still in curCMDfromDump from the previous command "use frostbite venom". Consequently the parser was expecting to find a potion, but the only thing to parse was "use". When no match was found it returned index 0 from the PotionsFormList, which is potion of minor healing. Solution was two parts: reset curCMDfromDump after every loop, and if there are 0 matching words simply return a blank form. hope that makes sense.
  5. never mind if I do FormToReturn=Game.GetForm(0x0511F099) which is the blank form I created, it works.
  6. It's some what trivial but when my parser can not find a form that matches any of the words of a voice command, I would like to return null, or a blank form. When I try FormToReturn="", this gives me errors. When I created a blank form called SVCE_BlankForm and try returning FormToReturn=0511F099, this also does not compile. Is there a way to return a blank form, or a null form?
  7. defiantly possible. give me a weapon with a telescopic lens and Ill try.
  8. http://www.nexusmods.com/skyrim/mods/66881/? https://www.youtube.com/watch?v=VRnHetPTuNs
  9. aetherium weapons has some bolt launchers with scopes, but they are more like dwarven guns
  10. there is this: http://www.nexusmods.com/skyrim/mods/50528/?
  11. I have a working alpha of a voice command engine I've been working on for skyrim. I need three people to help me with testing. You will need a microphone. I'd love to test with different versions of windows, but at least 1 windows 10 tester would be helpful.
  12. above problem fixed. I needed to fill properties correctly. They were at default! Woohoo!
  13. thanks. It was so late last night and my brain is still not working. Last night everything worked except there were no default values in MCM menu, so I made an initialization script, and created a global variable to track whether the script is primed with default values: here is the main script: int Property GOkey Auto string Property GOphrase Autois giving me an error in the tracelog: Error: Cannot call Initialize_SVCE() on a None object, aborting function call any idea why?
  14. I mean on the "" landing page before you select a menu page. Is it possible to center the logo do you think? There is a line down the middle, so there must be a way. Is it possible to get rid of the line in the middle of the page?
  15. CDCooley do you know you saved me hours of sleep? Per chance do you know how to center a custom logo using SetCursorPosition() at the top of the page?
  16. I'm not sure I understand: I have a MCM Menu script, which is called SVCE_MCM_Menu. I have the script for the parser engine called SVCE_Parser_Engine. Are you saying I create another script called lets say SVCE_GV_Manager and in there put something like: scriptname SVCE_GV_Manager extends Quest GlobalVariable Property gCMDKey Auto SVCE_MCM_Menu Property gGO_CMD Auto I attach this to the same quest as the SVCE_MCM_Menu, or to the quest with the SVCE_Parser_Engine? In SVCE_MCM_MENU I need to set the values, so in there I would do: gCMDKey.SetValue(keyPressed) SVCE_GV_Manager.gGO_CMD.SetValue(stringuserentered) and in SVCE_Parser_Engine when I need to get the values i would do: int CMDkey=gCMDKey.GetValue() string GO_CMD=SVCE_GV_Manager.gGO_CMD.GetValue() ?
  17. thanks. Good to know Bethesda are a bunch of convoluted masochists. do you know how to use SetCursorPosition() to get the top middle of the page?
  18. 1.) What is the easiest way to save a string to a global variable? an int? 2.) Will global variables be saved with save game file? I have 2 options in my MCM menu. The first is change a hotkey. The second is change a word that is used in the quest script for my mod. I will need to retrieve the key and string on init, to use in another script.
  19. I think the problem was I needed the SkyUI SDK, which isn't mentioned on the SkyUI MCM Quickstart page.
  20. I'm making my first MCM menu for a mod I'm working on. I'm running into two problems: 1.) I created a quest SVCE_MCM and attached a script SVCE_MCM_Menu 2.) I created PlayerAlias in that quest and filled it with PlayerRef. 3.) I tried attaching SKI_PlayerLoadGameAlias to the playeralias, as per MCM instruction, but I'm getting the error: "Script ski_playerloadgamealias had errors while loading, it will not be added to the object." The second problem, and I can't help but wonder if they are related. When I try to compile my MCM quest script I'm getting "No viable alternative at input." Here is the script: the block that the compiler is flagging is: if (iSKSE_version==0) debug.notification("SKSE is not installed. Skyrim Voice Command Engine not initializing.") Any ideas?
  21. did you have scriptname? in fact you might need scriptname and at least one function, even if it is empty. why would you want to do an empty script for your first try? at least make a "hello world" script. That's what most people who start a new language do. scriptname HelloWorld extends quest Event OnInit() Main() endEvent function Main() debug.notification("Hello World!") endFunction Bam! Attach it to a script to run on start and "Hello World!" p.s. can't remember if you need to declare the function as void in papyrus if not returning something.
×
×
  • Create New...