Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs in My Games\Skyrim.INI\SKSE instead of My Games\Skyrim Special Edition\SKSE #98

Open
obewan opened this issue Sep 6, 2024 · 1 comment

Comments

@obewan
Copy link

obewan commented Sep 6, 2024

Since the last skse64_1_6_1170 log files of the plugins are put in the directory My Games\Skyrim.INI\SKSE instead of My Games\Skyrim Special Edition\SKSE. I've try with latest CommonLibSSE-NG 3.7.0, same. Also I use a template: https://github.com/SkyrimDev/HelloWorld-using-CommonLibSSE-NG

I use this function to log, quite a famous function:

void SetupLog() {
    auto logsFolder = SKSE::log::log_directory();
    if (!logsFolder) {
        SKSE::stl::report_and_fail("SKSE log_directory not provided, logs disabled.");
        return;
    }

    auto logFilePath = *logsFolder / std::format("{}.log", Plugin::NAME);
    auto fileLoggerPtr = std::make_shared<spdlog::sinks::basic_file_sink_mt>(logFilePath.string(), true);
    auto loggerPtr = std::make_shared<spdlog::logger>("log", std::move(fileLoggerPtr));
    spdlog::set_default_logger(std::move(loggerPtr));
    spdlog::set_level(spdlog::level::trace);
    spdlog::flush_on(spdlog::level::info);
}

I guess I should indicate somewhere to use the latest SKSE, it's my first SKSE plugin, any help is welcome. Also there's lot of SKSE plugins that have this issue now.

@Acook1e
Copy link

Acook1e commented Oct 18, 2024

I have this problem too. It only happens on AE, if I use SE to load my plugin It will be in the right place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants