#archived-modding-development
1 messages · Page 406 of 1
Basically are you replacing the function (as in redirection) or are you modifying what assembly code is already there by adding and removing instructions
im replacing a jmp [address] with a call [address]
inside of the internal get delta time function
from.Write(ref offs, 0xE8);
from.Write(ref offs, (uint)(int)(
(long)target - ((long)from + offs + sizeof(uint))
));
E8 is call
to make deltatime and fixeddeltatime always return the same values
because unity uses them alot internally, and it messes stuff up if you want the game to run at exactly X speed per frame
iirc patching the managed code made it so fixed updates would still be based of the "real" time
same
public void MakeWritable(NativeDetourData detour) {
// PAGE_READWRITE causes an AccessViolationException / TargetInvocationException.
if (!VirtualProtect(detour.Method, (IntPtr) detour.Size, Protection.PAGE_EXECUTE_READWRITE, out Protection oldProtection))
throw new System.ComponentModel.Win32Exception();
Inner.MakeWritable(detour);
}
public void MakeExecutable(NativeDetourData detour) {
if (!VirtualProtect(detour.Method, (IntPtr) detour.Size, Protection.PAGE_EXECUTE_READWRITE, out Protection oldProtection))
throw new System.ComponentModel.Win32Exception();
Inner.MakeExecutable(detour);
}
?
Oh I'm blind
I was just looking at inner
Wouldn't C++ have to change the protection level too though?
Also can't you just use NativeDetour
this is nativedetour?
no i mean
new NativeDetour
(
GetType().GetMethod("get_deltaTime").GetNativeStart(),
(IntPtr)((long)hkexe + 0x3DEAA9)
)
no
pretty sure that just replaces the pointer of one thing with another
and
(IntPtr)((long)hkexe + 0x3DEAA9) points to a jump
but we need a call
o
which is what this line is for
from.Write(ref offs, 0xE8);
has anyone ever looked at the code of Enter the Gungeon?
how well put together is that game
I gave up pretty quickly
and the Discord was struggling to do anything without an API
If I remember correctly the game IS apparently well put together but theres just no support for the modding community at all
the devs said the base of the game's code was pretty bad
sigh
This may be a strange question, but does anyone know how scene transition is handled in the game? I looked around a bit and it seems like it uses string reference, but I have no idea how it knows where to put the knight in the next scene
EnterHero
Oo
So correct me if I'm wrong, it seems it has a string reference to the next door/entry point, it gets that in the next scene, and plops the Hero there
@yusuf room rando stream
fixed
eww
I have worse in salt & sanctuary
I tried to make it two MethodInfos
but that's not allowed
because only constants
Yeah
so now it is only constants
It's stupid
yes
[MonoModIgnore]
[ReplaceWithNop(23)]
[ReplaceMethod(typeof(GameObject), "GetComponent", new [] { typeof(Type) }, typeof(GameObject), "GetComponent", new [] { typeof(string)})]
private extern void DoHasComponent(GameObject go);
really just perfect
Is Scene transition handled by getting a string reference to the next door/entry point, it getting that position in the next scene, and plopping the Hero there?
I think it's so you can define an arbitrary amount of instructions
o
Salt & Sanctuary is incredibly painful to mod
Everything runs on consts
const is the devil
Interesting
link stream
any twitch avatar
no
sad but true
gradow add donation text to speech feature
no
pensive
Good news the level loader mod is almost done, I will probably push it tomorrow
My code is completely garbage but it got rid of the lottery bug
good shit
nice!
Sigh
sigh
sigh
wasn't someone working on a multiplayer mod?
I should really work on an actual healthbar and stuff
Ya if you could make some UI stuff 😛
Like hearts
Masks
because other than animations its the only thing that looks jank
Yee
Also are you going to replace swathe sprite?
Also hmmm should the masks be like lifeblood hearts
discuss in server
wow that looks nice actually
Mino if you breach NDA I'll come over to wherever you live and destroy you
I live out in the middle of the pacific come out and fistfight me
Also 🤔 i thought you knew where im from
praise mino
Im from good old south asia
@charred parrot btw that looks great i remember screens from the start, looks like it's come a long way already
as a person who's bad with accents im pretty sure mino is from india
khan alone in general again 
no i think she is from japan or china or korea
Mino goes by they I believe
Ye
What do we know about what Charm Glorification was going to be? Do we know how we would have been able to glorify, or is Exaltion mod's glorifcation a unique take?
Okay
didnt pakistan have an election recently
Last year
good old abba modiji
imagine that
I am not sad that I don't get to vote, because ayega to Modi hi
BHAION AUR BEHENON

