Live data from Hacker News

Legalizing gay marriage in Crusader Kings III with Ghidra

waffleironer.medium.com

121–130 of 183 posts

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#121
post #60
post #22

Earlier quoted context omitted.

Take a look at the screenshot of that same sex marriage, do you notice something odd? The gender symbols at the bottom are male/female not male/male. The patch only disables the gender check, it does not fix the game content or any other logic related to marriage. There are probably dozens of follow up bugs waiting, some of which will need new game logic and art to fix.

That just means someone in charge made a bad choice during planning and either no dev or designer ever dared to speak up against it or many of them supported said bad choice.

"Just" made a bad choice? It's clearly an historically accurate, and _simplifying_ assumption, which you dismiss. The fact that they include a scripting language needn't obligate them to broaden the scope of their project. It's theirs, and they needn't pretend to cater to anyone they don't wish to, especially if it isn't a priority. They can make whatever they want, as can you.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#122

Turning the JZ into a nop to fallthrough to the next line is easier, right? That might be what he did in the quickfix area anyway. The self-marriage part was pretty hilarious. "Do I take myself? I do!"

This technique is known as a NOP sled. You have to change all the bytes in the jump to NOPs (opcode 0x90). https://en.wikipedia.org/wiki/NOP_slide

I may have used that technique once or twice in Ollydbg before, but I didn't realize it had a name. Thanks for that.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#123
post #117

Earlier quoted context omitted.

Code is not people.

But the time and effort put into writing that code was a significant part of their lives, and that code was only shared with those who agreed with their rules.

>>and that code was only shared with those who agreed with their rules.

This is the point of contention though. In EU courts have ruled over and over and over again that you cannot be bound by terms set AFTER the purchase of any software. As a result, EULAs are pretty much worthless, because they are presentented post-purchase.

If you went to a store and bought a copy of this game then that's it, you haven't agreed to anything, and you own a copy of it and you can do almost whatever you wish with it. You cannot make further copies and sell those because that's governed by copyright law, but modifying the binaries to do what you want them to do? Absolutely fine.

It's like with cars - obviously someone put a huge amount of work into making them, they contain a huge amount of software in them, yet the idea that the manufacturer tells you what you can or cannot do with it after purchase is ridiculous(and yes, I know some companies like Tesla are already trying).

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#124
post #22

Earlier quoted context omitted.

Take a look at the screenshot of that same sex marriage, do you notice something odd? The gender symbols at the bottom are male/female not male/male. The patch only disables the gender check, it does not fix the game content or any other logic related to marriage. There are probably dozens of follow up bugs waiting, some of which will need new game logic and art to fix.

> The gender symbols at the bottom are male/female not male/male. Do you mean the symbols next to "This is you"? I think you're misinterpreting them. That's the character's sexual orientation. It's always there, regardless of the character's marriage status. And gay or lesbian characters can and do marry people of the other sex even if that would not be what they want. The sexual orientation symbol doesn't change.

I don't own the game so I was confused by having both the character and their spouse in the image. Sorry about that.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#126
post #116
post #113

Earlier quoted context omitted.

> ToS are irrelevant That's some bad advice. ToS are irrelevant only if you don't expect retaliation from ToS owner, or the costs are trivial. > Open knowledge is important, especially in video game scenes where elitism is a real issue Open knowledge? This is reverse engineering someone's cash cow. Kinda like claiming Win 10 code is open knowledge. Video game scenes? Elitist? It's just a silly option in some medieval…

The code runs on your machine. You do not own the game, the idea behind the game or the logic, but you do own the copy of the game on your machine. You can read and change your copy, regardless of what the ToS says. The owner of the game can retaliate, this is not law after all.

Sure, but if you do it alone, on your computer and not tell anyone, no one from Paradox is going to harass you about it.

Moment you start open sourcing someone's game behind their back, is when they get defensive.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#127
post #2

It seems odd to me. Paradox is a Swedish company, and Sweden is a fairly liberal country. Same-sex marriage was legalized in 2009, and even the Church of Sweden gave the go-ahead on performing same-sex marriages the same year. The game logic around this is simple enough that changing two byes fixes it, so it's not a technical issue. What gives?

Crusader Kings III has you live on as your daughter/son when you die. As there is no adoption mechanic, same-sex relationships will lead to a game over unless you are one of the few countries that can use the House Seniority mechanic. So I guess they never got around to implementing adoption. Banning though...? That was weird.

To be generous, I would presume the banning was because he uploaded a "hack" that changes the binary of the game, and that's not allowed. There's probably a clause in the ToS that says no reverse engineering is allowed.

But I look forward to the woke brigade assuming the devs hate the LGBT community, and showing up with virtual pitchforks... /s (Disclaimer: I support the struggles of the LGBT community, but I do have a problem with stupid extremist unthinking zealots, and there seems to be plenty of them everywhere.)

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#128

Earlier quoted context omitted.

This technique is known as a NOP sled. You have to change all the bytes in the jump to NOPs (opcode 0x90). https://en.wikipedia.org/wiki/NOP_slide

I may have used that technique once or twice in Ollydbg before, but I didn't realize it had a name. Thanks for that.

OllyDbg has been discontinued but now you can use one of its spiritual successors:

- https://github.com/eteran/edb-debugger

- https://x64dbg.com/

Other tools you might like...

- https://cutter.re/

- https://github.com/longld/peda

- https://github.com/Gallopsled/pwntools

And of course, Ghidra, that means no mention.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#129
post #125

Gotta admit that the words "legalizing gay marriage" in the title of the Medium piece really tick me off, as they slanderously suggest that that the creators of CK3 are somehow anti-gay.

Did you read until the point where they would ban the creator of this patch from their forums and aggressively remove any mention of it?

Now I don't know what the creator originally wrote on there, or what the people who mentioned the patch have been saying, but it does raise eyebrows...

So no reason to get your pitchforks yet, but definitely reason enough to demand some form of explanation from paradox's side.

Re: Legalizing gay marriage in Crusader Kings III with Ghidra

#130
post #125

Gotta admit that the words "legalizing gay marriage" in the title of the Medium piece really tick me off, as they slanderously suggest that that the creators of CK3 are somehow anti-gay.

I read it as "Hey, there is this game trying to depict a historically accurate medieval scenario. I modified it for fun to allow gay marriage".

And the first paragraph seems to confirm this interpretation:

> Crusader Kings III is a pretty impressive game. It’s impressive not only for its official content, but also for its extensive modding tools. Even before its release, I was drawn in by its promises of an improved modding experience. Relevant to this post, I was also impressed by an apparent dedication towards improved inclusivity.

Post reply on HN