#archived-modding-development

1 messages · Page 144 of 1

compact sedge
#

I guess c# runtime never compiles to that tho

#

no wonder it's slower than c++

leaden hedge
#

the function is probably very similar to the float / double one

rain cedar
#

There's this one from stackoverflow with some fancy optimization

int IntPow(int x, uint pow)
{
    int ret = 1;
    while ( pow != 0 )
    {
        if ( (pow & 1) == 1 )
            ret *= x;
        x *= x;
        pow >>= 1;
    }
    return ret;
}```
leaden hedge
#

you can hack in the asm exp function if you really want

#

with unsafe code

compact sedge
#

meh no thanks I don't care that much

#

just super concerned with perf because people getting lag in infinite grimm is bad

#

but I suspect it's just memory leaking combined with HK being 32 bit on windows causing it to be super laggy after... say... 6 hours

leaden hedge
#

how can hk memory leak it has pooled prefabs intenseface

compact sedge
#

idk all I know is it doesn't happen on my pc and I'm on 64 bit

#

and also don't have background programs updating and scanning for viruses 24/7

#

Given how dedicated DLKurosh is to playing IG I wouldn't be shocked if he installs the lightest and most minimal OS that can run HK 64 bit just to get around it.

copper nacelle
#

tiny core linux

#

12mb

compact sedge
#

is it even 64 bit

#

has anyone ever run steam on it

#

maybe he can be the first

#

set it to a realtime prio (-21)

#

load game into ramdisk

#

get 64GB of ram

#

that one 32 core cpu

leaden hedge
#

just bypass steam

compact sedge
#

oh uh kdt, not to knock your code or anything

#

but I just rewrote your NGG spike position controller to run hundreds of times less often and 10s of times faster

leaden hedge
#

so you made it 10times less efficient per call 🤔

compact sedge
#

hmm

#

...no

#

10s of times faster refering to per call

#

but

#

I wouldn't put it past myself to make it less efficient

#

I added it as a method run only when NKG is casting the spikes instead of every frame and because I did this I could get rid of both:

float zAxis = (grimmFSM.ActiveStateName == "AD Antic" || grimmFSM.ActiveStateName == "AD Fire" || 
                         grimmFSM.ActiveStateName == "AD Edge" || grimmFSM.ActiveStateName == "GD Antic" ||
                         grimmFSM.ActiveStateName == "G Dash Recover" ||
                         grimmFSM.ActiveStateName == "G Dash") ? -1.0f : 1.0f)```
and

`if (spike.ActiveStateName != "Dormant") continue;`
leaden hedge
#

do you look at the code via dnspy rather than the github 🤔

compact sedge
#

no

#

but I inverted the if, and wrote out float zAxis so you'd know what I was talking about

leaden hedge
#

you're talking about this

                for( int i = 0; i < 15; i++ ){
                    if ( spikeFsms[i].ActiveStateName == "Dormant" )
                    {
                        spikes[i].transform.position = new Vector3((float)(66 + (2.5 * i) + (random.NextDouble() * 2.8)), 4.5f, (fsm.ActiveStateName == "AD Antic" || fsm.ActiveStateName == "AD Fire" || fsm.ActiveStateName == "AD Edge" || fsm.ActiveStateName == "GD Antic" || fsm.ActiveStateName == "G Dash Recover" || fsm.ActiveStateName == "G Dash") ? -1.0f : 1.0f);
                        //spikes[i].transform.localScale = new Vector3((float)(65 + (3 * i) + (random.NextDouble() * 3.0)), 4.5f, 0.0f);
                        PlayMakerFSM sFsm = FSMUtility.LocateFSM(spikes[i], "damages_hero");
                        //sFsm.FsmVariables.GetFsmInt("damageDealt").Value = 1;
                    }
}
compact sedge
#

yes

#

I got rid of the if statement and can safely set the z axis to 1.0f always without the string compare

#

and uh also got rid of that unused line right below that

leaden hedge
#

thats atleast 7 operations per frame saved

compact sedge
#

oh and it only runs when he actually casts his spikes instead of every frame

#

in NGG that's on the order of 100 times less often and in normal grimm it's on the order of 1000

leaden hedge
#

if you want it to be more efficent edit the actual spike fsm state that starts the antic

#

then you only need to set it once, instead of twice (once vanilla and one modded)

#

and you dont need to keep references constantly

compact sedge
#

oh yeah I forgot to mention I also got rid of the vanilla position setting thing

leaden hedge
#

why'd you not just change it to be random

compact sedge
#

¯_(ツ)_/¯

#

cuz I don't wanna deal with playmaker crap

leaden hedge
#

also instead of making spikes go back and forth

#

if you're editing fsms

#

just make the fire spawn in the back

#

thats the only reason that code is there is so spikes spawn infront of fire

#

so just move the fire back

compact sedge
#

or just make the spikes spawn in front always

leaden hedge
#

the sprites aren't designed for it and it looks weird sometimes

#

although it does stop the knight from obscuring them

compact sedge
#

wait why didn't you just edit the other GameObjects z axis positions

leaden hedge
#

i have no idea what position it is at nor if they are active and have been moved

#

I assume they are pooled

#

and they are only created when he does his dash

compact sedge
#

fun fact

leaden hedge
#

unlike spikes which are permanently active

compact sedge
#

they're all just gameobjects in the scene

#

and also

#

they're all at z=0.0

#

including the spikes

#

so you could have just done
spike.z = -0.0001

leaden hedge
#

you can't do that

#

vectors are read only

compact sedge
#

My point is when you set the spike position you could have just always set their z axis to -0.0001 instead of conditionally setting it to -1 or 1

leaden hedge
#

no

#

because then it'd be behind the fire

#

and you can't see it

#

it has to be infront of the fire when fire is out

compact sedge
#

what? I'm like pretty sure the z axis is backwards no

leaden hedge
#

but preferably behind the ground so you can't see the bottom of the sprite

compact sedge
#

like -1 is closer to camera

#

and 1 is away

leaden hedge
#

well either way, then it'd probably be infront of the ground + player

#

showing the bottom of the sprite

#

preferably it'd be at the back, with the fire further back

compact sedge
#

or move the ground up