mino is this guy harassing you in another language
Server lang is english, so I better stop speaking in Indian /s
smh I speak 1.5
is the .5 c#
nice catch
I reacted with the Gita
no its french
like .5
language of the baguette
if i say chocolatine > pain au bread will you immediately block me
holy fuck though baguettes are amazing
Ye they are
Bonjour my petit crossaints
Le honhon
FROMAGE
Baguettes are scrumptious
viva la pain
the french have some good foods
lous LXIX
Yum

I was making qorma the other day
I'm not too good of a cook
but I like making chicken fried rice
korean food is so so good
off topic but ya
you are off topic
My school canteen can barely make regular fried rice, so I don't know WHAT you're talking about, but let's get back to Modding
true
dm for good desi recipes i have a lot
You could kill a particular kind of animal
something super weird that I love is when my dog finds a good place to lie down and then you just hear a nice big exhale after a second or two
Awww
camera looks good ?
not using obs
everyone is telling me to download obs but no
why
idk
cuz its slow
Pog
current state of obs
literally treason
yay
i wish i remembered why its like this
this is what i get for not sleeping
i actually cant remember anything
read me
it's not being very clear what the "art" mod is
memes
its a shitpst
^
there are also summaries
hollow knight deepmind AI
thanks
which mod is this
cause i want it
looks like a sprite randomizer
messed up with game with level editor i guess
fiftysix
https://cdn.discordapp.com/attachments/283467363729408000/570196406866804737/context.png make this the bg to fiftysix.dev
no
delete that message
i'm almost tempted to semi-cheat in my PP fight by zooming out a bit
that is a set of corrupted assets
i want those corrupted assets
I think I zipped them at some point
i want to bare witness to cornifers true power
56 Elderbug The First Vessel when
how does the charm notch mod works?
Like if you have all of the charms you'll have like, dozens of notches?
Charm Notch Mod: Automatically grants notches normally bought from Salubra upon collecting the required number of charms
you buy charm notches from salbura
except
this mod just gives them to you
upon reaching the charm threshold
it literally just removes the effort of having to go and buy them
open it with something else
In several full sentences, present analysis of thermodynamics-relates delta parameters linked to RD9 chemical rxn described by ME, TIE, NE above. For RD9 rxn report delta parameter symbol (e.g ΔHrxn), parameter sign, and context for consistency of sign with chemical/physical events for following: change in enthalpy, change in entropy, change in free energy. EXPLAIN how certain thermo delta parameter(s) is/are DRIVING FORCE(S) for RD9 rxn, therby ensuring high product yields. EXPLAIN how other thermo delta parameters is/are NOT driving force(s). in addition, EVALUATE how, at lab conditions for RD9 rxn, thermo delta parameters, in tandem with another relevant variable, join forces to dictate sign of change in free energy at lab conditions in context of Gibbs equation.
thank you camilla very cool
It's rtf not md
And also what happens when 2 mods try to change the same thing
like charms or something
depends
And what happens if you turn HK build into debug
you can change config settings so you can use debuggers
Unity Dev console is shown
And logging shows full stack traces on each log
does it affect gameplay somehow?
no
How do I turn on debug menu?
ah you mean f1

