Page 1 of 3

UOCPatch

Posted: Thu Jun 07, 2018 4:41 pm
by Pannoniae
Hello!

While UoC2 is coming (and we are still on 1.05), I've spent approximately 2 years figuring out how to disassemble/patch the game.
My efforts have become fruitful by now... hereby I present you UOCPatch!

On its own, it does nothing now, and will not do automatically. You have to enable needed features from the .uocpatch file in the root directory of the game.
For testing, it has only one feature now: disabling AI disbanding of units.
Installation is simple, unzip the downloaded thing into base game folder. You can clean the game from it though, using `uocpatch.py clear`

http://github.com/Pannoniae/uoc-patch

Good luck, have fun!

(P.S. there is only one thing which is not possible in reasonable amount of time [read: within a couple of years from now], and that is porting it to newer Python versions. Sadly, due to how bytecode works, the whole game would be needed to manually pruned from bugs as decompilation causes errors and faulty control flow, and libraries would need to be updated. It is a nightmare to compile pango and cairo under Windows, but for cairo, there are prebuilt binaries.)

Re: UOCPatch

Posted: Thu Jun 07, 2018 10:04 pm
by Pannoniae
It now includes seeing supply on enemy territory (a long-requested feature...)

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:22 am
by Tomislav Uzelac
Hi Panno,

I have to ask you to take down this "uoc-patch" github repo. The repo contains our source code, which is copyrighted, and which we do not allow to be published.

Please take the repo down ASAP. If you don't I will have to talk to github directly, which I prefer not to but I will if needed.

I appreciate your dedication, and the technical achievement of reverse engineering the game is cool, but you can't publish our source code. Your "binary" mods are still OK though, like the one in this post: viewtopic.php?f=37&t=8038

Cheers,

Tomislav

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:23 am
by Pannoniae
the mentioned ones are not binary ones, they are just portions of src...

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:27 am
by Tomislav Uzelac
You're right, I haven't looked carefully.

It would be OK if you compiled it to .pyc, but as source it's not.

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:28 am
by Pannoniae
Well, then please take them down ASAP. Originally I tried to compile them, but I've failed because installing dependencies for 2.6 is awfully hard, and this is not 2.7.

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:29 am
by Pannoniae
Or come up with a creative solution

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:32 am
by Tomislav Uzelac
I just removed the post.

You should take down the repo now.

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:33 am
by Pannoniae
I did it.

Re: UOCPatch

Posted: Fri Jun 08, 2018 8:36 am
by Tomislav Uzelac
Thanks!