#archived-modding-development

1 messages Ā· Page 535 of 1

floral blade
#

it is public tho 😮

steady comet
#

Well modloader is internal

#

I think it should be ModHooks.GetMod(...)

jolly oriole
#

yea, looks like it

steady comet
#

So something like if (ModHooks.GetMod("theothermodname") is Mod _) would be a good way to reference another mod without throwing if that mod isn't installed?

floral blade
#

GetAllMods

#

might help

zenith hedge
jolly oriole
#

C#, but some custom content (like scenes) are made in unity, then loaded via the mod (c#)

zenith hedge
#

So it's just a C# script? Wouldn't that just be a glorified text document.

jolly oriole
#

mods are dll files, which get loaded by the mapi, then the mod does its stuff. Like loading a unity assetbundle to make custom content available

zenith hedge
#

And suddenly there are at least 3 more terms I don't know and I am reminded just how annoying ignorance is.

jolly oriole
#

so,
you have an IDE (programming software, like Visual Studio, JetBrains Rider or something). You make a project in that IDE, that project will be the mod, with its C#-Scripts. Compiling that gives a DLL file, which in turn is put into the mods folder and loaded by the modding api during gameplay

zenith hedge
#

So a dll file is the finished thing like how when you finish a making something in unity it all get's bundled into a single exe file?

jolly oriole
#

yes

zenith hedge
#

Ok, so all I would need to know is the proper terms to use to tell things what to do and how to structure it. So basically everything I don't know. grubsad

patent zealot
#

If only there was a modding tutorial on getting started

jolly oriole
zenith hedge
#

Is it best to avoid having something get called/ran every frame if you can help it? I would assume that would take up resources.

jolly oriole
#

yes

zenith hedge
#

So if I'm not adding any new assets and just want certain things to happen when the player does a thing would that just be a single C# script/file?

jolly oriole
#

basically, but compiled to a dll of course

zenith hedge
#

Ok, thanks. Time to read a bunch of text and find out in a couple hours that my supposedly simple idea is actually impossible.

#

I have Visual Studio open but I can't seem to find how to make a new C# project. Is there something special I have to do.

#

I think I might have not had C# assets or tools downloaded. So I am grabbing whatever C# things were available from the installer and I'll see if that does anything.

jolly jungle
zenith hedge
#

That's good to here.

zenith hedge
#

Ok, I may have ended up deleting my entire Visual Studio installation.

cedar hemlock
#

shroompog _ _

zenith hedge
#

This is probably the closest someone will ever get to "Instructions unclear, accidentally deleted computer."

jolly oriole
#

delete system32 while you're at it

#

makes things go zoom

zenith hedge
#

That's taking up too much space anyway.

#

Decided to reset my computer and reinstall and it's now going through fixing protocols. niceDfghjklkjhgfg
This is gonna take awhile.

#

Well I guess I can spend this time reading up on hooks and whatnot.

proven plover
#

has anyone made a nail upgrade randomizer mod?

zenith hedge
#

If I wanted to do something with Soul Totems would SlashHitHook be what I need?

jolly oriole
#

oh god, fuck soul totems

zenith hedge
#

That's a strong reaction. Are they really that bad?

jolly oriole
#

you have to know a bit to make them work initially

zenith hedge
#

What if I just want something to happen when I hit one but not necessarily do anything with the Totem itself? Also I'm just now realizing it would help if I say what I'm wanting to do. Then the experts could tell me how feasible it is.

zenith hedge
jolly oriole
#

the one that makes it 1 orb that fuels 200 mp

zenith hedge
#

Ah. The best version.

#

Basically my idea is to make PoP maps less tedious. So when the player hits a PoP totem specifically it will set them to full soul and full hp. I was also thinking of making it warp the soul orbs directly to the player to make normal totems less annoying too. Would also help with lag if it spawns 50 for example. At least I would think it would lower lag.

jolly oriole
#

making inf soul totems only to have full soul: easy
directly to the player: would maybe only need to replicate what the SoulOrb class does

#

so all in all: you prob only need to tinker with the PlayMakerFSMs on soul totems (which the above source code already does, so you can take it as an example)
the additional custom soul orb class it contains shouldn't be needed if you want to go the spawn-50-orbs-route

zenith hedge
#

I was just using the 50 orbs as an example for if you're using it with anther mod. I was trying to think of a way to remove the lag issue of having a ton of orbs for people with worse pcs.

#

Also just is faster for casual play.

#

What about the Full HP part? Would that be difficult/complex?

jolly oriole
#

you'd only have to replicate what the SoulOrb class and the bench FSM do for soul/health increase respectively

zenith hedge
#

Oh, so I could just take or remake their code and just give it a new activation requirement. ie. Hitting a totem?

jolly oriole
#

the way i'd do it is look what they do and change the totem FSM to do that instead of having it spawn orbs

zenith hedge
#

That doesn't sound complicated.

jolly oriole
#

yet

zenith hedge
#

There's the catch. I was wondering when it would appear.

#

Probably slightly harder idea. Making it check if the player is able to focus and then not giving them full hp if they can't. This part is mainly so I can use this in Rando without cheating. Well, cheating more.

#

My first guess is it depends on how Focus is being disabled.

jolly oriole
#

i was about to say that that's simple, but the game itself always assumes that you have the focus ability

zenith hedge
#

That's a thing? I guess the player can't focus midair so they would need a check.

steady comet
#

You can use dnspy to see what TC’s code for that function is

zenith hedge
#

What's a dnspy?

steady comet
cedar hemlock
#

should've said wdym wdym

jolly oriole
light zodiac
#

Like how would calling herocontroller.canfocus show if rando is blocking healing or not

steady comet
#

Well, HeroController canfocus will return true if the player can focus and rando hasn’t blocked it

jolly oriole
zenith hedge
#

Could I set the code to wait half a second before running?

wanton cloak
#

are there any good tutorials for beginners on setting up mod development? I'm specifically trying to make a mod that would alter spells and nail arts

steady comet
light zodiac
#

Or maybe somehow try to get the RandomizerMod.Instance.Settings.GetBool(name: "canFocus")) value

zenith hedge
#

I would prefer it to not be dependent on the code of another mod. Don't want the chance of anything breaking that isn't my fault.

light zodiac
#

I mean If your building something around rando you probably have to depend on its code

zenith hedge
#

Rando was just the main example. Having it be universal would be optimal.

steady comet
light zodiac
#

How much earlier?

zenith hedge
light zodiac
#

Or maybe give player 33 soul, call function, give back original soul amount

zenith hedge
#

Can you just set player soul to max soul? Or do you have to do player soul + X?

light zodiac
#

You can set soul to max directly

zenith hedge
#

That would make it compatible with higher than vanilla cap. Do I have to set Soul and mini vessel soul separately? In the save editor they are separate.

zenith hedge
#

Downloading and installing take a long time.

zenith hedge
#

55% installed. I feel like this should have finished a long time ago but I'm just gonna let it run through. I don't want to risk messing it up again.

vocal spire
#

So I just updated hk and installed the updated the modding api, got some mods working but whenever I load into a save it can't find a hero ("Couldn't find a Hero, make sure one exists in the scene." repeating in player.log) anyone else having this or know how to solve

zenith hedge
#

Well, imma leave my pc running over night. Hopefully it finishes installing by the time I wake up.

jolly oriole
primal latch
light zodiac
jolly oriole
#

and

