#so i'm working on an additional little

1 messages · Page 1 of 1 (latest)

halcyon yarrow
#

Hi @cosmic coral . 🙂 Did you ever manage to figure this out? I am trying to do the same thing currently 😕

cosmic coral
#

oh, i realized it works for everything EXCEPT the collection tab

#
    G.C.SO_2.Diamonds = HEX("F28A3C")
    G.C.SO_2.Spades = HEX("7A73BB")
    G.C.SO_2.Clubs = HEX("449D95")```
just put this in the INIT function, and you're as good to go as the current game engine and mod API will allow you to do.
#

replacing my hex strings with your own, of course.

halcyon yarrow
#

May I ask how you set it up in your mod?

#

i tried it like this:

--- STEAMODDED HEADER
--- MOD_NAME: Vibrant Colors
--- MOD_ID: VibrantColors
--- MOD_AUTHOR: [Marison]
--- MOD_DESCRIPTION: I wanted to make a prettier version of the high contrast colors. Based on Zabuza's Mod.

----------------------------------------------
------------MOD CODE -------------------------

-- Define local variables
local cards = "cards_1"
local ui = "ui_1"

function SMODS.INIT.VibrantColors()
    local vibrant_mod = SMODS.findModByID("VibrantColors")
    local sprite_card = SMODS.Sprite:new(cards, vibrant_mod.path, "8BitDeck_vibrant.png", 71, 95, "asset_atli")
    local sprite_ui = SMODS.Sprite:new(ui, vibrant_mod.path, "ui_assets_vibrant.png", 18, 18, "asset_atli")
    
    sprite_card:register()
    sprite_ui:register()

    G.C["SO_1"] = {
      Hearts = HEX('123456'),  -- Replace these with the desired colors
      Diamonds = HEX('789abc'),
      Spades = HEX("def012"),
      Clubs = HEX("345678"),
  }

  G.C.SUITS.Hearts = HEX('00B8AB')
  G.C.SUITS.Diamonds = HEX('00B8AB')
  G.C.SUITS.Spades = HEX('00B8AB')
  G.C.SUITS.Clubs = HEX('00B8AB')
end
----------------------------------------------
------------MOD CODE END----------------------
#

the sprites get loaded just fine, but the color doesnt appear

#
--- STEAMODDED HEADER
--- MOD_NAME: Vibrant Colors
--- MOD_ID: VibrantColors
--- MOD_AUTHOR: [Marison]
--- MOD_DESCRIPTION: I wanted to make a prettier version of the high contrast colors. Based on Zabuza's Mod.

----------------------------------------------
------------MOD CODE -------------------------
local cards = "cards_1"
local ui = "ui_1"

function SMODS.INIT.VibrantColors()
    local vibrant_mod = SMODS.findModByID("VibrantColors")
    local sprite_card = SMODS.Sprite:new(cards, vibrant_mod.path, "8BitDeck_vibrant.png", 71, 95, "asset_atli")
    local sprite_ui = SMODS.Sprite:new(ui, vibrant_mod.path, "ui_assets_vibrant.png", 18, 18, "asset_atli")
    
    sprite_card:register()
    sprite_ui:register()

    G.C.SO_2.Hearts = HEX("f03464")
    G.C.SO_2.Diamonds = HEX("ffa300")
    G.C.SO_2.Spades = HEX("3c4368")
    G.C.SO_2.Clubs = HEX("00b8ab")  
end
----------------------------------------------
------------MOD CODE END----------------------```
#

this also doesnt work 😕

halcyon yarrow
#

would you be so kind to share your code? 🙂

cosmic coral
#

    local sinjok_mod = SMODS.findModByID("SinJokers")
    local sprite_card = SMODS.Sprite:new("cards_2", sinjok_mod.path, "SinJokers.png", 71, 95, "asset_atli")
    
    sprite_card:register()
    G.C.SO_2.Hearts = HEX("FF6368")
    G.C.SO_2.Diamonds = HEX("F28A3C")
    G.C.SO_2.Spades = HEX("7A73BB")
    G.C.SO_2.Clubs = HEX("449D95")
end```
again, are you testing this in a run, or in the collections tab?
cosmic coral
#

okay; so apparently, it only works in this hacky way:

#
  G.C.SUITS.Hearts = HEX("FF6368")
  G.C.SUITS.Diamonds = HEX("F28A3C")
  G.C.SUITS.Spades = HEX("7A73BB")
  G.C.SUITS.Clubs = HEX("449D95")
end```
halcyon yarrow
#

i am testing in a run of course. i read your comments about the collection bug already. 🙂

#
--- STEAMODDED HEADER
--- MOD_NAME: Vibrant Colors
--- MOD_ID: VibrantColors
--- MOD_AUTHOR: [Marison]
--- MOD_DESCRIPTION: I wanted to make a prettier version of the high contrast colors. Based on Zabuza's Mod.

----------------------------------------------
------------MOD CODE -------------------------

-- Define local variables
local cards = "cards_2"
local ui = "ui_2"

function SMODS.INIT.VibrantColors()
    local vibrant_mod = SMODS.findModByID("VibrantColors")
    local sprite_card = SMODS.Sprite:new(cards, vibrant_mod.path, "8BitDeck_vibrant.png", 71, 95, "asset_atli")
    local sprite_ui = SMODS.Sprite:new(ui, vibrant_mod.path, "ui_assets_vibrant.png", 18, 18, "asset_atli")
    
    sprite_card:register()
    sprite_ui:register()

    if G.SETTINGS.colourblind_option then
        G.C.SUITS.Hearts = HEX("f03464")
        G.C.SUITS.Diamonds = HEX("ffa300")
        G.C.SUITS.Spades = HEX("3c4368")
        G.C.SUITS.Clubs = HEX("00b8ab")
      end
end
----------------------------------------------
------------MOD CODE END----------------------

is not working for me either. did i understand that correctly?

cosmic coral
#

maybe it's because you're rendering them in lowercase?

#

sillier things have happened

halcyon yarrow
#

oh god. i wish it had been that 😛 just changed it, didnt do anything. 😦

Could you maybe share your .lua file with me, so I can put it in my mods folder?