Hello, I'm facing an issue I've been trying to solve for the past few days and I'm hoping someone with more experience than me may be able to share some insight.
What I'm ultimately trying to do is find the correct console command to use to open photo mode, so that I can bind it to a hotkey on my mouse and have instant photo mode access, since I use photo mode quite a lot while playing the game. (insert meme here: "Wait, you guys actually play the game? I just mess around with the files")
There does exist a simple command - "showmenu photomodemenu" - which does open photo mode, and it works in most situations. Unfortunately, when piloting your ship, it still enters photo mode but the camera is bugged. The starting point is wrong, the starting orientation is wrong, and the movement controls (wasd) don't work at all, at a minimum. If you have taken any camera-related actions since game load, additional issues occur (inverted/diagonal camera look controls, extremely distant camera starting point, etc.) the next time that command is used while piloting your ship. I can get into the details of which actions cause which additional camera issues if it helps. Again, these issues only occur when running the aforementioned command while piloting your ship - the command still works fine if not piloting your ship, and the normal cameras (when not in photo mode) remain perfectly fine too. Going to the pause menu or the scanner and opening photo mode from there also continues to work perfectly fine.
Since the photo mode button in the pause menu (ESC) works great in all situations, and my command works great in all situations I've tested except when piloting your ship, I'm thinking the photo mode button in the pause menu must be calling additional function(s) or command(s) to properly set the camera, in addition to "showmenu photomodemenu". It might only be calling the extra function(s) when piloting (checking some internal function like isPlayerPiloting), or it might be always doing the same thing and it just happens that these extra functions aren't needed in most cases.
What I'd really like to do is log all the functions the game is calling so I can find this out. Is this even possible?
I've already enabled Papyrus debugging in my ini and am able to get some known debug commands to work, and others not. I haven't been able to find anything that would accomplish what I want though.
I've been poring through the game files trying to find clues as to how to do this. I've extracted all the scripts from the ESM file (and decompiled with Champollion) and looked through them to no avail. I haven't been able to find relevant references to photo mode, or useful debug functions that I can get to work. I checked the animations and the interface files (decompiled with FFdec) too. I wasn't even sure if the process of opening photo mode would be a script or an animation or some actionscript embedded in the interface files, so I looked through all of them.
Does anyone with more experience than me have any tips on how to do what I want, or to at least get more relevant information from the various debug functions in the game?
Any help would be greatly appreciated.
Please note that I'm not interested in using an autohotkey script or keyboard macro to automate the inputs required to manually open the pause menu and open photo mode. I already tried it and the game requires too much delay between inputs for my liking.