#Lethal Emotes API

404 messages · Page 1 of 1 (latest)

frigid orchid
frigid orchid
#

@verbal vine just checking, would it be enough to have it be a client side option, where users could individually opt out of their own emotes being traversal?

verbal vine
#

Yeah, but if possible id like the host to have final say

#

(my friends devolved into too much chaos when they can skidaddle around doing funny emotes) to the point they just keep dancing in the ship and never play the game

#

i need something to keep them at bay

frigid orchid
#

I mean imma be real with you chief, that sounds like a problem that goes beyond funny emote mod, I'll put a "client side opt out of traversal" option on the todo list, but I think I speak for all of us working on this mod that letting the host decide on behalf of everyone is not in line with our vision of the mod.

harsh orbit
#

A huge problem is if we let people just disable the ability for others to see it, it will cause a lot of confusion too. Many people are doing emotes because they want to see their friends reactions or share something funny they found. It will be seen more as a bug than a feature if for some reason one player can stop others from having their desired interactions.

verbal vine
#

also as for the traversal ones, sprinting/jumping does not seem logical, and also moving sideways while doing them should cancelt them just like fortnite

#

except for mabe the cartwheel one and ones liek that cause jumping over thigns with that is funny

harsh orbit
#

Luckily we aren't fortnite and aren't required to follow their rules. Our goal is just to provide people the framework to have fun. We will add the option to allow the player to chose to restrict themselves to standing still like we do with noise but how the player wants to experience the use of the emotes is up to them.

verbal vine
#

maybe make it cost terminal money to unlock emotes or a custom system to unlock emotes instead of instantly having all of them (configureable)

frigid orchid
#

Oh absolutely not

frigid orchid
#

I mean, it is possible to do that with the base api already, just not directly, so if someone making an emote mod wanted to do that to their users they could

#

But none of our mods that add emotes just for the sake of emotes will ever do that

verbal vine
#

im starting not to like funny emote mod

#

its simply too funny, and unhinged

frigid orchid
#

That's... the point

verbal vine
#

i dont like your point, im the grinch, i want to take things away this christmas

frigid orchid
verbal vine
#

frame my mugshot after the murder while your at it

verbal vine
#

😎

harsh compass
#

Keep it how it is amazing. All glaze no sprinkles

glad rover
frigid orchid
#

but you're welcome anyway KEKW

glad rover
#

ik this was the only emote relevent thing i could find to make this joke

frigid orchid
#

that's ok discord, don't feel like you have to embed my image

atomic sinew
harsh orbit
#

Having a basic understanding of animation in blender is also helpful

frigid orchid
ebon marsh
#

Good Day
Where could I find the keybinds for the dances I tried to find it at the keybind section "remap controls". It's set to default "F"

frigid orchid
#

so there should be a bind to open the emote wheelk

#

while holding that, there is a customize button in the top right

#

we want to integrate that into the mod settings eventually but we've kinda gotten bogged down fixing stuff

lucid patrol
#

I want the animation to stop after playing once instead of looping twice. Can someone tell me where to set it

frigid orchid
#

You mean like in game? Or are you creating an emote

leaden ingot
#

Float.

frigid orchid
rare furnace
lucid patrol
neon flare
#

how do i install?

frigid orchid
frigid orchid
neon flare
#

what is r2mod?

lucid patrol
frigid orchid
neon flare
#

whats the buttons for this mod?

frigid orchid
#

default keybinds are c for the wheel, v for joining emotes

#

but you can access them in the keybinds menu

neon flare
#

one last thing how do i get the dances?

frigid orchid
#

like actual animations and such?

neon flare
#

ye

frigid orchid
#

animate them yourself with the rig we have in the repo, or rip them from games

#

or wherever else you fancy

#

it's kinda up to you

neon flare
#

so if i wanted the griddy how would i rip them from somthing else

frigid orchid
#

great question

neon flare
#

so...

#

how do i do it?

frigid orchid
#

shrug I wasn't really in charge of any ripping

neon flare
#

oh

#

damn welp this mod is useless

frigid orchid
#

I mean

#

you can animate your own stuff

#

it's pretty fun actually

neon flare
#

i dont know how haha

harsh orbit
#

once those are downloaded you will see the dances in the wheels customise menu that can be accessed while holding "C" in game by default.

#

the griddy should be in badasscompany's pack

verbal vine
#