light zodiac
#

repeating in player.log

cedar hemlock
#

also

zenith hedge
#

Does it matter which of these I choose?

steady comet
#

Yes

#

If you're developing for HK 1.4, it has to be Framework 3.5

#

If you're developing for HK 1.5, it has to be Framework 4.7.2

jolly oriole
#

yes, click back, choose class library (.net framework), then either 3.5 or 4.7.2 as above

steady comet
#

You'll probably have to download something from the internet to be able to do either of them

zenith hedge
#

Neither of which I have installed. sigh

jolly oriole
#

should be possible to choose though

zenith hedge
#

I went to the Individual Components download selection and it says I have ".NET Framework 3.5 development tools" & ".NET Framework 4.7.2 targeting pack".

#

Not .NET Framework 4.7.2 SDK though.

steady comet
#

4.7.2 targeting pack is what I downloaded, IIRC

zenith hedge
#

Should I just download all .NET things? Or would that not be a good idea.

steady comet
#

Well, there shouldn't be any need to

zenith hedge
#

If it matters on the installer it says I have Visual Studio Community 2019 16.11.1

steady comet
#

One thing you could try is to simply find the github for any 1.5 mod, clone it through VS, and then VS will tell you what you're missing

zenith hedge
#

Is all modding flowing (for lack of a better word) towards 1.5? So it wouldn't make much sense to make a mod for 1.4.

steady comet
#

Yes

zenith hedge
#

Ok

steady comet
#

I mean you can still develop for 1.4 - for example it'd be quite hard to play rando on 1.5 right now - but eventually everything will be 1.5

zenith hedge
#

Do you know of a 1.5 mod? I wouldn't know where to look.

jolly oriole
zenith hedge
#

šŸ‘€

#

Oh, that reminds me. I should probably make a Git Hub account.

jolly oriole
steady comet
#

What does benchwarpfix do?

jolly oriole
#

When benchwarping into a scene without a bench, instead of softlock drops you into dirtmouth

zenith hedge
#

How do you Benchwarp to a non bench?

steady comet
#

When would that be necessary?

cedar hemlock
#

lots of times

jolly oriole
#

people tried to benchwarp into colosseum trials

cedar hemlock
#

mainly easymode

steady comet
#

If I have doorwarp, I want to be warping to a non-bench. Also if I warp to "set start" in rando

jolly oriole
#

usually the game puts you at like -20k, 20k and one way is i think hazard respawn with debug, not sure how viable though as you can't pause the game, so that is a nice alternative

cedar hemlock
#

you'd need to have a keybind ready if you can't pause

zenith hedge
#

Grenade? Why do you only have 7 followers on GitHub? This is a travesty.

jolly oriole
#

5, i'm following 7

zenith hedge
#

Oh

#

Got them mixed up

jolly oriole
#

no worries

zenith hedge
#

Would the most recent version of ToT be for 1.5? I have the HellMod from the Radiance website so I assume that's for 1.4

jolly oriole
#

yes presumably to both

zenith hedge
#

Idk why it didn't have the versions you said I need. ToT imported just fine.

#

Although there is a lot of red underlines.

#

casually gets spoiled about end game stuff by looking at code

jolly oriole
#

oh yea, click onto the project on the left side, so it shows the contents of the .csproj file

#

then on line 15 you'd need to put the path to your modded 1.5 installation

zenith hedge
#

Where?

jolly oriole
#

when you click on the TestOfTeamwork on the right directly under the solution

zenith hedge
#

VS, why is there no line numbers? niceDFLmndfsdljfmkn

#

Found line 15. "<HollowKnightRefs>E:/GOG/Hollow Knight 1.5 Modded/Hollow Knight_Data/Managed/</HollowKnightRefs>"

jolly oriole
#

yes

#

the path in there should be where your actual managed folder of your modded installation is

zenith hedge
#

I don't have a modded instillation of 1.5. Or even the 1.5 mod installer for that matter.

jolly oriole
#

use this

zenith hedge
#

I have 1.5.68 & 72 & 75 that I can unzip from my archive.

jolly oriole
#

75 is good

#

together with the nightly build

zenith hedge
#

Do I need to compile the Nightly build myself? Because unlike the 1.4 version there is no .exe

#

Wait

#

nevermind. I found the Read Me

jolly oriole
#

it's the modding api itself, copy paste your .75 install, overwrite some dll files with the ones from the nightly build and you have a modded 1.5 install

zenith hedge
#

So does the mod installer (and the mods folder by extension) connect to all modded instances?

jolly oriole
#

i have no idea what you mean with that

cedar hemlock
#

the installer does not suppport 1.5 in any way

steady comet
#

Forget about the modinstaller, if you're developing mods then you're probably computer-literate enough not to need it

zenith hedge
#

Where would I put the 1.5 mods? Is there a 1.5 installer?

jolly oriole
zenith hedge
#

Oh. I'm dumb.

jolly oriole
#

but they have to be in a subfolder, because new modinstaller will handle them that way

zenith hedge
#

For some reason I thought the mods folder was in the Saves folder.

jolly oriole
#

so like

Managed/Mods/{ModName}/{ModName}.dll
zenith hedge
#

Yeah, I'm looking at my 1432 mods folder and I see my mistake.

zenith hedge
#

I copied the files over. Do I need to boot the game once for it to make necessary changes?

jolly oriole
#

i don't think so, but just to make sure it works at all

zenith hedge
#

ok

#

I'm gonna guess the new major update icon is my indicator.

cedar hemlock
#

the api icon you mean

zenith hedge
#

ap-icon

cedar hemlock
#

i don't think tc would call their own code šŸ

zenith hedge
#

Why does it have gravy on it? I get the cherry but why gravey?

cedar hemlock
#

idk

jolly oriole
#

wait

#

it should display the mods in the upper left corner

zenith hedge
#

I don't think I have any mods installed.

#

Or a mods folder for that matter

cedar hemlock
#

make sure you do a globalsetting wipe, mainly with customknight if you get it

zenith hedge
#

How does one wipe global settings? I think I have done that before when it wouldn't let the 1.4 installer work. Same thing? Or would it be different because it's a different patch.

jolly oriole
#

would be same thing

zenith hedge
#

Do delete this folder?

jolly oriole
#

no, globale settings, next to the save files

#

?saves

finite forumBOT
#

Saves


Windows File Paths: (Assumes Default Steam Install Path, Adjust accordingly for DRM Free or Non-Standard Steam Path)

