ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.24k stars 396 forks source link

Manually editing the pyx.sqlite database? #253

Closed waterlubber closed 4 years ago

waterlubber commented 4 years ago

I'd like to add some custom decks to the pyx.sqlite database, by hand, for my friends and I to play with (as Cardcast is down.) How could I go about adding a deck? From what I can tell from poking around in an editor,

Would I be able to just add my own deck following the above database format and have it load into the game? I'm not entirely sure.

Would I be better off just merging the json pull request?

devgianlu commented 4 years ago

Would I be able to just add my own deck following the above database format and have it load into the game?

If you're using a custom server you could just edit pyx.sqlite with https://sqlitebrowser.org/ and it would work as long as you reference the cards correctly.

Would I be better off just merging the json pull request?

241 is ready to merge and it is already being used on my server. There's also an app which provides an easy way to create custom decks. I should also mention CrCast which is being used on this server.

waterlubber commented 4 years ago

I was able to get it working without too much trouble. Do you know what the weight factor controls? I would like to increase the chance of cards from my custom deck appearing.

devgianlu commented 4 years ago

The only usage of the parameter seems to be here.

waterlubber commented 4 years ago

Hmm. Maybe it was a half-implemented feature. I'm going to close this issue since I got the database working and all sorted out.