#archived-modding-development
1 messages · Page 471 of 1
Nice!
you pogo on saws n gotta dash into really tight spaces
will there be anything like that in ToT?
dude path of pain was rediculous
If I'm making a skin for customknight but i want orbfull.png to have 2 parts, am I allowed to decompile and change CustomKnight.dll? or is there already a simpler way to do this?
yea you can change the dll
alright, thanks
yo, does anyone have a reference for the different variables and hooks that are used for modding? I can't seem to find a comprehensive guide
yep i saw that one, but it doesn't seem to be comprehensive at all
the most comprehensive guide you'll find is reading the pinned messages
alright thanks
yo, does anyone have a reference for the different variables and hooks that are used for modding? I can't seem to find a comprehensive guide
There isn't one because there's a hook for each and every method in the game's code
Asking for another Unity game, is there a way to hook the Start method on a script that doesn't implement Start, or do something equivalent
idk of any way but the monomod server might
because start isn't a real virtual method
because unity is weird
Ok, I just wanted to know if you guys had found something already
Found a workaround for what I wanted to do anyway
I wish to make a boss but have no experience in Unity...but what I've heard is that Hollow Knight's code is modular and somewhat easy to work with
@ornate rivet @fair rampart
Yea it's not too bad, especially once you get the hang of it. There's a very basic doc that describes how to setup your mod (radiance.host) but it's not very in-depth so you will need to look at other people's code and/or ask questions here.
Unity is fairly easy to figure out, most people who have made hk mods started out knowing nothing about unity.
which grass particles are those?
now that I think of it
the Isma fight you have outside Godhome would benefit quite nicely from particles
the pillar?
mebi drew that
OH
those green leaf particles?
I made those 
More progress on the shade thing
I was trying to get a mana based system going (shade has to attack you to be able to use spells) but it's not working too well so I wont do it. Maybe if I added nail arts in, it could work.
is this finally a mod without a nkg attack
don't worry, void tendrils exist in the game
fire pillar, fire bats, pillars that twist from the floor
also saleh i thought you were working on the knight of hallownest mod
I am but I needed something to get me back into modding
wouldn't that mean that every mod that replaces a boss in HoG would have to be compatible with this?
if somehow this is made and somehow they can make it easy to make it compatible and easily add bosses to that room..
maybe?
i would imagine this would be pretty difficult.
any dyndata users
monomod dyndata
lets you put fake fields on types which you access w/ it and access normal fields in the same way using it
BossModCore when
got the dream arrival texture working for customknight
Are there any other knight textures that are missing from the mod?
sure
you can just dm me
would you prefer these to be in brackets
I just want to know everyone's preference
Sean originally had them with brackets, idk if he wants it to stay that way
@rain cedar
yeah was gonna say if you could potentially just loop and destroy them there
My preference is braces always yeah
I was planning to rewrite custom knight anyway but that'll probably never happen
whoops
The idea was to have a system where you don't need to hard code every sprite sheet
Just have some json that tells you where the sprites should go
But like I've had that idea all year and haven't done shit so yeah
got shape of unn, the monarch wings cutscene, dream nail cutscene, shade cloak cutscene, beast's den, and abyss shriek cutscene
this happens when I exit to the menu for some reason tho
nice
nre
yeah definitely agree with 56 on this one
so this happens apparently when you try to change a texture at runtime
I see nothing wrong
he’s radiant
I may have to bloat customknight with preloads
I will remove your head from your body
no head to be removed
please do
do preloaded objects get yeeted out of existence when you reinitialize a mod by e.g. toggling it in the mod menu?
hmm, preloadedObjects is null in Initialize() when I disable then reenable my version of customknight
just make them static lol
a null check fixed it
🦀 hot swapping skins 🦀
that's awesome
Nice!
actual menus monkaU
I should've probably add some feedback to those buttons
screen shake easy
add a gunshot noise
lol