Game Files: C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight\```
** **
Mac File Paths:
```Save Files: ~/Library/Application Support/unity.Team Cherry.Hollow Knight/
Game Files: ~/Library/Application Support/Steam/steamapps/common/Hollow Knight/hollow_knight.app/```
** **
Linux File Paths:
```Save Files: ~/.config/unity3d/Team Cherry/Hollow Knight/
Game Files: ~/.local/share/Steam/steamapps/common/Hollow Knight/```
zenith hedge
#

Oh, that's a much easier folder to find.

#

Global settings for all mods?

cedar hemlock
#

the ones you're planning on getting

#

debug settings don't have to be deleted

zenith hedge
#

I was getting 1.5 modding stuff so I can test my mod and make sure it's working properly. Not many mods are made for 1.5 yet so I would mostly be playing on 1.4 until they update.

zenith hedge
#

I might be missing something but I don't think it did anything. It made a repos folder with a ToT folder and files, but It doesn't seem to be loading anything in VS.

#

Wait, I had to select the file and not the folder.

#

What exactly was importing ToT supposed to help with again? Because I don't think it prompted me to download the missing versions.

steady comet
#

If it successfully compiled on your computer, then you can make your own mods for sure

zenith hedge
#

It let me open it and look at the text, but I didn't try to manually compile it myself.

steady comet
#

I mean, notepad will let you open it and look at the text

zenith hedge
#

I installed the other .net stuff and this is what it says I can use. I'm guessing I am missing something obvious if nobody else had this much trouble.

jolly oriole
#

there's another type of project

#

called

Class Library (Framework)
zenith hedge
#

Yup, something obvious indeed.

#

Is this what I need?

jolly oriole
#

yea

#

4.7.2 if you're targeting hk 1.5
3.5 for hk 1.4.3.2

zenith hedge
#

I'll probably just do 1.5 if 1.4 is gonna be left behind soon.

#

Ok, text editor is open. Time to read the Radiance page again and hope that explains what I need to do.

#

Is there an example mod for 1.5? ToT has a lot of stuff and I don't even know the basic structure yet. So trying to understand that first would probably be a bad idea.

jolly oriole
zenith hedge
#

Or even which file type to use for that matter.

#

There is the C# Project File and the Visual Studio Solution.

jolly oriole
#

vs things, making a new file while the solution is selected will bring you the new project thing, while having basically anything else selected will give you the new file dialog, with class (or whatever it uses for c# script files)

zenith hedge
#

Apologies, but I didn't really follow any of that.

jolly oriole
#

on the right you have the solution explorer, you can right click basically anything that isn't the solution, then with new -> add new file, you can add classes

zenith hedge
#

I'm not sure I am on the same page/window as you. I don't see something labeled Solution Explorer.

jolly oriole
zenith hedge
#

That appeared when I imported ToT. i don't think I saw it when I made a new project.

#

I just made a fresh project and this is what I see.

#

Maybe I have to enable it in preferences.

jolly oriole
#

uh, either under view or window there should be an option to toggle the solution explorer

zenith hedge
#

Found it.

#

Should I also add Git Changes and properties?

jolly oriole
#

no need for that tbh

zenith hedge
#

Also this is basically how I expected this to go. All of my road blocks are solely due to ignorance.

#

Would you say the 2 video tutorials on Radiance is good?

jolly oriole
#

yes

zenith hedge
#

Ok

#

is bad modding tutorial pt 1 (and presumable any other parts) still relevant/compatible for 1.5 modding?

jolly jungle
#

What's the meaning of CheckCanSeeHero

#

What is it looking for

#

what does "seeing" the player mean

zenith hedge
#

Enemy aggro range maybe.

cedar hemlock
jolly jungle
#

Hn

#

Hm

zenith hedge
#

CheckCanSeeHero: No Eyes - False

jolly jungle
#

I'm in colo so I can't imagine a time the enemy cant see the hero

jolly jungle
zenith hedge
#

If you're on the walls some of the grounded enemies don't path find towards you, I don't think.

cedar hemlock
jolly jungle
#

I'm looking at shielded fools zote

cedar hemlock
#

well F

zenith hedge
#

The thin red ones?

jolly jungle
#

Yep

zenith hedge
#

Don't they just kinda wander if you go to the opposite wall and stay up there.

jolly jungle
#

I checked their appearances, there is only one time that there is any platform other than the floor at the same time as them

zenith hedge
#

Np

#

I once did Colo with Hiveblood being my source of healing. So I needed to find stall areas.

jolly jungle
#

Fortunately I don't really need the canseehero thing

#

I just hoped it might make things easier

zenith hedge
#

If you needed it wouldn't you know what it did?

jolly jungle
#

Like I said, I don't need it

zenith hedge
#

Right.

jolly jungle
#

What I need are the other things in that state

#

It just seemed odd that the ai needed to check this bool to do anything

zenith hedge
#

Maybe it's so they don't try and hit you through a wall even if your in aggro range.

jolly jungle
#

Aight I got it

#

It checks if we're above their hitbox, like you said

#

If you're on the walls some of the grounded enemies don't path find towards you, I don't think.
This is what it causes

zenith hedge
#

Neat

jolly jungle
#

Yeah, they just start wandering around with a generic walker

#

once you slide down to the height of the top border of their detection hitbox, they suddenly turn around and start walking towards you

zenith hedge
#

Well my pc decided to become a paperweight again. So I'm waiting on it to re boot.

jolly oriole
#

btw mandar1jn, i bet a few of them won't even work

primal latch
#

What won’t work?

jolly oriole
#

a few of the mods, because of your comment

primal latch
#

What comment?

primal latch
#

Ah. That. Didn’t you test them,

#

I just commented because where you say a few I see a lot

jolly oriole
#

i do test them, but i didn't yet check if they work for others as well

primal latch
#

Ok

zenith hedge
#

Can SlashHitHook be used to tell what specifically the nail hit?

#

Do I need to manually make a Mods folder for my 1.5 modded instance?

jolly jungle
#

Can I do Instantiate(transform.Find("Attack Range").gameObject) to create a copy of a gameobject?

jolly oriole
#

great, achievements broke again

jolly jungle
#

good luck fixing them

jolly oriole
#

that's easy

jolly jungle
#

or is it something else you need to fix that caused them to break?

jolly oriole
#

i just have to repair my gog installation, so my copied 1.5 modded (and vanilla) installations work again

zenith hedge
#

Cool

jolly jungle
zenith hedge
#

Also real nice of the tutorial to use keyboard shortcuts without saying what they are. niceDfghjklkjhgfg

jolly jungle
#

So I'd say so

jolly jungle
jolly jungle
#

...Ah

#

56's, and I quote, "bad modding tutorial"

#

what did you expect zote

jolly jungle
#

imagine using gog

#

but nice hollowknice

zenith hedge
#

Any idea what this warning box thing means? I think it means that I don't know something again.

steady comet
#

If you try to do Modhooks.Instance.???, instead do Modhooks.???

zenith hedge
#

That fixed it, thanks.

#

Error: Expects ; and } at line 16
Me: deletes ; that's already there
Error: Expects ; at line 16
Me: Adds back ; in the same spot
No Errors
zote

light zodiac
#

Modhooks.instance = 1.4
Mod hooks. = 1.5

jolly jungle
#

Oh god, you just saved me a few minutes when I'll turn my stuff to 1.5

#

thanks

zenith hedge
#

Oh, what i would give for a 3rd monitor. Too many things, not enough screen space.

#

I improved the visuals.

#

How to add the Search window in dnSpy?

cedar hemlock
zenith hedge
#

Anyone know what's wrong here? I have it typed how 56 does and added the references they said to. I also tried without Instance and it still says there is an error.

worn eagle
#

i

steady comet
#

For these sorts of things, there's a cool trick that Visual Studio has. If you type HeroController. and then press tab, it'll give you a window where you can see the list of options of things that can come next

zenith hedge
#

The only thing that does is input "Instantiate"

#

Oh

#

The menu is automatic i think

zenith hedge
# worn eagle i

Next time please use more words so I understand you are giving me the answer i need.

#

But for 1.5 do I need to manually make the Mod folder? Because I currently don't have one.

zenith hedge
#

Thank you.

jolly oriole
#

ig yes

zenith hedge
#

Ok, and iirc you said the mod needs to be in a sub folder with the same name as the mod.

jolly oriole
#

name of the folder doesn't really matter, just for easier manual management

zenith hedge
#

Ok

#

Well, the Modding API is there now. Not my test mod though.

#

My mod does appear when not in the sub folder.

jolly oriole
zenith hedge
#

Ayy, mod works. I am officially a programmer.

#

Everything in this tutorial breaks due to formatting updates. niceDfghjklkjhgfg

cedar hemlock
zenith hedge
#

Yeah, that's probably not gonna be much help. Having the compilation of terms does nothing if i don't already know what those terms are.

zenith hedge
#

Coding is a multi thousand piece puzzle and every piece fits together and they only tell you something is wrong after you try things. I hate this so much. But it's great if you actually know what your doing. Sadly that is not me.

#

Even reading through Grenades BetterTotems mod I can barely follow. Ugg.

#

I just realized this is simply pure ignorance. I have to have a tutorial/help to be able to do anything. Because I don't know anything.

jolly jungle
jolly jungle
zenith hedge
jolly jungle
#

Ohhh

#

That explains it

#

It seems to not fill in the soul that was used for casting the spell that did the kill

zenith hedge
#

It does. It's just a visual bug.

#

Same thing happens if you Dnail an enemy when Gwomb spawns.

zenith hedge
#

As dumb as it may sound I don't want to ask a bunch of questions as I feel that might get annoying. But I also know you don't learn anything by not asking questions.

jolly oriole
#

i screw up my unity scene, built it and now i can't ctrl+z

zenith hedge
#

Rip

#

Did you make a backup?

jolly oriole
#

of course not

#

so now i'm setting z values of like 300 gameobjects according to their spriterenderers layer order

zenith hedge
#

Ouch, I hate when big losses like that happen.

jolly oriole
#

it did give funny effects though

zenith hedge
#

Foggy Totem

#

Couldn't you use data from a prior build and just use that so you don't have to place everything manually again?

jolly oriole
#

meh, i'll just do it now, but organized

#

before it was like "yea, this a bit more to the screen, this a bit behind"

zenith hedge
#

One benefit to being forced to redo things is nearly every time it gets upgraded.

jolly jungle
#

At some point, for me, I just slid into a project while doing random practice junk

#

And now I have a comfy colosseum mod I'm working on when all I was doing at the start was practicing things to mod crystal peaks

wanton cloak
#

how would I replace spells with custom made spells?

#

I dont understand how to use spellControl

zenith hedge
vocal spire
#

one day I’ll make that fsm modding tutorial

wanton cloak
#

ty

#

just got into hk modding so Im a bit confused on everything especially since the documentation is limited and there are few tutorials

vocal spire
#

You’ll probably benefit from looking at other mods’ source code after reading the documentation

#

If there is public source code then it’s probably on GitHub

#

For fsms I suggest looking at fsms in fsmviewer and looking at a boss mod that edits that fsm (excluding inferno king Grimm and corrupted kin since they completely recreate the boss)

#

Imma go now, if you need anything from me feel free to ping

strong cosmos
#

Hello again. Is there anybody around who'd be willing/able to assist me with modifying the Bonfire mod?

#

I'm 80% certain I know where I need to make modification(between two separate areas, but w/e), but I don't know what exact numbers I'd need to change and what I'd need to change them to

jolly oriole
# jolly oriole

also funny, using sorting layers, it's also possible to have a sprite be rendered in front of basically everything else from HK, yet have a z position of 900, making it also technically be behind everything

primal latch
#

That is also how FPS games render guns

zenith hedge
#

Might try and make a fast Millibelle mod.
Doesn't sound too complicated.
Player hit her
Check bank total
Is greater than 0?
If yes set player geo to player geo + (Bank total + 24)
Set bank total to 0

If no return

jolly oriole
#

Why 24?

jolly oriole
#

my achievements broke again, maybe because gog isn't signed in???

merry lotus
jolly oriole
#

best part: you can then repair your game and it does download something, despite nothing being changed according to git

#

(yes, i did git commit my entire hk installation for that)

zenith hedge
# jolly oriole Why 24?

Isn't the rng bonus 24 because a big geo can spawn as the last geo instead of a small geo?

merry lotus
jolly oriole
#

milibelle spawns in waves of
6-10 small
1-5 medium
0-2 large
all at once before checking the bank total again
giving up to 84 extra

zenith hedge
#

Oh, that's interesting.

#

So 1 geo remaining can turn into a maxed out wave.

jolly oriole
#

yes

zenith hedge
#

:millibonk:

#

This needs to be an emote somewhere

steady comet
zenith hedge
#

Is there any tutorials about the general structure of the code and how/what can call things? Or would that just be a general C# tutorial and substitute HK "classes" or whatever the terms are.

steady comet
#

I think it's easiest to look at example mods

#

Like, if you can find a mod that does something simple, and look at how it does it, then that would help

#

I'll see if I can find an example

zenith hedge
#

So don't look at the code of Rando, got it.

steady comet
zenith hedge
#

casually updates it myself /j

jolly oriole
#

millibelle payout is entirely FSM though

zenith hedge
#

Wouldn't infinite Notches just be setting total Notches to the 32 bit integer limit?

steady comet
#

Well, there's the number of notches in the save data, and the number of notches that the game sees whenever it asks for the total notch count

#

Look at the code

zenith hedge
#

I'll do that after I get off work.

steady comet
#

It's quite well-commented

zenith hedge
#

Nice, I like me some good explanations.

#

Also thanks for the reminder. I should put comments in my code.

steady comet
zenith hedge
#

FSM acronym meaning please.

cedar hemlock
#

Finite State Machine

#

iirc

unborn flicker
zenith hedge
#

Bully completed successfully.

zenith hedge
#

I remember what it looks like, just didn't know if it had an actual name.

#

Is this the entirety of THK's ai? Or something else.

jolly oriole
#

yes

unborn flicker
#

Finite State Machine. It's a concept in theoretical computer science, but in practice FSM is used here to refer to an implementation by Playmaker for Unity.

zenith hedge
#

But breaks over, chat later.

jolly oriole
pale current
#

would it be crazy to use vs code to make hk mods?

primal latch
#

No

ornate rivet
#

oh my god that's insane

pale current
#

is there any documentation of ModCommon anywhere?

vocal spire
#

No tmk

#

Most stuff is pretty self explanatory though

#

At least the stuff usually used

ornate rivet
#

what do you need modcommon for

pale current
#

no idea bc idk what it does, I'm just starting out and I'm curious what it can do

vocal spire
#

It’s a ā€œcoreā€/dependency mod. It has a bunch of useful features you can use in your mod if you reference it, it includes: the obligatory fsmutil, a bunch more useful stuff that idk since it’s been a bit since I’ve used it since I have my own core mod

primal latch
#

Most people have steered away from modcommon recently. IDK why

#

Because sfcore had the same and more?

jolly oriole
#

_ _

#

🦾

ornate rivet
#

looking good

mild pecan
#

Does anyone want to make a skin for the Grimmchild, one that makes it look exactly like a primal aspid? I tried, but I cannot get it figured out.

#

I know what I'm supposed to do, I just don't have the skills needed.

crude wave
#

Have you updated the mods for version 1.5?

mild pecan
#

Mods are compatible with 1.5 now?

steady comet
#

@crude wave

cedar hemlock
#

shat

#

now we'll have to wait even more grubsad

crude wave
cedar hemlock
#

lmao

#

oh wait i can just

#

here is your api

#

you'll have to compile and get the mods for it yourself

#

oh and also install it yourself

#

gl

mild pecan
#

Primal aspid Grimmchild?

patent zealot
#

thats a thing already i think

#

somewhere there? cant remember

#

Ok yeah, it's called aspid child, just use custom knight and u have it

zenith hedge
# jolly oriole

This is more complicated than I was anticipating. Mossy Control be wild.

jolly oriole
#

rip that guy that just got banned

pale current
#

Does anyone know where the MP Cost variable is set in the Knight-Spell Control FSM? I've been hunting for a while but can't find it, I feel like it should be somewhere related to Spell Twister but can't see anything that refers to Spell Twister or charm 33

jolly oriole
#

it's part of playerdata

#

wait, that's focus cost

pale current
#

yeah I looked in ilspy too but can't find anything there either

jolly oriole
#

charm effects - set spell cost

pale current
#

aha tysm

pale current
#

Is there something special I need to do to add a dependency to my mod? I want to use FsmUtil from SFCore or ModCommon

ornate rivet
#

add the dll as a reference in your ide

#

and then import

pale current
#

import?

vocal spire
#

I think saleh means add a
using NamespaceOfFsmUtil

#

Maybe since I think you do something with import as the equivalent in python?

pale current
#

oh yeah ok I did that

#

seems like it works

dark wigeon
#

ayy got some bug fixes for avalonia merged in finally

#

should fix some crashes on fsm viewer avalonia

fair rampart
#

WE NEED A MASSIVE MOSS CHARGER MODDED BOSS

#

You know you want it

light zodiac
#

Technically it existed once

fair rampart
#

Wait what

jolly oriole
jolly jungle
primal latch
#

Which still hasn’t released yet

#

Ck+ I mean

jolly jungle
#

So?

#

@fair rampart's MMC mod hasn't released yet either

#

And they're clearly trying to promote it in here

zenith hedge
#

MMC mod. The Chargers form the moss into forms of other bosses and use their attacks. You deal enough damage to break the shell and then have to hurt the Chargers before they go back into the ground.

#

Or when they slam the ground shock waves appear.

#

Ngl, I kinda want AnyMMC now.

latent hound
#

Or just stop the boss from taking knockback

ornate rivet
#

just add the attack animations MEBI made for it, that would actually be cool

merry lotus
#

Question for any <@&328354344313421825> :
A dedicated HK modding server was created recently, in order to give mod devs more freedoms and to give non-devs more discussion options and easier-to-maintain resources.

Would it be alright if I posted an invite link here and/or in #modding-discussion ?
(We were trying to get more devs over first, before opening the server up fully, so get as much feedback as possible on it, but honestly we can still change things after more people show up)

ornate rivet
#

nice

merry lotus
#

I have to be AFK for a bit, so I'm going to go ahead and post it here: **Hollow Knight Modding: ** https://discord.gg/VDsg3HmWuB

I think I've been around long enough for people to know that I'm posting in good faith lol.
If there is a different approach that's preferred, lmk and feel free to delete this.

ornate rivet
#

I am pretty sure we're not allowed to advertise at all in this server

jolly oriole
#

it's not yet deleted, so ig

#

and the speedrun channel also has a server linked

vocal spire
merry lotus
# ornate rivet I am pretty sure we're not allowed to advertise at all in this server

Yeah, without some form of permission/approval, I'm not intending on posting it outside of this channel (although, the only other place I was gonna post it was #modding-discussion). If it was a personal server or something, then I wouldn't even think about posting a link. I help run HKMP, but I don't post direct links to that server here.

The only reason I've posted this one, is because the intention of HK Modding is to literally act like an extension of this server/community- so that the modding aspects of HK aren't limits to a very small space, with very limited resources/controls. Essentially the same reason that HKSC exists.

primal latch
#

I agree. Where we now have 2 channels dedicated to modding, in a seperate server we can have a seperate channel for getting started, the modding api, fsm’s and seperate mod channels

rough pulsar
#

i will join

#

please keep archives of all modding channels here if modding staffs are going to make that server official though sadgeyes

zenith hedge
#

casually downloads the entire channel history

jolly jungle
#

And I think a lot of people here were too

#

Can't you maybe try to make it??

ember furnace
#

Hi I'm following 56's mod development tutorial but I can't get the first Modhook to work
I need to write: "ModHooks.Instance.RecordKillForJournalHook += OnKill"

#

The 'OnKill' has a red squiggly line under it

#

Here's a screenshot:

winter moss
#

You need to create a method called OnKill

topaz mortar
#

idea: Mod where you get one extra lifeblood mask every time you hit something with your nail
downside, getting hit costs 4 of these lifeblood masks

cosmic wedge
#

hey just wondering using the custom knight mod that is already a thing could i make my own skin using just photoshop of the base sprite if i had the correct file format or something?

radiant basin
#

yeah you can edit straight onto the spritesheet

cosmic wedge
#

thanks

hushed otter
#

I started looking into mods so I can make a parry mod, but i'm not sure where to start aside from just learning how to use unity as a whole

#

(well I originally wanted to download a parry mod, but there wasn't one so I decided to try to make one... parry atm doesn't really do anything aside from sound effects, because both parties still take damage if their hitbox is in the path of the weapon swing)

languid goblet
#

there's a parry mod that deals damage to every enemy on screen for 4x nail damage when you successfully parry

#

intended for use in p5 but it's a bit jank

#

curious to see if you could solve that

hushed otter
#

I'm curious to see if I can do a good job learning in the first place tho lol

#

but the parry mod I wanted to make was just a simple "parry actually blocks/negates damage"

and then also add settings for other special effects like, increasing the parry window, if you time it perfect it can give you back some soul, or maybe giving you bonus damage on your next attack

#

if I can learn how to make this, I wouldn't mind looking at the other parry mod

languid goblet
#

p5 = pantheon 5

#

the other parry mod will probably be helpful to look at

hushed otter
#

alright

#

ty for the tip

hushed otter
#

It's not in the Google drive, and I don't see it anywhere on Google search or mod websites. Is it in the mod installer? I haven't downloaded that yet

pale current
#

Afaik mod installer takes from the drive so it wont be

languid goblet
#

search it in this server

#

also, the modinstaller/google drive is the only maintained source for mods, so don't use nexus mods or whatever

hushed otter
#

I don't use Nexus mods after the ordeal they pulled off

#

I was just searching online on every source

#

There are other mod websites besides Nexus

languid goblet
#

yes

jolly jungle
patent zealot
#

You can increase the iframes parrying gives

#

fairly easy

hushed otter
#

In that same line I explained that you still take damage if the enemy's weapon touches your hitbox

#

Just like the enemy takes damage if your weapon touches theirs

proven cipher
#

That is extremely not true

hushed otter
#

That is very true, try it out with one of the big guard dudes

#

In the city

proven cipher
#

The iframes are likely not long enough for some attack animations is the issue

#

You can use iframes from a parry to phase through an enemy

fair rampart
#

If you manage to get the parry you do get iframes

hushed otter
#

I'm pretty sure that the portion of the attack animation that hits you, is only as long as the party animation for the guard dudes.

#

But if it's true that you get iframes, it seems to be wonky

#

Because like I said, it repeatedly doesn't work

#

It only works if my hitbox isn't in the path of their weapon swing (the white line)

#

At which point, it might as well not be a parry

cedar hemlock
#

i've managed to survive some battles on only the fact that parry'ing gave iframes

hushed otter
#

Maybe you have bias that you believe that's the case, but it was actually just you being lucky dodging

proven cipher
#

There are three people here confirming you get iframes

hushed otter
#

Or maybe parrying actually swirls for some bosses, but not some mobs

hushed otter
fair rampart
hushed otter
#

IDC how many people compare that it does, it's still wonky even if it does give you iframes. Hence why I want to make a mod for it

proven cipher
#

Parrying is an optimal strategy for getting through devouts in I believe low% nmg in Beast's Den

hushed otter
cedar hemlock
#

do you mean the start?

fair rampart
hushed otter
#

Sure there's several

cedar hemlock
#

and it possible the boss hit them, before the parry

fair rampart
#

Or after yeah, theres a part where he parrys WK and their next attack then hits him because parry iframes just arent on, idk, ddark level of brokenness

proven cipher
#

The enemy still takes damage from a parry if you hit the enemy

hushed otter
#

so that doesn't count

#

and the ones at the start he wasn't parrying

#

but yeah I'll make a vid to show you my issue, which might just be related to some basic mobs

#

maybe parrying actually works for bosses

proven cipher
#

It also works for devouts

potent summit
#

hello, so uhh how can i do in visual studio a button that install files?

patent zealot
#

wait i got the perfect clip let me find it

hushed otter
#

@fair rampart @proven cipher I used a cheat engine to keep my health at 7, and to change my nail damage to 1, so I would kill them slower. you can see a few times where I get the parry ding, but both sides still take damage. If I stand away far enough, then the parry can happen, but I'm already standing away from the attack so it might as well not happen. I tried parrying a bit later, but then the enemy just hit me before I could parry. If I parry too soon, the enemy still hits me and sometimes it wouldn't parry the attack.

#

maybe there's one successful parry in there, so I'd still want to make a mod to change the iframe time to something that feels more consistent

#

oh wait, i uploaded the wrong one

proven cipher
#

Could you try again but only use upslashes?

hushed otter
#

sure

proven cipher
#

HK has an issue with certain damage events where it refreshes them in a crap way

hushed otter
#

and the second video i'll have to upload to youtube, because it's too big for discord nitrro

proven cipher
#

(This is why Flukenest is broken)

hushed otter
hushed otter
proven cipher
#

It could actually be a case that your iframes are being cancelled by the nail knockback

patent zealot
#

This is consistent, and with other bosses as well

hushed otter
proven cipher
#

The knockback you get when you hit things with your nail, I mean

#

If you notice in the WK video they are all upslashes

hushed otter
#

lemme try changing charms for that one that doesn't have knockback

patent zealot
#

the Iframes are tiny FYI so if u do get the parry but the hitbox still collides when over, you will get punished. thats why its a bit weird

#

and in your clip, you hit it too early

hushed otter
#

It's just wonky dude

patent zealot
#

It's not, is it with that specific enemy?

#

Test it with other enemies

#

I am pretty sure knockback has nothing to do with it

hushed otter
patent zealot
#

Also lets go to DMS since we are clogging this chat

hushed otter
jolly jungle
cedar hemlock
#

note that this enemy does 2 attacks after each other, meaning its attack hitbox exists longer, possibly longer than the IFrames you get

hushed otter
#

but the damage instance is happening on the first attack, not the second one

cedar hemlock
#

attack hitbox exists longer, possibly longer than the IFrames you get

proven cipher
#

Either way

cedar hemlock
#

the IFrames are small, otherwise i'd be overpowered

proven cipher
#

Parries are hard, and a mod making them better is a reasonable mod idea

#

But this does mean that your mod is just extending the iframes, rather than adding them, so it's important.

jolly jungle
#

That's what I said at the start

hushed otter
jolly jungle
#

Parrying exists, you'll just make it better

hushed otter
#

increase the iframe to 0.3s or 0.4

#

or just give players a slider that lets them set it to whatever they'd want

proven cipher
#

BetterParries.globalsettings.JSON

cedar hemlock
#

ui notlikequirrel

light zodiac
#

1.4 notlikequirrel

cedar hemlock
#

1.4 ui grimm

hushed otter
proven cipher
#

It seems like that's not what's happening, so I wouldn't worry about it

hushed otter
#

well it could be related, because my pc is an old PC šŸ˜…

proven cipher
#

What exactly is the issue you're having?

potent summit
#

Is with me?

#

Because if is with me I just want to know how do I do a button in visual studio that install files

hushed otter
#

what type of files, and where do you want to install them from?

#

and where do you want to install them to?

potent summit
potent summit
proven cipher
#

Unless I'm misunderstanding, you don't need visual studio for that?

potent summit
#

no is like mod installer install mods in the mods folder i want to do like that like a skin installer or a skin installer its not useful

floral blade
#

someone was already working on a modified modinstaller that installed skins

#

Perhaps you could look at that project ?

#

Iirc there were two seperate versions being worked on by two seperate people

hushed otter
#

Anyone know how many frames occur in between refresh?

#

Or does it not work like that for HK?

young walrus
#

frames of what

#

and what do you mean refresh

#

the game physics runs at 50 Hz if that's what you mean

hushed otter
#

So every 0.02s*

young walrus
#

no

#

that'd be 5 hz

hushed otter
#

My bad, I missed a zero

vocal spire
hushed otter
vocal spire
#

Do you mean like time between update cycles

hushed otter
#

Yeah

vocal spire
#

Then what mickely said if for physics update cycles

hushed otter
#

It would be for physics, yeah

vocal spire
#

If you want to get the time since the last physics update then use Time.fixedDeltaTime

hushed otter
#

Ty

jolly oriole
#

<@&283547423706447872> channel spammer
edit: thanks mods

empty tartan
#

snek

potent mesa
#

Cool snek

mighty helm
#

Can i play online in 1.5?

primal latch
#

No

potent summit
#

I have a idea for a mod but idk how to do this idea, my idea is do like a mod that shows the damage like numbers not a health bar

#

If someone can help me

#

I gonna be happy

light zodiac
potent summit
#

Oh someone already do

#

Well i gonna think in another idea

fair rampart
#

that is like, actually really cool

fair rampart
#

was that written for 1.4 or 1.5 btw?

jolly oriole
#

Lets ask @worn eagle

proven cipher
#

That is really cool, actually

worn eagle
#

1.5

fair rampart
light zodiac
jolly oriole
#

check 1.5 patch notes

proven cipher
#

If you got the game from steam then they are linked on the steam page for your game

#

This is not the channel, you should really use #hk-help

bold hazel
#

My bad i think i was in help channel

fair rampart
#

anyone knows how do i upload mods I created to the mod installer?

vocal spire
#

Also if you don’t mind, what is this mod?

ornate rivet
#

so true bestie xE

jolly oriole
#

rip that guy

floral blade
fair rampart
vocal spire
#

Alright

#

I assume it increases the nail speed?

fair rampart
#

Yes, a lot

vocal spire
#

Nice

fair rampart
#

Its just one class should be fine

vocal spire
#

Also here’s the mod installer repo if you need it https://github.com/ricardosouzag/ModInstaller
Here’s the modlinks repo https://github.com/hk-modding/modlinks

GitHub

API Mod Installer for HK. Contribute to ricardosouzag/ModInstaller development by creating an account on GitHub.

GitHub

Hosts the list of modlinks. Contribute to hk-modding/modlinks development by creating an account on GitHub.

ember furnace
#

Hi I'm trying to figure out how to mod hollow knight so I've downloaded the Hell Mod template, opened it in visual studio but heaps of the things are underlined in red

#

Is it the way i downlaoded vs or is there something else I'm doing wrong

#

I'll give you a screenshot:

patent zealot
#

you have to reference the modding api

tulip jewel
ember furnace
tulip jewel
ember furnace
#

but I want to try to do things properly first

tulip jewel
#

like I just installed bepinex to get unity explorer running & made some screwey mods with dnspy to just run around & have fun

#

you know warp through stuff, fly, spam the nail

ember furnace
#

So what do I need to download to do that

#

I have dnspy but what else

tulip jewel
#

well unity explorer runs on bepinex which I don't think is used for hk modding but it works with (almost) all unity games

#

I really have not looked into it but there may be already existing equivilants with mods that use the api

ember furnace
#

Thanks

tulip jewel
#

dnspy just hit edit method c#, change it, hit compile on the edit window, & then go to file & save module

ember furnace
#

nice

worn eagle
#

mod incompatibility I sleep

ember furnace
#

Do you mean I need to uninstall the mods I have at the moment

tulip jewel
#

also how do the current mods work anyway?
do y'all use like harmony or something?

worn eagle
#

monomod

tulip jewel
#

ty

ember furnace
#

New error this time

primal latch
#

@ember furnace I think you selected the wrong .net version

proven cipher
#

If you're interested in making mods it will be easier to find resources/get help there

ember furnace
vocal spire
#

If you got it from github, then it should be correct (assuming the game is on the right version)

#

What version of hollow knight is currently installed

#

@ember furnace

cedar hemlock
vocal spire
#

Ah ok

#

Not used to having a different server for that yet

#

Starting to not like the idea of it as much zote

steady comet
#

Is there a version of the fsm viewer that works on 1.5 and also has tabs?

jolly oriole
#

1.5: avalonia
tabs: not yet

steady comet
floral blade
#

wait didnt fsmavalonia have tabs?

vocal spire
#

Actually yes

#

For a while you had to build it yourself for tabs but iirc there was a release or something

floral blade
#

ah yes i was using source, that would explain it

jolly oriole
#

i never updated since 1.5 support lol

steady comet
#

Oh

#

Where can I get the release with tabs?

vocal spire
#

Looks like there’s not a release

#

Just build it from source

steady comet
#

Where can I get the source?

floral blade
steady comet
#

thank

jolly jungle
#

If I build

floral blade
#

yep

dark wigeon
#

oh yeah maybe I should make a release

floral blade
#

nesquack did you also fix the path thingy in a newer commit ?

#

because on mac the folder is called just Data and not hollow_knight_Data

dark wigeon
#

it's different everywhere

#

I need to figure out the 4 variations

light zodiac
#

Also there's the GoG Hollow Knight_Data

#

Fun

dark wigeon
#

there's also upper case but all underscores as well

#

actually I might just brute force instead of checking the os

jolly oriole
#

but gog windows 1.5 has both small with underscores and big without underscores

dark wigeon
#

how can it have both simultaneously

jolly oriole
#

don't ask me

dark wigeon
#

why

#

this requires a petition

jolly oriole
#

small with underscores only has a config

dark wigeon
#

aaaaaaaaaaaaaaa

#

ok I'll search for like resources.assets in

Hollow Knight_Data
hollow_knight_Data
Hollow_Knight_Data
Data
#

I swear there better not be two folders that both have resources

#

also also @floral blade Managed is in a weird place too right

floral blade
#

lemme just pwd it for you

#

~/Library/Application Support/Steam/steamapps/common/Hollow Knight/hollow_knight.app/Contents/Resources/Data/Managed

#

this is where it is

dark wigeon
#

why is it like this

floral blade
#

wdym?

dark wigeon
#

I mean why is it like this

#

why did team cherry and unity team up to make my life hard

floral blade
#

that idk but i really appreciate you dealing with the hard stuff for us though grublove

dreamy mulch
#

I don't know how this server takes to requests, but if someone could make a mod that removes the shade mechanic that would be pretty epic. I set up a multiplayer mod server with my friends, and pvp is annoying when you need to go find your shade constantly

light zodiac
#

Easy mode mod

dreamy mulch
#

is there any way to toggle all of the features but the shade thing

light zodiac
rough pulsar
#

at least i get only one hollow_knight_Data folder in windows

calm folio
#

hey im new on the server and this has probably already been answered but does anyone know how to get to the base game files for modding and stuff on a mac?

long sun
#

Does anyone have a zenitsu skin from demon slayer or dragon ball?

#

and also from JoJo's?

tulip jewel
calm folio
#

nah i tried that and it just leads to a shell program telling steam to launch the game

tulip jewel
#

is this in steamapps/common/game?

calm folio
#

naw this is in Desktop/Hollow Knight.app/Contents/MacOS/run.sh

floral blade
#

F mobile has betrayed me

#

fixed it

#

56 pls reopen my PR feelsgrubman

calm folio
#

ah thanks thats it

nimble lake
#

how can i go about replacing the music with something else?

calm folio
#

I mean, you could just mute the game in the internal settings and play something from your desktop

proven cipher
#

I think that is missing the point

cedar hemlock
#

one of the many grenade mods

primal latch
#
public static void OnSceneLoaded(Scene oldScene, Scene newScene)
        {
            switch (newScene.name)
            {
                case "Tutorial_01":
                    GameObject maul = Object.Instantiate(Assets.scarletMaulBundle.LoadAsset<GameObject>("Scarlet Maul"));
                    maul.FindGameObjectInChildren("collider").AddComponent<ScarletMaul.ScarletMaulTrigger>();
                    maul.FindGameObjectInChildren("ScriptHolder").AddComponent<ScarletMaul.ScarletMaulCutscene>();
                    maul.transform.position = new Vector3(115.5f, 31.5f);
                    Fyremoth.Instance.Log(maul.transform.position);
                    Fyremoth.Instance.Log(maul.activeSelf);
                    break;
            }
        }```