leaden hedge
#

maybe

copper nacelle
compact sedge
#

all the nightmare fabric floors are at -0.1

tranquil glen
#

How would I connect two objects with 10 evenly spaced identical 'links'. I tried assigning each link an ID from 0 - 9 and then setting their x position to the (((X of obj 1) - (X of obj2) / (5/ID of the link)) + X of obj 2) and it kind of works but some of the links seem to be missing and they're bunched up closer to one object than the other rather than being evenly spaced

#

Sorry if i formatted that horribly

leaden hedge
#

what you want to put 10 objects spaced evenly between 2 points?

tranquil glen
#

Yeah

leaden hedge
#

division happens first is why your code is broken

#

but you can just do Vector3.Lerp(a,b, fraction);

#

so 10% of the way from a to b is Vector3.Lerp(a,b, 0.1f);

tranquil glen
#

Ok but the thing is I'm doing this in Clickteam fusion 2.5 and not a real coding language so I needed to create a mathematical function for myself zote

copper nacelle
leaden hedge
#
float lerp(float v0, float v1, float t) {
  return (1 - t) * v0 + t * v1;
}

apparently

compact sedge
#

uh

#

well then not surprised it isn't working?

#

but uh yeah do what kdt posted

#

it's a weighted average

#

and a thing I've absolutely abused to death in my code

#

I'd marry weighted averages if they weren't already taken

leaden hedge
#

if your language does orders of operations wrong its
return ((1 - t) * v0) + (t * v1);

compact sedge
#

tbh it's clickteam fusion so I don't have high hopes

tranquil glen
#

This like isn't even a language tho yeah

#

I can't actually code

compact sedge
#

neither can any other successful game devs

tranquil glen
#

I need a like straight math way of doing this

compact sedge
#

at least going by HK

leaden hedge
#

I gave you one

#

(x*(1-s)) + (s*y)

#

although x+s(y-x) works fine too intenseface

#

I dunno if I can go anymore maths

tranquil glen
#

Would you mind letting me know what those variables represent noot

#

I actually have no idea what I'm doing

compact sedge
#

v0 or x is the first point

#

v1 is the second point

#

t is some value from 0 - 1

#

what you do for say 10 equally distant points between 0 and 1 is apply that formula and for t insert 0, 1/9, 2/9, ... 1

tranquil glen
#

Thanks a bunch

#

FNAF was made in Clickteam fusion, how could it not be a great program zote

urban olive
#

wait was it actually

#

lmao

copper nacelle
tranquil glen
#

Yeah I think so

#

Very basic game though just flipping through still images basically

copper nacelle
#

that makes you do a real big think

hazy sentinel
#

lmao it was written in english dumb cubmaan

tranquil glen
#

Lmao

copper nacelle
compact sedge
#

eww

#

that's almost worse than html

copper nacelle
compact sedge
#

programming with Microsoft Excel

tranquil glen
#

No Clickteam fusion is actually pretty good, I'm obviously gonna start using a real language once I learn em but it's a usable program

hazy sentinel
#

ok but what if you learned a real language now so you don't have to use clickteam fusion

tranquil glen
#

Ok but what if im really fucking lazy

#

And also paranoid that I'll start learning the wrong language zote

compact sedge
#

don't worry

#

you already are

tranquil glen
#

Also I don't have wifi for the next week so I actually don't have a choice atm

#

I'm not gonna try to learn a programming language on data

hazy sentinel
#

do you have ethernet

compact sedge
#

anyway idk if it's the best tool in the world but if you wanna make at least 2d games and have the power of both fsms, scripting, and real code in your hands I'd recommend Godot.

tranquil glen
#

Never heard of it

compact sedge
#

ethernet's a great invention

copper nacelle
#

i've heard the name godot like twice

compact sedge
#

it's pretty dang good

tranquil glen
#

I don't have ethernet no

#

Didn't even see that

#

Only access to the interwebs I have right now is my mobile data

#

I also don't know how much I have left

compact sedge
#

it uses c# as backend, and basically everything is a node with is either a component or a gameobject or some combination of both. And it has a graphical scripting language which is pretty easy to use and work with that lets you string together behaviors.

leaden hedge
#

pygame is obviously the best engine

compact sedge
#

ncurses

leaden hedge
#

actually ren'py

compact sedge
#

but uh anyway it's on steam and the entire engine is only like a gig including the mono stuff so I'd give it a try if you want

tranquil glen
#

What about scratch hollowwoke

#

We have to teach the kids how to use it at the comp sci summer camps that I help with and every time I use it it's worse than I remember

compact sedge
#

scratch makes netlogo look good

#

also that reminds me, I entered a computer programming challenge like a year or so ago and my team was one of four to not use netlogo for our project

copper nacelle
#

the fuck

compact sedge
#

we made a ecology simulator in c++ and a very simple sfml rendering engine

#

and we used numpy to graph the results

#

there were like 2 other teams using numpy and you can tell because their graphs also looked sexy

#

(and also exactly the same formatting wise since we all used the defaults)

tranquil glen
#

What's a nor gate?

leaden hedge
#

not or

#

!(a || b)

tranquil glen
#

So none or both?

compact sedge
#

true only if neither a nor b are true

tranquil glen
#

Oh just none

copper nacelle
#

both is and

compact sedge
#

it's the mirror of the and gate (not the opposite but the mirror)

#

if that makes any sense

tranquil glen
#

I thought that's what a not gate was

#

Is a not gate a thing?

compact sedge
#

not takes one input

#

and inverts it

tranquil glen
#

Oh

compact sedge
#

this is two inputs

#

and if both are false

#

and only if both are false

#

returns true

tranquil glen
#

Ok got it

leaden hedge
#

In electronics, a logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more binary inputs and produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one...

tranquil glen
#

And xor is one or the other but not both right?

#

Sorry you guys take less data than google

leaden hedge
#

xor is A != B

#

nxor is A==B

tranquil glen
#

Ok

compact sedge
#

wtf ur already offline (well off "wifi")?

#

I thought you were leaving

tranquil glen
#

Also I've always wondered why you need two =

leaden hedge
#

= is for setting

tranquil glen
#

Yeah I'm already gone

