#archived-modding-development
1 messages ยท Page 197 of 1
inorite
I'm assuming it's false
otherwise it makes no sense
anyway
I'll try this for now
and this'll prolly get stuck
yes it will
yeah that's good
it will get stuck but it is also almost good
ye
I can only hope that there's enough of a gap between setting the rgb2d velocity and getting it
have u tried
no there's 0 gap
yield return null
also consider while (speed > 0f)
I don't really get what yield return null does
it waits a frame and resumes the function right after
put it between setting the velocity and getting the new speed value imo
while(speed > 0f)
{
velocity = thingy
yield return null;
speed = hc.velocity.y
}
ye
coding irl
probably
probably
probably
assuming your y velocity decreases every frame
which since you set gravity to zero idk if it will
until you hit a wall tbh
yes
ahhh
https://puu.sh/BrZOl/22caaed573.mp4 close enough
ayy it works
I will, I will
wait if you rotate the hero could you just use normal cdash
no, you cannot
darn
I've been trying that for a few months
on and off
mostly
basically, this
and this
prevent you
I'd have to override both of these states
i just want randomizer, and enemy randomizer back, thoose are the two things that i found VERY fun. (sorry that was super off topic)
and only when up/down dashing
yeah that's what i was asking about
would x move you up when you're sideways
or is it not relative
ahh
@floral furnace here's your recursion btw
i will do that yeah
i just downloaded some l4d mod that incorporates the insurgency sound files then extracted the vpk
yes
anyway if you commit the sound files in wav and name em whatever I'll add them for you
just add em to the assets folder
yeah im gonna do some testing first
56: simply rotating the rb2d https://puu.sh/Bs014/66e612304a.mp4
yeah that is alot cleaner looking
technically the old one is too long to paste in discord i think
what if instead you rotate the sprite and keep the rb2d the same
yeah it is
you mean the transform?
"Controlled by the worms"
same
should i make it so it also takes an array as the first param and then make that thing use an array which can be right, left, or both
or maybe bitwise
also i wouldnt know but rotating the sprite shouldnt' do some streching right oh wait nvm thats replacing the sprite that causes thes stretching
oh and angle apparently the vpk included the bolt pull/cocking sounds etc, wouldnt be too hard to create an audioprofile class or something huh?
no
if you need that
maybe you wanna add various sound effects to the ammunition struct
yeah thatll be better, also 10 mb worth of audio files ech
oh wait most of these are 50kb, probably 5 mb less at whole
disabling dshield?
just triggering dshield at all
can i just put it at the beginning
it'll be like a tiny bit earlier aka no one cares
oh i forgot dshield disables on hit not on slash
wtf i swear there was an if i wanted to invert
but i can't find it