please add a way to change the middleclick thirdpersson toggles, it conflicts with another mod i use and i cannot change the middle mouse keybinding

frigid orchid
#

Oh, honestly not sure why we didn't do that

frigid orchid
#

wait

#

you didn't check the keybinds before asking for a keybind

#

it's already there

#

I coulda sworn we had it already

verbal vine
# frigid orchid

😠 who the heckles puts their stuff in the basegames options area, im too used to config files

frigid orchid
#

it's a

#

keybind

verbal vine
#

other mods dont have their keybind options in there so i never check there

#

its allways in the config file for some reason

frigid orchid
#

not to be that guy

#

but a lot do

#

and more than this list have it as a soft dependency

verbal vine
#

not when i was playing one month ago

#

i been away

frigid orchid
#

oh

verbal vine
#

i guess the norms have changed sense chrimas

frigid orchid
#

well it just kinda be that way in such a young mod scene in a super popular game

#

the meta shifts every week

verbal vine
#

at this rate ima leave the game for 2 months and come back and someone will have made the entire fortnite island

frigid orchid
#

I mean

#

we have a million custom maps

#

so that's not unrealistic KEKW

frigid orchid
#

hey @royal condor there doesn't seem to be a MoreCompany thread so I'm just gonna @ you here

I was wondering about an idea for MoreCompany where it would have a system where you as a mod dev can "create a request" to render local players cosmetics on layer 0 (so fully visible), and if there are any active requests, the local cosmetics are all rendered on layer 0

