#[MOVED] Incantation : Stack Your Consumables

107 messages · Page 1 of 1 (latest)

sour trellis
#

A mod created by @solar shadow and @sour trellis (me).

Early Access : Work is in progress!

Incantation is still a work-in-progress mod. We're sharing it now in the hopes that not only can you enjoy using it, but that you can help us find bugs we've potentially missed, and any ideas for it you might like to share.

Incantation allows you to stack identical consumable cards.
This mod is still a heavy work-in-progress, but it is mostly functional.

Are you a modder, looking to add compatibility?

Take a read of the wiki

Known issues/quirks

  • Cards do not merge until animations have finished playing
  • Beware of this especially if you are using Cryptid
  • (Warning to modders) Cards with configurable data on them used for tracking (e.g. # of uses left for Ro-Balatro) can potentially be exploited/bugged
  • Cards still require room instead of stacking immediately

Planned

  • Add option for stacks to respect consumable slots in the same way as if they were individual cards
wary hazel
#

seems like its error prone with betmmas stuff

#

or hmm

#

maybe its betmma oops

wary hazel
#

yea betmma did a thing

wary hazel
wary hazel
leaden kettle
wary hazel
#

ahh

#

what the hell is doing this

#

hmm maybe cryptid

sour trellis
# wary hazel hmm maybe cryptid

creat, when the game crashes, could you provide the dump of card.lua that appears in the lovely/dump/ folder within your mods?

wary hazel
#

sure lemmie load up that save again

sour trellis
#

thank you, let me take a look

wary hazel
#

tyvm

sour trellis
#

hmm, this doesn't look like an error caused by cryptid or incantation at all

wary hazel
#

ah damn probably betmma then

sour trellis
#

i don't think it's betmma

sour trellis
# wary hazel ah damn probably betmma then

at line 617 of the report you've given me:
if self.ability.d_size > 0 then

apparently, one of the cards you have, perhaps a joker, has ability.d_size equal to nil

ability.d_size is used to add additional discards to your supply

wary hazel
#

thanks very much

#

betmmas chaos voucher is probably whats causing it then

sour trellis
#

speaking of betmma, i just experienced a crash myself, but it's a different one lol

wary hazel
wary hazel
#

or maybe universum is broken

wispy turtle
#

Why beware of this if we use cryptid?

sour trellis
wispy turtle
#

Does observatory still works?

#

Maybe making a mod to stack jokers

sour trellis
sour trellis
wispy turtle
#

oh, ok

solar shadow
#

Don’t think it would be that much different save for rewriting the calculation logic for Jokers

wary hazel
#

think bulk use skips the ability of a planet to be gotten by fool

sour trellis
sour trellis
#

v0.0.2a

  • Add hard limit of 9007199254740992
  • Fix Fool tarot not updating with planet cards
  • Add new Card functions : getQty(), setQty(quantity), addQty(quantity), subQty(quantity, dont_dissolve)
  • Add unsafe mode, can be enabled by changing UnsafeMode in mod code to true
GitHub

Add hard limit of 9007199254740992
Fix Fool tarot not updating with planet cards
Add new Card functions: getQty(), setQty(quantity), addQty(quantity), subQty(quantity, dont_dissolve)
Add unsafe mod...

sour trellis
#

Known issue : Vanilla-fuctionality planets can't be bulk-used without enabling UnsafeMode
will fix as soon as i can

sour trellis
ornate spire
#

I THOUGHT this is also a Mathisfun mod lol

#

wait it is I am just dumb

sour trellis
#

i designed most of the mod, math provided some support

ornate spire
#

Thx for the clarification

raven beacon
#

I had a mod idea to stack same cards in deck preview and maybe in hand (last one sounds pretty hard to make work, so maybe not).

Something that could be bundled in this mod 🤔

#

Idea was that instead of 400 aces you'd have only 2(4) cards (in this example Ace of Hearts)

  • drawn
  • not drawn
    optional for the Pillar:
  • debuffed and drawn
  • debuffed and not drawn
#

Ah, also I put this in #1155557846805643434 a while back, but stackable (skip) tags is also something that could be added in here

raven beacon
#

when non-negative cards stack, they only take up 1 slot

sour trellis
#

this is early access, after all

#

many people have been requesting me to make it respect slots, but truth be told that was never the intention from the beginning when i was making this mod

#

i just wanted to give the cards the ability to stack in a similiar way to how most other games with inventory work

#

but i can see why a lot of people would want it to be a QoL mod instead, and i hear those opinions very clearly

lofty pagoda
#

Out of interest, does this still require showman to allow multiple copies to appear in the shop?

raven beacon
sour trellis
#

if it was QoL, i would've mentioned it and also given it the post tag "QoL"

sour trellis
cursive grail
#

how this handle editions?

cosmic spire
#

Don't think same cards with different editions will stack with each other

sour trellis
#

@cursive grail @cosmic spire
i'm about to push an update which will make it as such, previously it would only consider if a card was negative, but this next update will consider all editions

#

v0.1.0

  • Now considers all editions when attempting merges, not just Negative
  • Improved behaviour for determining whether or not to show Merge button
  • Cancel out naive bulk use at certain threshold, configurable in mod code
GitHub

Now considers all editions when attempting merges, not just Negative
Improved behaviour for determining whether or not to show Merge button
Cancel out naive bulk use at certain threshold, configura...

sour trellis
#

feel like you're going to take over all of my mods in a minute sluganxietylurk

raven beacon
#

🕵️

sour trellis
#

but for real, very considerate of you

raven beacon
#

np, just a few things I felt like would be really nice to have

hybrid dragon
#

is there a way to 'auto-merge' consumables on creation?

sour trellis
hybrid dragon
#

it is Tarot

#

it is created by a modded Joker

sour trellis
#

the joker might be adding the consumable to your consumable tray in an unusual way that can't be recognised by incantation

hybrid dragon
#
function UTIL.createConsumeable(args) -- args{key,set,edition}
    if args.key == 'lastHandPlayed' then
        G.E_MANAGER:add_event(Event({
            func = function()
                local canCreate = (args.edition and args.edition.negative) or (#G.consumeables.cards + G.GAME.consumeable_buffer < G.consumeables.config.card_limit)
                if not canCreate then
                    return
                end
                if G.GAME.last_hand_played then
                    local _planet = 0
                    for k, v in pairs(G.P_CENTER_POOLS.Planet) do
                        if v.config.hand_type == G.GAME.last_hand_played then
                            _planet = v.key
                        end
                    end
                    local _card = create_card('Planet', G.consumeables, nil, nil, nil, nil, _planet)
                    _card:add_to_deck()
                    if args.edition then
                        _card:set_edition(args.edition)
                    end
                    G.consumeables:emplace(_card)
                end
                return true;
            end}))
    else
        G.E_MANAGER:add_event(Event({
            func = function() 
                local canCreate = (args.edition and args.edition.negative) or (#G.consumeables.cards + G.GAME.consumeable_buffer < G.consumeables.config.card_limit)
                if not canCreate then
                    return
                end
                local _card = create_card(args.set, G.consumeables, nil, nil, nil, nil, args.key)
                _card:add_to_deck()
                if args.edition then
                    _card:set_edition(args.edition)
                end
                G.consumeables:emplace(_card)
            return true;
        end}))
    end
    if PT.Debug then
        print(args.set.." created")
    end
end
#

this is the function that it uses to create Tarots

#

it's just a fancy

_card = create_card()
_card:add_to_deck()
G.consumeables:emplace(_card)
sour trellis
#

what mod is this joker from?

sour trellis
hybrid dragon
#

those two are basically the same thing

sour trellis
#

i don't know, it might have something to do with overrides because vanilla tarots on my end merge just fine

hybrid dragon
#

i am looking at the code in the mod. what is card.ability.qty?

sour trellis
#

it's not recommended to access this variable directly, use Card:getQty() instead (and obviously check if incantation is installed before trying to use this function, unless if you need incantation as a dependency)

#

e.g. a qty of 3 would mean there are 3 copies of a single consumable condensed into one

hybrid dragon
#

i get it

hybrid dragon
#

I looked at the code a bit more and finally got it to work, thanks for the help ❤️

sour trellis
#

yw

raven beacon
#

crashed on windmil, where 3 uncommon jokers got disabled

#

crashed after round ended

#

heh, seems unrelated to incantation nvm

sour trellis
sour trellis
#

[MOVED] Incantation : Stack Your Consumables

little dust
#

Truely a monorepo moment

rocky plaza
#

this should be vanilla

little dust
winged silo
#

hey uhhhh how do download this?-

#

only need incantation

#

github is confusing lol

ivory hornet
#

you download the whole collection zip file

#

extract, look inside and drag Incantation into Mods

winged silo
#

thanks :3

stark wolf
#

hey could someone tell me why the links are all saying 404 error??

coral charm
#

Jenwalter kinda retreated from the internet and took their mods with them.

ancient yew