I have this code. The object spawns, but doesn't show up in game. The hook is `UnityEngine.SceneManagement.SceneManager.activeSceneChanged`
cedar hemlock
#

not even trying to prevent leaks lol

primal latch
#

like you know what this is

cedar hemlock
#

that doesn't matter

primal latch
#

just try and help me

#

please

vocal spire
#

Morning

cedar hemlock
#

setactive

vocal spire
#

F

primal latch
vocal spire
#

I see you are trying to add that

cedar hemlock
#

my code has it, and my code works

#

lemme just give you my code and we're done

primal latch
#

just tried it. It doesn't work

vocal spire
#

Hmmm

nimble lake
vocal spire
#

Could you dm me the prefab in the unity editor?

#

*moved to fyremoth chat

deep wave
#

<@&283547423706447872>

#

02Love ty

primal latch
#

If I have a text renderer, how would I give it the hollow knight font?

jolly oriole
#

perpetua / noto serif

floral blade
#

resources.assets sharedassets415.assets.resS resources.assets.resS sharedassets416.assets resources.resource sharedassets416.resource sharedassets0.assets sharedassets417.assets sharedassets0.assets.resS sharedassets417.assets.resS sharedassets0.resource
these?

#

they're at ~/Library/Application Support/Steam/steamapps/common/Hollow Knight/hollow_knight.app/Contents/Resources/Data

