fingerscrossed Posted September 30, 2021 Posted September 30, 2021 Is there any way to view the content of the native scripts in Skyrim? Related to Riding Styles, I'm interested in looking into what specifically is done when mounting or dismounting from a mount but I think all scripting related to this is behind closed doors. Edit for clarification: I have updated the title from scripts to code to better reflect the question. I am not looking for where to unpack the Skyrim scripts. I am looking for if there is a way to find/unpack the code that is run on Skyrim's backend when a native function (such as Dismount) is run. In the scripts, for example the Actor script, you only find the line: ; Initiates a dismount. bool Function Dismount() native and no further code on what this does. Similar to native scripts made using SKSE, I believe that he Skyrim native scripts likely have a non-papyrus (likely C++) code somewhere that they reference when called. I am interested in if this code is available/unpacked somewhere that it is viewable so that I can see in the very backend of Skyrim how certain things are handled.
Content Consumer Posted September 30, 2021 Posted September 30, 2021 They should all be in a zip file, "scripts.zip" in the data directory. Wait, is this for SE or LE?
fingerscrossed Posted October 1, 2021 Author Posted October 1, 2021 1 hour ago, Content Consumer said: They should all be in a zip file, "scripts.zip" in the data directory. Wait, is this for SE or LE? For SE or LE would work, and the scripts/code I'm looking for isn't in the zipped scripts (it's not the papyrus code) unless there is something I'm missing. For example, for dismount, the only notes that exist are: ; Initiates a dismount. bool Function Dismount() native The actual code I'm interested in (how the dismount event is handled) appears to be in another location where Skyrim stores the code for the "native" type scripts. I know SKSE adds capability for adding native scripts through a .dll created using, I believe, C++, so my thought is that somewhere Skyrim has the C++ code for these functions stored. I don't believe it's anywhere easily accessed, as they don't want you changing or mucking with it (which is why they provide the papyrus code base), but I'm hoping that there is a way that I can access and view this code so that I can figure out how mounting/dismounting is handled in the backend (the hidden parts that we do not appear to have any access to in the CK). Part of the idea behind it was that if I could see how they are performing mounting/dismounting, I may be able to reverse engineer a method to better implement it for the Riding Styles mod. But, to reiterate, the information I'm looking for (barring it being in a place in scripts that I have overlooked in my searches) is NOT a papyrus script, it is the native Skyrim code that Papyrus is built off of. Thanks for the help!
alex77r4 Posted October 1, 2021 Posted October 1, 2021 3 hours ago, fingerscrossed said: But, to reiterate, the information I'm looking for (barring it being in a place in scripts that I have overlooked in my searches) is NOT a papyrus script, it is the native Skyrim code that Papyrus is built off of. The Skyrim C++ source code is not public. We not have any way to get it. If you know assembler you can try debug Skyrim but, as you must know, debug a multi thread program composed by multiple engines is not easy.
fingerscrossed Posted October 1, 2021 Author Posted October 1, 2021 12 hours ago, alex77r4 said: The Skyrim C++ source code is not public. We not have any way to get it. If you know assembler you can try debug Skyrim but, as you must know, debug a multi thread program composed by multiple engines is not easy. Thanks for the reply. This was my assumption (that there is not anything publicly available that someone had already decompiled) and I'm not experienced enough in any of the tools to do it myself.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.