leaden hedge
#

not checking equivilance

compact sedge
#

ok do me a favor and remind yourself to do this the next time you're gone for more than 3 days without internet

tranquil glen
#

O shit

compact sedge
#

trust me it's 100% worth it

tranquil glen
#

Had no idea that was a thing

leaden hedge
#

although == will attempt to cast things to check

#

like true == "1" may work on some languages like javascript

#

but true === "1" wouldn't

tranquil glen
#

Wait no I understood a second ago and now you're talking about casting and theres 3 = and I've lost it

copper nacelle
#

things have types

#

in certain languages

#

the languages will try to make the types the same

#

e.g javascript

#

so true == "1"

#

would be true

#

but === in these languages

leaden hedge
#
a = b // this sets a to be the same value as b
a == b //this checks if a and b are the same value 
a === b //this checks if a and b are the same value and type
copper nacelle
#

doesn't try to make the types the same

#

so true === "1" is false

leaden hedge
#

so 1 == 1f but 1 === 1f doesn't

dark wigeon
#

Watch the wat video

tranquil glen
#

Ok cool, was not expecting the explanation to make that much sense to me

dark wigeon
#

Also as a person who has kiwix, there isn't an so download and wikiversity/books has barely anything on programming

copper nacelle
#

the full download is like 26gb, right?

compact sedge
#

last I checked

#

no pictures it's around 10GB

#

with pictures it gets up into the 80s

dark wigeon
#

Heres some of my dls

compact sedge
#

nope it's grown a lot

#

nvm

leaden hedge
#

how much to download all of my favourite h site

dark wigeon
#

So about 20 for non pics

leaden hedge
#

much more important question

compact sedge
#

20GB no pictures

#

but the good news

#

is your H site is only 1MB without pictures

leaden hedge
#

ez

#

all I need is the descriptions

compact sedge
#

you're like the NSA

#

You jerk it to metadata

hazy sentinel
compact sedge
#

look at all these books

leaden hedge
#

you think im gonna read

#

like some kind of nerd

compact sedge
#

hey anyone here know how to send an event in unity?

#

like a broadcast event

leaden hedge
#

why

compact sedge
#

cuz I like writing bad code that's easy

#

over writing good code that's probably easier in the long run

copper nacelle
#

wow is this tc

leaden hedge
#

delegates 🤔

#

I mean if you really want to use unity events

#

its UnityEvent / AddListener / Invoke

compact sedge
#

nah this is playmaker events

#

I'm just copying the code from the playmaker SendEvent function

copper nacelle
#

r u ok

compact sedge
#

it probably will work

#

let's see

copper nacelle
#

meme.danceSpeed

compact sedge
#

let's just say I'm a monster

copper nacelle
#

are you making ngg worse

#

and more infinite

#

can u don't

leaden hedge
#

PlayMakerFSM.BroadcastEvent ?

compact sedge
#

I'm making normal infinite grimm more like NGG

copper nacelle
#

make it its own leaderboard when ur done

#

kthx

leaden hedge
#
    public static void BroadcastEvent(FsmEvent fsmEvent)
    {
        List<PlayMakerFSM> list = new List<PlayMakerFSM>(PlayMakerFSM.FsmList);
        foreach (PlayMakerFSM playMakerFSM in list)
        {
            if (!(playMakerFSM == null) && playMakerFSM.Fsm != null)
            {
                playMakerFSM.Fsm.ProcessEvent(fsmEvent, null);
            }
        }
    }

which just does this

compact sedge
#

I'm making infinite grimm classic and infinite grimm modern

#

this is the new modern one

copper nacelle
#

with its own leaderboard

#

right

#

please

leaden hedge
#

so if you know what fsm you're trying to broadcast too

compact sedge
#

yeah

#

I'm changing a lot of stuff

#

like there's a cap on the maximum number of hits to stun

#

at 30 for now

copper nacelle
#

make it faster

compact sedge
#

but it's gonna get a LOT harder

copper nacelle
#

yes

#

this is good

#

also add the one hit mode imo

compact sedge
#

yeah that's coming too

leaden hedge
#

you can do playmakerFsm.ProcessEvent(FsmEvent.GetFsmEvent(eventName), null);

#

which is probably way faster

#

than iterating over every fsm

compact sedge
#

oh I'm not doing either of those

#

my code is

            SendEventByName spikeAtk = grimmFSM.getState("Spike Attack").getActionsOfType<SendEventByName>()[0];
                spikeAtk.Fsm.Event(spikeAtk.eventTarget, spikeAtk.sendEvent.Value);
                spikeAtk.Finish();
#

the last two would be run in the SendEventByName method

#

but that method isn't getting run anymore

leaden hedge
#

oh wow this is a keyword you don't see a lot

        public static FsmEvent GetFsmEvent(string eventName)
        {
            FsmEvent result;
            lock (FsmEvent.syncObj)
            {
                for (int i = 0; i < FsmEvent.EventList.Count; i++)
                {
                    FsmEvent fsmEvent = FsmEvent.EventList[i];
                    if (string.CompareOrdinal(fsmEvent.Name, eventName) == 0)
                    {
                        return PlayMakerGlobals.IsPlaying ? fsmEvent : new FsmEvent(fsmEvent);
                    }
                }
                FsmEvent fsmEvent2 = new FsmEvent(eventName);
                result = (PlayMakerGlobals.IsPlaying ? fsmEvent2 : new FsmEvent(fsmEvent2));
            }
            return result;
        }
copper nacelle
#

wtf

#

i've never seen lock

compact sedge
#

woah async

#

Oh good lord it's hard

leaden hedge
compact sedge
#

Why have I done this

copper nacelle
#

sharing

#

is

#

caring

#

thanks

compact sedge
#

ok 1 sec let me set the values from the debug ones to the game ones

copper nacelle
#

vys just got wr

compact sedge
#

I definitely need to balance it tho

#

u

#

wut

copper nacelle
compact sedge
#

nice

hollow pier
#

isnt it his bday

copper nacelle
#

yes

#

BIRTHDAY STREAM | Any% NMG practice and WR attempts

warped sinew
#

Is dat sum new IG?

compact sedge
#

not quite yet it's still wip

