#so i'm working on an additional little
1 messages · Page 1 of 1 (latest)
Hi @cosmic coral . 🙂 Did you ever manage to figure this out? I am trying to do the same thing currently 😕
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.
reported the bug over here: #1223560043455315978
replacing my hex strings with your own, of course.
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 😕
would you be so kind to share your code? 🙂
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?
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```
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?
maybe it's because you're rendering them in lowercase?
sillier things have happened
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?