Eyy 56
ETA on room rando?
I haven't touched hk for like a year
If that's coming any time soon, I need to start playing again
56 multiplayer mod when
Mino health bar when
shhhhhhhh you dont know about that
Aaaaaaaaaa
When I stop getting homework
getting homework lmao nerd
also gradow its not health bars for hk modding its health bars for the hk fangame
Smh 56 finish school faster
ttacco im worried about your coping mechanisms
also im not saying anything but saleh is an absolute madlad
Don't worry about TTacco, that's just how he is
56 i am concerned
Hi concerned
Somebody please make a mod that makes Voidheart retain Kingsoul's passive SOUL regen effect
u
lmao
Effectively (But not) 0 is not equal to 0
in charm overhaul you can toggle between voidheart and kingsoul
by defeating pure vessel with compass equipped
effectively 0 is 0
impossible
i could have made a better way to do it probably, but that was easiest way i could think of
No. Kingsoul passively regens SOUL, however little an amount. Voidheart DOES NOT do this.
nail hit is 11 per hit, 9 hits takes something like 4 seconds, congrats you've already capped your soul
kingsoul will have generated a grand total of
maybe 2-3 soul
BJP, they are joking
they know kingsoul and voidheart are different
but the thing is
kingsoul is so bad
why use kingsoul
its completely pointless
You can never be too sure
even if it was free
they have enough knowledge of the game mechanics inside and out to modify it thoroughly
yes they are joking
you can just mod the game to give yourself soul regen
its completely useless throughout all stages of the game at the level kingsoul gives you
this is also true
Please direct me to the mod that lets me regen SOUL at the pace of KS
what
they are saying you could make it
isn't ks like 3 soul every 10 seconds or some shit
4 every 2
4 soul per 2 seconds
I cannot make mods myself. Why would I be asking you guys if I could just program it myself. I do art.
take a a minute to get a full bar
good charm
its not exactly a complicated mod
but if you have no idea what you are doing, with no experience with modding tools
it may pose a challenge
yea kingsoul is no good unless you are doing some challenge
basically same as void heart :^)
onheroupdate += myfunc;
void myfunc(){
timer += time.deltatime;
while(timer >= 0.5){
PlayerData.instance.AddSoul(1);
timer -= 0.5;
}
}
camelCase
Where do I put that, though?
you need to make a dll in visual studio
or some other similar program
i meant the method as a joke, i know it's just an example
if you can find someone who has vs and hollow knight installed
they can do it for you I guess
I don't have hk installed
i could get a chair for that much
a very nice chair
haha
italian leather
Swedish leather*
i guess technically you also want to not do that if you have kingsoul equipped
Yeah because then technically VH would still be objectively worse as a charm
a KS check is easy to do tho ¯_(ツ)_/¯
I want the same effectbecause I don't like downgrading
but vh is the best charm
don't u know anything
some value for no cost is infinite value
if your problem is with objectively bad charms, you have way bigger problems than KS vs VH
That's not the issue here but I digress
dammit pete i was just about to make that joke
no cost too great
but I guess i'd take undefined over shit
That is also the principle KS works on. BEcause it's like 20 notches for sshit SOUL regen
0/0 is not undefined tho
yeah it is
nothing is worth 5 notches
0/0 is undefined because n/0 is undefined for all real values of n
ehh
am I fucking stupid or wouldnt putting the timer increment before the while loop make you lose a frame
0/0 is way worse than n/0
That would be Long Div yes
in calc, 0/0 is generally considered indeterminent
I once tried doing 0/0 by long division but then I realized I was just drawing a bunch of circles
it'll go forever?
lol ok
are you high
im sorry I ust woke up ya
its not 20/4 anymore
lol
you mean 4/20
it will keep looping every 0.5 sec
im not america
my bad
lazy's sleep cycle is wack
no u
I woke up at 12
american way of writing dates is dumb but i appreciate 4/20
america gonna be mad next year
nah it's the lingering effect from 4/20
when all of 4th month is 4/20
kdt aren't you american 😔
im from england
smh
not living in the best country ever ie the US
:^)
smh the british, making me suffer through a levels
turn modding into lore
lol
is Hornet void>?
sigh
no
i can't afford my meme loicense
does the method Hornet return void?
and I can't risk jail for unloicensed memes hitting my eyeballs
:wesmart:
well tbh Ajit boi is going to remove the internet
so i guess no memes is better than no internet
no memes is no internet
Big agree
true
lol
how will kdt survive
UK not in EU
neutral response
i don't know why its taking them so long
surely the government should really want to leave the eu
why?
that way they could continue to fuck our freedoms
the issue is the people
no lol
the issue are the big businesses with the $$$ that don't want it to happen
small disagree
i dunno why you think the uk government gives any amounts of a fuck about the people
medium agree
big sigh
I watched a 5 minute youtube video on the subject, thus I am well versed in the controversial sociopolitical situation which is Brexit.
Brexit? Is that still happening, or what? Footnote on the EU's SECRET strategy: https://www.youtube.com/watch?v=agZ0xISi40E&list=PLqs5ohhass_QREwr7tdW8gh3kLg...
Britain is leaving the European Union... or maybe not? Let's place some odds. MOAR BREXIT! https://www.youtube.com/watch?v=J1Yv24cM2os&index=2&list=PLqs5ohha...
that's 10 min of content I'm basically a genius
oh cgp grey, nice
he's really great ya
Hundreds of thousands of Knights just stabbing eachother while the one guy who maganged to get Descending Dark is absolutesly decimating everybiody
he seems to have a boner for flags though
MMO HK would be hilarious but actually terrible
Yes
lazy make that instead
no
imagine having literally everything you say monitored, and if you say something the government doesn't like you can go to jail, thats right im talking about china the uk
can't let you get poofed for shittalking china
"Suicide with five shots to the back of the head"
remember when people figured out they were going to be implementing an app which tracks "social points"
people freaked out
China denied
but then they implemented it 3 years later
:^)
Remember when they denied having HIV because they denied having gay people?
Remember when China tried to occupy Myanmar? Remember when Dalai Lama had to seek asylum in India because China hated his guts? Remember when China just said the state which housed Dalai Lama for a while just belonged to them? That last one was relatively recent but still
Remember when China just said the state which housed Dalai Lama for a while just belonged to them?
When your ball falls in someone else's yard so now the yard is just yours.
One of the justs is reduntant because I was in a hurry
the world is a hot mess etc etc
iran doesn't have homosexuals
considering they force them to transition to avoid having them
oooof
can't be gay if you're the other gender
Hey, on an unrelated note, does this channel mind swearing?
by getting rid of the gays we accidentally created more trans
they didn't accidently do it
theres nothing in islam against changing your gender
PLEASE TO NOT SWEAR TO THE CHILDRENS B I T C H
ye thats true
thus to avoid the sin of being homosexual they force them to change their gender
i've seen it happen here too and it's big think
Where, Pak?
mhm
so in one Canadian uni
:Thinking:
uh huh
and the student who won was this, I believe it was Taiwanese immigrant
who was very much Pro Taiwan independence
and the Chinese students or at least a vocal minority just fucking flipped their shit
rip any chinese people on this server
naw Chinese people are fine they're just people
ye
its the nationalists that are sometimes iffy
that's true for most countries tbh
if the chinese are fine why do they cheat constantly in literally every game
Imagine breeding people with another race so hard you dilute them into your gene pool, effectively causeing them to go extinct. Oh wait, neanderthals
k but one was just... you know random mating
and the other was an actual intentional effort to destroy a race
afaik if you deny genocide attempts they didn't happen
it worked with japan and turkey
It's going to work posthumously with Germany if we don't get our shit together Pronto
pensive
good modding talk boys
I have literally seen idiots argue that you cannot spell Holocaust without 'Holo" meaning it was a hologram all along
Australia also did something along those "breed them out of existence" lines with their indigenous pop
and Canada
_>
<_<
canada :^)
The reason it fell flat on other people is because they foloowed it up with "A hologram BY THE J E W S"
i prefer americas approach of putting them in a zoo
its a good country I feel but we've done some bad shit
yeah
its not genocide if they still exist
attempt
big brain
modding is just general 2, but a smaller group of people
"If there was REALLY a genocide then WHY ARE THERE STILL JEWS? HUH?"
wtf
I am going to say the n word
NICE.
i was talking about native americans actually
ohhh boy
mods jsut go into hollow_knight_Data?
there's an installer which's easier than manual mod installation
so i am playing lightb ringer right now and the empress giant fly is pink and super strong. is that from lightbringer? or did i incedently installed another "boss buff mod?"
yeah she's quite the threat early on, your best bet is to just avoid her until you're strong enough
it kinda forces you to take a different path than normal, unless you're crazy enough to actually fight her before you're strong enough
Or use debug
Is the Hero a Singleton, or is one spawned in each scene upon load?
It's just a prefab
Never really looked into what exactly creates the hero
Probably an fsm somewhere
Thanks
I would rather die than live at 45 C
I would rather die tbh