oh ok
found it
nice
I do except when it's like a bunch of ifs in a row and you can only invert the last one and then it looks dumb
yes
btw aa what does the wav file need to be embedded?
just name it whatever and edit your csproj file
and copy paste the line embedding the first wav file and change the file name to be the second wav file, etc
or add it in gui idk how to add anything in the VS gui tho so I can't help you there
rimworld is a good game
i bought it before it released on steam
i still get drm-free emails
nice, i still miss the complexity of dwarf fortress tho
but df's optimization is what kills it to me
yes it is
I made the mistake with terraria of playing it before they added the vast majority of the content and I burned myself out after only 99 hours.
yeah terraria got a ton of stuff added
meanwhile y'all have like 1000 hours + on that game
its supposed to come out of ea this new update but the dev thought it wasnt polished enough so it became 1.9 beta instead
gog version so no hour count 
but I have no interest in going back because I did everything (on an older version)
rimworld has some sick mods too iirc
thats good
my fav is combat extended tbh
it removes most of the rng and everyone dies from 2 hits to the chest atleast
neat
also adds actual balistic vs vanilla "heres your percent chance to hit them now go fuck yourself"
(altho KSP got a 3rd party modding api that makes it even better but it probably wouldn't have much of a modding scene, maybe a HK sized one, if it hadn't supported actual assembly mods from day 1)
yes it works, also goddamn i love how crisp the sounds are
also why shouldtnt KSP get a larger modding scene?
also aa and gradow whats the software you do that records footage?
probably obs
KSP gets a larger modding scene beccause it has first party mod api support
I use simple screen recorder
and obs for recording footage for my cutscenes
i see thx
i could move all of this into the other stuff
with more t e r n a r y
not abusing ternary at all
oh wait i could just not be dumb
Is it lightbringer that makes gruz mother stupidly hard?
I died to gruz mother 
You can't get sly or salubra until late game?
you can
you can go around
Basically, yup
through the lake
youre just gonna need another route
mid-game by going the lake route
see this is why you install the charm notch mod /s
what if i made this whole method ternary
terrible idea but like i could do it
i just merge these
and then keep merging
btw for each will check whatever file by order right?
?
Why the fuck do I have to wait til midnight game lol
Casually disables lightbringer, kills gruz, and turns lightbringer back on
56's ultimate goal is to rewrite lightbringer so 753 cannot understand it
no uhh the audio i mean i dont even know ternary's are
cuz salubra charms are wicked sick
the overloading looks really nice
ye
also ttacco
ternary is
no u
object h = useX ? x : y;
equivalent to
object x;
if (useX)
h = x;
else
h = y;
oh wait i think you already told me this
just forgot what its called
or wait was that the lambda operator 
yes
now my trick to kill off elegy's code section is just setting the float beforehand
so instead of 1f
it'll be a var
ez
gdi the recoil will be different
so uhh you dont need to declare 1f anymore or something
also i swear if this throws a fucking exception without unity telling me i will be.. dissapointed
output_log usually tells you
i've only had it not tell me that one time in bindings mod
which was severe what the fuck
nice /s
wtf elegy has a different posY
why
ree
@buoyant obsidian why is elegy like
.1f higher up
to stop it from hitting ground
oh
agony
wow another thing to move to a var 
hopefully by the end of this i'll have made it more instead of less readable
wow resharper doesn't suggest you invert ifs inside a switch
smh
possibly a setting
it'll probably tell you that if you put something valid in the return
but it returns void
why is it lines over the return tho
cause it does the same thing as the else
usually it does it to both
which is why i'm questioning my sanity
weird yeah well the else doesn't need to be there
ok good
still sane
@compact sedge also btw have you checked the pin in sr-offtopic

wow so rude
niiice
uhhh
but why
why not
nice the sound is all working now aa, judge them as you please or something
finna ternary
u see
fuck it's a float sometimes too
is this loss
i guess i could pass it as an array of 1 float
~~stop using ternaries then
~~
i'm trying to decrease loc
thank
this method is like 1/3rd of the lightbringer file
then just put everything on a single line
int x = 0; if(x > 0){ do action here }; etc etc
having several lines is benificial in the way that it deters people from copying your code, see free cheap security
soon lightbringer will be 1 line of code
e z
the worst your write your code the less its prone to copying, easier yet just use any getaction methods and itll make your code look ugly in no time
nice
actually kill me
if i remove all the comments it'll go back to normal
technically
god this is terrible
help me
i have made a mistake
i shouldn't have listened
couldnt you just, undo
wait is this technically my fault
yes
yeah but if didnt suggest the dumb joke on the first place then you wouldnt have done it in the first place
ughhhhhhh
kill me
again sorry for the 3rd time
no me
i was being dumb
if i just remove all the comments this'll technically work

very tempted to change comments and then just auto-format
wouldn't even be a bad idea
753 stop commenting your code smh
muh comments
i'm just doing // to /* */
YUCK
@copper nacelle I can't see sr offtopic
you need the speedrunner role for that but not for the other categories
did you see the context
did you see the context
he asks about a private channel