fade out to white transition?
honestly I was just gonna add a button bg
but ig if I wanna make it TC style there shouldn't be any background at all
wdym by fade out to white?
mm
temporarily flashbang the user
skin previews
sick
good stuff jngo
Are we going to talk about how hes in godseeker mode
no because he isn't
O my bad
last thing for tonight: grimmchild and weaverlings
okay, I quickly readded womb and added fluke spells, NOW I'm done
Do you think an icon.png could be added and displayed instead of some of the sprites? (assuming the maker of the pack provided an icon for previews)
I have pirate Hollow Knight. Can I use Skins ?
no
:/ thx
coming into the hollow knight server with the devs and gametesters and admitting that you're pirating the game 
Ooh yeah I could do an icon
can anyone direct me a lil with how I would set the rng seed for a fight?
I wanna make something where I can set the pattern for a fight if possible
I have a bit of programming experience in c/js/python so i wouldn't mind learning something
jsut uhhh not really sure where to start or if it's possible
also would there be a scrollbar or something for when there are a lot of skins?
I'm considering that
@unique flicker learning the basics of C# is the first step, also check the pins for other tools used in development
You'll probably be using the fsm viewer a lot since that shows enemy behaviors
ooh i see thanks
Hi guys, I just downloaded the SpritePacker 1.3 but I was only able to run it 1 time. Then whenever I try to open it, it just crashes immediately. I am seeing this error from the event viewer.
modding hk in 2020, cringe
sid please i beg you
i am right tho
no, you're sid
That doesn't Sid right with me
same
mmyes skrol
"Horknight"
Horny Knight
See so many people used my skin make me happy.
Are there mod on Xbox
no
@fair rampart where do I get little hornet godm?
when the P4 cutscene is made of multiple individual spriterenderers :monkaU:
what's the p4 cutscene
I got the sitting animation, hornet rescue, and birthplace cutscene
not sure if any artists would want to go through the effort of redrawing Bretta's plushes so I'mma ignore those
@young walrus which pin? its not in the custom knight sprites pack nor the white palace skins pack
that isnt there for me
do you have a screenshot of what you're looking at
you can change the view
hahgybuibp;uwehay
can't believe jesus can't change the view
very nice modding development
WHAT
just did it with no perms, and it's there
you know it's a modding channel when there's 3 11 different thinking emotes in one post
3 i snooze
why you booly
because this is not modding-help
well I saw the sprite in the post above and asked where it was because it was relevant to the image posted
I'm frequently getting the following error when loading up my game with the new custom knight mod
in module UnityPlayer.dll at 0023:576fdb13.```
71% memory in use.
0 MB physical memory [0 MB free].
0 MB paging file [0 MB free].
0 MB user address space [68 MB free].
Write to location 03ffc000 caused an access violation.```
thinking it has something to do with it taking 12 years to load the skin changing menu
I copied Sean's existing work using WWW to get the file location of each png and then got their textureNonReadables
the game seems to open fine when I leave it alone and don't alt+tab out or click my mouse
@fair rampart call gc.collect
Hello! I was wondering if anybody could tell me what to do to start developing mods for Hollow Knight. I have Unity and know how to use it but I'm not sure if there are other programs that are used.
dnSpy and an ide
Thank you!
where's the thing that checks if you already double jumped in the air?
so that you wouldn't be able to double jump again?