dark wigeon
#

so everything is in Contents/Resources/Data ?

#

assets files in Data and dlls in Data/Managed?

#

also I guess I should build a mac os version

#

hopefully it works, I know a lot of mac things won't build unless on a mac

floral blade
dark wigeon
#

you could prob just open a terminal and type dotnet FSMViewAvalonia.exe

floral blade
#

in case it needs to be built on mac and you don't have access to one i can build a version for you

floral blade
dark wigeon
#

yeah I don't think I can do that besides like making a shortcut

#

I know there's a way to add the app to the Applications folder or whatever

#

but it's been years since I've dev'd on mac

floral blade
#

i would just steal how MI2 does it tbh

dark wigeon
#

what is mi2

#

and yeah there is .command file

#

dunno if it has to be executable or not

#

and it apparently opens in the user's home directory šŸ™„

floral blade
dark wigeon
#

what is that even doing

#

just making a zip and setting a file as executable?

floral blade
#

making a zip

#

apparently ?

dark wigeon
#

how does mac know which file is the executable

floral blade
#

i have no idea

dark wigeon
#

oh it's info.plist

#

not part of this script

floral blade
dark wigeon
#

either ./FSMViewAvalonia2 or dotnet FSMViewAvalonia2.dll

#

I swear

#

stupid visual studio

