qbx2 / sse-mod-skyrim-search-se

Skyrim Search SE
https://www.nexusmods.com/skyrimspecialedition/mods/45689
GNU General Public License v3.0
19 stars 3 forks source link

GOG branch and SKSE versioning #7

Open zkellsworth opened 1 year ago

zkellsworth commented 1 year ago

I saw on nexus you mentioned you didn't have the GOG version so couldn't do much in terms of testing. I'm just letting you know what I've seen, what I accomplished and what I didn't accomplish.

In src/lib.rs around line 64 you are providing the version number that matches the address library bin file and that you've configured with the file target version.txt

compatibleVersions: [ target_version!(), 0, 0,

Unfortunately looking at the SKSE source, if you decide you want to make a GOG or EPIC games build you might need another config file or something. In SKSE they have the following

#define RUNTIME_TYPE_BETHESDA   0
#define RUNTIME_TYPE_GOG        1
#define RUNTIME_TYPE_EPIC       2
.
.
.
#define RUNTIME_VERSION_1_6_659_GOG MAKE_EXE_VERSION_EX(1, 6, 659, RUNTIME_TYPE_GOG)
                                                            // 0x01062931
#define RUNTIME_VERSION_1_6_678_EPIC    MAKE_EXE_VERSION_EX(1, 6, 678, RUNTIME_TYPE_EPIC)
                                                            // 0x01062A62

But the target_version!() macro is using the version string that is made for the path to the address library file. So when SKSE tries to load the compiled dll it will complain. I ended up just manually adding 0x01062931 as a compatible version in that list on line 65 to get things running and indeed it does. We can launch the gog version of skyrim we can type commands like ss help.

But thats about as far as I could get it. Any sort of command like ss cell whiterun will crash the program and I being a Rust newb and completely oblivious to how SKSE works have found myself stuck in progressing more without learning more about both of these things which I don't really have time for right now.

Anyway do with this info as you will, Imma go back to the steam version for now. But I wanted to say aside from SKSE itself, this is probably the best tool/mod ever made for the game when trying to build large orders. Thanks for your contribution.

qbx2 commented 11 months ago

I appreciate the information. I now have the time to address it, and I'd be happy if you could join https://discord.gg/mfSqNzBd for further assistance. Thank you.