Open Goldenhollowz opened 1 month ago
I also had a "Ribbit" sound file.
have you checked the log? is there an error message?
hold on, let me check.
[2.0000] Script: loading mods stack traceback: [string "Main/Assets/Scripts/Mod/Api.lua.txt"]:338: in method 'Log' [string "Main/Assets/Scripts/Mod/Manager.lua.txt"]:23: in method 'LoadMods' [string "Main/Trigger.lua.txt"]:890: in function 'OnModdedGameStart' [string "GMUI://GMUI/Assets/Scripts/Simulation/SimulationFunctions.lua.txt"]:76: in local 'callback'
[2.0000] Script: loaded mods stack traceback: [string "Main/Assets/Scripts/Mod/Api.lua.txt"]:338: in method 'Log' [string "Main/Assets/Scripts/Mod/Manager.lua.txt"]:32: in method 'LoadMods' [string "Main/Trigger.lua.txt"]:890: in function 'OnModdedGameStart' [string "GMUI://GMUI/Assets/Scripts/Simulation/SimulationFunctions.lua.txt"]:76: in local 'callback'
I'm not sure if there is something wrong here. The "Callback" may be concerning
the Lua:
MOD_MANAGER:AddMod(function(Api)
Api:RegisterMissile("sad_frog", {
id = "sad_frog",
display_name = "Sad Frog",
icon = DCEI.Texture("Tiny_Sad_Frog"),
missile = DCEI.SimpleUnit("COMBAT Missile Sad Frog"),
sounds = {
DCEI.Sound("sad_frog_ribbit")
},
damage = function(attack_data, caster)
return 20
end
})
Api:CopyCharacter("naysayer", {
id = "pepe_the_frog",
display_name = "Pepe the Frog",
short_description = "This is depressing.",
icon = DCEI.Texture("sad_frog_small"),
icon_low_resolution = DCEI.Texture("sad_frog_small"),
icon_high_resolution = DCEI.Texture("sad_frog_large"),
unit = DCEI.Unit("COMBAT Unit Pepe the Frog"),
attack_ids = {
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
"Sad_Frog",
},
})
end)
The Actor.json:
{ "actors": { "COMBAT Missile Sad Frog": { "parent": "_COMBAT Missile Simple", "unitActor": { "resource": { "name": "sad_frog" }, "modelScale": 2 } }, "COMBAT Unit Pepe the Frog" : { "parent": "_COMBAT Unit Mob", "unitActor": { "resource": { "name": "sad_frog_large" }, "modelScale": 1 } } } }
The Unit.json:
{ "units": { "COMBAT Missile Sad Frog": { "baseUnit": "_COMBAT Missile" }, "COMBAT Unit Pepe the Frog": { "baseUnit": "_COMBAT Missile" } } }
@Goldenhollowz Can you find the Player.log
file and see if there are any error messages there? See this FAQ entry for diagnosing mod loading issues: https://github.com/MemeMayhem/ModExamples/wiki/FAQ#what-if-my-mod-is-not-doing-anything
[Uploading Player.log…]()
there are a few errors at the top
Shader 'Mobile/Diffuse': fallback shader 'Mobile/VertexLit' not found D3D11 device created for Microsoft Media Foundation video decoding.
I am going to try verifying integrity of game files.
@Goldenhollowz Can you attach the Player.log
file? Mod related errors are usually at the end of the file.
[Uploading Player.log…]()
it's taking forever to upload the player log
[PhysX] Initialized MultithreadedTaskDispatcher with 4 workers. Initialize engine version: 2022.3.38f1 (c5d5a7410213) [Subsystems] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/Meme Mayhem/Meme Mayhem_Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=0 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: Radeon RX 570 Series (ID=0x67df) Vendor: ATI VRAM: 4074 MB Driver: 31.0.12027.9001 Shader 'Mobile/Diffuse': fallback shader 'Mobile/VertexLit' not found D3D11 device created for Microsoft Media Foundation video decoding.
Its pretty long sorry
After installing another modded character it showed my character but it did not let me select it
The relevant error is this one:
LuaExceptionWithStackTrace: [string "Main/Assets/Scripts/GameCombat/MissileDataHelper.lua.txt"]:93: attempt to index a nil value (local 'missile_data')
It means some missile data cannot be found.
Check the Trigger.lua.txt
file you attached above, I believe the problem is the "Sad_Frog"
you used in attack_ids
. It should be lower case "sad_frog"
.
thanks!
[PhysX] Initialized MultithreadedTaskDispatcher with 4 workers. Initialize engine version: 2022.3.38f1 (c5d5a7410213) [Subsystems] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/Meme Mayhem/Meme Mayhem_Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=0 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: Radeon RX 570 Series (ID=0x67df) Vendor: ATI VRAM: 4074 MB Driver: 31.0.12027.9001 Shader 'Mobile/Diffuse': fallback shader 'Mobile/VertexLit' not found D3D11 device created for Microsoft Media Foundation video decoding.
In the error it says
Cannot find Sprite asset called "sad_frog".
Cannot find Sprite asset called "sad_frog_ribbit".
Are your texture files in the folder textures? If yes, are they named sad_frog.png and sad_frog_ribbit.png (or other supported image format)?
Edit 1: Also please just send the log as a file. Else looking through it is quite hard Edit 2: sry just saw that it takes too long to upload
One is named sad_frog and sad_frog_ribbit is a sound file
Also really sorry the game has decided to not open anymore
[PhysX] Initialized MultithreadedTaskDispatcher with 4 workers. Initialize engine version: 2022.3.38f1 (c5d5a7410213) [Subsystems] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/Meme Mayhem/Meme Mayhem_Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=0 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: Radeon RX 570 Series (ID=0x67df) Vendor: ATI VRAM: 4074 MB Driver: 31.0.12027.9001 Shader 'Mobile/Diffuse': fallback shader 'Mobile/VertexLit' not found D3D11 device created for Microsoft Media Foundation video decoding.
it froze steam as well
Can you zip your entire mod folder and attach it here? The missile image being missing is likely caused by name mismatch. No idea what's causing the game to crash though.
@fx013 could it be the Player.log being too big? As it says, that it runs out of memory
@Goldenhollowz #113 Did you reload your mod alot without restarting the game?
I also would want to know how to add an upgrade to increase the damage if the frogs. Sorry it took so long for me to reply [Uploading Mega Meme Mayhem.zip…]()
[Uploading Mega Meme Mayhem.zip…]()
Sorry the zip doesn't want to download
The Nuclear Barrel was supposed to give the frogs a 15% damage increase and was an epic upgrade called Mutated Frogs.
but I couldn't figure out how to do that
@Goldenhollowz To increase damage with perks, you want to use the CombatUnit:GetPerkLevel()
API in your damage calculation. Something like this:
damage = function(attack_data, caster)
return (caster:GetPerkLevel("my_perk_name") * 0.15 + 1) * 30
end
The above code scales the damage up by 15% for each perk.
For the image missing issue, we still need the entire zip to see what's going wrong. The problem is most likely in the name of the folder or files which get lost when uploaded as individual files on github. If you can't upload it to github, can you find some other place to put this zip file and link it here?
sorry it took me so long I was trying to do something else but I confused my self more. I consider my self quite a tech savvy person but I do not know how to code.
You also need to change the name under "ressource" in "Actor.json". It currently wants a "sad_frog" file, but you don't have a file with that name. That's why your missile isn't showing when fired. For "depressed fungi", you'll also need to add an entry into the "Actor.json" and "Unit.json" for it.
After I added in the emojis (Not just for display, as an actual attack) when I would press the "Play Mods" button it would load as if there were mods installed however the character I made would not display.