#

aight hold on it might just crash instantly

floral blade
#

did not get that far

#

lol

dark wigeon
#

uh

#

you might have to google that

#

that's like dotnet stuff

floral blade
#

i have to individually allow the libs it seems

#

good user experience apple, thanks!

dark wigeon
#

sudo xattr -r -d com.apple.quarantine /path/to/files

#

apparently an issue when dotnet is included with program

floral blade
#

works!

dark wigeon
#

it will crash tho

#

later

floral blade
#

ye no classdata.tpk

dark wigeon
#

even with it

floral blade
#

oh

dark wigeon
#

ah

#

it's just super outdated in the repo

floral blade
#

oh yeah i am on the latest release (not public beta) if that helps

dark wigeon
#

so 1.5 yes

floral blade
#

yes

dark wigeon
#

good there better not be no 1.6 I didn't know about

cedar hemlock
#

1.5.77 🄓

dark wigeon
#

fixed

#

download new fsm view release

#

you can just copy the classdata out

floral blade
#

okay

#

i still get this You're missing classdata.tpk next to the executable. Please make sure it exists.

dark wigeon
#

and if you type like ls -l classdata.tpk from the terminal it shows up

floral blade
#

yes

#

apparently it dont work if i set the .command to executable & click it. but if i run from terminal it launches

