Category talk:Detection

From the Oblivion ConstructionSet Wiki
Revision as of 16:25, 13 February 2011 by imported>Saebel (→‎Formula Double Check)
Jump to navigation Jump to search

Line of Sight

Does whether or not you're in the origin's line of sight affect their ability to spot you? --Ronyn 11:42, 9 June 2009 (EDT)

Yes. Scruggs 00:05, 11 June 2009 (EDT)

Complete Formulas

I've put together the complete formula after poking around in the disassembly. Any objections to me updating this article? It would be a fairly major edit.

Not at all - accurate information is what we want, and the disassembly's a far greater source of that then any testing that we've done.
You don't really need to ask - just know what you're talking about, we trust you. This Wiki is open for editing from everyone, and you're certainly someone.
Dragoon Wraith TALK 20:33, 20 August 2010 (EDT)
Fair enough, thanks. I only posted a query like this because I'll probably be rewriting the entire page. JRoush 00:03, 21 August 2010 (EDT)

Formula Double Check

I'm in the midst of a significant revamp of detection (if possible). I noted that the description of how Detection is calculated doesn't match the description in the game. Specifically Invisibility, which states that it only cancels out sight penalties, not audio. But the detection formula presented seems to indicate that invisibility cancels out all detection. Is there some way I could look at the actual formula that you got this from? There might be something I can do with it. I'm pretty good with scripting and programming, but new to ElderScrolls construction set. I'd love to just override the entire detection formula if I could. Thanks. [this is my first wiki construction post, so please let me know if I have missed any of the common etiquette] --saebel 14:33, 13 February 2011 (EST)

Your post is perfect form, no worries there.
As for the formula, considering that the page was written by JRoush, I am reasonably sure that it results from his work disassembling Oblivion.exe, so this formula probably comes from the game code and is therefore accurate. I'd contact him on the Forums if you have more questions about it.
Changing it would be a bit trickier. The CS does not give you access to this kind of thing (like I said, JRoush probably got this by disassembling the executable, because it's definitely not documented in the game or the CS), so a simple .esp mod could not change it. Instead, you'd have to write an OBSE plugin to hook the game and make the changes you want. Making OBSE plugins requires knowledge of C++, however. If you know (or want to learn) C++, check out obse_plugin_example in the src folder of the OBSE archive download.
Also, since JRoush clearly has already investigated detection some, I suggest talking to him about it - he may be able to save you a lot of work in determining where the code you want to change is, and how to do so. You may need to do some disassembly investigation yourself, however, which means you'll also need to understand assembly.
I hope that helps - unfortunately, this will be a complicated project. Good luck! If you have questions about the process of creating an OBSE plugin, I can probably help with that.
Dragoon Wraith TALK 15:18, 13 February 2011 (EST)
Thanks for the tips! I just sent him a message via the forums, so we'll see what happens with that. In analyzing the formula further, I may be able to use what already exists with some workarounds. I'm really good with scripting (I design FileMaker Pro databases), but C++ programming not so much (for the same reason). So hopefully my workarounds will do the trick. Not sure I can justify the time to learn C++ to the level required for this one mod.
I've looked at just about all of the existing stealth/sneak mods, and found that although there were a lot of good ideas there, many of them either had mistakes, or inefficient/dirty code, or were pointing to the wrong gamesettings, or directly (and incorrectly in my opinion) modifying the sneak skill using diseases or spell effects, or just missing some gamesettings altogether!
I've been reading through this wiki heavily, and plan on using all the tricks to keep everything slim, trim and optimized so that performance issues should be minimal. I'm going to attempt using a scripts/ini system only if possible, and only focus on the fSneak* set of gamesettings, thus allowing for customization and minimal conflicts with other mods, and without modifying the player's current sneak skill.
Big kudos is going to go to JRoush for this formula. If what I have in mind works, it's gonna be a major game changer when it comes to sneaking. --saebel 16:25, 13 February 2011 (EST)