to install a mod i just download the mod api and click on the mod right?
how do i select the mod that i want to play with while on game?
or is it just for just default
Options > Mods
do you live in death valley or something, mino?
yes we do live in #archived-modding-development
Just out of curiosity, if i install a mod and make a new game
If i enter the save in a pc without the mod
What will happen?
A friend of mine is using my Steam account to play HK and i'll have to make sure he doesn't enter that save but mistakes happen
your computer gets deleted
your whole computer system dissolves into the ether
the modded content you removed will no longer be present
^
I'll be playing lughtbringer or something like that i don't remember the name
The one with ranged attacks
play lightbringer
outcome 1) nothing happens
outcome 2) game crashes
¯_(ツ)_/¯
those are your bookends of possibility
moresaves exists
well it has 4
4"
and you can manage them as much as you want
they're just files
copy them
move them around
use the more saves mod
¯_(ツ)_/¯
also why are you not playing with QoL on 😡
a mod
Queue the naruto theme.
epic gamer moment
oh god oh fuck
zz wanted to buy forager but I can't because my card is locked due to fraud FeelsBadMan
but aint they all japan
and its 11pm so i can't even complain FeelsBadMan
I would release it now but I know somehow it's going to break so I'd like to test it a little more
When I can confirm it works in most cases
This is just one object in one scene, it could crash if anything else happened
YASSSSSSS
2fps
does unity even have efficient collision detection?
2d isn't even a thought
not that I think 3d is super optimal, but I don't think you can do janky stuff to improve 3d like you can 2d
You think unity 2d is bad but have you seen unreal 2d
I don't think quadtrees work well in 3d
well octree for 3d as theres 8 cubes instead of 4 squares
Don't remind me of the dual contouring I did for subnautica
So how does the collision work for 2d again?
Does it matter if the gameobject is between a certain z value or no
for 2d no
but afaik it doesn't implement any optimizations (besides removing duplicate collision checks)
wtf discord looks different
Well I'm trying it with collision now
hype
interesting
Is there anything I need to do besides add a box2d collider
I don't really know what I could change, except maybe the material is called "Terrain"
here's one of the platforms without the tilemap gameobject behind it
what layer is it on
aren't layers numbers
oof
there's the list with the ids and names
ye but saying its terrain meant nothing
usually the player getting stuck falling, is them colliding with none floor
yeet
double hype
what makes the splash
@unborn badger ^^^
for footsteps
oh good point 
idk
i c
all the floors in that scene might be like that
might just be a fullroom modifier
thats what I was thinking
stuff in greenpath has leaves on step
these are gr3eat
you could probably check if it's room based in city of tears
i cant wait to make rooms solely made out of images of vortigaunts
i can't wait to make rooms solely out of marmu death frames
ye but can you make it load stuff with scripts in dlls
right now its not possible
it is but it isnt
basically you can get it to load an assembly, but as far as i know it has to be in the managed folder, and that has to be redirected on build
sad
its possible, but not for this release
i mean you could maybe add a hook to the api for adding custom objects
that passes some sort of unique identifier
well I could use reflection which would be a lot easier and a lot hackier
can particles be added with the current version?
I'd rather just get the stuff together to bake the monobehaviour into the bundle and load it directly with unity's code
yes
noice
anything except scripts
very hot
even custom shaders and materials
ok well it seems fine right now
so I just need to modify the editor a little bit and it should work fine
to make it authentic you need to never add script support
and make a playmakerfsm compiler
and only let people add playmakerfsm components
also the load times are going to be crap because I'm fixing everything unity messes up
ok
how will this interface with room rando 
I don't know you tell me
it won't because 56 is too lazy to create room rando
\🕳
🕳
\☻
\🕳
\〠
has anyone ever dropped a greenpath platform on the radiance, or used a goam or garpede to hit it?
👊 🌳
does changing the z-axis make it parallax
Yes
does that parralax the colliders
I haven't tried that yet but I gtg so I'll try that later
now this is epic
minecraft in hollow knight 
owo
🕳w🕳
hello wibbas
so i was playing lightbringer
and
why does the up atack and down attack do less damage?
they seem more risky
flying enemies are cancer
its to require you to use the projectiles
apparently theres a charm that gives vertical projectiles
im not sure i never played that far into the mod
kinda got bored since it just didnt feel like my thing
ok thx
the archivmenets tell that i haven't defeated the failed champion
lmao
dabs in knightmere king grimm
huh?
huh?
i never understood why it was knightmere not knightmare
forknife
uh
it used to be knightmare for a very short period of time
but that sounded unoriginal and i wanted a way to self deprecate in my own name
@brazen mortar

