So I'm working on a character mod of my persona, got the model working and the voice was working too.
Then I decided to utilize this mod to give my character a bit of a different moveset. The moveset works fine (had no clue which file to edit so I edited the integrated file inside the ECM mod folder) but now my character mod has Mario's voice. Then after redoing the main.lua file for my mod altogether, the voice is now completely mute. I asked on DIscord about this issue and got no response about it so I thought I ask here. The main.lua reads as follows:
Also worth noting when I tested the mod first was before I installed the new update. Seems like after the update is when the voice became mute but not sure honestly.
Then I decided to utilize this mod to give my character a bit of a different moveset. The moveset works fine (had no clue which file to edit so I edited the integrated file inside the ECM mod folder) but now my character mod has Mario's voice. Then after redoing the main.lua file for my mod altogether, the voice is now completely mute. I asked on DIscord about this issue and got no response about it so I thought I ask here. The main.lua reads as follows:
-- name: [CS] Aron Lykaon
-- description: IM FINALLY IN THE GAME!!!!!!!!111
--[[
API Documentation for Character Select can be found below:
API Documentation
Use this if you're curious on how anything here works >v<
(This is an edited version of the Template File by Squishy)
]]
local TEXT_MOD_NAME = "Aron Lykaon"
-- Stops mod from loading if Character Select isn't on
if not _G.charSelectExists then
djui_popup_create("\\#ffffdc\\\n"..TEXT_MOD_NAME.."\nRequires the Character Select Mod\nto use as a Library!\n\nPlease turn on the Character Select Mod\nand Restart the Room!", 6)
return 0
end
local E_ARON_MODEL = smlua_model_util_get_id("Aron64_geo") -- Located in "actors"
local ARON_LIFE_ICON = get_texture_info("aronicon") -- Located in "textures"
-- All Located in "sound" Name them whatever you want. Remember to include the .ogg extension
local VOICETABLE_ARON = {
[CHAR_SOUND_OKEY_DOKEY] = 'AronOkeydokey.ogg', -- Starting game
[CHAR_SOUND_LETS_A_GO] = 'AronHerewego.ogg', -- Starting level
[CHAR_SOUND_PUNCH_YAH] = 'AronYah.ogg', -- Punch 1
[CHAR_SOUND_PUNCH_WAH] = 'AronWah.ogg', -- Punch 2
[CHAR_SOUND_PUNCH_HOO] = 'AronHoo.ogg', -- Punch 3
[CHAR_SOUND_YAH_WAH_HOO] = {'AronYah.ogg', 'AronWah.ogg', 'AronHoo.ogg'}, -- First/Second jump sounds
[CHAR_SOUND_HOOHOO] = 'AronHoohoo.ogg', -- Third jump sound
[CHAR_SOUND_YAHOO_WAHA_YIPPEE] = {'AronYahoo.ogg', 'AronWahah.ogg'}, -- Triple jump sounds
[CHAR_SOUND_UH] = 'AronUhn.ogg', -- Wall bonk
[CHAR_SOUND_UH2] = 'AronUhn02.ogg', -- Landing after long jump
[CHAR_SOUND_UH2_2] = 'AronUhn.ogg', -- Same sound as UH2; jumping onto ledge
[CHAR_SOUND_HAHA] = 'AronHoohoo.ogg', -- Landing triple jump
[CHAR_SOUND_YAHOO] = 'AronYahoo.ogg', -- Long jump
[CHAR_SOUND_DOH] = 'AronDoh.ogg', -- Long jump wall bonk
[CHAR_SOUND_WHOA] = 'AronWoah.ogg', -- Grabbing ledge
[CHAR_SOUND_EEUH] = 'AronLedgeClimb.ogg', -- Climbing over ledge
[CHAR_SOUND_WAAAOOOW] = 'AronWahhh.ogg', -- Falling a long distance
[CHAR_SOUND_TWIRL_BOUNCE] = 'AronBoing.ogg', -- Bouncing off of a flower spring
[CHAR_SOUND_GROUND_POUND_WAH] = 'AronWah.ogg',
[CHAR_SOUND_HRMM] = 'AronHrumph.ogg', -- Lifting something
[CHAR_SOUND_HERE_WE_GO] = 'AronHerewego.ogg', -- Star get
[CHAR_SOUND_SO_LONGA_BOWSER] = 'AronSoLongBowser.ogg', -- Throwing Bowser
--DAMAGE
[CHAR_SOUND_ATTACKED] = 'AronLoseHealth.ogg', -- Damaged
[CHAR_SOUND_PANTING] = 'AronOoh.ogg', -- Low health
[CHAR_SOUND_ON_FIRE] = 'AronHot.ogg', -- Burned
--SLEEP SOUNDS
[CHAR_SOUND_IMA_TIRED] = 'AronTired.ogg', -- Mario feeling tired
[CHAR_SOUND_YAWNING] = 'AronYawn.ogg', -- Mario yawning before he sits down to sleep
[CHAR_SOUND_SNORING1] = 'AronSnoreInhale.ogg', -- Snore Inhale
[CHAR_SOUND_SNORING2] = 'AronSnoreExhale.ogg', -- Exhale
[CHAR_SOUND_SNORING3] = 'AronSnore&Pasta.ogg', -- Sleep talking / mumbling
--COUGHING (USED IN THE GAS MAZE)
[CHAR_SOUND_COUGHING1] = 'AronCough.ogg', -- Cough take 1
[CHAR_SOUND_COUGHING2] = 'AronCough.ogg', -- Cough take 2
[CHAR_SOUND_COUGHING3] = 'AronCough.ogg', -- Cough take 3
--DEATH
[CHAR_SOUND_DYING] = 'AronUhhOoph.ogg', -- Dying from damage
[CHAR_SOUND_DROWNING] = 'AronDrowning.ogg', -- Running out of air underwater
[CHAR_SOUND_MAMA_MIA] = 'AronMammaMia.ogg' -- Booted out of level
}
-- All Located in "actors"
local CAPTABLE_CHAR = {
normal = smlua_model_util_get_id("Aron64_geo"),
wing = smlua_model_util_get_id("Aron64_geo"),
metal = smlua_model_util_get_id("Aron64_geo"),
}
local ARON_PALETTE = {
[PANTS] = "ffffff",
[SHIRT] = "ffffff",
[GLOVES] = "ffffff",
[SHOES] = "ffffff",
[HAIR] = "ffffff",
[SKIN] = "ffffff",
[CAP] = "ffffff",
[EMBLEM] = "ffffff"
}
local CSloaded = false
local function on_character_select_load()
CT_CHARNAME2 = _G.charSelect.character_add("Aron Lykaon", {"A Demihuman Wolf with Toon Force who knows alot about silliness.", "He's Ready to hit the Castle Grounds."}, "Model by Dem1W0lf, ported by CharacterKnight (TYSM)", {r = 41, g = 204, b = 41}, E_ARON_MODEL, CT_MARIO, ARON_LIFE_ICON)
_G.charSelect.character_add_caps(E_ARON_MODEL, CAPTABLE_CHAR)
_G.charSelect.character_add_voice(E_ARON_MODEL, VOICETABLE_ARON)
_G.charSelect.character_add_palette_preset(E_ARON_MODEL, ARON_PALETTE)
CSloaded = true
end
local function on_character_sound(m, sound)
if not CSloaded then return end
if _G.charSelect.character_get_voice(m) == VOICETABLE_ARON then return _G.charSelect.voice.sound(m, sound) end
end
local function on_character_snore(m)
if not CSloaded then return end
if _G.charSelect.character_get_voice(m) == VOICETABLE_ARON then return _G.charSelect.voice.snore(m) end
end
hook_event(HOOK_ON_MODS_LOADED, on_character_select_load)
hook_event(HOOK_CHARACTER_SOUND, on_character_sound)
hook_event(HOOK_MARIO_UPDATE, on_character_snore)
Don't double post! Use that edit button! Post automatically merged:
Also worth noting when I tested the mod first was before I installed the new update. Seems like after the update is when the voice became mute but not sure honestly.
Last edited: