#archived-modding-development
1 messages · Page 387 of 1
Disease 
T cruzi can survive and replicate in the fucking blood
against an antibody response
which is nutty
absolutely nutty
hey guys so i have an idea for a mod-
you play as boss but instead of knight scills you can only use scillls of boss
During the Beagle survey voyage, Charles Darwin noted in his journal for 26 March 1835 having "experienced an attack, & it deserves no less a name, of the Benchuca, the great black bug of the Pampas. It is most disgusting to feel soft wingless insects, about an inch long, crawling over ones body; before sucking they are quite thin, but afterwards round & bloated with blood, & in this state they are easily squashed."
oof did he get chaga disease
but i was thinking someone who knows how to make the mods can make it :)
wait he might actually have died from chagas disease(speculation on my part), but chaga's does cause cardiac problems, and that's what darwin died of
sad part is because of warming the insect vectors are slowly making their way northward

and northerners do noooot have centuries of natural selection to tank these things
but they have money and tech
We also have antivaxxers
the human body is very very bad at dealing with parasites versus bacteria and viruses
vaccines have a very low success rate against parasites
In 1882 he was diagnosed with what was called "angina pectoris" which then meant coronary thrombosis and disease of the heart. At the time of his death, the physicians diagnosed "anginal attacks", and "heart-failure". Today it is speculated that Darwin was suffering from chronic Chagas disease. This speculation is based on a journal entry written by Darwin, describing he was bitten by the "Kissing Bug" in Mendoza, Argentina, in 1835; and based on the constellation of clinical symptoms he exhibited, including cardiac disease which is a hallmark of chronic Chagas disease. Exhuming Darwin's body is likely necessary to definitively determine his state of infection by detecting DNA of infecting parasite, T. cruzi, that causes Chagas disease.
oh

