#[Texture Pack] Rain World Playing Cards

1 messages · Page 1 of 1 (latest)

quartz junco
#

A mod that replaces the playing card textures with Rain World themed ones! It includes options for all high contrast and pixel smoothing combinations.

There are currently 3 different versions of the texture pack linked below, each one with some slight differences:

  • The original texture pack is the one that was made first, and it's exactly as you see in the pictures below!
  • Face cards only is also exactly what it sounds like: a version of the cards without the karma symbols replacing the art on the number cards!
  • Karma 1 Aces shifts all of the karma symbol art over by 1 number, so that the K1 symbol (the upside down 2) is on Aces, K2 is on 2s, and so on!

Huge thanks to symbolnotfound for the code rewrite that got all the card options working in one mod!

Full Texture Pack (includes all 3 card sets): https://github.com/LawyerRed01/RW-Karma-Cards

Deprecated Releases (single card sets):

GitHub

Changes the design of cards to use Rain World's characters and karma system. - LawyerRed01/RW-Karma-Cards

GitHub

A version of the Rain World card deck that only changes the face cards. - LawyerRed01/RW-Face-Cards

GitHub

A version of the Rain World card deck that sets the Ace to Karma 1 instead of Karma 10. - LawyerRed01/RW-K1-Ace

stark girder
#

oh this is peak

#

especially love all of the number cards being the karma symbols

quartz junco
#

this was originally gonna be a small project with just the numbers changed, but then neato released the friends of jimbo guide

#

I made one face card to try and see if I could do it, was pleased with how it turned out, and finished the whole set

stark girder
#

definitely rocking the diamonds

cunning moth
#

Think you can make a variant without the karma symbols?

cunning moth
#

@quartz junco

quartz junco
#

for sure, give me a second to put that together

cunning moth
#

thanks

quartz junco
lunar beacon
#

could there be a version where karma symbols are shifted 1 card lower? (e.g. 10 is X, ace is karma-1, etc.) IMO that makes a bit more sense
EDIT: saw it on github, although it should probably also be linked here

#

also a little nitpick I noticed, number cards in the face cards-only appear to slightly change the outline when pack is selected. Perhaps this could be solved by using something like Malverk? idk

#

actually everything is a little bigger with smoothing on and the outlines have a little more contrast compared to base game

quartz junco
#

I'll look into the number cards on the face card only option and see if I just made a mistake with the texture or something, but they should be the same as the vanilla cards.

As for Malverk, I remember seeing that it supported retexturing everything except for the playing cards themselves, did that get updated to include those now?

quartz junco
lunar beacon
#

As for Malverk, I remember seeing that it supported retexturing everything except for the playing cards themselves, did that get updated to include those now?
yeah it doesn't support that, sorry for the confusion

quartz junco
#

no worries!

lunar beacon
quartz junco
#

All changes pushed, they shouldn't have the outline anymore

lunar beacon
#

yup, works good now!

forest widget
#

is there a version of this for malverk :?

lunar beacon
# forest widget is there a version of this for malverk :?

Malverk is in place to support retexturing things other than playing cards (e.g. tarots, jokers, stickers, etc.) because there is no such mechanism in vanilla.

This mod only changes the playing cards which means malverk is simply not needed. Even mods that do work with malverk (e.g. dark mode) provide playing cards with vanilla method because malverk doesn't support it.

forest widget
#

awwwh that sux

lunar beacon
#

why do you want malverk

#

like the functionality is already there, just without it

forest widget
#

cuz im setting up malverk rn and wanted the rainworld cards on along with other cards

#

as like, options

lunar beacon
#

as far as I'm aware of cards are selected here anyways, no?

forest widget
#

wait wuh how did you do that

#

how do you show more than just the kqj

#

also wait is that more than the friends of jimbo? did you add on another type??

lunar beacon
#

Game does that automatically if more are retextured

lunar beacon
#

this mod

forest widget
#

this is huge i gotta copy this code

#

im making my own card texture replacement i didnt know you could add onto the friends of jimbo collabs

#

can i copy the code?

lunar beacon
#

you probably can

quartz junco
lunar beacon
#

@quartz junco btw shouldn't face-only pack only include faces? For example in balatro-StP the assets only provide 3 cards per suit and that works.

I can't think of a situation where that realistically matters, except that currently all 13 cards are shown when there should only be 3

#