copper nacelle
#

aka play it

compact sedge
#

but it's gonna have everything you wanted and also be a lot harder

copper nacelle
#

also graig get bopped

#

i stole your build

#

except gayer

#

shape of unn too

compact sedge
#

My hand was forced after someone found a way to cheese infinite grimm

#

and got 250k

warped sinew
#

That quick heal shape of uun too good!

compact sedge
#

after 6 hours

warped sinew
#

Easy 50k

copper nacelle
#

shape of unn, quick focus, deep focus

#

makes it hard to die

#

tbqh

warped sinew
#

Lol who got 250k?? Haha

compact sedge
#

Kurosh

copper nacelle
#

only 6 hours

#

real big zote

warped sinew
#

Just disable charms, problem solved

compact sedge
#

no that's for GnG

#

what do you think I am, someone who copies other peoples ideas?

warped sinew
#

Haha

compact sedge
#

I don't copy ideas, I copy code

#

and ideas

copper nacelle
warped sinew
#

Make Grimm do more damage with every 5k

compact sedge
#

that's not happening. Grimm's actually getting more lenient with damage and stuns but faster

#

so individual mistakes are punished less

copper nacelle
#

memes

compact sedge
#

but mistakes will be a lot easier

warped sinew
#

Yeah, faster is better.

#

More fun and chaotic

compact sedge
#

I made this choice because I felt it was too harsh for the game to stutter and someone to lose because of it

copper nacelle
#

but did you fix quick focus

compact sedge
#

I haven't yet

copper nacelle
#

time to get 10k easy

compact sedge
#

.... good luck with that

#

Also I wanna play with the actual game timescale too

#

so that's gonna be really fun

copper nacelle
#

1.5x is really fun

compact sedge
#

I might not go that far but I'm thinking 1.25x on top of grimm's increased speed in every other way

copper nacelle
#

ree

#

nice settings reset

compact sedge
#

I renamed the mod

#

to InfiniteGrimm

#

that's how it will be on version 1

copper nacelle
#

also imo make ReduceLagInGrimmFight the default

compact sedge
#

its not a problem on normal mode and also there's now two reduce lag settings

copper nacelle
#

isn't it even easier to get to 10k+ on normal

compact sedge
#

well if you turn on lag reduction yes.

#

hmm

#

maybe I should make it default because it makes the fight easier just because it increases the contrast

#

but it ruins the asthetic so no

copper nacelle
compact sedge
#

there's two reduce lag settings

copper nacelle
#

gdi

compact sedge
#

its for testing. I'ma get rid of the first one eventually

#

and rename the second one to the first one

copper nacelle
#

wtf

#

if you hit inventory at the right time you don't take damage

compact sedge
#

hmm

copper nacelle
#

not ig

compact sedge
#

debugmod or modding api then?

copper nacelle
#

yeah

#

i mean

#

probably not ig

#

too lazy to test

compact sedge
#

it shouldn't be ig

copper nacelle
#

did you randomize spikes

#

cause those seemed way closer than usual

compact sedge
#

yes

#

well

#

basically I have various difficulty increases that happen at certain damage thresholds

flat forum
#

NGG Spikes at 100 000 damage

#

double NGG spikes at 200 000 damage

compact sedge
#

that would be especially evil because who wants to fight grimm for 200000 dmg... well besides that one guy

#

wait how much geo would that be

flat forum
#

too much

compact sedge
#

he got... 50817

#

from one run

copper nacelle
#

angle what have you done

compact sedge
#

right isn't it like way too hard and way too hard out of nowhere?

flat forum
#

hey 56

compact sedge
#

I told you

flat forum
#

do you have a save with a ded Nailsmooth

compact sedge
#

if you can somehow

#

somehow

#

find the 6 flame save

#

that got unpinned from discussion

#

that one had a dead nailsmith

flat forum
#

wait, why was it pinned?

flat forum
#

what kind of save was that?

compact sedge
#

found it

#

idk why

copper nacelle
#

literally ngg

compact sedge
#

ima slow it down a lot and by slow it down a lot I mean make the spikes take like a second before they actually pop up

copper nacelle
#

got a little under 5k on my first attempt

flat forum
#

well guess what

copper nacelle
#

might need a build swap

flat forum
#

I'm not playing NGG until GnG

#

so I can be bad at the game

compact sedge
#

too bad, IG is now NGG

#

/s

flat forum
#

and not ruin the fun by being too good for the bosses

copper nacelle
#

no /s

#

tbqh

compact sedge
#

the only positive

#

is my code is slightly less shit than NGG code

#

wait

#

nvm

#

no it isn't

flat forum
#

well, if it makes you feel any better, have you looked at my code?

compact sedge
#

some of your code is actually pretty elegant all things considered

flat forum
#

...examples?

compact sedge
#

I mean

leaden hedge
#

you know you can set max delta time

compact sedge
#

it'd be better served by a switch

leaden hedge
#

to some realistic value

#

like 0.02

compact sedge
#

will that make the same slow down instead of lag

leaden hedge
#

so if the game lags it just runs slow

#

instead of skipping 100 frames

compact sedge
#

what's it set at now

#

cuz I'm so down for doing that

flat forum
#

also I need to make that Moss Prophet guy do the not alive

leaden hedge
#

like 0.4 or something

compact sedge
#

ok that's kinda high for a single player game

#

alright I know what I'll do

#

reduce lag 1 - gets rid of all the gameobjects and stuff
reduce lag 2 - does that

#

idk though people could cheat with that I think

#

imagine fighting NGG on especially shitty hardware

leaden hedge
#

put igt in like bossrush

#

dq if timer too far off

compact sedge
#

gonna have to look at boss rush source code

#

never even looked at that mod's source before

leaden hedge
#

thats a clusterfuck

#

i mean what

compact sedge
#

tbh I know GnG is coming out in a month but I'm sad boss rush never got ported

upbeat yew
#

what kind of mods are in hollow knight?

flat forum
compact sedge
#

assembly mods. This ain't like skyrim where 95% of mods are just retextures

flat forum
#

what are the other 5% of skyrim mods?

compact sedge
#

ok this is useful

#

but

#

how do you track how offset it gets

upbeat yew
#

there are some that add new places

#

and mechanics

compact sedge
#

with the actual game time

#

yeah but those aren't assembly mods usually

#

unless they're made in skse

leaden hedge
#

you can check current time on start

#

and current time on each frame

compact sedge
#

ok

leaden hedge
#

although I'd just do it manually and require video verification tbqh

#

nothing stopping people from using debug to cheat

compact sedge
#

meh IDC that much about the leaderboard and I'm not really worried about people intentionally cheating as much as people playing on crappy hardware and doing much better than they should because of that

#

and that's fine

#

if you keep the score to yourself or play against yourself

copper nacelle
#

5599

#

time to swap builds

compact sedge
#

nice

#

nothing happens past the NGG spikes yet

#

I wanna add a few more changes

#

5 probably

copper nacelle
#

consider

#

not putting ngg spikes during pufferfish

#

until later

#

for my sanity

#

thanks

compact sedge
#

good idea

#

also the real thing I need to do

#

is make them very slow on coming up

#

so you have lots of time to dodge them

#

at least at first

#

because I want the spikes to be mildly annoying

#

not something that is the worst part of the fight

floral furnace
#

Radiance style spikes where it covers half the arena periodically

flat forum
#

heh

compact sedge
#

see that's another cool idea

#

but no spikes

#

it would be fire

#

so you can't pogo it

#

and because fire

flat forum
#

at 250k The Radiance joins in

floral furnace
#

can you even pogo at the regular nkg spikes?

copper nacelle
#

yes

flat forum
#

ye

floral furnace
#

w h a t

compact sedge
#

you can also pogo the radiance spikes

copper nacelle
#

^

floral furnace
#

i know the radiance spikes but didnt know about the nkg ones being pogoable

leaden hedge
#

nkg spikes being pogable is extremely annoying

compact sedge
#

I was gonna make the edges of the arena death actually

#

well not death

#

but like -2 masks

#

and ofc I need to speed up the speed that firebats move if I wanna make unn not viable

leaden hedge
#

extend hitbox downwards

compact sedge
#

maybe but no

#

as evil as hardmode is gonna be I really don't want to mess with that much established muscle memory

#

I want people who are good at NKG to be good at IG

#

with that said

#

I might get rid of the bat attack but make bats fly in from either side of the screen

#

since I'm making the sides death

#

ofc all this is subject to change if any of it becomes unfun

leaden hedge
#

you could make a pillar spawn tbh

#

doubt you can slug out of the way in time

#

also if you want annoying spikes without being cancer

#

you could make them activate way quicker, but in succession instead of all at once

#

then it'd act similar to radiances pillars

flat forum
#

Nailsmooth, more liek ded

#

Ok, onto the next one

copper nacelle
#

7zip moving stuff into zips is great

#

never going to unzip to update something ever again

flat forum
#

well, I killed the Nailsmith

#

next challenge is the prophet

#

who just doesn't want to die

#

is his trigger the infection of the crossroads?

copper nacelle
#

yeah

#

iirc

#

just set his fsm state

#

embrace the fsm i mean what

leaden hedge
#

just delete everything on scene load

flat forum
#

well, I'll have to deal with FSMs anyways

#

but I'd rather leave that for a bit later

copper nacelle
leaden hedge
#

that won't destroy BossLoader

#

i said delete everything

#

delet this

copper nacelle
#

re

#

with bossloader deleted they carry over into the next scene

compact sedge
#

Pillar spawn

#

more like

#

redwing flamegen returns

flat forum
#

what's Unn's room called?

copper nacelle
#

angle no

#

ruining the aesthetic smh

compact sedge
#

anyway I'll figure it all out tomorrow. for now my brain's not in the right space to code anymore

flat forum
#

Ok

#

Good Night!

compact sedge
#

also I'll do the flames better trust me 56

#

I'll pick better colors

#

oh I an't sleeping yet

#

just can't mod anymore

copper nacelle
#

on the other hand

#

i am

#

gn

compact sedge
#

unn's room is probably fungal wastes something or other

copper nacelle
#

it's in greenpath

compact sedge
#

why don't you have a thing logging the room you're in papers

copper nacelle
#

debug mod

floral furnace
#

wow 56 sleeping, this is new

compact sedge
#

all the greenpath rooms are fungal rooms

copper nacelle
#

homo

compact sedge
#

fungus1, fungus2, fungus3

floral furnace
#

btw 56 is shitmodst still happening

compact sedge
#

are I think greenpath, fungus, and fog

#

not in that order

copper nacelle
#

ask 753 to release source

#

or ask him if i can just decompile it and re-release it

floral furnace
#

cuz i really want to add the "you equip 5 random charms every 10 seconds" addon

compact sedge
#

inb4 dmca

#

make your own shitmodst

#

I did it

#

you can too

floral furnace
#

damn right

compact sedge
#

and make it api

floral furnace
#

Shitmodst Supreme edition

compact sedge
#

so people can install all of them

floral furnace
#

y e s

#

wait was shitmodst 1 not api?

compact sedge
#

no

#

made before api

floral furnace
#

oh yeah

leaden hedge
#

also speaking of boss rush the last commit was 8months ago wtf

compact sedge
#

by a modder who makes closed source mods

#

ugh this.... kdt... guy really needs to update his mods

copper nacelle
#

lightbringer is open sourceish

leaden hedge
#

has it actually been 8 months of gng soon

copper nacelle
#

yes

compact sedge
#

was the source code for lightbringer out before you asked him about it

copper nacelle
#

yes

compact sedge
#

ok

copper nacelle
#

i didn't ask him about it

#

i just did it

#

then asked him later after actually wanting to finish the port

floral furnace
#

inb4 dmca 56 and he has to escape on a different country under the name 78 just to avoid the law

leaden hedge
#

i mean dmca is just take down and its solved 🤔

compact sedge
#

The plantif... some numbers... hereby charges the defense... some other numbers... with stealing source code

#

what say you defense

floral furnace
#

uhh i mean oh ok

copper nacelle
compact sedge
#

rip

#

anyway when's your shitmodst happening ttacco

#

I made mine in a day

#

and it's really shit

copper nacelle
#

git config --global core.safecrlf false

#

this is a beautiful command

compact sedge
#

actually believe it or not I stole code from my shitmodst

#

because it did something good

#

I steal code from all my mods

#

and all your mods

floral furnace
#

not even a full shitmodst i just really want try out random charms every 10 secs, inb4 it crashes on charm unequip while using it GWchadThink

compact sedge
#

tbh mine is just dashes

#

so it's not full either

#

most of the time was spent getting the advertising working

#

it mostly works

floral furnace
#

so arent yours technically shitmodst 3

#

or is it 4

compact sedge
#

no it's shitmothst

floral furnace
#

ohhhh yeah

#

good name

flat forum
#

Ok, this should have removed Unn

leaden hedge
#

hk shitposts are so 2017

floral furnace
#

this type of file will harm your computer, are you sure you want to keep shitmothst
i mean, hes not wrong about the harm your computer part

flat forum
#

WHAT THE

floral furnace
#

kdt this is art

copper nacelle
#

isn't that the thing you asked a dev about

leaden hedge
#

i asked how his distortion shader worked

floral furnace
#

56 whats the most efficient way of crashing hollow knight in game

compact sedge
#

busy loop

copper nacelle
#

run out of memory

#

read unsafe memory

#

actually

leaden hedge
#

crash(true)

floral furnace
#

oh yeah while loops in a heroupdatehook will crash it

copper nacelle
#

reading unsafe memory has gotten me crashes

#

multiple times

#

just make your code unsafe

#

and do unsafe things

floral furnace
#

nice

leaden hedge
#

don't read unsafe memory

#

thats boring

#

write unsafe memory

#

its like the lottery if it works

warped sinew
#

@compact sedge speeding up the game slightly makes it WAY more fun I feel and I think 100% you should do it. I would say after messing around with it a lot that 1.25 is perfect. Its enough to notice the flow of the game increase bit not enough so that the speed alone increase difficulty of the game. Once you get to 1.3 the game starts to get harder and less fun (unless you specifically want the challenge)

copper nacelle
#

1.5

leaden hedge
floral furnace
#

also this FSM viewer is really great tbh

compact sedge
#

Yeah that's definitely one of the things I'll be playing with for making grimm harder

copper nacelle
#

is this 1a dashless

leaden hedge
#

the only thing its missing is the laughs

#

FeelsBadMan

warped sinew
#

If I ever made a full game mod like Lightbringer one of the features would be 1.25 game speed. Its really fun.

compact sedge
#

graig make a full game mod

#

I dare you

flat forum
#

If I make a large mod one of the features will probably be talking to yourself, considering how lonely you are, abandoned in what remains of Hallownest

compact sedge
#

also pls it would be fun

flat forum
#

oh wait

floral furnace
#

wait is dream nail considered to be a spell FSM?

leaden hedge
#

rebalance charms first big thank

floral furnace
#

yeah make Heavy Blow not useless

leaden hedge
#

no make fury good

warped sinew
#

After GnG is out and HK is all finished up, I'll ask TC if I can make an unofficial "mod" using their stuff

leaden hedge
#

give +25% range so spitless is rta viable

warped sinew
#

They might let me

compact sedge
#

send tc's stuff

floral furnace
#

HK Official Modding tools 🔜™

flat forum
#

KDT I already made Fury Good

#

or like, at least decent

leaden hedge
#

modding tools 🤔

warped sinew
#

I want to make a "Graig Edit" with rebalanced charms, boss HP, etc

leaden hedge
#

its called unity editor

warped sinew
#

Also path of Graig lol

floral furnace
#

Hollow Knight Rebalanced

copper nacelle
#

Hollow Knight Remastered

floral furnace
#

non no

#

name it

flat forum
#

Hollow Knight: Reeeeeeeeeeeee

floral furnace
#

Hollow Knight Lifeblood

flat forum
#

FUK NO

floral furnace
#

Fluke Knights yes pls

flat forum
#

only 3?!

leaden hedge
flat forum
#

I demand at least 7 per room

copper nacelle
#

isn't that like

flat forum
#

make Celeste, but HK

copper nacelle
#

10 frame perfect inputs

#

per second

#

or something

#

i don't remember what you had said

#

agony

compact sedge
#

tbh these look like those really unfun super mario romhacks kdt

floral furnace
#

unfun

#

depends

warped sinew
#

I'd love to make a flying enemy/dark gate platforming bit where its cycle based. And you perfectly get in the rhythm to pogo, void dash, pogo pogo void dash through all the gates

compact sedge
#

this is my nightmare

floral furnace
#

if you hate yourself enough then it might be fun

warped sinew
#

And if you mess it up, your fucked cos the cool down will desync

leaden hedge
#

you have to dash up on the correct frame, jump on a specific frame, grab the frame after you jump, press down and release on the same frame and hold left for 14 frames then tap right and hold down repeat

#

like 12 times

copper nacelle
#

sounds good

leaden hedge
#

technically theres an rta way to do it

copper nacelle
#

shitmodst is like 10 lines of code

leaden hedge
#

but you don't have enough height at the end

#

and its still pain

compact sedge
#

dang I put way more effort into mine then lol

floral furnace
#

putting alot of effort on a shitpost is something everyone should strive for tbh

flat forum
#

I never got to try AA's redwing shitmod

compact sedge
#

I fixed bugs in it. Like what kind of stupid person would do that

flat forum
#

ShitMothds

leaden hedge
#

you mean like having someone ask you to make darkmod

copper nacelle
#

nvm it's like 40

leaden hedge
#

then you spend like 4 days trying to 107% it intenseface

compact sedge
#

well link's here if you scroll up and in the redwing server so

#

no excuse not to try

leaden hedge
#

after spending literally 5 minutes making it

flat forum
#

Yeah, but

#

uhhh

#

busy killing veryone in Hallownest

warped sinew
#

Did you ever ToF darkmod?

leaden hedge
#

no sounds cancer

warped sinew
#

Yeah

#

Everything else I think I could do, but ToF god damn

compact sedge
#

everything else

#

radiance

warped sinew
#

Don't need for 107% m8

compact sedge
#

become one with the swords, so much that you can predict their location

copper nacelle
#

ok so as far as i can tell