dark wigeon
#

ok that makes sense

#

remember

floral blade
#

what's the arrow thingy to the right ?

dark wigeon
#

yeah that's normal

floral blade
dark wigeon
#

oh the arrow

#

that's avalonia trying to let you scroll down but it's too small

#

if it's anything ui related it's always an unfixable avalonia issue

floral blade
#

okay and i give it the Data folder or Managed?

dark wigeon
#

I think the .app folder

#

it looks for GamePath/Contents/Resources/Data

floral blade
#

but it does not allow me to select the .app

dark wigeon
#

ahhhh what

floral blade
#

i guess because its a zip ?

dark wigeon
#

bruh how am I supposed to do anything then

#

ok select Hollow Knight folder and let it crash

floral blade
#

i can select things inside it

dark wigeon
#

just select the Hollow Knight folder and let it crash

floral blade
#

okay crashed

dark wigeon
#

do you have an hkpath.txt file

floral blade
#

yep

dark wigeon
#

ok add the .app part to the end

floral blade
#

lol

#

works

#

is it possible for the folder picker to also have option to select files ? (i suspect that might solve this)

dark wigeon
#

no lol

#

I suppose I can check if on mac and switch to a file picker

#

or I can switch it to just select the Content folder inside of hollow_knight.app

floral blade
#