I'm not that deep into balatro modding so idk how much of a rewrite that would be; If too much you can probably leave things as they are

#

As far as I see you'd only need to exclude the extra ranks from the list in the code and the asset png

quartz junco
#

it should, and rewriting the code to account for it shouldn't be too hard (it would just be getting rid of the numbers/aces in the list of ranks), I can try to get that set up today

#

I didn't initially because I was scared of the cards not being lined up properly, but I should be able to line everything up using the suits below the letters

lunar beacon
#

...actually you could also just use the png in the mod I linked, lol
-# I spent all of this time for nothing

quartz junco
#

I just took the 923px, divided by 13 to get 1 card, then multiplied by 3 to get the width I needed

lunar beacon
#

yeah

quartz junco
#

I was able to get the K/Q/J all the way on the left by copying them to another layer & just moving them over, so I didn't need to work around numbers from the middle of the image

lunar beacon
#

oooh

quartz junco
#

cards should be updated, I'm gonna test them in game real quick & push the update to the github if they're good to go

#

the face cards are now blank for some reason, give me a sec to figure that out

lunar beacon
quartz junco
#

that's probably it

#

it's getting there, now all of them are hearts

lunar beacon
#

oh, I see. So in example I sent these were split in files by suit. That's probably the reason why. I wonder is SMods docs have something that is one file, but all suits

quartz junco
#

I'm gonna try the other options for pos_style and see if one of them works, since there's 2 more

lunar beacon
#

ranks should probably work judging by the wiki

quartz junco
#

ranks is the most confusing to me, actually

lunar beacon
quartz junco
#

yeah, it's looking like my options are to either split the image file into 4 separate ones or to have blank space to the left of the face cards so they line up with their intended positions

lunar beacon
#

wait do they need blank space? I don't think that's supposed to happen

#

I thought it would like just put them in order or something

#

you edited the rank list, right?

quartz junco
#

yeah, the rank list is just the face cards

lunar beacon
#

weird

quartz junco
#

in order JQK, which matches the image file

lunar beacon
#

Strange, this should probably be reported. If not alter the behavior, at least make the wiki more clear

quartz junco
#

I should also clarify, the blank space idea would only be if I wanted to still use deck as the pos_style option

#

since then it would pull from the regular face card position on the image (which also explains why they were blank the first time)

lunar beacon
#

wait so does ranks do nothing? could you like drop the pngs since I now want to test it too lol

#

oh I forgot I can just crop them

quartz junco
#

it'll be faster if I provide them, here's the 1x

#

I think the big thing is that deckskins doesn't have a pos_style option where the x position starts at 0 unless you're specifically replacing 2s or using collab

#

not a default one, at least, I think you can define it more specifically by using a table of some sort, but the documentation is a bit vague about it

lunar beacon
#

Actually I think what's happening is we are using a deprecated API

#

Current one pushes the thing under palettes, on the older 'ranks' (or ranks list) is missing hence we are getting no functionality

#

I'll try to rewrite it under a new one and see how that goes

quartz junco
#

I should probably try to do the same, since all of mine use the same format

lunar beacon
#

wait

#

if atlas is a table

#

can't we just index it?

#

I mean like set pos_style to 'collab' and just give not the atlas but atlas[i] where i is index of suit

#

or something like that

#

nvm it takes the atlas name rather than the table

forest widget
#

i dont understand the atlas api at all

#

i literally copied the RW code verbatim and changed a few key words i dont know what failed to collect file data means

#

blehhh

lunar beacon
#

so uhh two news

quartz junco
#

wait, does the new API let you set high contrast per suit now?

lunar beacon
#

yes

forest widget
#

oh what thats sick

lunar beacon
forest widget
#

ive been doing that and it was going nowhere, thought i might try asking you guys sorry

lunar beacon
#

I might respond once I finish debugging this

#

So ranks doesn't support multi-layer too

#

Do you want to split the textures or write [ranks]

#

If we do [ranks] we can merge high contrast and low contrast into single atlas

forest widget
#

why are there two?

quartz junco
#

there should only be one, is there multiple in the mods list?

forest widget
#

what did i do

quartz junco
quartz junco
# forest widget wuh

there's 2 sets of cards enabled for rain world, you can uncheck one of them to have it not show up on the list of deck skins

lunar beacon
forest widget
#

Wait but how do I get the broken one off my mods list I don't want bloat :(

quartz junco
#

deleting the mod from the mods folder gets rid of it

