XJDHDR Posted February 19, 2009 Share Posted February 19, 2009 Hello everyone I recently downloaded a new mod (Clean Quit) and I decided to open the mod in the construction set to see how this mod works. Once opened, I saw that the script this mod used has four script commands I had never seen before. I keep a list of script commands stored on my computer for quick reference and searching through this list only found the description of one command used in this mod. Checking the command list in the Construction Set Wiki didn't find the definition of the last three commands I didn't know. I would like to ask this forum if anyone knows what these three script commands do:GetActiveUIComponentNameIf sv_compare "pause_quit_button" exitingHalt Besides Oblivion, this mod requires OBSE v16 (I think) and Pluggy v122 If anyone can help me in this regard, I would greatly appreciate your help. Kind regardsXJDHDR Link to comment Share on other sites More sharing options...
Vagrant0 Posted February 19, 2009 Share Posted February 19, 2009 I would imagine that those are all either custom functions which were added by the mod maker, since OBSE allows such things, or those are things which just don't work, and the mod maker had made the script without warnings on. Either way, this is usually why looking at OBSE based scripting tends to be useless as a means of learning how to do that kind of scripting. With the addition of custom functions, external scripts, and just human error, you kinda need to know what the hell you're looking at to know what the hell you're looking at. Link to comment Share on other sites More sharing options...
XJDHDR Posted February 20, 2009 Author Share Posted February 20, 2009 I have confirmed that v16 is the OBSE version Exit Oblivion With No Crash Guaranteed Alternate (that's the mod name on the site, Clean Quit is the .esp name) requires. Here is a link to the regular version of that mod if you wish to look at or use it: Exit Oblivion With No Crash Guaranteed. The alternate version seems to have been deleted but DA did mention on the Fast Exit comments page that said mod makes EOwNCGA obsolete. The regular version requires pressing F4 at the pause menu. I would imagine that those are all either custom functions which were added by the mod maker, since OBSE allows such things, or those are things which just don't work, and the mod maker had made the script without warnings on. Either way, this is usually why looking at OBSE based scripting tends to be useless as a means of learning how to do that kind of scripting. With the addition of custom functions, external scripts, and just human error, you kinda need to know what the hell you're looking at to know what the hell you're looking at. On to your comment Vagrant0. I can't imagine how Deathless Aphrodite would add commands that don't work to her script, whether accidentally or otherwise (note that I am not accusing you of criticizing DA's work because I didn't say the mod name correctly or mention DA in my first post). Also, I never saw a negative comment placed on her mod page so I must assume that the mod does what it is meant to do. Whether the script commands need to work or not though, I can't say. I will try compile the script this afternoon when I get home from work. This should test whether the commands work or not. I am very blessed because I was probably one of the last people to download this mod. As for custom commands, I would imagine that these are probably custom commands but don't you need to create a plugin for OBSE with those specific commands and what they do before you can use them in the CS. Is it possible to create custom commands while in the CS? Examining the archive I downloaded reveals only a readme and the (oblivion) plugin. Examining the plugin using TES Gecko and subsequently the CS reveals that the plugin only adds a quest and a script attached to this quest. It is in this script that I found the three unknown commands above. The only command-adding utilities this mod requires is Oblivion, OBSE and Pluggy. But the Construction Set Wiki lists script commands from these three utilities and more, yet the commands above aren't listed, hence my confusion. Link to comment Share on other sites More sharing options...
myrmaad Posted February 20, 2009 Share Posted February 20, 2009 I have confirmed that v16 is the OBSE version Exit Oblivion With No Crash Guaranteed Alternate (that's the mod name on the site, Clean Quit is the .esp name) requires. Here is a link to the regular version of that mod if you wish to look at or use it: Exit Oblivion With No Crash Guaranteed. The alternate version seems to have been deleted but DA did mention on the Fast Exit comments page that said mod makes EOwNCGA obsolete. The regular version requires pressing F4 at the pause menu. I would imagine that those are all either custom functions which were added by the mod maker, since OBSE allows such things, or those are things which just don't work, and the mod maker had made the script without warnings on. Either way, this is usually why looking at OBSE based scripting tends to be useless as a means of learning how to do that kind of scripting. With the addition of custom functions, external scripts, and just human error, you kinda need to know what the hell you're looking at to know what the hell you're looking at. On to your comment Vagrant0. I can't imagine how Deathless Aphrophyte would add commands that don't work to his script, whether accidentally or otherwise (note that I am not accusing you of criticizing DA's work because I didn't say the mod name correctly or mention DA in my first post). Also, I never saw a negative comment placed on his mod page so I must assume that the mod does what it is meant to do. Whether the script commands need to work or not though, I can't say. I will try compile the script this afternoon when I get home from work. This should test whether the commands work or not. I am very blessed because I was probably one of the last people to download this mod. As for custom commands, I would imagine that these are probably custom commands but don't you need to create a plugin for OBSE with those specific commands and what they do before you can use them in the CS. Is it possible to create custom commands while in the CS? Examining the archive I downloaded reveals only a readme and the (oblivion) plugin. Examining the plugin using TES Gecko and subsequently the CS reveals that the plugin only adds a quest and a script attached to this quest. It is in this script that I found the three unknown commands above. The only command-adding utilities this mod requires is Oblivion, OBSE and Pluggy. But the Construction Set Wiki lists script commands from these three utilities and more, yet the commands above aren't listed, hence my confusion. Been using Clean Quit ever since I downloaded (date is on one of the first comments after DA posted the mod) with no problems, great little mod. I could have sworn DA was a woman. My bad if I'm mistaken. You say you're blessed as "one of the last people to download this mod" meaning it's now removed? Will have to look into that. Anyway, onward to the point: I think you would be interested in these:http://www.bethsoft.com/bgsforums/index.ph...l=obse&st=0http://cs.elderscrolls.com/constwiki/index...OBSE_Change_Loghttp://obse.silverlock.org/obse_command_doc.html Link to comment Share on other sites More sharing options...
XJDHDR Posted February 20, 2009 Author Share Posted February 20, 2009 Been using Clean Quit ever since I downloaded (date is on one of the first comments after DA posted the mod) with no problems, great little mod. I could have sworn DA was a woman. My bad if I'm mistaken. You say you're blessed as "one of the last people to download this mod" meaning it's now removed? Will have to look into that. Anyway, onward to the point: I think you would be interested in these:http://www.bethsoft.com/bgsforums/index.ph...l=obse&st=0http://cs.elderscrolls.com/constwiki/index...OBSE_Change_Loghttp://obse.silverlock.org/obse_command_doc.html Thanks for you help Myrmaad DA's avatar is something woman-like and DA's real name is Daniele Brunengo (quick search of profile) so this seems to indicate that DA is actually a woman. I just said "his" as a generic term. This error has been corrected though. :blush: Anyway, you have helped me a great deal with my confusion. Using the links you gave me, I found out what GetActiveUIComponentName and sv_Compare does. I have posted the definitions below (ignore if you're not a modder). Both these commands are added by OBSE v16 --------------------------------------- GetActiveUIComponentName* - returns the name of the menu element currently highlighted by the mouse cursor as defined in the menu XML file. (name:string_var) GetActiveUIComponentName sv_Compare* - compares a string to a formatted string. Performs a case-insensitive comparison by default. Returns 0 if the strings are equal, 1 if the string variable occurs alphabetically before the formatted string, -1 if the string variable occurs alphabetically after the formatted string, or -2 if the comparison fails. (comparison:short) sv_Compare formatString:string var1 var2 ... var20 variable:string_var caseSensitive:bool------------------------------------------- These commands aren't on the CS Wiki though. I guess this list isn't as updated as I would like to think. I still can't find the "halt" command though, but I'm guessing it has to do with ending Oblivion. However, I would like to see a definition like one of the above commands. As for "You say you're blessed as "one of the last people to download this mod" meaning it's now removed", as far as I can tell, DA has removed the alternate version of this mod (the one that requires clicking on quit). The regular version (press F4 to quit) is still on the site though. But as I said, DA left a comment on the Fast Quit mod page which stated that Fast Quit makes Clean Quit obsolete. Judging by the description, I'm inclined to agree with this. Again, thanks for your help Myrmaad. Now I just need help with the "Halt" command. Or maybe I should just ask DA, Behippo, Scruggs or Elys what "Halt" does. Link to comment Share on other sites More sharing options...
myrmaad Posted February 20, 2009 Share Posted February 20, 2009 Anyway, you have helped me a great deal with my confusion. Using the links you gave me, I found out what GetActiveUIComponentName and sv_Compare does. I have posted the definitions below (ignore if you're not a modder). Both these commands are added by OBSE v16 --------------------------------------- GetActiveUIComponentName* - returns the name of the menu element currently highlighted by the mouse cursor as defined in the menu XML file. (name:string_var) GetActiveUIComponentName sv_Compare* - compares a string to a formatted string. Performs a case-insensitive comparison by default. Returns 0 if the strings are equal, 1 if the string variable occurs alphabetically before the formatted string, -1 if the string variable occurs alphabetically after the formatted string, or -2 if the comparison fails. (comparison:short) sv_Compare formatString:string var1 var2 ... var20 variable:string_var caseSensitive:bool------------------------------------------- These commands aren't on the CS Wiki though. I guess this list isn't as updated as I would like to think. I still can't find the "halt" command though, but I'm guessing it has to do with ending Oblivion. However, I would like to see a definition like one of the above commands. As for "You say you're blessed as "one of the last people to download this mod" meaning it's now removed", as far as I can tell, DA has removed the alternate version of this mod (the one that requires clicking on quit). The regular version (press F4 to quit) is still on the site though. But as I said, DA left a comment on the Fast Quit mod page which stated that Fast Quit makes Clean Quit obsolete. Judging by the description, I'm inclined to agree with this. Again, thanks for your help Myrmaad. Now I just need help with the "Halt" command. Or maybe I should just ask DA, Behippo, Scruggs or Elys what "Halt" does. Now I'm a bit confused, or missing something, but why would OBSE commands be listed in the CS wiki? These are relatively new additions to OBSE, for one thing, but mainly I wonder why would OBSE commands even be put into the CS Wiki? Finally, it's my observation that with the addition of OBSE scripting new commands is potentially limitless, I do expect the OBSE documentation to reflect the new options, but again, why should they be listed in documentation of the CS, which by it's nature is static and limited. Anyway OBSE does have a subdirectory on the wiki.. Now I'm confused. Link to comment Share on other sites More sharing options...
ihateregisteringeverywhere Posted February 20, 2009 Share Posted February 20, 2009 Why wouldn't OBSE commands be listed in the CS wiki... when they are? http://cs.elderscrolls.com/constwiki/index...unctions_(OBSE) :D Link to comment Share on other sites More sharing options...
myrmaad Posted February 20, 2009 Share Posted February 20, 2009 Actually, someone is updating it, but v16 isn't there, yet.. remember it's all a labor of love. http://cs.elderscrolls.com/constwiki/index...st_of_Functions nannynah you beat me to it. (but my page is different from yours anyway.) PS : http://www.google.com/search?hl=en&new...i=&safe=off It seems "halt" just ends the current script. I could be wrong of course. it happens. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.