at any point you can tell MoreCompany you are done with the request, and if no requests are remaing, the local cosmetics get moved back to layer 23 (the layer for invisible enemies which shouldn't ever be rendered by the first person camera)

just checking how feasable a system like that would be with you before I do any more digging, not sure what the backend of MoreCompany's cosmetic system looks like

royal condor
#

Sounds like itd only benefit something like third person or another circumstance where the camera is outside the players perspective

frigid orchid
#

would it? if the cosmetics already exist, and a mod wants to show it in first person, wouldn't they still be able to call the request to have the cosmetics be on layer 0?

#

because if we think about it in terms of

layer 0: visible to the local player's camera at all times

layer 23: never visible to the local player's camera

it should work for any mod desiring to show cosmetics

#

ah, just thought about it more, are you referring to, say, a mod wanting a specific cosmetic to render at all times but not all of them? If so, the system need only expand to each cosmetic instead of all, allowing each cosmetic to have a "request to be displayed" system

frigid orchid
royal condor
frigid orchid
#

I mean I'm kinda implying with this, that they could be, and default to layer 23

royal condor
#

Mods that add them back to your local player manually spawn them

#

I don’t really understand the benefit for any mod that’s not a third person one

#

Cause something like the mirror mod or other cameras on the player wouldn’t display them

frigid orchid
#

with the layer system, why wouldn't they?

#

mirror mod already renders layer 23, along with most other "extra camera" mods

royal condor
#

I see

#

I suppose I could spawn them in at layer 23 then

frigid orchid
#

yeah I'm not asking you to implement the system I proposed, when I get the chance I might look at setting up a PR for it, I was just checking to see how viable it would be with the current codebase

royal condor
#

Yeah very viable, there’s a condition check for local cosmetic spawning that could just be ignored and the layers could be changed easy

#

There’s a utility function I left in the CosmeticManager class or whatever I called it that recursively goes through gameobjects and changes the layers

frigid orchid
royal condor
#

For the UI guy on the menu, it changes the GOs to the UI layer

frigid orchid
#

when I get some free time I'm probably gonna look into that then, just to try and alleviate all the various mods fighting over cosmetic visibility

royal condor
#

Could just be put in that if statement, so it doesn’t destroy them, very simple

frigid orchid
#

ye

#

like I said, I also plan on something like a active request system, so mods can effectively add or subtract from a number when they make or finish requests, and if this number is ever equal to 0, the cosmetics move to layer 23, otherwise they move to layer 0

royal condor
#

Any reason for moving around the layers?

frigid orchid
#

because that's what we have to work with basically

#

layer 23 is the invisible to player camera layer

#

that most other mods already utilize

royal condor
#

Well thatd only be a problem if the mods don’t use a new camera to display whatever POV they need

#

But also they could just modify the cameras visible layers

frigid orchid
#

but here's the problem and it's really annoying as a result

#

layer 23 is used for invisible stuff right?

#

the girl uses it when invis

royal condor
#

Yeah well there’s always gonna be that issue

#

If camera mods are gonna display that layer already then I don’t really think it matters all that much

frigid orchid
#

I think they really shouldn't is kinda what I'm getting at

#

which is what spawned this idea in the first place

royal condor
#

Hm

#

I get what you’re saying

#

I wanted to get local cosmetics out of MoreCompanys range of “my problem” cause it seemed annoying to deal with

frigid orchid
#

I could also make it a disconnected mod that relies on MoreCompany if that would be easier on your end then

#

so it doesn't get you complaints about it specifically

royal condor
#

Yeah thatd probably be best

leaden ingot
#

I was waiting for the day.

frigid orchid
#

which part lol

leaden ingot
#

One of the layers I use being used by the invisible girl.

#

Guess I'll need to find another.

frigid orchid
#

well that depends

#

cause the layer being used for invisible stuff isn't the problem neccesarily

#

the real problem is instead of "I want to see this now, let's change its layer to 0 or something"

#

some mods are saying "I'm just gonna render layer 23 lol"

leaden ingot
#

Layer 23 is frequently used as a model layer because there is usually nothing on it, however it is not the only layer with that property, there are several.

#

Regardless a model layer is necessary, or cameras stop working.

frigid orchid
#

agreed

leaden ingot
#

If we move them to a visible layer only when they need to be visible, then they will be invisible in cameras like the ship camera.

frigid orchid
#

which is why from mods that i've seen like the mirror mod

#

they just treat layer 23 as the model layer

#

but it would be nice if there was just a dedicated layer for it

#

instead of having to share

leaden ingot
#

Mirror mod made numerous questionable decisions, unfortunately.

frigid orchid
#

but it was the first so it caught on

leaden ingot
#

I just wish we had more layers to work with.

#

Did you know, zeekers dedicated a layer to bushes?

frigid orchid
#

someone should just message zeekers to add a layer for us in the next update Clueless

#

I guess they are all taken already

#

but you know

#

do bushes really need a layer?

leaden ingot
#

no...

#

Well I don't really have the time right now do to real life nonsense™️, but if you are interested in researching this yourself the layers 1, 4, 17, 20 all appear to be free.

frigid orchid
#

I'm considering it

#

something along the lines of a "4th person mod" that tries to consolidate all the rendering conflicts mods have

leaden ingot
#

30 is also free, but I've dedicated it as the arms layer so I hope that it isn't used for any nefarious purposes.

#

That's a good idea. I already run a patcher that periodically modifies every camera to be consistent with the layers I've setup, so that could possibly be used as a baseline for the mod.

frigid orchid
#

I know you got RL stuff but imma explain for whenever

#

I changed my mind, the post I replied to explains it how I wanted to

leaden ingot
#

lmao.

#

What exactly is the rationale for the layer 0 request? Is it for third person exclusively?

frigid orchid
#

no not at all, it's simply an example since layer 0 get's draw by all normal cameras

#

so at any point something can "request" the models to be visible

if after the request, the amount of requests is at least one, then the models will instead render to layer 0 since some mod, has declared that they need to render for normal cameras

at any point mods can retract their request for rendering, and if no requests remain, all models that are currently being rendered move back to the invisible layer (currently 23)

this means that if at least one mod declares that models need to be rendered for normal cameras, they will be rendered, but if nothing is requesting they be visible, they will turn invisible again

#

keeping in mind, some mods with their camera setups would never need to request models to be visible, such as the mirror mod, since it already renders the invisible layer

#

TL;DR: if at least one mod wants the models to be visible they will switch to a "normal" layer like 0, they will be rendered, if no mod wants them rendered, they will switch back to an invisible layer like 23

leaden ingot
#

I would definitely recommend 31 as the invisible layer, not 23.

#

23 renders on some ship cameras.

#

If it's the little girl, where nothing can render 31.

#

By nature of culling masks.

frigid orchid
#

hmmm

#

I think this might be a problem that's coming up

#

as I'm realizing you have a different use case than I pictured

#

I designed this in mind with only objects that are designed to be seen on players, but not by the player themself (like mask cosmetics)

#

I'm getting the feeling you have a different use case

leaden ingot
#

The way I do it is with 4 distinct layers, invisible, visible, model and arms. Model is visible to everybody but local, arms is visible to only local, the others are obvious. and are 31 and 0.

#

A 4th person mod that normalizes render logic among the mods would be immensely useful, as it means I wouldn't need to do it myself.

#

But I don't know if I would get any use out of the render requests, as most of what I do is handled by changing culling masks.

#

And the layers I do change are changed on update as of the moment, since mods are sprinkled with patches and other logic that changes layers to the incorrect layer at the strangest of times.

shut ferry
#

Uhhhh what could be the problem when I press "C" and select and Emote and nothing is trigger the emote???? Did I did something wrong? None of emotes are responding when clicking on the wheel selection where I saved them

frigid orchid
#

you let go of c to select emotes

#

while highlighting

shut ferry
#

Yeha when I do that it doesn't do anything 😮

#

Its' been working but I don't why it hasn't been working for me now

frigid orchid
#

@peak sinew I saw your question from earlier. Sorry I don't really have access to my computer for a bit, were you able to fix the issue?

peak sinew
#

Hi there. I haven't tried in a day or two.

#

Like I said. BepInEx reads the plugin, according to the console, yet when I check the "customize" section, it's not there.

frigid orchid
#

Hmm, not much to work on there, but a very good test would be to put a Debug.Log("loaded emote"); or something similar on the line before/after the import function is getting called. Just so you can know you are 100% calling it. Then we can go from there

peak sinew
#

I'll try it again tomorrow and see what happens.

peak sinew
#

Okay I'm gonna go take a look at it. I have no idea how to code that properly, but I did see this in the emote tutorial video. I assume I'd put in something like this?

frigid orchid
#

Yeah just copy paste that debug and place it where you import the emote

#

See if it logs

peak sinew
#

So... using the template mod, I added those lines. (Picture is where I added it)

Checked the BepInEX LogOutput in my profile folder, and the message didn't even appear in the log.

frigid orchid
#

Well, you know the part whether you call the import function? I more meant to paste the debug line there

#

So you know your emote is getting imported

#

Also you only need to copy paste the single line, nothing else

peak sinew
#

So something more like this?

#

I put it there, but the message it's supposed to print still doesn't show up. thonk

frigid orchid
#

Well that checks out then, cause presumably if that's running you would see your emote in game

#

Anything else you changed from the starter project

peak sinew
#

The tutorial mentions creating functions. Is that needed for a single emote?

#

For changes, I added a reference to build in my test profile, the names for the plugin name and whatnot, and tweaked a few emote settings.

frigid orchid
#

No you don't need to do much else like extra functions

#

From the sound of it, you aren't getting errors, you aren't getting debug logs

#

Are you sure the dll and assets are in the correct locations?

peak sinew
#

Should be. I followed the tutorial video to a T.

BepInEX/plugins/[the folder for the mod]/[folder inside]/assetbundles

[folder inside] has the DLL, where the assetbundles folder has the assetbundles for the mod. I even compared to BadAssCompany, and it has a similar folder structure.

Like I've mentioned. The debug message I added to the project file doesn't appear in the log after running the game. It's like it finds the DLL, but it can't find the stuff FOR the file, so it doesn't load the emote? IDK. Yet, like I said, it looks just like how BadAssCompany has it structured, and that works fine.

It's essentially how I laid it out here. #mod-support message

frigid orchid
#

Oh you sent a zip file

#

I'll check that out in a bit and see if anything stands out

frigid orchid
#

(sorry segfault for the ping, discord autofill betrayed me) is this still exactly what the Awake() function is on your end?

#

segfault

#

what

#

uhhh

#

oops sorry

#

@peak sinew

peak sinew
#

Lemme check. I haven't uploaded a new zip since the initial one.

#

I've redownloaded the template a few times to see if I did anything wrong. I haven't touched that bit. Here's what it is now.

frigid orchid
#

Right, sorry then, there is probably something in the tutorial I took for granted. So to boil the problem down, notice how you put all your info into "ImportAnimation"

but Awake is the only function that unity will call by default. What I would recommend in your case is do something like this

peak sinew
#

So move it to awake?

frigid orchid
#

yep

#

or reset that function to it's default state, and call the function in awake

peak sinew
#

Gotcha. I thought some things looked a little different from the tutorial.

frigid orchid
#

whichever is easier

peak sinew
#

I'm not a big coder, so I'll just follow what you did.

#

So for future reference. If I want to do multiple emotes in a pack, just paste it in the same section and edit the values?

frigid orchid
#

you can do that yes

#

mostly*

#

CustomEmoteParams emoteParams = new CustomEmoteParams(); will throw errors if you copy paste it, but that's because you can't declare the same thing twice, so just remove the leading "CustomEmoteParams" and you will be good

peak sinew
#

Nice. Thank you. I'll make my edits and try again.

frigid orchid
#

these are all the emoteParams.audioLoops emoteParams.lockType etc
items

peak sinew
#

Hmm... Still didn't load. However, I did get an error in the log.
[Info :Custom Emotes API] Couldn't load asset [slay.anim] reason: System.Collections.Generic.KeyNotFoundException: The given key 'slay.anim' was not present in the dictionary.
Tutorial says it's not case-sensitive. thonk

#

For the audio too, but yea.

frigid orchid
#

HuhChamp it shouldn't be

#

Maybe I am stupid

peak sinew
#

It even matches the case of my files in Unity.

frigid orchid
#

uhhh, just to clarify, this gets called before you try to import the emote right?

peak sinew
frigid orchid
#

also a question, in the place where unity exported your assetbundles originally, there should be a .manifest file, can you send those? It might be a file structure issue

peak sinew
#

oh hang on you might be right

frigid orchid
#

right

#

so yeah do Slay/Slay.anim

#

and Slay/Slay.ogg

peak sinew
#

Ohhh okay.

#

That did it. Thanks a ton for troubleshooting.

frigid orchid
peak sinew
#

Okay. I'm doing another pack with just two dances, and I don't know what I did wrong. Everything looks correct in the code, but it's not loading in-game. Maybe I messed up the function somehow?

I did get this error in the console after Custom Emotes API loaded, but I don't think it relates to the emote mods I have in the plugins folder.

[Info   :Custom Emotes API] Failed to get Proc Address to wine_get_version!```
frigid orchid
#

Those errors are both fine, let me look into it

frigid orchid
frigid orchid
#

oh hey @peak sinew I was looking at your published emote mods. You need to package them slightly differently since r2modman unpacks stuff. Currently it looks like this when downloaded through r2modman

#

note the assets are not in a folder, which causes them to not load with the code that is present

#

for example, here is the zip file for emotes2. Note that I put the dll and its accompanying folder inside of a sub folder

peak sinew
#

Oh. Huh. Gotchu. I'll take a look at it later.

I was kinda using BadAssCompany as a point of reference for the most part for how to lay out stuff. Good to know. I mainly use r2 these days anyways.

peak sinew
#

Okay I see how it works. So just put the initial folder inside the mod folder into a folder called "plugins."

gentle gale
#

I'm hoping I can get emotes to work, I spent 8 hours today trying to figure out why I can't and will likely spend another 8 tomorrow lol.

As far as I can tell, it's loading the assetbundles but not the animation/sounds inside. Following tutorials step by step, googling and even asking ai to explain/debug 🫠 Likely a pathing issue, will try to make the unity locations very simple tomorrow

frigid orchid
#

Honestly looking in the log file would be your best bet if you are already at the step of testing in game (aka: your dll is compiling and copying over already)

gentle gale
#

Thanks for the tip, I've been looking into the log but it's a bit hard to work out even with debug code lol, I'm sure ill figure it out ❤️

peak sinew
frigid orchid
gentle gale
#

I hope I can figure it out but I apprecate the support if I can't 🙂

gentle gale
#

Yeah I'm not figuring it out I guess 😂 I tried from scratch again, it's definitely the right path like the manifest, without the /assets/ part. I've tried both default and with the block of emoteparams copied to the awake. I just dont think its finding the anim and ogg and I'm not sure why.

I also tried doing bare minimum changes and only really changed the code for lethal location, lethal mod name and the anim/sound location but no luck 😓 maybe my assetbundle builder is bad

frigid orchid
gentle gale
#

Yeah for the past 20 odd attempts I always get a big error with NullReferenceException: Object reference not set to an instance of an object. I have a feeling it's 100% a location issue, I swear I have declared the right paths but I dont think it agrees. I wish there was a way for me to make it build assets similar to how I build models or scrap lol

frigid orchid
#

What's the method for models/scrap?

gentle gale
#

For the scrap its a different csproj file, it loads the bepinex and stuff through a direct path to the dll's and then loads the asset bundle in the awake, I'm not exactly how all the coding works but I figure maybe I could butcher them both together and maybe it'll work 😂

gentle gale
#

I'm probably going to just give up, I've put two full days of trial and error into this and I'm unsure why it won't let me do it unless my anim is just bad

frigid orchid
#

Not sure about a different csproj (or why even) but that's roughly how loading assets works here. In the default example it loads the bundle in awake and then you just use the asset paths to load objects.

Shame your giving up :/ I could help in more detail but you haven't really shared anything so I've been assuming you want to do it on your own.

#

Not sure if you've looked at it or not but I made a pretty comprehensive guide. Based on your issues I would recommend starting here https://youtu.be/VfmFxi7_-Oo?t=18m21s

Timestamps:
0:00 Prerequisite programs/opening
5:28 Blender Time-lapse
7:09 Preparing Animations in Unity
11:59 Looping animations setup
12:37 FFMPEG audio optimization
14:42 Unity audio optimization
15:35 Playable Director/Timeline Editor
18:21 Asset bundles
23:27 Coding setup/boilerplate explanation
30:35 Emote parameter examples
34:33 Importi...

▶ Play video
gentle gale
#

I was following that tutorial 1 to 1 with my own animation but I hadnt got it to work, I might try do it again but with the default jojo pose template

gentle gale
#

Yeah I tried with your default template + default anims and no luck, my best guess is maybe the csproj? As when I load the Template and edit the paths it has 40 errors by default and I'm not sure how I even solved that for when I originally started my mod

frigid orchid
#

Did you try building it anyway? The errors might be because the nuget packages haven't downloaded yet. If you did try that, can you show me the errors?

gentle gale
#

I mean my csproj file with my animation has no errors so I've no idea why the template is acting like this now 😂

frigid orchid
#

Your existing project is fine cause it already has the nuget packages

gentle gale
#

Ahh makes sense

frigid orchid
#

let me fix that right now before someone else downloads the example and gets stuck

gentle gale
#

I dont recall setting them up when I started this mod but it likely carried over from previous mods

#

That would be helpful, hopefully the rest have better luck than I

frigid orchid
#

but yeah, I can walk you through any step you get stuck at if you want to get this done

gentle gale
#

I would like that 🙂 I'm just unsure what to actually provide you with as I dont get any visible errors anywhere except when loading the game

frigid orchid
#

well if we are referring to the project where you have your emotes already.

Assuming you added the debug.log lines I mentioned, send me the log file from a startup.

In addition you could show me the entirety of your awake() function

gentle gale
#

Sure one moment

#

Heres a screenshot with probably a bunch of useful stuff too 😂

#

As far as I can tell, the assetbundles are being loaded, the code location is the same as the manifest paths, the dll's are placed in correct location and so are the assetbundles. But with a bunch of debug code it always says it cant load the anims/ogg in the assetbundle. I also tried building the assetbundle with a script rather than the manager but no luck.

It's probably going to end up being the dumbest minor error as well lol

frigid orchid
#

Can you show me the definition for this?

#

should be at the end of the file

gentle gale
#

I also tried copying this block into my awake and editing it instead of using the array

frigid orchid
#

so between lines 69 and 70, can you insert this?

                Debug.Log($"2   {emoteParams.primaryAnimationClips.Length}");
                Debug.Log($"3   {emoteParams.primaryAnimationClips[0]}");
                Debug.Log($"4   {emoteParams.primaryAnimationClips[0].name}");```
gentle gale
#

I'll give it a go 🙂

frigid orchid
#

For reference what I'm seeing on my end when looking at your log file

#

I'm thinking it's not getting some aspect of the primaryAnimationClip

#

which doesn't make a whole lot of sense on paper

gentle gale
frigid orchid
#

ok. so maybe you gathered this already but now I am certain

#

this is loading a null value

gentle gale
#

So the anim is bad perhaps? The location matches the manifest after /assets/

frigid orchid
#

yeah I'm wondering about that tbh

gentle gale
#

This is the animation and it plays fine in unity 😂

frigid orchid
#

if you click this, can you preview the animation on the default unity guy

gentle gale
#

Yeah works fine on default black and grey guy

frigid orchid
#

ok, just double checking stuff

gentle gale
#

No worries, I appreciate the support 🙂

frigid orchid
#

in Assets.cs, there should be a line commented out, can you uncomment it?

#

and if you run with that, I want to see what path it's assigning

#

actually, I'm not sure why I'm humoring that idea, we know that part is working because it's giving us results, the results are just bad

#

so scrap that idea

gentle gale
#

Oh okay haha

frigid orchid
#

in unity, can you show me the configure/build tabs for the assetbundles window?

#

(these two)

gentle gale
frigid orchid
#

on the build tab, can you check "Force Rebuild" and copy those new files over?

gentle gale
#

Yeah i'll give that a go

frigid orchid
#

If that still breaks, send them my way and I can verify some stuff with dnspy about them

gentle gale
#

Sure 🙂 I'll need a moment

#

Still same errors unfortunately, I'll send you them in dm

frigid orchid
#

not to give you false hope

#

but a memory just flashbanged me

#

and I think it's a really silly problem, that you probably had no way of knowing

#

let me verify first

gentle gale
#

😂

#

I also have an idea of my own but it's equally silly

frigid orchid
#

well

#

uhhh

#

it wasn't the problem I thought

gentle gale
#

Hmm

frigid orchid
#

it's just working on my end?

gentle gale
#

My idea is maybe Its because I named everything in the project the same thing idk

frigid orchid
#

do me a favor, if you copy paste this and comment out your ImportAnimation call

gentle gale
#

sure? 🤔

frigid orchid
#

obviously replace the "CustomEmotesAPI_Template_Mod" with "AnimeDanceEmotesAssets"

gentle gale
#

yeah I think its probably that I named that and the rest with the same name

#

I'm trying to separate it but it's causing The name 'Assets' does not exist in the current context

frigid orchid
#

here lemme just

gentle gale
#

I got it working

frigid orchid
#

oh?

#

was it that line or something else

gentle gale
#

I think it was the naming that was conflicting 😩

#

It's in the game at least, I think its because the "ExampleEmoteMod" was named the same as "AnimeDanceEmotes"

#

I did try change the mto be different a few times as well

frigid orchid
#

oooh

#

I see

#

cause your class and namespace used to be the exact name

gentle gale
#

In the end it was the dumbest thing 😂

frigid orchid
#

oh speaking of names though

gentle gale
#

Thanks so much for the help, sorry about this

frigid orchid
#

you named your assetbundles just "animations" and "audio"

#

I would highly suggest appending some unique name to them

#

otherwise you will conflict with any other mod that uses generic names

#

so like animedances_animations

gentle gale
#

Yeah I was just doing it to test it and was going to name it the name of the mod soon 🙂

#

I appreciate the advice ❤️

frigid orchid
gentle gale
#

Hopefully it's smooth sailing going forward and I can make a whole pack 🥺 thanks for putting up with my stupidness

frigid orchid
#

yep yep, feel free to reach out if you have any other questions

gentle gale
#

Will do!

#

Probably a dumb question tbh as I think it's explained in the video, but you used jojopose start and jojopose loop right? I assume I can split my anim into two and loop the second part infinitely without it starting the start sequence again?

frigid orchid
#

yep, technically you are already doing that in your code, cause you assign the same animation to the primary and secondary animations

#

if you just get a second animation, you can input it to the secondary slot

#

just make sure to set it to loop in unity as well cause unity moment

gentle gale
#

Ah simple to do then 🙂 Thanks ❤️

frigid orchid
#

personally, I recommend taking a look into the function, as you might outgrow the capabilities of the "basic but easy to work with" function parameters

gentle gale
#

Yeah, now that I can get it in game I think I can get the functions to work

#

This was probably shorter to figure out than the 12+ hours I spent on getting scrap in the game 😂

gentle gale
#

I messed up somewhere editing the anim so I hope you enjoy it going weird, I can't explain the weird dance at the end though

frigid orchid
#

scavenger has stopped responding

#

but animation at the end is the default animations on the animator, it probably means an animation you passed in wasn't valid or you didn't pass in an equal amount of start/loop animations

gentle gale
#

Makes sense 😂

#

You mentioned the secondary clip needs to be equal size to the primary? So I have to have the exact same number of frames in the start anim and loop anim?

frigid orchid
#

no like, so you pass in an array of AnimationClips (you are doing this cause of the [], effectively declaring an array)

If you pass in 3 primaryAnimationClips, you need to pass in 3 secondaryAnimationClips

gentle gale
#

Ah I get you

#

Hopefully I can get this loop to work, I likely messed it up editing it - hard to get the exact point it actually loops the dance before the end pose lol

frigid orchid
#

yeah editing animations in unity is rough