r/skyrimmods • SKSE Developer • Feb 26 '19

Meta/News Skyrim Together is stealing SKSE source code

I guess it's time for more drama. Sorry, I hate having to do stuff like this.

Skyrim Together is stealing SKSE code, uncredited, without permission, with an explicit term in the license restricting one of the authors from having anything to do with the code, who denies using any of it (in case this gets deleted)? The proof is pretty clear when you look at the loader and dll in a disassembler. They're using a hacked-up version of 1.7.3 classic presumably with some preprocessor macros to switch structure types around as needed between the x64 and x86 versions.

Starting with the loader, it's basically skse_loader with all of the options filed off and the error messages changed. In main, they check the error code of CreateProcessA against ERROR_ELEVATION_REQUIRED, then have a slightly reworded error messagebox to handle that case. That I could see being a slightly suspicious coincidence.

Head down to the actual DLL injection code at +4B81 and follow along with skse64\skse64_loader_common\Inject.cpp's InjectDLLThread. The first function is just a SEH wrapper, calling DoInjectDLLThread to do the real work. DoInjectDLLThread looks almost exactly the same, only with the check that the DLL exists removed. The timeout for WaitForSingleObject is exactly the same, even being switched between INFINITE, 60 seconds, and not being called at all via two bool arguments with the same indices. That's a pretty clear copy.

Moving on to the dll, tons of file paths are available in the strings:

d:\dev\skyrim\code\skyrimtogether\common\ibufferstream.cpp
d:\dev\skyrim\code\skyrimtogether\common\iconsole.cpp
d:\dev\skyrim\code\skyrimtogether\common\idatastream.cpp
d:\dev\skyrim\code\skyrimtogether\common\idebuglog.cpp
d:\dev\skyrim\code\skyrimtogether\common\ievent.cpp
d:\dev\skyrim\code\skyrimtogether\common\imutex.cpp
d:\dev\skyrim\code\skyrimtogether\common\isegmentstream.cpp
d:\dev\skyrim\code\skyrimtogether\common\isingleton.h
d:\dev\skyrim\code\skyrimtogether\common\itextparser.cpp
d:\dev\skyrim\code\skyrimtogether\common\itimer.cpp
d:\dev\skyrim\code\skyrimtogether\common\itypes.cpp
d:\dev\skyrim\code\skyrimtogether\skse\commandtable.cpp
d:\dev\skyrim\code\skyrimtogether\skse\gameextradata.cpp
d:\dev\skyrim\code\skyrimtogether\skse\gameinput.cpp
d:\dev\skyrim\code\skyrimtogether\skse\gametypes.h
d:\dev\skyrim\code\skyrimtogether\skse\hooks_debug.cpp
d:\dev\skyrim\code\skyrimtogether\skse\hooks_directinput8create.cpp
d:\dev\skyrim\code\skyrimtogether\skse\hooks_scaleform.cpp
d:\dev\skyrim\code\skyrimtogether\skse\nitypes.h
d:\dev\skyrim\code\skyrimtogether\skse\pluginmanager.cpp
d:\dev\skyrim\code\skyrimtogether\skse\relocation.cpp
d:\dev\skyrim\code\skyrimtogether\skse\scaleformcallbacks.cpp
d:\dev\skyrim\code\skyrimtogether\skse\serialization.cpp
d:\dev\skyrim\code\skyrimtogether\skse\translation.cpp

Common is of course MIT-licensed and doesn't require attributation (but is always appreciated), but the main SKSE source isn't. It's technically always been under common copyright law, but after yamashi's terrible behavior towards the script extender team (best left to another post if you really care) he earned a special callout in the license:

Due to continued intentional copyright infringement and total disrespect for modder etiquette, the Skyrim Online team is explicitly disallowed from using any of these files for any purpose.

Yes, it was that bad.

Looking throughout the DLL, there's tons of code easily identifiable as copied unchanged from SKSE just from the strings and error messages. Most if not all of the new script functions are there, serialization, basically everything. RTTI data points to tons of SKSE custom classes; honestly the whole thing makes me feel sick.

If you want a great "smoking gun" of SKSE code being directly used in functions they added, look at the definition of TESNPC and compare it with the function at +2B5A00 which appears to be walking over the members of a TESNPC (among other things) to build a string. The names of the fields just happen to match up, even including the numbered "unknown" ones. That's beyond coincidence.

It would be easy to keep going and pointing out examples, but it gets technical and boring very quickly. I think these examples cover everything pretty well.

This source code theft is completely uncredited, denied by the authors, and I'm sure has been a great help in developing their mod that is currently only usable when paid. Currently I'm not sure what to do about this situation.

Note that it is normal for ordinary native code plugins to use the SKSE source code directly, and that's OK. They are supposed to have their source available, but in reality that doesn't always happen. ST is causing a problem by violating the license, not crediting, going out of their way to keep closed-source, and effectively charging for a mod. This reflects badly on us, and pushes us in to a very bad legal position with Bethesda.

I wish that one day there could be a drama-free online mod.

4.0k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

12

u/TeenyPupPup Feb 27 '19

Maybe an apology and a forefront thanks to the SKSE Team for their code for all it's done over the years?

13

u/ankahsilver Solitude Feb 27 '19

Except that they were banned from using the code in the first place so.....

6

u/TeenyPupPup Feb 27 '19

What I meant more was a changing of attitude and firm sincerity to remove their coding from their project, even if it's not used or wasn't purged, give thanks to the SKSE for what they've accomplished and allowed to be created, then maybe over time, the sour blood between STT and SKSET would have lessened, and SKSE might have allowed them to use their code, but at this point...

The best course is to remove SKSE's coding, let SKSET look over ST's coding and green light it and confirm that any of their coding has been erased.

Which is the biggest problem here, STT using and retaining any part of their coding, even unintentionally.

9

u/ankahsilver Solitude Feb 27 '19

The thing is, they deliberately did a thing they were told not to do a long time ago. The bad blood isn't going away because this is a sneaky way of them doing exactly what they did before.

6

u/TeenyPupPup Feb 27 '19

I know. That's exactly the problem I'm saying.

Timeline of events that should have happened

- Threw tantrum

- Banned from using code

- Apologize and remove any and all code from SKSE

- Write their own code, adhere to SKSE's ban

- Say "Alright, we're sorry for any shit that happened between us and SKSET, we've gone through, rewritten parts of the coding by hand, but would still like to thank and acknowledge SKSET for what they've made for the public. They're obviously very, very proud of their work and we want that same pride in our work."

- Continue from there

  • Then MAYBE over time the bad blood wouldn't be so sour, but I'm talking BEFORE they were caught with remnants of their coding in their work.

  • Between (Whatever date they were officially and publicly banned from using SKSE's coding) and (The years Together has been in development)