Search the Community
Showing results for tags 'gog'.
Found 7 results
-
Hey everyone! My Name is Lane. Some of you know me from Kotor Speedrunning, and others from my various Youtube exploits. I don't ever really post on Deadly Stream, but I've been lurking in and around the KotOR modding community for about a decade now. I have a degree in computer Science and decided to put it to good use, and reverse engineer KotOR 1 (the GoG version). This has been an on-going project for about 2-3 years now, and I've been sharing my progress with friends, and in some Youtube Videos. However, I've pretty much hit a wall with what I can do with this effort now. So I wanted to release my progress publicly, so other smart and clever people can start doing fun stuff with this. Linked below is a Google Drive with several useful things: A Ghidra SARIF export that contains all data types, function labels, parameters, Classes, and other additions I've made A Ghidra Format XML that contains the labels and function adjustments I've worked on. This is lighter weight than the SARIF file, but has more limitations when it comes to import fidelity. A generated `.h` file, that contains the Header information I have pieced together over time. Even lighter-weight, and more limited than the above What this is not: True Debug Symbols for kotor BioWare Intellectual Property A runnable or compilable program Kotor's Source Code A reverse engineering of Kotor 2 A reverse engineering of the Steam version * * A note about Kotor 1 Steam: While this reverse engineering effort targeted the GoG release of KotOR 1, the Steam version has MANY similarities; often times having identical memory addresses for most functions. Any Patch made for the GoG version can be pretty reasonably ported to Steam with a little bit of effort. What this is: A decently representative result of what Kotor's debug symbols might look like (format and terminology pulled from the MacOS symbols, and existing NWN docs) A research-based labeling and reverse engineering of the GoG version of Kotor 1 A labor of love for the past several years that I'm happy to share Why this is cool/important: This provides a stepping off point for creating proper patches for KotOR 1 This also provides a means for researching underlying issues with things such as memory management, graphical limitations, and compatibility This also provides a researching angle for coming to understand some of the more mysterious file formats, and how they interact with the game itself There are also a variety of fundamental similarities between this and KotOR 2. Which may unlock some insights for that game This is also the first step towards a proper re-compilation (though that is a long-ways off) How do I use this? You need Ghidra installed, with a modern Java Runtime Create a new project, and import swkotor.exe (as purchased from GoG) Open the EXE in Ghidra's code browser When it asks if you want it analyzed, select 'Yes" The default analyzers are fine, technically you could speed this up by stripping out a few unneeded analyzers The analyzers will take several minutes to complete (progress can be tracked in the bottom right) Once the analyzers have run, we can proceed Select "File > Add To Program..." and select the SARIF (or XML) file (download below) The importer will analyze the symbols and apply them to the project You now have a decently labeled/decompiled instance of KotOR 1 Limitations: 99.9% of the functions have been labeled, however there were a few stragglers that I was never able to work out. These will appear as `FUN_<address>` 92.3% of the Data is labeled, with stragglers being named `DAT_address` Data Types are VERY incomplete. The labeled ones consist mostly of frequently used types, and known fields. Unknown fields are marked `field<index>_<offset>` Virtual Function calls are very under labeled (largely due to the difficultly of labeling vtables in Ghidra). Though you can determine the underlying function by applying the offset to the associated Class vtable. Most functions have only automatic variables defined within their decomp. Typing and purpose of underlying variables beyond function names, and parameter types, are left up to inference. Overlapping functions. Certain functions overlap in this compilation, due optimizations within the Visual C++ runtime. As a result some functions such as `GetProperty0x30` are shared by multiple classes, and thus lack a name-space. You can usually work out their purpose by checking the associated data type at that offset. If you used the XML import, you will be missing a lot of typing and Function Class/Namespace info Final Notes: Please feel free to ask me any questions about this effort, or any thing strange you might find within the decomp. I've grown to be quite the kotor expert over the years, and I'd be happy to share any insights. You can reach out to me on Discord @lane_d, I'm in the Kotor Reddit server, as well as the kotor speedrunning server. I will be periodically posting updates to this drive, whenever I get the chance to work on this more. If anyone has any major contributions they'd like to see added, please reach out! I'd be happy to chat. Both the XML and SARIF formats have some limitations, unfortunately they are the best I can do without publicly sharing Bioware intellectual property. If there is something missing from these that you are in need of, please reach out and I can see if I can help you. (Note: I will not be abetting piracy though. Buy the damn game, it goes on sale all the time) Google Drive Link Here
-
- 4
-
-
- reverse engineering
- modding
- (and 4 more)
-
From what I've read, it's advised to avoid Steam Workshop if you're looking to play and/or mod TSL. Mac users can get it through the Apple Store but when it comes to PC it looks like Steam is the only (or main) option. That's the version Aspyr is offering on their site. I've seen there's a GOG version but it sounds like it's limited. What are you guys using to play/mod TSL in? I'd appreciate any recommendations.
-
HEY ALL!!! Gog is having another sale. Just bought like 6 games (Including KOTOR, TSK, and Jedi Knight Series) for like $20. Think it's only for a limited time...ish. :-)
- 5 replies
-
- Star Wars Games
- TSL
-
(and 2 more)
Tagged with:
-
I just got KOTOR 2 on GOG, and I'm trying to install TSLRCM, but it automatically installs towards the Steam folder, even though I don't have the Steam version of KOTOR 2 installed.
-
Hi, anybody can please confirm that GOG (DRM-free) executable of KotOR II can be edited in hex editor? I hear it can be directly patched with UniWS for the game resolution and I was wondering if the same can be said for the movies. If so, I will buy the game on GOG, too and hopefully this time it won't be as bugged as the new Steam version. (For those wondering: I don't want to use any No-CDs on my legally purchased games.) Thanks a lot!
-
I just tried an interesting experiment..and it worked. I have had an old Retail copy of KOTOR (With the original discs!!!) that's installed with all kinds of awesome MODS. I just purchased the GOG Saber Package . Somewhere I had read a forum asking if the games could be installed multiple times so that Full Re-Write mods (like RoR & The Jedi Masters) could be installed alongside without totally overwriting their normal game. Couldn't be done because you'd have to be able to tell the registry that they were separate games with different names. Except that I just did it with the GOG copy using GOG Galaxy. My Retail copy: Installed to C:\Star Wars\SWKotor2\ The GOG Copy I let install to it's default, which seems to write it's own unique GOG registry entries. I tested - launched my retail copy with a save, there it was. Launched GOG version - and it's VANILLA!!! I don't know if this will work with a Retail copy and a Steam copy too. Let me know if this is actually a breakthrough or if this is common knowledge!!! It's happened before and it's okay to point that out that somewhere else is a much more informative thread!!!
- 7 replies
-
- multiple installs
- TSL
-
(and 4 more)
Tagged with:
-
Hey all!!! Just thought I'd give everyone an awesome heads-up: GOG is selling a whole bunch of Star Wars classic PC games for next to nothing if you buy them in their bundles: Saber Bundle Blaster Bundle Sweet...
- 15 replies