OpenFunscripter - a scripting tool - 3.2.0 release

May I ask where the keyboard settings are saved, which file and location? Would need it for @k00gar to take settings into Fungen 2.0

Not 100% sure but I believe it is stored in
C:\Users\your_account_name\AppData\Roaming\OFS\OFS3_data\state.ofs

I say I’m not 100% sure since I’m no C++ person. However, there is a KeybindingState class used by a StateManager class. The StateManager class uses the state.ofs file.

From OpenFunscripter.cpp

static void SaveState() noexcept
{
auto stateJson = OFS_StateManager::Get()->SerializeAppAll(true);
auto stateBin = Util::SerializeCBOR(stateJson);
auto statePath = Util::Prefpath(“state.ofs”);
Util::WriteFile(statePath.c_str(), stateBin.data(), stateBin.size());
}

You’ll have a hard time getting the keybindings out of there. You can throw the state.ofs into a tool like https://cbor.me and get json out of it but all the key mappings are just integers that won’t mean anything to you. You would have to reverse lookup a bunch of enums in the source code to make sense of it.

thanks sounds like @k00gar could pull off shit like that.

Hi, I have an issue on Linux: OFS starts normally, but when I try to load any video, it opens the first frame from the video in two external MPV windows and OFS freezes and flashes white. I also tried small videos and left it running for multiple minutes, but it never recovers. I tried both version 4.0.8 and 4.0.6 with the same results.

Thank you for any ideas on how to fix this!

I made this 🛠️ofs-ng - funscript editor
btw

2 Likes

I finally got around to making a PR for this

From my tests this fixes the metadata issues and another crash of the core lua script caused by changing the positional data to a double.

It just won’t open for me and I have no idea why. Spinning mouse, doesn’t really do much. Tried restarting, admin, %appdata% files refresh, usually I wouldn’t quit and could get something running but yeah, I have no information to go off of.

Could it be graphics drivers? I am running old drivers on purpose since I have an old card. Seems like a weird problem to have though, should run and then yell at me if that were the case?

The most common issue is that MPV (video player 3rd party component) is causing trouble. Try replacing it with an older version.

is it just me or can i not do a single thing on an editor and all my button presses do absolutely nothing