oh actually, both would be useful (if it's not asking for much)
gonna add a bit but theres also a method at the HeroController that resets both the airDashed and doubleJumped fields
iirc its public too
fair enough but i mean it in the case for ara if he just wanted to reset it for multiple double jumps
Thank you, much appreciated.
Added icons that are activated if you put an image of size 300x128 named "Icon.png" in a skin folder, otherwise it defaults to a cropped version of Knight.png
Should I make my fork of customknight separate from the original in the modinstaller?
fragmentation 
Is there any way to edit hollow knight in the unity editor
thank you
Out of curiosity, why does the modlinks link to the [1.4.3.6] version for PDT? I was going to add TopHatLuke's randomizer compatibility update today
or is that a version number that only coincidentally matched the game version at some past point in time, which seems like a rather strange choice
@simple python maybe?
The zip file? I think that's a game version, I haven't ever updated that part of the name 😅
The PR is for Luke's updated version
Oh, if you already updated I won't worry about it then
But the current patch is 1.4.3.2, so it struck me as weird 
lol then I have no idea
@charred crest yeah just load up the source and change whatever you want
So I'm trying to put an IL hook onto HeroController.EnterScene, but logging the ILContext doesn't seem match what I see in dnspy
etc etc
Is it an issue with the IEnumerator, or am I looking in the wrong place?
@copper nacelle
@unborn flicker ienumerators with yield are a lie
enable compiler generated classes
it's actually a state machine
wdym by compiler generated classes?
it's under options => decompiler
Right, so now I see the actual method is HeroController.<EnterScene>c__Iterator0.MoveNext
can I still place an IL hook on it?
oh great, I'll try that
I think it worked
The reason why I think it worked is that I walked into a transition and it infinite loaded going back and forth instantly between the two scenes
both
shroedingers knight
removing the .165s wait seems to work fine
removing any of the .25, .33, or .4 second waits breaks transitions
but could probably be fixed if someone wrote something to change how the transition works
enter scene is called after load
public override void Initialize()
{
instance = this;
Type T = typeof(HeroController).GetNestedTypes(BindingFlags.NonPublic | BindingFlags.Instance).First(t => t.Name == "<EnterScene>c__Iterator0");
MethodBase M = T.GetMethod("MoveNext", BindingFlags.Instance | BindingFlags.Public);
new ILHook(M, HeroController_EnterScene);
}
private void HeroController_EnterScene(MonoMod.Cil.ILContext il)
{
ILCursor c = new ILCursor(il).Goto(0);
while (c.TryGotoNext(
i => i.OpCode == OpCodes.Ldc_R4,
i => i.OpCode == OpCodes.Newobj && i.MatchNewobj<WaitForSeconds>()
))
{
if ((float)c.Instrs[c.Index].Operand == .165f)
{
c.Remove();
c.Emit(OpCodes.Ldc_R4, 0f);
c.Index += 2;
}
}
}

il hooks are chad af my guy
insert stuff in the middle of methods and modify method params
wtf
relatable
fwiw on the GetMethod where it's instance and public those are default
so you can just omit the flags
oh yeah, I thought it was private originally so I left it in
i think that wait fucks w/ the blanker on interaction doors
it's absurd how much faster loads feel with this
what doors have you tested? I don't have any issues in Dirtmouth
although I ended up setting the last one back to .25/.33
real preload hours
By the way I went ahead and split it off from LoadNormalizer into a repository here: https://github.com/homothetyhk/HollowKnight.FasterTransitions
lol
1 frame really isn't enough
unlucky
dirtmouth well is literally instant though
dirtmouth well doesn't spawn you in the transition
ah
that's the main difference
if you had an offset for every transition you could drop it to 0 probably
the only wait that matters is the one after it sets the hero state to entering
that's the .25/.33 one for ch/no ch that I didn't change
wow
i have some other transition stuff already in qol fwiw
you can set entryDelay to 0 and decrease fade time
it's in skip cutscenes
oh yeah
I'd think only special stuff like dream sequences uses entry delay, right?
But yeah, if you want to add faster transitions as one of the submods of qol that'd be great. I'm fine releasing it bundled, or by itself on the installer, either way
I'd be down if you're cool with it
oh yeah do you want nohardsaves off by default
i remember you saying something about that
Yeah, the only hard save that still exists and people care about in rando is the one after KP
But it's nice to have on for quitting out after fury
@jolly oriole hey, sorry about the ping but i need some help with the code you sent me before for the infinite double jump and air dash:
var hero = HeroController.instance;
ReflectionExtensions.SetAttr<HeroController, int>(hero, "doubleJump_steps", 0);
ReflectionExtensions.SetAttr<HeroController, float>(hero, "dash_timer", 0.0f);
ReflectionExtensions.SetAttr<HeroController, bool>(hero, "airDashed", false);
ReflectionExtensions.SetAttr<HeroController, bool>(hero, "doubleJumped", false);
Can't seem to get it to work. No errors or anything like that, it's just not doing anything in the game. Tried some stuff like looping it but I couldn't get it to work.
where does this run in your code?
can't seem to be able to insert ResetAirMoves()..
does this seem decent
SKIP is { .165f, .4f }?
yeah
I think that should work then
it'll feel a little different for movement because you'll stop early entering in rooms
but I don't know that that's necessarily a bad thing
yeah cycles might be a bit different
why won't you work
what am i doing wrong
well for one it's not a static method
instance method
that is not what we referred to
hero.ResetAirMoves moment
i have found a problematic load
crossroads_07 -> crossroads_33
set it back to .33/.25
.2 might be a bit too low
and it isn't black screen time anyways
hold on i just fixed an error that wouldn't let me build so let me try now
no unfortunately
Do I just add that under the other lines of code?
still not working for me
I just threw it in the middle of a charm mod
fast 
is it worth keeping the fast one
I think it's nicer enough but it's like .225 for both?
I wouldn't expect the fast one to make any difference, unless it moves you at a different speed while it's still "entering"
I think the timer just affects when you get control
yeah with .225 and the cornifer room you can hold right and not hit the platform
dunno if that's a good thing
Also, @nimble lake you should put that code in a ModHooks.Instance.HeroUpdateHook if you want it to have any effect
Right now it's just giving double jump/dash when you equip a charm for the first time, probably
Yeah, I'd just leave the entering timers as vanilla 56. I don't see much benefit to changing them

Where can I find modhooks?
in Modding
multiplayer 2: electric boogaloo
multiplayer as in, 2 keyboards or internet
Internet
i also enjoy the green video
ok discord
anyways
https://streamable.com/e66334
v nice
yea that's really cool
that looks interesting
I have no idea why there's another knight stacked
once we were joking about hollow knight multiplayer mod
but here we are
no.
where were you wen hk multiplayer die
i was at house eating dorito when phone ring
‘hk multiplayer is kil’
‘no’```
😔
nice attempt at humor
woah
wow
How do you deal with exported shaders in the editor for custom levels? Do you have a way to export them?
Actually, how are custom areas done in general
Thanks, this’ll help a lot
I have no idea why my client is disconnecting on scene changes 
cannot get health value from memory address c++
in hollow knight
it works with other games
the health should be a static address tho
not for me
what did you use
for the memory address
994AE0E4
do you have an actual pointer path or
bruh
you need to get the path from program to gamemanger to playerdata to health
i think unless i am missing something there
actually you don't need gm
yeah because you're using an offset instead of a path
offset isn't going to be consistent at all
you mean an address
and if you're not using win32 calls it's probably ub too
if it's just an address with no ref to the exe that's just not going to work period after reopening the game
well hk isn't just a simple program that you can just use a single offset
it one health varible
i just want the current health
what
right now there are 4 address that contain the current health
i just the value of it
my program get the value of any other game but hollow knight'
it goes negative 900 millon
sometimes 2 billion
the output i get is 2081995776
that is not a valid address
the output
r
WHAT
time to mute 56 again
so this no help at all
^ you can also look at livesplit to see how they read it
you don't even need to find them since livesplit has the value you are looking for
so you're telling me to learn another language
no
@leaden hedge can i put darkness on github
i added/changed some stuff for the toggling meme
does show hitboxes on 1432 have a toggle
idts
😔
you can put darkness on github
only reason I didn't is it's like 5lines like sanic mod
not anymore 😤
you know if you posted your code it'd be a lot easier to help
well i have to commit to github
do you know how to turn the string "0x93FE40E4" into a DWORD
this is for getting arguments in the command prompt
what
i watch a tutorial and he used dword
dword works
DWORD memoryAddress = strtol("0x93FE40E4", 0, 0);
this does not work
it going to be DWORD memoryAddress = strtol(argv[2], 0, 0);
those are not the right args
it takes a cstr
so it needs a length
if you're just hardcoding an address you can just assign it directly though
DWORD memoryAddress = 0x93FE40E4ULL
i not hard coding it
for arguments in the command prompt
so dont have to recompile everytime
help 
testing that
aa
no
argv[2] is a char*
it doesn't accept anything that is not 0
do u want the code
yeah
how do you what it
oh
i got it
just declare a char* before the strol
and then pass the ptr to that
give an example
int main(int argc, char** argv)
{
char* next_char;
DWORD addr = strol(argv[2], &next_char, 10);
// ...
}
do i have to include 0x
holy fuck, finally
what would happen if dreamnail it
the answer was once again simple, just add a DontDestroyOnLoad
you want the last arg as 16 actually
and not strol
strol(argv[2], &next_char, 10);
yeah
guess what
One second me and the boys are joking about a possible online mode and yet here we are
it didn't work
did it not parse
no
it parses if its hardcoded
i am going to have breakdown
1364943872
that the output
common sense tells me that dont have 1364943872 health
DWORD addr = strtol("93FE40E4", &next_char, 16);
DWORD addre = 0x93FE40E4;
those are not =
addr = 2147483647
addre = 2482913508
strtoul
it works
its better original plan using opencv python to get the health
and in the photo you're using strol
time to do pain of path but everytime i take damage i get shocked
thank you very much
Are the memory addresses documented or do memory scan it myself?
dunno why you'd memory scan
just use something like PDT
and output it from the game with sockets
PDT?
Thanks! Yeah alright, I was just curious if the addresses were documented.
Hk's livesplit components has some offsets documented
Oh alright, thanks 56
pls elaborate
damn who's that 3rd dude
56, jngo, and I
where do i get this
it's under development
imagine making it work with custom knight for each player
How would it work in the pantheons? 
You can race with others, you can't damage other players' enemies
Ah thats cool
So is it like GhostMod for Celeste but a lot more complicated
I probably can't understand any of it but it looks complicated and hard so
where?
this excites me
heard multiplayer and came as fast as I can
take that out of context
HOLY omg

megamind
How do unlocked abilities work?
Does it like, take them from the save file of the host and gives them to each player?
everyone's on their own in their own world
let's do a WP race with multiplayer mod
how does it work with room cycles and mobs, are they client side or whoever loads the room first
client side
unlucky, so you cant all do eternal ordeal
yeah I'm not sending an entire world over to all the clients
Do I need to turn off other mods or something for this?
it's recommended
so basically turn off any saleh mod
wait that dll is broken
oh god imagine eternal ordeal if mobs were shared
50 knights vs infinite zotes
that would actually be the best thing ever
jngo please make p5/trial of fools/eternal ordeal enemies shared
working version
ok
now what?
someone needs to host with hamachi
I'll host since I have the server dll
i remember hamachi
yeah sure you just want my personal info
if you want in on this, dm me
i would put actual money on zaliant winning
cant believe competitive pvp is finally becoming a thing
see you guys in ESL at 2021
can't wait for the 1st esport hollow knight tournament
hk in the olympics
HK is a real sport, you know?
Greetings Genltmen, is there anyone know who is jngo102?
The search function presents three users with no special tags.
hello
Greetings from the twp, I've heard you from the Administrator
ok
Please excuse me from my attempt of creating a conversation environment with more......privacy I assume.
bro what
i must get in on this
no
elderbug bout to lose it
Greetings, 56
I’ve also heard about you while having a conversation with the Administrator
who
The Administrator........
I must play this even if it means going out of quarantine
Please allow me to verify my information
Emmmm
The user with the surname “Benji”
0790
cool
banjo 
🪕
So......I was planning to send some messages to inform you something, which is prohibited by your “do not disrupt” circumstances(according to my memory a while ago)
communicate with him here
Form my personal perspective, this very moment will be a good chance for me.
👀
My apologize, such an action is unacceptable according to my personal standard.....
what
User "56" #1363 please check your.......private communication channel?
do you want me to enable dms or
(I am not quite sure about its nickname)
Done.
It's a lot of contexts.....selective reading is expected.
user "end underscore 2^11 (Communicator)" have you tried communicating like a human
My lack of knowledge to the popular culture in this community is the main cause of the current circumstances.
Are you using google translate to talk
Depends on your perspective
Are you a native english speaker
May you be so kind to show me your relative evidences of such a hypothesis?
No, unfortunately
You sound like a sentient thesaurus and the jury is still out whether that's the fault of google translate
"May you be so kind to show me your relative evidences of such a hypothesis?"
My favorite sentence I've read today
But judging by them, I am the best possible comminutor they got
You may ask a twp member you met for a request of a replacement.
I will ask the Washington post that
您是否正在使用Google翻译与我们交谈?
Hi Wood
But judging by them, I am the best possible comminutor they got
well,that's true
wood can you please give any amount of context
In language that is within your understanding or far beyond your understanding?
far beyond please
end_2048 is the spokesperson for The White Palace, which is a mostly Chinese-speaking group of artists that make custom knight skins.
so is it google translate
any proof cammie?
maybe they just took a really good english class
chief i'm not trying to be an ass but
a communicator should probably be able to actually communicate well
is about to ass
why are you eldercing me i'm right
well yes but actually no
modding is still toxic to pepo
society do be like this
even when pepo is expected
what

If it is language inteference, I apologize end
serotype is not remotely correct
No need for this my colleague
they don't speak english, so ofc the syntax is going to be weird
did you mean stereotypical
And it is not an interference.
You are using very formal language likely because you aren't a native english speaker; I don't think they teach internet speech in english classes
its not even formal
it's okay to say you're using some kind of translation program
its just unnatural
^
Katie English isn't their first language
Just give them some slack
Who knows what teaching program they used
What happened???
we're having communication issues
Your ambassador is speaking very verbosely which confused a lot of people
Hypothetical correct based on my instinctual analyzation
You are using very formal language likely because you aren't a native english speaker; I don't think they teach internet speech in english classes

bruh just say yes
yes.
I'm trying to catch up
i dunno why people have a problem,
its not that bad, besides unnatural word selection and some weird dictionary forms of words instead of the grammatically correct one
I didn't prepare well for a general conversation........under most circumstances.....but I will rearrange and script a proper speech for a public announcement, if ever needed
Oh I see, infact he always talk to us like that, even in Chinese
I'm sorry for the weird atmosphere, he is kind of shy and sensitive, maybe he was afraid of not behaving appropriately?
No I am not shy
OK
no, it's fine
I loved reading this 😁
oh god they do french too
It's not that uncommon for people to mix in other languages like that
that's fine, don't sweat it
I think I must learn English well😫
No I am not shy
@raw sierra you aren‘t shy but nervous
Shall we back to modding-development now...
I'm so excited about the mutiplayer mod, is there any user guide about it?
If you desire a translated version, just send me a copy.....
I wanna work on the mod more before making a guide on it
got it
@rain cedar Do you mind if I replace the current customknight with mine once it's finished?
Go for it
alright thanks
wee haha
Can they hit each other with nails?
not yet
hk pvp confirmed
did gamer got hit as well?
yes, you can see so
it's toggleable by the host
How laggy is that lol
it runs better than I expected but it's definitely not production ready
oh my
LittleGhostNet
That's actually a big brain name
ShadeNet
bruh dont bother graig is just gonna go full tri lifeblood charms + thorns then hell just face tank you to death /s
Max lifeblood Fury spam
spell build sounds more op tbh
fill up ur soul beforehand
get the gank squad out
Someone needs to host the server
Would you like me to host?
also you need hamachi
no punchthrough 
So does the server create an instance of the entire world?
nope
nope, only an instance of the player
jngo is the server you sent in the fk discord the latest version?
no
can you send the latest one?
did you just say it needs Hamachi? 😨
yea
war flashbacks
oh I meant the server file
oh
thats probably why its so laggy lol
can't you ask angle if you can use their server for udp punchthrough
@compact sedge
i assume you're not doing hole punching because it requires a server to matchmake
multiplayer preloads 
Depends on what you write the matchmaker in. The server only has 2 GB of ram total and it’s in France so don’t use it as a bridge, only as a discovery point for clients. If they use upnp tho it should be good
@ornate rivet
@fair rampart
"only" 2GB lol
my networking knowledge is garbage
I just adapted this tutorial series to work with HK
https://www.youtube.com/watch?v=uh8XaC0Y5MA
In this first part of my C# networking tutorial series, we set up a TCP connection between a dedicated server and a Unity client.
If you get stuck or have questions, ask them on my Discord server: https://tomweiland.net/discord
Kevin Kaymak's channel: https://www.youtube.com/...
so no unet
that simplifies things a lot
so the server has no content from hollow knight at all ?
it does, the server still uses the modding api
i mean it should be pretty similar, but instead of using hamachi
the server connects to the matchmaker and never close that connection so you get a port and address open temporarily
then the client does the same,
then server and client can connect directly by asking the matchmaker for the ips and ports of other clients
Do I write the matchmaker myself or does Angle need to do that for his server?
any tutorials on how to get started with that? I'd guess that it'd need to written in something more performant like C++
alright
I'd guess that it'd need to written in something more performant like C++
you mean than c# ?
C# is fine even for full servers
why
ignore him, he's just someone who posts random stupid shit
and will probably get banned in a moment for ban evasion
.done
Hamachi is a word I haven't seen in like 20 years. We used to use that to play Street Fighter over emulation in like 2002
playing street fighter over ADSL1 over hamachi with like 300ms ping. ahh good times.
i remember playing minecraft with friends using hamachi
How do you make mods? I would like to try and get started
vb 😬
pls Senpais how to debug mods with visual studio or with rider, it doesn't matter 🙏
I have a build that outputs a mod and its .pdb into the /managed/mods game directory, and the game loads this mod, 100%.
But for some reason neither VS nor Rider can't hit a breakpoint. VS, for example, says that pdb not found even though it's right there near the mod dll. And there is no my dll in "Modules" after attaching to a running HK exe
Kinda
Works unless you use any mod at all which uses any sort of On/IL hook
which is like all of them
Ah so it's useless
Yeah
You can use the pdb for line numbers if:
- you convert it to an mdb
- you change your hk build to debug by getting the debug unity player by downloading unity
kind of effort
Ooff. I'm like a total .net baby
relatable
So the fact that I can't step-debug is normal, right?
yeah
Thanks God, I was thinking that I'm being a total pepo
Ok, will try to get the most of the object explorer or how tf this thing is called then. And my favorite printf debugging 🙂
I have a tiny thing which might make debugging easier
Didn't end up using it but I made it for better printf debugs like rust's dbg! macro
Oh, pog
this meme
Looks cool
also lowkey reminds me of python-hunter: https://github.com/ionelmc/python-hunter
although that one is an uber-tracing-machine
that looks cool
Yeah, I use it all the time
note: it reads the file to get the line
because c# does not have macros
but there's an attribute for line number and file location so i abuse it
nice
i just realized the whole thing is internal
suboptimal
the idea was set these so you could use it wherever instead of stdout
I need a debugger mostly to learn how the code works step by step to get myself more familiar with a codebase, but this should be helpful as well. Do I just add a reference to that and I good to go, right?
yeah
put it in mods
so it actually gets loaded
set the properties
and then vibe
iS iT sAfE?
I only use Windows to launch games so I don't care 

Although now I installed all my gpg crap to sign commits on windows so pls don't virus me senpai 
A m a z i n g
How far along is the multiplayer mod @fair rampart? It sounds amazing
what is dbg.dll?
It's in the very early stages of development and is full of dangerous bugs @fervent rampart
You cannot escape 56
not even in the main menu are you safe from it
👍
Aight cool @fair rampart
shenanigans
how is he even doing that?
I thought I had it deactivate on the animation "NA Cyclone End" but guess not
get a lag switch so it drops the frames where you'd end cyclone and then run after people
anyways, I got all the slashes, spells, and nail arts done
b
ss m
ds
mmm thats a yes
dont worry im not saleh
6*
youll see
coming soon™️
depends
if i finally give and ask someone for help then before
if not then after
if im not dead by that point it will be made
Lmao

I cant believe Zal is doing this when he hasn't even finished five knights music 
i thought that was 5 knights music
What a noob
na it's for Grenade's mod
Ah
i wonder what's supposed to be in the end.
too lazy to wrap to beginning even tho 2 clicks

why might this be happening and making scene loads get stuck?
at SceneLoad+<BeginRoutine>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 ```
Hm
the full output log
it happens when I load up a save, change scenes, exit the game, open the game, then load the save again
yeah idk why it's fetching an empty string
check whatever the bench scene is set to
with dnspy or?
just hook save game load and check the field
or decrypt the save with qol or something
probably
To some degree yeah
Obviously it's not gonna get sharper than the actual resolution of the art
alright, so the issue is that respawnScene becomes empty whenever I bench somewhere other than the one I start the save at
I have no idea why that's happening
It depends
cant you just set the resolution and see

okay, for now I'm just manually setting the respawnScene and respawnMarkerName to the current scene's
this will probably break for hard saves
do you hook setstring or anything
because I grepped it and there's nothing actually setting respawn scene in the client
no
@celest eagle I have a 1440p monitor and the game is noticeably crisper than 1080p
what happens is if multiple players share the same active scene then instances of the players get spawned on the client side
the PlayerData charm bools get sent in the same packet
I can't see anything obvious
One thing to note is that if you throw in activeSceneChanged
Other hooks won't run
for some reason
So if tc had any and you threw that could be something
¯_(ツ)_/¯
throw as in a try/catch?
throw as in throw without a try catch
ah
yeah I'm not doing any of that anywhere
hol up
there's a throw in an if else in the tutorial I followed
that's only in the packet reading method though and the scene change hook only sends packets, so
MEBI asks if anyone wants to do a phase 2 for massive moss charger, he wants to make new animations for it.
He asked me too and I denied lol
you might have luck with sid, if hes in the mood
Is there anything else I should do besides replace CustomKnight.zip on the drive and update the dll sha1sum on modlinks.xml to update CustomKnight?
@safe hamlet
cannot believe he would ignore the second message
I am doing both
drive has a confirmation for files >25
so you need to host custom knight somewhere else
sid put it on dying is fun / owo.pomf or whatever
yeah I saw that link in the xml too
github releases should also work fine though if that's easier
commiting binaries 🤢 🤢 🤢 🤢 🤢 🤢 🤢 🤢 🤢 🤢
what'd I do wrong this time
no i was 🤢 ing grenade
should I know the fundamentals of C# before attempting to make mods
yeah
Or just be like me and bullshit your way aroud 4Head
How can I change the original sprites for hollow knight?
there's customknight
Doesn’t that only let you change what your knight looks like?
Bc what I want to do is remake all of the sprites in MS Paint
write a shader to do it
Yes... that
Would I do it though unity?
this is why, if y'all are curious, I host my own site for my mod downloads
no we aren't 
--`
Sorry cat stepped on my keyboard
But does the coop mod share enemies, or is it more like celeste ghostmod
latter
Oh, so you can't interact with the others/their enemies?
there was some like slashes going to other people stuff and those could hit their enemies
Wow! That's really cool! So you could, say, co-op bosses by having the occasion p2 slash hit the boss?
It would be really cool if enemies could share health but not location, so both players could fight the boss on their own, but are also helping the other in doing so
Would that be realistic?
You might be onto something
Yeah? Glad to help, then! Though, if that's the case, a bit of health scaling might need to be implemented too
Hello does anyone have like base code that I could use? Like for the game
hollow_knight_Data/Managed/Assembly-CSharp.dll
Oh, so it's not like a document with the base code
Ummm about that, I dont have it on steam
GoG?
Wherever you have it the file structure is the same
Charm system is an fsm
There's an fsm viewer but it's not gonna work if you don't have the game on pc
Why do you want to see?
I'm working on like an original game and I wanted to implement a charm system like hollow knights since it works so well, so I wanted to see like how I would go about coding it
you probably dont want to copy their code lol
they dont even use code for most of the charm ui technically. They use playmaker fsm which is more like drag and drop coding.
do you have ori and the will of the wisps 
No, I don't have a computer