lunar beacon
#

so what is your opinion on styles? If we go all-in on rank tables, we can merge all the mods into one. However all three packs would be always exported then which kinda bloats the pack selection unless we add some kind of aditional special controls

#

waaait a second

#

we can use new key to also manage the alt versions

#

I mean we can bloat this bad boy to 6 positions making it have combinations of low contrast and high contrast with default, K1 and face-only

quartz junco
#

having all 3 versions on one mod would be awesome, but I think a good step for now would just be to get the one version working on its own & try to merge them afterwards

#

-# I absolutely love the idea of the high contrast selector being able to give all 6 options though

#

I'm also gonna need to find out which version of steamodded changed the API for the cards, since I need to change the dependency version number to account for that (I was on an outdated version that couldn't run the new ones)
it was on the template, that's good now

lunar beacon
#

God I love that lua uses 1-indexing and balatro uses 0-indexing

#

anyways it works now

lunar beacon
#

I can send you the source if you want

quartz junco
#

& that would be amazing, thanks a ton for the help!

#

how do you want me to credit you for the help?

lunar beacon
#

I can just commit it on gh lol

#

Anyways rn it's just a proof-of-concept for singular low-contrast atlas

#

How do you want the atlas layout to be? Should we use a faces atlas, and two karma atlases or just make it a single file? Should the hc and lc be on separate atlases or on the same?

quartz junco
#

for the faces one, I think having it the way it is now works best, but for the merged one, there's gears turning in the brain

#

I'm not especially familiar with lua, but if it supports functions, I think we could get everything on one atlas by writing a simple switch or two that just returns the correct path depending on which keys we use, since a lot of the code is the same for all the cards

lunar beacon
#

I mean like how do you want it to be stored in the files?
It could be just one big atlas with for example 8 lines 23 cards each or something different

#

Could be 6 different textures for faces, numbers, K1A numbers combined with HC and LC for example

quartz junco
#

I think for the textures that's probably a good idea, my naming scheme was generally "RW-(mod specific)", with "-HC" added for the high contrast ones

lunar beacon
#

so 6 different?

quartz junco
#

yeah, like this probably

lunar beacon
#

So the layout between files would be something like this?

RW-Face: J,Q,K
RW-K10-Ace: A,2,3,4,5,6,7,8,9,10
RW-K1-Ace: A,2,3,4,5,6,7,8,9,10
#

(omitted hc and lc for obvious reasons)

quartz junco
#

I think the ones with numbers would need to be 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A to match the textures, but otherwise yeah

lunar beacon
#

I mean- since we are already doing atlas math we could just sew them anyways so that faces aren't duplicated in the files

quartz junco
#

oh, is the atlas able to just map any card to any other one?

lunar beacon
#

Or if you want we could make a Karma-Deck which is full and then K1-Ace omitting the face cards

lunar beacon
#

it takes atlas and position, which means you can use different atlases at the same time

quartz junco
#

nice

#

I think the most condensed we could make it is with your suggestion, where there's a full base deck (probably the original one) and then just a separate one with the K1 Ace set of numbers

#

if you need, I can put the second numbers only image together real quick

lunar beacon
#

You can, if you want to.

quartz junco
#

the 1x versions

lunar beacon
#

It should maybe probably work

#

Actually I forgot to set default contrast

#

could you pretty please set appropriate hc_contrast for the entries?

quartz junco
#

for sure

#

let me figure out how to apply a patch like this real quick, I've never done it before

lunar beacon
lunar beacon
#

Also I just noticed their display order is flipped lmao

quartz junco
#

that's fixable, I remember seeing an option to change what cards show up in the preview

lunar beacon
#

yeah, display_ranks

#

and I forgot to remove a commented out snippet

#

21...25 is useless and should be removed

quartz junco
#

I think I've got most of it good to go, only question I still have at this point is how much of the cards to show in the preview

#

either all of them, A/K/Q/J, or A/K/Q/J/10, I think

#

pushed it to GitHub with the A through 10 setup for the card preview, let me know if it looks good!

lunar beacon
#

Yeah I think it looks nice rn

#

unrelated but I initially thought this was catboy five pebbles

quartz junco
#

funny as it might be, I don't have the confidence to make a joke of that magnitude

#

as for picking A-10 for the preview, I figured it was as much as was necessary to show the changes without being too much on the eyes

lunar beacon
#

yeah

lean oasis