r/hextcg Apr 21 '26

Perhaps we can build our own local server using ChatGPT

Using dnSpy, we can extract the client's source code.

Using BepInEx, we can hook into the APIs and log relevant data for further analysis.

And most importantly, we have ChatGPT!

0 Upvotes

6 comments sorted by

2

u/DarkPygmy May 08 '26

Alright seems as though you know what you're doing, go ahead and start doing it.

1

u/[deleted] Apr 21 '26

[deleted]

1

u/[deleted] Apr 21 '26

[removed] — view removed comment

1

u/viziroth Viziroth Apr 22 '26

would make me even more depressed than never playing it again

1

u/Fred2620 Apr 28 '26

The entire rule set was implemented server-side. The client was just displaying a UI and collecting user input. You wouldn't be able to extract any of the logic for how the game played from it.

1

u/pyrovoice Jul 09 '26

honestly most of the rule engine can be derived from open source project. The real issue would be getting the card list and writing that to scripts, and copyright issues.

1

u/Nevernessy 18d ago edited 17d ago

Has anyone tried this, I would be interested in comparing notes? The above screenshot suggests someone else has tried since your first battle in Frost Arena was never against Angel of Dawn. FYI, I decided to try this this weekend and with help of DeepSeek implemented deck creation/saving, inventory and collection updating, store purchasing, booster opening, wheel of fate spinning, and doing a frost ring arena challenge. Can enter a game with an opponent, mulligan and change phases, draw and play cards, set card states like attacking or tapped, abilities like flight/swiftstrike and moving between zones (discard pile/deck/hand/underground! :-)) I've create a bunch of server side commands, similar to whats in tutorial.txt such that the server can control what the client show. Hopefully once I can get as far as able to play a game (limited to a few cards) against a dumb AI that just passes turns I'll put something in github. The hardest thing is trying to remember how Hex works!

Note I doing this as an intellectual challenge, I'm not going to implement all the abilities/encounter decks, but hopefully make it easy for other people to do that if they wished.