#

shitmodst is just

#

the text

#

blue flash when you attack

#

stupid sword range

leaden hedge
#

ToF can probably be done

copper nacelle
#

and 999 nail damage

compact sedge
#

there's also the geo when you die

leaden hedge
#

stuff spawns at consistent places

copper nacelle
#

also 1.1 timescale

compact sedge
#

but other than that yeah

copper nacelle
#

this would take 10s to port

leaden hedge
#

but I never do ToF in vanilla

compact sedge
#

note to self: no more effort in shitposts

#

wtf

#

I didn't know the nail actually did 999 tho

copper nacelle
#

might be 9999 idk

leaden hedge
#

less effort in shitpost = higher quality

copper nacelle
#

oh nvm found some more stuff

compact sedge
#

see this is what I'm learning

copper nacelle
#

line endings are cancer

#

makes it a pain to find what i want to find

compact sedge
#

here I put like, multivariable calculus into mine

copper nacelle
compact sedge
#

like wtf am I doing

#

with my life

floral furnace
#

now thats alot of bools

leaden hedge
#

you know what would be a shitpost

flat forum
#

yes

leaden hedge
#

hollow knight but everytime the knight gets hit it goes faster

floral furnace
#

hmmm

flat forum
#

Y E S

warped sinew
#

How fast can u boiz data mine GnG????

leaden hedge
#

depends

floral furnace
#

5

flat forum
#

VERY

copper nacelle
#

just release another beta with gng left in

#

thanks

leaden hedge
#

on how many layers of fsms its on

warped sinew
#

Plz no spoilz the game ;)

#

Thx

copper nacelle
#

gng confirmed to be left in beta

#

aa get looking

#

u ever just

#

find ./ -type f -exec dos2unix {} \;

floral furnace
#

Early 2018 is just anything before August 24 for Australian time

warped sinew
#

Dec 20

floral furnace
#

Oh yeah

leaden hedge
#

it'd probably go a lot faster if someone setup a script to figure out differences

copper nacelle
#

dump all the fsms and diff them

#

diffing the assemblies isn't hard

floral furnace
#

btw how easy is it to alter time scale

warped sinew
#

Use sanic.dll

leaden hedge
#

you can look at my dll

warped sinew
#

Easy :p

leaden hedge
#

if you want source I can show it

floral furnace
#

otherwise you can just check if the player is in inactive and just freeze time unless he moves

#

and you can call it a Super... Super... Superwarm Mod

#

ive seen several other mods trying to implement Superhot's mechanic

leaden hedge
floral furnace
#

nice

leaden hedge
#

ignore the input.getkeydown stuff

#

globalsettings are read only for some reason

#

you can probably check what state the player is in to check if they are idle

warped sinew
#

Mfw i thought hastebin was a typo for pastebin and click the link and it was real notlikequirrel

leaden hedge
#

and set speed to 0

floral furnace
#

yee

compact sedge
#

it's hastebin because its fast

copper nacelle
#

hastebin > pastebin

compact sedge
#

because sonic

copper nacelle
#

syntax highlighting

floral furnace
#

shitmodst supreme here we go

leaden hedge
#

although its syntax highlighting isn't even correct

#

because it thinks its c++

copper nacelle
leaden hedge
#

also you don't need a lot of that code if all you want is 0 at idle

#

as most of that code is ensuring the multiplier applied to the lerped slowdown on hit

#

and you can't be being hit and being idle at the same time

#

for some reason intenseface

floral furnace
#

🤔

flat forum
#

Glass Soul, but every time you get hit you die

leaden hedge
#

darkmod but everytime you get hit, it gets darker

flat forum
#

STEEL SOUL EXCEPT WHEN YOU DIE YOU DIE IRL

floral furnace
#

Hollow Knight but everytime a day passes GnG release gets closer

leaden hedge
#

nope

#

thats unrealistic

flat forum
#

Hollow Knight except GnG isn't released late-summer

#

and is actually early 2018

leaden hedge
#

Hollow Knight except GnG will actually be released

steep sail
#

HK but all OSTs will be released in Steam

exotic venture
#

ayy finally got my discord package

#

i'm gonna use my vpn more now

river eagle
#

Why would you use a vpn for everyday stuff when it slows down your download/upload speeds

exotic venture
#

privacy?

river eagle
#

You think someone is going to be able to track your home addres by your IP

exotic venture
#

weeeeell at least they are very close

#

not entirely on point but w/e

river eagle
#

As far as I know the closest thing you can track by an IP is the city you live in

exotic venture
#

still milliS

flat forum
#

Mystery lives in a city?!

exotic venture
#

yes

#

shocker, i know

flat forum
#

So

#

You're not just telepathic brainwaves coming from space

#

?

exotic venture
#

no i'm a machine orchestrating your reality

#

either that or a shitpost bot

#

both work

flat forum
#

O no

#

I'm not sure which one's better

rain cedar
#

???

dusky lion
#

Wait what

#

How does that even happen

#

Visual Studio broke

rain cedar
#

Uh this is dnspy and nothing is broken it's just bad code

dusky lion
#

Oh

#

Still painful to look at

copper nacelle
#

isn't that slower than try get value as well

rain cedar
#

Yes

#

Best way to do this function would be

Textures.textures.TryGetValue(s, out int i) ? i : -1;
#

Which I'm sure would compile to something much less clean

#

Yeah it compiled to this