Oh damn well I should then get ready to move further up north in case these bugs reach here
Doubt they survive in snow though
they dont
and -25 degrees celsius
what is that in Fahrenheit, because america be dumb like that
cold
tropic diseases in general are just a lot harder to deal with than temperate
-13F
it be like that
such a stupid temperature system
Fun fact: -40 degrees celsius is -40 degrees fahrenheit
can you come and join Celsius and the metric system already
ikr
i wish
imagine not knowing both
how
weird flex but ok
because we don't use mercury thermometers anymore
oh true
what backwater country doesnt use either metric or imperial
so it really is pointless to use Fahrenheit
imagine not using rankine
don't use FSM k thx
downloading playmaker as we speak
don't program anything
woah
and instead program a framework
that tfw when kelvin ro rankine makes as much sense as celsius to fahrenheit
use playmaker for absolutely everything
and use that framework to make your game
Use gamemaker
so users have the same tools as you
hnnn gamemaker
mino is wilbo confirmed
o shit-
hmmm 
gamemaker can't even do 3d
gamemaker cant do above 30fps 
what about SCRATCH
Use rpgmaker
:)
use as much shit as you want
oh shit
Just develop your own game engine
no
code in python
HAHA
Put a weener in ur mouth
so in c# you can just add loading dlls
no and no
f# then
zote bot is in python isn't it?
G minor
but you'd probably want to add a file parser that parses your files into entities
instead of making people reverse engineer your game and compile dlls for it
= 🐍
eval 
no.
playmaker sucks
this entire channel will disown you
perish
I actually have multiple visual scripters
why are you paying actual dollars for this trash
not gonna use them though LUL
didn't a bunch of hk mods start out in playmaker?
the dark ages
technically if you wanted you game to be easy to mod
you could make something like playmaker
but not use a stupid json format that makes no sense
and not bake them into the level files
bold words from you
are you making your own thing?
i have no idea how you guys managed to figure out modding pre-lifeblood
i read fsm jsons
and made jank
i mean I don't own the visual scripters because im making a game
i know how to program
FSM JSONs make me want to die
if only there was a visual spriter maker
in a pack
kdt playable demo when
he owns them now
oh wait i thought you said you were making a game
if he was I'd consider it direct competition
its been loading for 5 minutes now
I dont think it wants it
It's a sign
wilbo telling you from the heavens to not
I can't believe wilbo is fucking dead
i mean a friend of mine that I went to uni with wanted to make a game
but we are both programmers 
and programmer art is programmer art
Jack is Wilbo 2.0
that right there is my entire existence
until now
hopefully
Can make game work good
Can't make game look good
Why can't we be multi talented like konjak
https://cdn.discordapp.com/attachments/297468195026239489/494544243147276288/The_Hollow_Knight.png
this is programmer art, right?
i mean I can draw
it just takes me too long to draw 1000s of sprites
pssh no
cant draw
the really reason THK tries to kill itself, is not the Radiance, but because this FSM is suffering incarnate
LMAO
Post in #art-discussion
i can art but not code
Be the first modding staff member to post in that channel
ye i want to see your art 👀
@jovial vault but can you animate
ye but i can't do the weird rigging stuff you're gonna have to do to animations
me?
as in what you're doing in unity with anima aka the animation addon
i can do 2d animation
i dont have any animation on hand rn because most of my old art stuff is uh gone
or he died
im dead
hi dead
sounds dead to me
kdt art where
give art
never until my game releases
but you're not making a game
exactly
:(
Is it a dating simulator? 
:(
I got wrangled up into making one of those once
Oh hey one of the former art members here made a dating simulator recently
e x p a n d
👀
Can you sit them then?
kys

Give me my nitro back before you do so
I hate that icon

scary
I actually did purchase playmaker though
like a year ago
it was fine but after a while it got atrocious
pensive pepe loaf
you cant specify whether you want certain things to be calculated in fixed versus regular update
states can get huge quick
in the time it takes you to learn how to use playmaker
you could just learn code
blue lake
its come to my attention that #archived-modding-development is a lie
it is just an edgier general discussion
with occasional spurts of mod and programming talk
have you come to realise this just now
people in the library just started screaming penis
what
canada amirite
sounds like theyre play8ing the penis game
what
its a game where everybody has to say penis progressively louder than the previous time anyone said it, starting from a whisper
if you wuss out you lose
needs to be in a public place
they were
what the fuck
pussy game
Assert your dominance by bellowing out cock
BELLOWING
COCK
yeeting out
COOOOOOOOOOOOCCKK
hollow knight modding discussion thread
please pin
^^
someone just galloped by
on a stick with a horse head
wearing a labcoat and colored sunglasses
saying "do you need a knight in shining armor"
????
what does shinning have to do with armour
whoops
shinning
what is Xdelta
change in X
ok
cough maybe I should actually open hollow knight if I want to replication it cough
hey how can i change sprites of mob
mob?
creature
custom knight
install it using the installer and then go through the readme
and the google drive
yes
nevermind v2
some positivity to cleanse this chat of playmaker
I appreciate the wholesome
I don't
I do 
Igotlazy can you use playmaker to edit HK's fsms?
🤔
Stop using y as a replacement for other letters
Ny
Now hold on you can't use y as two letters in one message
YyyyYy
yee
yigger
_>
What’s wrong with saying bigger?
^
It’s not like he’s saying niyyer
what’s wrong with you nyiwwrs
Yeah who likes biting insects those darn nippers

it’s a real word
is there a mod that removes the introduction of absolute radiance
No 56 defenestration doesn’t even guarantee death
It’ll just be a lot of pain
At least from your house
just be higher up idiot
The QoL mod shortens the intro
i see
the 30s or so it takes in between attempts to watch the same thing over and over is possibly the worst thing about the game for me
although maybe i should just be satisfied with beating attuned and not bash my head against the higher difficulties for no reason
the reason is getting better
if you dont like it then dont do it
whats the point of a game if not for entertainment
my point was i would like it a lot more without the wait in between
i don't think it's a good design decision
tell em
the intro is actually supposed to be shorter apparently
the code to make it shorter is mostly in there they just
forgot to finish it
sounds like tc
not sure about PV though
Yea just use QoL, plus it has a,lot of other fixes too
yeah thanks to that i was able to beat her on ascended fairly easily
i think the wait was actually just tilting me
only took 3 attempts with QoL
Plus you can turn on fix dashmaster which I can’t live without anymore
what does that do?
guys whats newtonsoft json
also i cant find nightmare god grimm
Fix dashmaster makes it so that even if you’re direction is diagonal down it won’t dash you downwards, it will only dash downwards when you choose complete down
Just open Infinite grimm config.json and set nightmare god grimm to true @fair rampart
Reminder I never saw any of that art 😔
@weak lodge wheres config.json?
AppData>LocalLow>TeamCherry>HollowKnight
local file is empty
Windows File Paths: (Assumes Default Steam Install Path, Adjust accordingly for DRM Free or Non-Standard Steam Path)
Save Files: %APPDATA%\..\LocalLow\Team Cherry\Hollow Knight\
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/
thanks mick
Make sure "show hidden files" is on
its on 
moo where are those paintings 😡
pensive weary pepe loaf
ohh yeah i remember that
you typed someone elses name so i thought you werent asking me
anywho i foun it
you have insta?
hmm k
no new art so
how about you? got some juicy art
thats cool atleast you doing art 
also we could move to #art-discussion
i did one tradititional piece in december though
if you want to see that
Yo nes is making a level creator mod. Sicc
very
super hot 😡
impressive
There is one person in here who is just reading our messages lol
Cause that got 4 reactions but it’s the 3 of us
woah!
6!!!!
Last I checked zote isn't a tall woman bug
Zote also says Bopanada
no
When he’s talking to bretta
no
Yes
He does not
He does I swear
I believe that you believe he does
New voice acts after DLC : https://youtu.be/VHZZgIlhqtM
1:06
I swear I remember what god says
*zote
I'm not gonna go get my headphones to hear zote not saying bopanada
I’m going to copy strike you
what
zote's voice makes me laugh every time
Ok
Yeah it’s pretty great
me too
Zote comes from heaven so he has an accent
and throws in extra letters
cuz we all know, that one letter can't change the meaning of a word
It's a very thick accent
Thicc


who voiced zote
oh also
theres a way to load up HK scenes in unity right?
to see how the scene was put together?
I need to know for.... obvious reasons
this?
you can't add stuff with that yet, only move around what already exists
@charred parrot
Nes's level editor is what you want, so yes that link is correct
That's evil
Is there a list anywhere of which files correspond to which scenes? Because ingame the scenes all have names like "Ruins1_05b", but the actual files are just things like "level 365".
Or do you just keep opening and closing them until you get lucky?
Thanks!
@ornate rivet the final product is gonna be faster than that right
also this is probably the most mechanically pleasing superboss ive seen yet
that attack looks like a pale prince ripoff smh
pepelurker
Good news and bad news on my attempt to write a mod to save Myla.
Somehow this is even creepier than her original fate.
ignoring myla because every interaction with her is slow and pointless
this also works
bad
mod myla so she dies over and over
now that's just heartless
every single time you kill her
her death animation plays in reverse
and she goes back to normal
only for you to see the quick decay of her mind
and attack you again
she's now stuck in this infinite loop
end my existence
Im sure we could arrange some buzzsaws for that
Good luck
bit confused though as to what's going on in with the while loop
I get that after a while it wont call uf();
but is completed frames ever reset
and whats the point in having two delegates (cf and uf)?
maybe its that cf is the control function (like how player moves) and uf is what the player can do during that movement?
praise be to fung_bush8
aka like 20% of the assets in greenpath
did they place all these assets manually?
lol
why make stuff actually glow when you can just put a glow png on it
if it works it works
looking at these level skeletons I think its safe to say the knight just fucking... walks into nothingness off screen during a scene transition
dont you ever want to do that
@weak lodge
That attack is a setup for the next phase. While she does all this there will be enemies spawning too. Once everything is complete the enemies will stop spawning and the platforming phase will start
The wires will be used to move certain things
Should I add dust particles after each dagger lands 
Cf checks for inputs, uf is what happens
State isn't a variable but a field that resets state time and completed steps
@charred parrot
Also if you intend to pass functions from different objects you'll need to add make it uf (this); so it knows what entity it is
private State state
{
get
{
return _state;
}
set
{
StateTimeCount = 0;
CompletedFrames = 0;
_state = value;
}
}
private float StateTime
{
get
{
return Mathf.Floor(StateTimeCount * 60f);
}
}
is the level editor released and working??
not yet graig
but i might be wrong with this one but i roughly remember seeing him say that its in the line of "mostly finished" but it still has some problems with it
unless im totally wrong (hopefully) and i didnt back read
righto, i hope it all works out I really want to make PoG hahah
There's an alpha version that only lets you view scenes and move stuff around and save
but not add new stuff
Question, who hurted you
saleh no
make them spawn at differing y positions
right now you could probably kill them all with 2 fireballs 
so like i wonder how that happens
do you just do it for fun
or does i happen accidentally
because it would be funny if you're just around testing and then comes a thousand aspids
so anyone using any health mods around here? I could use one. I tried googling but only found some dead ones
Ledrake, buy the game
but
steam or gog?
Delete the cracked version
i did
The installer found that and thinks you don't have it bought
now it says purchashe the game but also it couldnt locate it
how can i assign the new game file?
Let's move this to modding-help, shall we?
okk
@hollow hearth
it happened accidently. The aspids were supposed to spawn 4 at a time everytime a set died
were the spawners their own prefab?
or did you spawn them seperately THEN spawn the aspids from it again
Permanent aspids? Or only for a set amount of time
@charred parrot there's a really weird render bug I think is fixed but I haven't uploaded the changes yet because I need to fix level saving for asset if rewiring
Also shaders are being implemented but you have to use the exact unity version of the game
what version was it made on?
oh fair fair
there is a bug though that if you enter playmode and then exit from it all the assets disappear except the level skeleton
aka the black parts
unity also used to ship the actual shader compilers FeelsBadMan
but too much space
70gb of assets aok
a few mb of random libraries 😠
that puts it into frames
at 60fps
you don't have to do that, you can just do uf; every frame
and use deltaTime instead of just doing 1frame of movement
you've convinced me though that frames is probably a better way of keeping track of things
i changed it to this
public State state
{
get
{
return _state;
}
set
{
StateTimeCount = Mathf.Floor(Time.time*60)/60f;
CompletedFrames = 0;
StateAngle = this.transform.rotation;
_state = value;
}
}
protected float StateTime
{
get
{
return Mathf.Floor((Time.time-StateTimeCount) * 60f);
}
}
which should sync stuff up
so everything runs on the same frame
and don't add to StateTimeCount
just leave it as is
//StateTimeCount += Time.deltaTime;
while (StateTime > CompletedFrames)
{
uf(this, 1);
CompletedFrames++;
}
cf(this);
the this, 1 because I change the function prototype
statetime is howmany frames you've been in the state
completed frames is how many frames you've actually ran code for
incase you lag
technically a central gamemanager should do that so instead of doing
entA.uf
entA.uf
entA.uf
entB.uf
entB.uf
entB.uf
it'd do
entA.uf
entB.uf
entA.uf
entB.uf
entA.uf
entB.uf
but it'll never be that many anyway 
Is there a nodding page I can access without going through Discord?
Embrace the light. If you’re seeking empowerment through the light and love of the Radiance, you have come to the right place. If you are simply interested in our faith then we hope this will serve as a useful resource.
Thank
and what exactly would happen in these lag cases if I didn't have that condition?
it'd only do one frame
so say you move 16pixels a frame
and the game lags for 2 seconds
with this code you move 1920 pixels
without you move 16 pixels
so we're talking unity just fucking freezing?
yeah if your framerate was 30fps it'd run at half speed
but with that it won't
it'll only render at halfspeed
works like FixedUpdate
at least for managing the states
yeah you should poll inputs as often as possible
this also makes collision use up way less resources
as you no longer have to check collisions everyframe, only every frame where something moves
thats sounds like a you problem
I did realise that I can no longer do some jank, with this setup
as frames are now locked to 60fps and 1/60th timesteps
you doubt a programmers potential to create jank
well in the old system
now if ooooonly you were making a game
you'd just do += Time.deltaTime*n and pass in Time.deltaTime/(n^2) as the timestep
and it'd do really smooth speed changes
so even if you made something run at 1/10 speed it'd update 10x more often, but only 1/100th the amount each time
KDT: This makes Update work like FixedUpdate
Me, Galaxy Brain: Just use Fixed Update and Unity physics 
you know I just realized your system makes hitstop really easy to implement
since it just kicks out whatever is going on
fiiiiiiine I'll do custom physics
but I'm still using a Kinematic rigidbody
ok
but you can only use scills of car
it can run over and not afraid of anyone
Bugs all splat against your windshield tho so u gotta clean it
you don't sorry
so what is the purpose of custome knight?
Hollow Knight - Changing CustomKnight Sprites. - by Mickely
hi joking
maggotPrime
@leaden hedge you posted this as your "ultimate" no oob collision code
mind showing the other methods that it calls?
public List<HitBox> CheckCollision(int srcType, int dstType)
{
List<HitBox> collides = new List<HitBox>();
List<HitBox> srcHitboxes = new List<HitBox>();
List<HitBox> dstHitboxes = new List<HitBox>();
foreach (HitBox hb in HitBoxesL)
{
if (hb.type == srcType)
{
srcHitboxes.Add(hb);
}
}
if (srcHitboxes.Count == 0)
return collides;
foreach(Entity e in Entity.entities)
{
if (e != this.entity)
{
foreach (HitBox hb in e.hitboxes.HitBoxesL)
{
if (hb.type == dstType)
{
dstHitboxes.Add(hb);
}
}
}
}
if (dstHitboxes.Count == 0)
return collides;
foreach(HitBox shb in srcHitboxes)
{
foreach (HitBox dhb in dstHitboxes)
{
if (HitBox.IsTouch(shb, dhb))
collides.Add(dhb);
}
}
return collides;
}
you're ruining my bench oob 😡
🤢
public bool CheckStopped(List<HitBox> entities, int w)
{
if (entities.Count > 0)
{
foreach (HitBox hb in collisions)
{
if ((int)hb.e.WEIGHT > w)
{
return true;
}
}
}
return false;
}
public void PushHitboxH(float dir, HitBox hb, Entity e, int str)
{
while (HitBox.IsTouch(hb, e.hitboxes.GetPushbox())){
hb.e.MoveExactH(dir, str, hb.e);
}
}
each entity with a pushbox has an associated weight
public enum Weight
{
ZERO,
LIGHT,
MEDIUM,
HEAVY,
UNMOVEABLE
}
and anytime something moves anything including itself, it sets a pushstrength to show what it can push
just make sure you don't set pushstrength to unmoveable Kappa
public class HitBox
{
public enum HitBoxType
{
PUSHBOX,
HURTBOX,
HITBOX,
INTERACT
}
public int type;
public int width, height, x, y;
public Entity e;
public float left
{
get
{
return (x + e.gameObject.transform.position.x * 16) - (width / 2f);
}
}
public float right
{
get
{
return (x + e.gameObject.transform.position.x * 16) + (width / 2f);
}
}
public float top
{
get
{
return (y + e.gameObject.transform.position.y * 16) - (height / 2f);
}
}
public float bottom
{
get
{
return (y + e.gameObject.transform.position.y * 16) + (height / 2f);
}
}
public static bool IsCollide(HitBox a, HitBox b)
{
return !(b.left > a.right || b.right < a.left || b.top > a.bottom || b.bottom < a.top);
}
public static bool IsTouch(HitBox a, HitBox b)
{
return !(b.left+0.05f >= a.right || b.right - 0.05f <= a.left || b.top + 0.05f >= a.bottom || b.bottom - 0.05f <= a.top);
}
public HitBox(int t, int w, int h, int _x, int _y, Entity _e)
{
type = t;
width = w;
height = h;
x = _x;
y = _y;
e = _e;
}
}
theres my entire hitbox class
rip boxcollider2D
https://pastebin.com/ypdCxqyB theres hitboxes
boxcollider2d rotates with the entity
super annoying
its k there's like no rotating
so ez
for someone not making a game you sure have a lot of scripts related to game making
i mean go for it
use unities hitboxes
someone has to make sure your game is functional
does that mean you want to help?
nope but if I have a solution to your problem and it happens to be in one of my scripts you can have it
rip fair enough then
also make sure that no pair of hitboxes are less than 1/16th of unit thick together
because then you could just jump over
well the 1/16 should be 1/PPU, and I don't know why you'd have hitbox less than a pixel wide
never mind 2 of them
is the Hitboxes class supposed to be a monobehaviour
no
public class Entity : MonoBehaviour
{
public static List<Entity> entities;
public HitBoxes hitboxes = new HitBoxes();
private List<HitBox> collisions;
...
}
oh ah
i mean if you wanted to save on classes
you could just move the list of hitboxes into entities and the functions for checking lists of hitboxes into entities /hitbox
hmm may not be able to use these since I'm using unity tilemaps to easily draw the level skeletons
I'll see though
thank you regardless
appreciate it
if you do use my hitbox+collisions heres a postprocess script you put on your camera to render them
https://pastebin.com/Ceh4zaPz
pretty sure gizmos only run in editor
Gizm
s
and im not arcsys
if I ever release something I want people to be able to see the hitboxes
that's cool
indeed
I can see these hitboxes are very much suited to a fighting game
i dont have 250k laying around to make a fighting game
shame
just go into unity and press the "make game" button
that's how team cherry did it right
thats a playmaker fsm button actually
sad
Unity has a thing for running random c# at runtime right
it does
time to make a console
what the
Team Cherry Explain
why is there an extremely bloated log in this scene
what is that?
it's homothetys modlog
I was contemplating whether I should click the reaction since I have no idea what the joke is then I realized veru has blocked me so I can't anyways
can we get an Amen for "fung_bush8"
aka the most used HK asset
aka like 30% of Greenpath
is this lore
deep lore
very simple solution
Destroy(saleh.LocateMyFSM("end-my-suffering-please"));
I'm gonna make an extension method called LocateFSM just so i never have to see LocateMyFSM ever again
putting my in shit is disgusting
is locatemyfsm part of playermaker?
i think it's a tc extension method
wow tc knows how to make those
me fool
maggotPrime
lol
programming god
why is the Celeste character controller being heralded as the jesus controller
For the log thing, they have some really weird shaders that make it to where it blends with the bg
Have you opened the hive yet? That one's pretty good
The shader fixes make it blend correctly but for some reason it causes clipping issues
are you talking to me?
no he's talking to the other guy who asked about the extremely bloated log
Has anyone ever looked at the idea of being able to like, copy a save file to another save slot? Is that theoretically doable?

🤔
It's impossible

@fsm man please find a way to do this
Who is FSMman?
God
there should be a fucking warning on this shat
ask one bad question and boom
you're instantly turned into a copypasta
there should be a fucking warning on this shat
ask one bad question and boom
you're instantly turned into a copypasta
there should be a fucking warning on this shat
ask one bad question and boom
you're instantly turned into a copypasta
there should be a fucking warning on this shat
ask one bad question and boom
you're instantly turned into a copypasta
there should be a fucking warning on this shat
ask one bad question and boom
you're instantly turned into a copypasta
who wants to explain reflection to me
Reflection is the change in direction of a wavefront at an interface between two different media so that the wavefront returns into the medium from which it originated. Common examples include the reflection of light, sound and water waves. The law of reflection says that for specular reflection the angle at which the wave is incident on the surface equals the angle at which it is reflected. Mirrors exhibit specular reflection.
u know u got lake skip and then some sleeper movement over to badeline and then u fight her and then u get 2 dashes
pretty simple
so let's say I have some Knights but the devs keep updating their game and changing the name of the method GetArmor() to GetTheArmor() or GetArmour() and stuff every update
but it's always the same method
I could use the following to get the method no matter what they change its name to, correct?
(Armor)typeof(Knight).GetProperties().First(x=>x.PropertyType == typeof(Armor)).GetValue(instance, null);```
methods are not properties ngl
and that would be casting a PropertyInfo to Armor
it'd be like
(Armor) typeof(Knight).GetMethods().First(x => x.ReturnType == typeof(Armor)).Invoke(instance, null);```
what I think is going on here is I get the GetArmor method and use GetValue to get the instance of Armor I desire
I'm fairly sure the code I'm using works
although your code there helps me a ton
oh hold on
I think it's a property I'm getting and not actually a method
and it's the property that keeps changing its name from like Armor to MyArmor to KnightsArmor
they're going to be updating hk like 1 more time anyways so who cares
I have
oh
anger
is there any way to make it look prettier
no
throw salt on it
thank you, you have been very helpful
I try
this is actually so powerful
you're welcome
its a shame 56 didnt help
I think he knows about reflection too
shame
If you want faster reflection I wrote something for the API for fields
It's way faster
(Armor) typeof(Knight).GetProperties().First(x=>x.PropertyType == typeof(Armor)).GetValue(arthur);
so this line of code would give me Arthur's armor?
alright so what's First mean here
I'm guessing First() is being called on some type that's like an array of properties?
it's an array so yeah
PropertInfo pi;
foreach (PropertyInfo p in typeof(Knight).GetProperties())
{
pi = p;
break;
}
basically the same
lambda
local function
it's the same as
bool IsArmor(PropertyInfo x)
{
return x.PropertyType == typeof(Armor);
}
First(IsArmor)
First is called on an array, and it returns the first element in that array that is a function matching the form of the lambda it is given as a parameter
oh ok
what
I may or may not understand IEnumerables completely
it's just an interface
oh
you mean First is called on any ienumerable
I misread, thought you meant any ienumerable matching the lambda
Yes
and final final question
x=>x.PropertyType == typeof(Armor) is x's type here being inferred somehow or?
does it not matter
inferred yeah
does not specifying a type in a lambda mean it could be anything?
so that lambda in particular might not work in some scenarios, but it's working here because of what it's being compared against?
that lambda being x=>x.PropertyType == typeof(Armor)
what's the type of x for me
PropertyInfo
because .GetProperties() returns PropertyInfo[]
first iterates through the elements of the collection
and could I write PropertyInfo x=>x.PropertyType == typeof(Armor)
i think so
ok thank you I think I understand reflection and lambdas enough to use them properly now
as always you are very helpful 56
new question for 56
how does one stay awake past 9 pm
public static Armor getArmorFromKnight(Knight instance)
{
return (Armor) typeof(Knight).GetProperties().First(x=>x.PropertyType == typeof(Armor)).GetValue(instance);
}
this look right to you?
ig?
i guess
infinite grimm
intimately gay
hot dog emoji

fuck me I got a filling and my gums cant take temp changes
im such a reet
should have flossed more
floss boys
dont be me
if you try to unsubscribe from an action but the method you're trying to unsubscribe isn't even subbed to the action, does it throw an error?

No
if Moses used Beyblades to part the red sea, did David kill Goliath with a Beyblade too?
It's considered good practice to do so actually
Japan is straaaaaaange
if I submit a speedrun of my own game, because its an HK fangame, do I get the speedrunner role?

get the wr on your own game by including a hidden shortcut to the ending and never disclosing it
what does Leth do?
PR
hi
Yes it is me xero
thank you 😊
Hello from the uk
Hello it is i Wilbo please take down fangame or else silksong will be banned from your country thank you
TTacco You Fool
I Am Real Wilbo FSM Cherry himself
Hi Real Wilbo FSM Cherry himself
Im taco
hi taco
In those messages with benji i think he mentioned that team cherry saw your message/“were getting in contact” or something
havent you emailed them yet or something?

Who needs them
No reply yet?
Noperino
Huh
ahh so the typical college prof response time 
Revolutionary i know
kry’s physics professor is pretty good if i do say so myself
imagine taking physics
My prof broke some of his ribs 2 days ago
but he didnt cancel the class
because we had a speaker
which is fair
You just said her and he
But yeah either they werent able to read it, forgot about it, or its buried underneath 500 emails asking about the release date and/or if theyre gonna release on console 
the more impressive thing is how they are male and female at once
true trans icon