why did i comment these hooks
pain
@floral furnace did you know vim has a shortcut for doing that tho
you can merge a bunch of lines into on by spamming j + shift
wdym merge
like if you have
zzzz
eeee
rrrr
ffff
and you go onto the 1st line and hit shift + j 3 times
zzzzeeeerrrrffff
which works cause semicolons
oh ok so in terms of coding... why would anyone actually put everything in a single line thats like, putting the bracket at the same line the condition is
cough awa cough
also real shit does changing sprites on the go the cause of the lag?
you mentioned something like a 2-3 second lag
changing them won't create any more lag than draw calls
which is literally negligible considering they're just sprites
aight i just wanted to check if its possible to change the sprite on the go while moving
but if its swapping weapons means youre gonna freeze for like a few seconds, then thats a big no no
are you trying to make me blind
is this vim
:(
jesus tapdancing christ even redwing doesn't have like half this many hooks

something like this will stretch right?
because the size of the knights sprite render box is smaller or something
no it'd get cut off
ooh
unless you're changing individual sprite definitions
and how hard would that be
idk
ask sean
ok to fix the fucked up formatting that's still there i can just git diff

why am i alive
i did git add
i could've reverted somehow probably
eeeee
okay since im stupid, just to get this straight, swapping between this
and this
shouldnt lag too much?
shouldn't lag at all
or am i wrong
not at all
yes
the thing i was saying lags is loading like 20mb of sprite files in from disk
ohhh i see
or looping through all the pixels and changing them like invert knight does
you mean 2GB of music
i was worried about that happening WHILE swapping in real time
๐ ฑapers
oh I know what you wanna do ttacco
you want to make a gameobject that's a child to the knight
@buoyant obsidian https://github.com/5FiftySix6/HollowKnight.InvertKnight/blob/master/InvertKnight/Inverter.cs
and that GO has a spriterenderer
and it would be dumb and not work well
cause textures are readonly
push whatever gun sprites you wanna use as .png and I'll hook you up with the code tomorrow morning. @floral furnace
rn me needs sleep tho
you can't just sprite replace it with an inverted one?
im not even fully doing the sprites yet because im just testing waters if it would work or not right now
maybe i can bribe my sisters to do some sprites for me /s
i can but that's not as cool as changing them using code
ah
shaders are fun
I made some really stupid shaders

i was supposed to make some dumb lore about a legendary gun called the HK-74 (credits to pkt) that can use several ammo types, which is just an excuse for me to use one sprite if cant swap between weapon sprites on teh go
HK-753 imo
everytime i see 50 checkmarks i want to buy nitro but like money
i have a good bit of thinking emotes w/out nitro
and then there's stuff like 

wtf

how i do not have a normal thonk
where are you getting these



eww



Reminder to sell your souls to Bill Gates to stop using any OS other than Windows and be showered with forced updates ๐
:herat
no u
he rat
tactical typo
tDogRat
no windows 10 pls
Yes windows 10, and they have free spyware 



well i shrunk attack
but the other methods and adding an enum and stuff were a good bit of lines
where's the 56 Discord Nitro fund
haha yes
alright I'm raising money for the 56 Discord Nitro Charity
send me money on paypal, 10% of proceeds go into getting 56 Discord Nitro
woops missed a 0 there
lmao just get the 2 months free lmao
2 months free?
ah

there are actually 10 months in a year change my mind
*business months
moths
*actual months

uhhh what is this preview message
discord pls
omg I know why
nice I corrupted my cache
haha
yes
How did you corrupt a software cache?
easilly actually
I bought this sweet-ass USB harddrive reader
and it's really cool for 2 reasons:
-
usb 3 (and I benchmarked it and got pretty amazing speeds)
-
It holds up to two sata drives. And I can just plug and play them. So it's not like it's a complex shell I have to open up with screw drivers to access the drives.
and basically how it works for me is I have /home optionally mounted to the usb drive
but when it's not there I have an alternative simpler and smaller /home
but when I plug it in and click mount it mounts to /home and the discord cache is in /home and it overrides some of the cache files.
nice
make .cache a symlink to /tmp
ez
actually there's a user specific tmp right?
it's like
/run/1011/ or something
ech no it has my mesa GPU cache. what I might do it store cache on my internal storage and symlink to that
god no I don't wanna have to reprocess textures every time I reboot
that'd make games load a lot slower the first time
these home folders are what I'm currently storing on the smaller internal storage.
also just to make you wanna kys. I know if I'm loaded on the external SSD because of this glorious desktop background
hold on let me do kde's invert thing real quick
real shit how are your eyes not burning
he has white theme everything else too
except discord
if discord had non-shit font colors in white theme i bet it'd be white theme too
better
ok uninverted because inverted discord is gross
but actually
inverted discord > light theme discord
notice how text is actually sorta readable
I mean burnt coffee background kinda sucks
is this u
but at least I can see
yeah it's readable
also is that supposed to be inverted
cause it's just normal discord
wait fuck
I just realized I inverted it but
it wasn't appearing inverted in my screenshot program
so I reinverted it in krita
and then I realized it's because it got inverted twice
here it is
wtf that's 100x more readable than light theme
I wish I could ping discord staff anywhere about this
because they deserve a goddamn ping rn
like how do you fuck up this badly
literally just set text color black
tbh I don't know how
I mean
I know how
with the dev tools
but idk how to keep it
discord injections 
i literally only use the css and one plugin
still 10/10 worth it
unlike bd it doesn't totally break on updates too
you just reinject
tbh I should just use an alternative client for discord or something
and somehow it usually doesn't die on updates
I heard there was a terminal one
oh rip
i don't remember why but i remember even trying the ncurses port and hating it
I uh... found this ugly monster
closed source. has linux DL but appimage and tbh I have 0 reason to trust this website
sounds good
maybe it was just my terminal or something
cause there are no issues on it
to be tbh I need to stop using qterminal because qterminal is broken with ncurses
i haven't even heard of qterminal
it's the lxqt terminal emulator
o

really I just want a simple ass terminal emulator that doesn't look ugly
probably like a million of those but dunno what to use
well I like the idea of a suckless terminal
the only thing w/ st is that you have to recompile to change options but you compile everything anyway
i use termite
urxvt was good too
that's odd since st has no useflags
oh I see
I have to edit a config file
this is awesome and just what I needed thanks 56

except I can't seem to figure out how to change the color of the grey bar
ok did it
nice
ยฏ_(ใ)_/ยฏ
yeah that's normal
I think st is hardcoded tho with the config file font size
luckily I have a good font size, but unfortunately it's not a size that records well on video
f
Yo dumb question just to know
any updates on getting randomizer to run with current?
@woeful vault You have to wait for it t o be updated for Godmaster or downpatch to Lifeblood using the guide on the hollow knight speedrun.com page
damnit, yeah figured, was just hoping a miracle had happened in it getting updated
Which fonts are used in game?
Trajan and perpetua
I mean arial is also packaged with the game
Idk if it's used
And there's two trajan fonts
So there's 4
You can just do Resources.FindObjectsOfTypeAll<Font>()
It will be hard
Uhh... no?
Good thing the proper unity version is packaged with the game then
Otherwise it wouldn't run
The more you know
More you can
(I'm bad in datamining)
public override void Initialize()
{
foreach (Font f in Resources.FindObjectsOfTypeAll<Font>())
{
Log(f.name);
}
}```
No never
Technically those words are banned on this channel, but I'll let you go with just a warning
you are banned
No u
what is the "hell" mod exactly?
it seems like it wouuld make the game hell but im still asking lol
makes spells better
uh thaat makes alot of sense not really
Guys, some russian teenagers wanna try to make a mod...) Is it possible task for them. Could you describe, shortly, what is needed for minimal changes?
))
I can make traslations for your mod (since I was that guy who gave link to this server)
I think they will need any help...)
I found this is #hk-art-gallery, is it a mod or just good art? http://fourze.tumblr.com/post/177820852970/grimmchild-campaign-concept
I think it's art
Well now I have a mod suggestion lol
I suck at both drawing and coding :p
I'm ok with coding tho
I got art this year for my elective so I'mma draw a lot
Gunna try hollow knight style
a story told in 3 reddit posts
inb4 is there a way to hide debug mod log

Benchman and his never ending quest
Dlk, more like reddit stalker
maybe ill stalk ur mom
Do that
I don't know where she is
Please halp
I cri evrytim
@quiet marsh it's not that hard making hk mods imo
eww
delet
how could you
tbf DLK has a point
TC's arrays start at 1
e.g. hazard type

when you get a green split in a speedrun
that's a toughie


i cant get golds bc my splits are already perfect 
2meirl4meirl
๐ญ
@solemn rivet https://discord.gg/NUrkxcT
@solemn rivet https://discord.gg/hollowknight
Gradow!
Gradow!
@copper nacelle the invite is invalid give me a new one
@copper nacelle @copper nacelle @copper nacelle @copper nacelle @copper nacelle @copper nacelle @copper nacelle @copper nacelle
can I ping you 56 times?
can i ping you Gradow times?
only if gradow = 69
๐ค
woke
based gradow ๐ค
718141523
๐ก
P7KY12
spicy lol

@copper nacelle did I hear #429775439423209472
hey it's monomon
yes
hi
in other news, there's maybe going to be a backwards-incompatible change in HookGen
but I'll try my best to keep it backwards-compatible
is this u

basically, I'm replacing the auto-generated events with auto-generated properties of type HookEndpoint<T>
in preparation for hooking this up to HookGen: https://cdn.discordapp.com/attachments/295566538981769216/488371356941942794/unknown.png
because the people over in the Terraria modding community (which aren't yet using HookGen) want runtime IL manipulation
and it's been on my own "wishlist" for quite a while now
so I've just decided to do it now
like changing the args on a method call inside a method?
currently planned exposed API would be ```cs
On.Type.Method.Manipulate(method => {
// Manipulate the original MethodDefinition here.
});
kinda, @copper nacelle
an example would be inserting code before / after existing code
Still not sure about how you'd want to "undo" such a manipulation, and if they should be layered or not
looks sick
the example looks super nice to use
thee
i still haven't desoldered my e key
i see
me too
Harmony is great and all, but... it has got too much "friction" IMO
but sadly
meanwhile MonoMod


i had a dream that grubsong made healing instant
yeah
it was still worth 1 notch and i remember going on reddit and making a thread like "why is nobody using this"
cause healing is bad 

let me go see where you posted code that I could adapt to resprite the void heart because I remember you doing that
oof
@fair rampart
thanks
really makes u think
yes
so I just need to find the one for void heart
yeah
the conditional itself shouldn't be too hard as it's basically just "have you collected the godtuner"
not the sprite no
I do have the name and description though
applied to the actual charm, I mean
GameManager.instance.inventoryFSM.gameObject.FindGameObjectInChildren("36").LocateMyFSM("charm_show_if_collected").GetAction<SetSpriteRendererSprite>("R Shade", 0).sprite.Value = Sprites["Charms.void"];
ez

the old one was in charm_show_if_collected
and i already had the inventory fsm dumped but i used the new fsm viewer
nice
@cunning lagoon meme
what if there was a mod that makes it actual Absolute RNGdiance and its attacks deal between 1 and 9 masks of damage
calculated randomly each time
woke
between 9 and 10
last time I was able to play HK I was still stuck on nailmasters in panth 5 
some bosses or enemies just for some reason are impossible for me to get used to quickly
that would probably help
PV used to whoop me super easy but now that I've killed him radiant I can just stomp him into the ground
nice
problem is that some of nailmasters' attacks are like watcher knights and watcher knights are my kryptonite
nice
yes

๐ค
modcommon method
what
really whats the fuckin chance of the mini baby gruzzers hitting you when you drop down the long vertical crossroads room
public static GameObject FindGameObjectInChildren( this GameObject gameObject, string name )
{
if( gameObject == null )
return null;
foreach( var t in gameObject.GetComponentsInChildren<Transform>( true ) )
{
if( t.name == name )
return t.gameObject;
}
return null;
}
are you dropping down the middle
no i always forget
but i got hit the 2 times i did remember to fall down the middle
oof
real garbage design
why isn't ModCommon just part of / included in https://github.com/seanpr96/HollowKnight.Modding
:^)
ยฏ_(ใ)_/ยฏ
is modcommon a library or something
yeah
GameManager.instance.inventoryFSM.gameObject.GetComponentsInChildren<Transform>(true).First(x => x.name == "36").gameObject.LocateMyFSM("charm_show_if_collected").GetAction<SetSpriteRendererSprite>("R Shade", 0).sprite.Value = Sprites["Charms.void"];
ez
(edited)
u
ouchie
so do I need modcommon for this or is that a non-modcommon method you just posted
non modcommon now
this uses Linq
Linq is slow, but mighty
apparently playmakerfsm doesn't have a definition for GetAction
oh that's also a modcommon method
ouchie
it's part of fsmutil
which i also put in modcommon
aka ref modcommon it's nice
that or use more linq

I imagine I have to reference modcommon
should I package it with my mod or just add a reference to mods/modcommon
add a reference
admins help???
i did
yeah
i've been using this for like... ever with no issues

I hit enter a few times so it was readable bear with me
why didn't I just post a screenshot first wtf
try a sprite you know works tbh
nice
also yeah
you have to change the other thing
for it to change the inventory
smh
other thing
yes
let me look for the name of that
o that
dunno what the void heart one is
mayb just 36
ye but
this one will only display if void heart is already unlocked
so it shouldn't cause an issue
watch it change normal kingsoul tbh
check the charm list length
I might have to count the void heart as a glorified charm for what I'm looking for
b/c right now the way I have it set up is
uh
scratch that nevermind
did a big oof
imagine going to the middle on the first time through
?
i go to the right and i always get hit
i get told by everyone to go to the middle
idk looks like you get hit here
i go to the middle and i get hit
middle is slower anyways
the trick here is to give up
irl