gnikhtmere
gnomere
gnome
gno
hahayes
I changed 1 black box.
and suddenly no detection on the ceiling
and only that part of the ceiling

Unfortunate
Oh dang nes
figured
i do believe
but just to make sur
that i am in the wrong channel fuck
I wonder if this bug is in the actual build
did you change it at runtime
maybe tilemap colliders don't work good if they are changed at runtime
it does exist in build
and no I didn't change it at run time
that's freaky
I mean at least its easy to fix, but I don't want to have to constantly check every fucking ceiling
for this rando ass bug
ok it is registering the collision
hmm
changing and saving scripts during a simulation causes unity to spasm
could be a floating point thing
it is
magic number time
yaaaay works
lol
magic numbers are the best kind of number
yeah they overload it
I was using vector3.Equals
giga rip
I thought that one was the fixed version
whoops
i'd just store positions as an int and use that
its not even like box2d even works with small distances at all
so I dunno why they don't just use some consistent values
there we go all fixed
wow I am still 'awake'
Past 9pm, wow
henlo
Is there a mod to speed up the intro screen
what intro screen
Is your API up to date
because I killed the intro
like 4 versions ago
not anymore
is it a late game boss?
or do i need something to kill it
i'm sure youll figure it out
"come back when you're worthy"
do i need something to kill it or it's just damn strong"
The latter
Good luck then
hi mino
it's just fun how it's such a meme boss now
what are the alternative routes to get to the shopkeeper?
i don't remember
Guess it's out of date then rip
lake
So basically the editor worked fine for the scene you start in but breaks for any scene after you leave and I think it's because they get scene by name which I have to change to load the modified scene
Mato: just get to blue lake
Hello zaliant
is there a wiki or something like it to know what does each charm does?
fragile nightmere is weird it says something like
i don't want to buy it if i don't know what it does
shop shows descriptions too
i don't know if it makes me stronger
also
well it probably doesn't make you weaker
or if it makes me stronger along with all the enemies
how did you play the game the first time?
^
probably wiki spoiled it
cuz the vanilla game charms don't tell you exactly what they do either
yeah
but, idk
part of the fun for me is figuring that stuff out
how to use them, combos etc.
comma"
56 stop reacting and finish room rando
you
I'll finish you
no
k
is there a build for the latest api anywhere
glob bluncher
NOOOOO! now attacking cost soul... i'll need to stop attacking the air while walking


you can just open the installer and it'll update the api nes

ok
btw, lightbringer is good, but have you heard of our lord and saviour Lord Blackmoth?
is this advertisement
this is paid product placement
thx 67
nice
what does it do?
blacks your moth
uhh
dash, hit, ???, profit
well
if I had the time, the talent and the money, I would add a custom boss fight
ra🅱🅱iance
makes sense
since i love hollow knight mobility i'll try it
can i combine mods?
or i'll have to make another play trough to use the mod?
depends on which ones
ni🅱🅱amoth and lightbringer