apparently that is also a hack

#

i had to use favs to reach that directory

dark wigeon
#

aaaaaaa

floral blade
#

the picker wont let me open the .app at all

dark wigeon
#

temporary workarounds

#

but yay tabs

#

I haven't had any issue with them yet personally

#

so should be more stable than the wpf version

#

btw we hit over 100 downloads yay 🄳 šŸŽ‰ like subscribe and comment

floral blade
#

woo hoo

#

interestingly i had to use /Users/<username>/Library/ instead of ~/Library/

#

using ~/Library/... got me this : ```
Unhandled exception. System.ArgumentNullException: Path cannot be null. (Parameter 'path')
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)

dark wigeon
#

oh that's cuz that's bash resolving the path, forgot about that

floral blade
#

ye

dark wigeon
#

@jolly oriole pls explain

jolly oriole
#

i start it and hit File -> open, to see which folder it searches in. And that shows me my 1.4.3.2 installation folder

#

ok, there are apparently differences between just open and the search for scene by name thing

#

so it may work correctly, i just can't differentiate if it really is gog 1.5 or my steam 1.5

dark wigeon
#

file -> open is the last place you opened a file from file->open

#

it's not the path it finds from file -> open scene list

jolly oriole
#

yea

#

ok, it does use the one used (though it didn't autogenerate the hkpath.txt for me)

#

now it does

primal latch
#

So I have a coroutine (IEnumerator) containing this line of code: yield return new WaitForSecondsRealtime(2);, but after waiting for 1 minute nothing happends. Without this line everything works fine.

floral blade
#

what do the lines after this do ?

primal latch
#

Set text on a Text object

jolly oriole
#

does it work without realtime?

primal latch
#

Yes

jolly oriole
#

i meant with yield return new WaitForSeconds(2);

primal latch
#

Oh. No

#

Both don’t work

#

And nothing is logged when trying to log after the wait

jolly oriole
#

does the object containing the coroutine get deleted before it can finish the coroutine?

primal latch
#

No

#

Because the placeholder text stays on screen

jolly oriole
#

afaik the only things stopping coroutines are destroying and maybe disabling gameobjects, so if either of those happens, that might be why

primal latch
#

Hm….

#

Nope. The scriptholder object is always active. But… why do I even use it? I can just attach the script to the parent

#

Nope. Still doesn’t work

jolly oriole
#

hm :/

primal latch
#

Even a delay like 0.1 doesn’t work

jolly oriole
#

that does sound like the script gets destroyed

floral blade
#

either the script or the go containing the text maybe ?

primal latch
primal latch
#

I found the issue. I disabled the object calling the coroutine.

jolly oriole
primal latch
jolly oriole
#

wait

#

how does tot work

#

nvm

#

i call the coroutine on herocontroller

void shore
#

If i want to make mods,where can i find the tutorial🧐 🧐

tulip jewel
#

probably in the pins

void shore
#

I feel sorry but what is pinsšŸ˜‚

light zodiac
#

?pins

finite forumBOT
void shore
#

Oh, thanks🄳

tulip jewel
warm fog
#

hey guys new here

#

wondering where is a good start to make a mod

void shore
#

How can i make other bosses' spell appear in this boss?For example, i want to make hive knight's roar appear in maga knight.🤨

jolly jungle
#

wdym

#

Forgive me if I'm somehow missing an obvious typo but what's maga knight

jolly oriole
#

Make america grotesque again

rough pulsar
#

AMERICAN KNIGHT

#

AA