int i;
if (!Textures.textures.TryGetValue(s, out i))
{
    return -1;
}
return i;```
copper nacelle
#

the ternary lived a good life

#

and then it died

rain cedar
#

Wait I just realized something

#

They have a Dictionary<string, int> for texture idx from name

#

Then a Texture[] to use the index on

#

Why not just use Dictionary<string, Texture>

copper nacelle
#

that'd be too logical

rain cedar
#

Wow you can't directly modify fields on things in lists

#

Can't believe I've never tried that before now

#

Annoying

tranquil glen
#

Anyone have a image of basic kinematics equations and tension equation zote

rain cedar
#

Are you asking for help with physics homework?

tranquil glen
#

No I'm still working on the same thing as yesterday

#

Making a ball swing on a chain

rain cedar
#

Just do whatever

#

Game physics don't have to be accurate

solemn rivet
#

use rng for the tension

#

so the ball just flies around

#

and call it a feature

tranquil glen
#

I just have no idea how to affect the change in yspeed, cause it can't be constant

#

So I was gonna look at physics for help

#

Like how fast should it be falling at the top of a swing compared to the bottom

hazy sentinel
#

why

solemn rivet
#

wut

grim dew
#

Depends on mass and length of the rope

#

And where it starts in y position

rain cedar
#

What looks and feels good in a game is not the same as what's accurate to real life physics

grim dew
#

^

rain cedar
#

Just mess with values until it's good

tranquil glen
#

I know, but I can't just say constantly move down by 5

#

Because when it gets to the bottom it shouldn't be moving down anymore

#

So what do

rain cedar
#

If you set bounds for it based on the rope length that's not an issue

tranquil glen
#

Yeah that's what I did but then it stops short at the bottom cause it doesn't want to move up and looks gross

solemn rivet
#

but in that case, if the ball is constantly being pushed downwards, will it ever swing properly?

#

yeah

tranquil glen
#

Yeah that's my issue

rain cedar
#

So if it hits the bounds convert some of its speed to the opposite direction

tranquil glen
#

Ok

#

Yeah ok that makes sense

rain cedar
#

Just mess with it until it looks good

solemn rivet
#

that makes sense, I guess

hazy sentinel
#

@tranquil glen do you still want equations for realistic motion

rain cedar
#

Not hard to look up if he really wants them

grim dew
#

^

tranquil glen
#

I do gradow

solemn rivet
#

eh

#

wut

tranquil glen
#

I can't get this to work

compact sedge
#

I want super advanced equasions for fluid dynamics in air

#

in my game about bugs fighting

tranquil glen
#

I'm not trying to model it exactly off real life

#

I just want the equations so I know how the speed something falls at is affected by a string

rain cedar
#

Gradow didn't ask lol

#

It was a dude with a space for a nickname

tranquil glen
#

Oh whoops

rain cedar
#

Verulean apparently

solemn rivet
#

it's veru yeah

#

I assume you have gravity Kry?

#

or something similar to that

grim dew
#

Gravity is the only force affecting the speed of which a mass falls

grim dew
#

Nothing else

tranquil glen
#

If there's a string pulling up on something it'll fall slower won't it

solemn rivet
#

well

hollow pier
#

air resistance 🤔

solemn rivet
#

if the string is uncompressable, then it's easy to get the formulas

grim dew
#

You dont account for air resistance, usually

solemn rivet
#

and that

#

that's important too

tranquil glen
#

And gradow I have gravity for my character but not universally

#

The ball currently has nothing because I keep retrying new things

rain cedar
#

Make generic ball physics first as a stepping stone if you're really struggling this much

rain cedar
#

149 locals

copper nacelle
#

wtf

rain cedar
#

It's a 1600 line function for drawing characters

#

Idk how it works because it's actually impossible to decipher this

#

But it probably works in a bad way

hazy sentinel
compact sedge
#

why tho

rain cedar
#

That's so rigid

#

Probably not even what he wants

compact sedge
#

this is failing to hypnotize me

tranquil glen
#

Yeah, like I have a ball, that will fall and then if it extends past the length of the chain it bounces back up to equilibrium but I don't know how to make it swing if it's at the length of the chain and not straight vertical

rain cedar
#

Convert some arbitrary amount of y speed to x speed

#

Change arbitrary amount until it looks good

flat forum
#

AA

#

fireballs from NKG's uppercut spawning Flame Pillars when?

rain cedar
#

Should make it depend on the current angle of the chain too

flat forum
#

so, calculating speed is ((original speed) - (some formula based on down))?

#

what angle is down?

rain cedar
#

Idk what you're asking

flat forum
#

you said angle

#

a formula based on angle

rain cedar
#

Yeah

flat forum
#

what angle is it considered when it's pointing down?

rain cedar
#

It's all arbitrary

#

Would make sense to me to call that 0, though

flat forum
#

so, you can just add the angle's distance from zero? (no idea what that was called, the |-7| = 7 the thing I don't know what it's called in english)

rain cedar
#

Absolute value

flat forum
#

Mhm

rain cedar
#

And yeah you could try that and see how it works but it's pretty simplistic

flat forum
#

well, isn't a simple solution better than overly complicated formulas?

rain cedar
#

I wouldn't call it a solution if it looks like crap in motion

tranquil glen
#

How should I stop it from going outside the bounds of the chains?

#

Create a loop that raises it up if it goes below?

rain cedar
#

No that's bad

tranquil glen
#

O

rain cedar
#

If you're aware it's out of the circle bounds you know where the circle bounds are

#

So just set it back in them

tranquil glen
#

But where in them

rain cedar
#

Depends on the direction it left from

gritty belfry
#

@blissful burrow

rain cedar
#

@tranquil glen

//Base assumptions, get these from whatever you already have for the ball/chain
Vector2 center = new Vector2(0, 0);
Vector2 ballPos = new Vector2(12, 3);
float radius = 5f;

//Basic distance checking to see if it's inbounds still
float dist = (float)Math.Sqrt(Math.Pow(center.x - ballPos.x, 2) + Math.Pow(center.y - ballPos.y, 2));
if (dist > radius)
{
    //Calculate the angle between the center of the bounding circle and the ball
    //Atan2 takes y first for some reason
    float angle = (float)Math.Atan2(ballPos.y - center.y, ballPos.x - center.x);
    
    //Calculate the closest inbounds position from that angle
    float newX = center.x + radius * (float)Math.Cos(angle);
    float newY = center.y + radius * (float)Math.Sin(angle);

    //Do something to set the ball back to that
    ballPos = new Vector2(newX, newY);
}```
#

This is good enough but for complete accuracy you'd want to take into account the speed of the ball as well for finding where it left the circle

solemn rivet
flat forum
#

Speedrunners have excaped

#

the guards have failed

blissful burrow
#

Kill all speedrunners imo

rain cedar
#

?rank speedrunner

autumn shardBOT
#

dynoError null

rain cedar
#

Oh ok

flat forum
#

No

rain cedar
#

Guess I'll die