#archived-modding-development

1 messages ยท Page 99 of 1

cyan peak
#

start modding earlyish game

#

get nothing done in modding

#

after the game is completed the systems are learned

#

then I can mod in full

copper nacelle
#

just skip the nothing done step ez

#

I still have to finish rain world

cyan peak
#

it's worth it

solemn rivet
#

AA: yes, blackmoth is compatible with lifeblood

compact sedge
#

Good to know! Does it use the modding api?

copper nacelle
#

yes

compact sedge
#

sounds neat.

copper nacelle
#

play it imo

compact sedge
#

I refuse

copper nacelle
compact sedge
#

On second thought it sounds like a neat mod to try out. Question. Can I use it with an existing save and if so does it permanently hurt the save file?

copper nacelle
#

yes and yes iirc

#

1 damage nail

compact sedge
#

the 1 dmg nail persists after quitting it?

copper nacelle
#

I think so

wintry ore
#

mm I don't think bonfire was supposed to make my nail do less damage when upgrading strength

#

It takes 6 hits to kill a wandering husk now

copper nacelle
#

@compact sedge nvm i don't think it persists post-lifeblood

compact sedge
#

ah so that was fixed

#

that's good but I'ma back up my save anyway to be sure

solemn rivet
#

well

#

it resets if you disable the mod via the pause-menu

#

actually

compact sedge
#

so if you uninstall the mod without disabling it??

solemn rivet
#

maybe it's as 56 said

#

because I'm calculating damage differently

#

hm...

#

I'll have to check

compact sedge
#

ok thanks

solemn rivet
#

theoretically, it should be fine

#

what I'm doing is hijacking the hitinstance and setting the damage manually every time

#

also, about Bonfire

#

enemies' hp scales with levels/progression

#

so if you level strength some and level, say, resilience a ton, you're going to overall need more hits to kill enemies

#

that's actually the hardest part to balance

#

here are the actual curves

#

X is levels, Y is HP multiplier

#

green is base, red is 1 dreamer killed, blue is 2 and orange is 3

hollow pier
#

nice curves gradow

compact sedge
#

how do you get the bonfire curves

#

reverse engineering?

solemn rivet
#

what do you mean?

#

where did I come up with the formulas?

compact sedge
#

did you make bonfire

solemn rivet
#

ye

copper nacelle
#

yes

compact sedge
#

oh im dumb

copper nacelle
#

dungo

solemn rivet
copper nacelle
fair rampart
#

Anybody know of mods that make the game a bit easier? Iโ€™m trash, but I REALLY want to finish the game.

exotic venture
#

debug mod

#

up your nail dmg a little

#

suddenly, game is easy

rain cedar
#

Rush grimm troupe and get unbreakable heart before CoT

#

Suddenly game is easy

#

The only flaw is farming 12k in greenpath

#

Minor problem

exotic venture
#

fragile greed

#

don't die

compact sedge
#

tfw the best place to farm is CoT but you need 12k geo to get to CoT

exotic venture
#

oh no wait

compact sedge
#

actually

#

I hope it's not really CoT

copper nacelle
#

what

#

why do you need 12k geo to get to cot

exotic venture
#

what

rain cedar
#

Colosseum or failed tramway is best farming

exotic venture
#

failed tramway imho

copper nacelle
compact sedge
#

what do you farm in failed tramway

rain cedar
#

The enemies

exotic venture
#

carver spawners

compact sedge
#

how much geo per

exotic venture
#

kill every dirt carver and thne the spawner with fr greed

#

should be around 50 each?

rain cedar
#

It's like 50 just for the spawner I thought

exotic venture
#

well i don't really know actual numbers and the wiki is trash

#

doesn't note it

compact sedge
#

they're kinda annoying to hit iirc

exotic venture
#

have to look for yourself

compact sedge
#

so I think CoF is better

exotic venture
#

but anyway

rain cedar
#

Wiki only has important information like sly's dialog

exotic venture
#

it is a solid way to farm geo

#

and you don't need to enter CoT for it

#

but you will be busy with it for a while

#

doing this kind of geo farming with, uhh

#

fireball and wraiths?

#

maybe shriek if you are persistent enough

rain cedar
#

Wow shriek

#

Telling someone bad at the game to go kill h2

compact sedge
#

tfw shriek before CoT

exotic venture
#

because the rest is fucking locked away in CoT

compact sedge
#

thanks randomizer

exotic venture
#

can't get shade soul or dive

#

and you can get djump before CoT

#

which is uhhhhh not weird at all

#

you could probably even get void heart before entering CoT

compact sedge
#

could you get true ending without CoT if you disable the requirements

exotic venture
#

no

#

you need to murder Lurien sadly

copper nacelle
#

disable the requirements large think

exotic venture
#

oh then yeah

#

don't see why not

#

all that prevents you from getting true ending without entering CoT is Lurien

compact sedge
#

darn

#

what about randomized dream warrior spawn

#

like completely random

exotic venture
#

please no

compact sedge
#

like they could be in dirtmouth

exotic venture
#

why would you ever do that

copper nacelle
#

why not

exotic venture
#

why not make it

copper nacelle
#

u

inland valley
#

so.. I got the modding api to show up (and i'm guessing it works, and yes it's right version), but the debug mod doesn't seem to activate ingame. can anybody confirm where to put the files?

exotic venture
#

have you checked the step-by-step walkthrough in the pins

inland valley
#

you mean this only step actually telling anything about the mod? "5) Copy the contents of this zip into the folder (Overwrite files when asked)"

copper nacelle
#

just use one of the pinned installers imo

exotic venture
#

whoops that's compact small

#

anyway, read step 4

inland valley
#

oh sry. misread pinned. I was thinking of github. the one I was using

copper nacelle
#

github wtf

compact sedge
#

imo github way to go

#

I built every mod I'm using

copper nacelle
#

i build none of the mods i'm using

#

wait

#

no i built 2

#

also lightbringer

compact sedge
inland valley
#

here we go. github didn't even have the dll. :/

#

no wonder

compact sedge
#

because y'all are monsters

#

and don't upload releases to github

#

except 56 I think

#

also no DLL for the modding api ofc

#

because it requires the original game data

solid wagon
exotic venture
#

gg lol

copper nacelle
#

i don't upload releases

#

i think sean does

compact sedge
copper nacelle
#

outdated

hollow pier
#

github more like gitgud

compact sedge
#

idk anyone who downloads releases so maybe I should get my other mod on the drive

#

so people will actually find it

solemn rivet
#

only mod I had to compile (aside from mine) is rando2

compact sedge
#

I didn't have to compile anything but I did anyway

#

so I guess that makes me worse

#

I even compiled 56's branch of the modding api so I had a version with added hooks

#

a 9MB assembly dll

copper nacelle
#

w h y

compact sedge
#

because I'm planning on using hooks in my meme mod

#

and because I wanted them in my grimmchild upgrades one at one point

#

because I thought that would be a good solution (I was wrong)

copper nacelle
#

if you don't add a ref to hooks then it won't work w/out other people using an api w/ hooks tho

#

i think

compact sedge
#

I have a folder on my desktop called Mods and it's just DLLs I've compiled from y'all that I want to link to

#

no as long as the namespace exists in any DLL it will work I think

exotic venture
#

people look for hollow knight mods on github

#

hm

compact sedge
#

honestly I couldn't find gradow's github until like 3 days ago

solemn rivet
compact sedge
#

sorry

#

google didn't help because google never indexed your page

solemn rivet
#

cause I have no idea what I'm doing m8

compact sedge
#

for a while my page was the only result for "github" modcommon hollow knight

#

too

#

which is kinda funny

#

and it's just because I say in my readme.md : this mod requires modcommon

solemn rivet
#

kek

compact sedge
#

and the actual modcommon page wasn't on google at all

exotic venture
#

well, case in point

copper nacelle
#

like

compact sedge
#

Google really likes me, they love indexing my stuff

#

I'm really happy about it

exotic venture
#

if ya wanna look for hk mods, github is not the place to start

copper nacelle
#

at least 5 people have come in w/ copies of debug mod's repo

#

pretty sure

exotic venture
#

is that even updated

copper nacelle
#

and i think debug mod has releases too

compact sedge
#

y'all need to advertise the drive better

copper nacelle
#

dunno

exotic venture
#

nah

rain cedar
#

It's advertised well enough

exotic venture
#

we need to advertise the discord better

solemn rivet
#

^

compact sedge
#

I literally only joined this discord for mods

rain cedar
#

Simo's job

compact sedge
#

and then I ended up not playing anyone's mod for about a week

rain cedar
#

Not my problem

compact sedge
#

and then I ended up getting to caught in making them to play them much

exotic venture
#

and you went ahead and had discussions with the other lads which is cool

copper nacelle
#

i came to the discord for blackmoth

hollow pier
#

i came to the discord for whitebutterfly

rain cedar
#

I came to the discord for memes

hollow pier
#

but you are a meme

rain cedar
#

Thanks

exotic venture
#

i came to the discord to get rid of my older abusive community

rain cedar
#

You too

exotic venture
hollow pier
#

thanks

compact sedge
#

I came to the discord for lightbringer. found out it wasn't open source and decided not to install it :P

hollow pier
#

who comes for lightbringer anymore lol its all about shitmodst

copper nacelle
#

also source is available if you search from:753

exotic venture
#

shitmodst is best modst

compact sedge
#

wait lightbringer has source but just posted in chat messages in discord?

#

wtf

exotic venture
#

version 2 when

#

it's 300IQ

copper nacelle
#

kinda

#

it's in a gdrive link

#

zipped

rain cedar
#

Well it's a direct modification of the game without monomod

compact sedge
#

ohh god

rain cedar
#

So you can't really host it on github

compact sedge
#

yikes

hollow pier
#

api when

compact sedge
#

I couldn't imagine modding anything without all the amazing tools y'all have made

#

I'm literally using like code from basically everyone here

rain cedar
#

Dnspy is the most useful tool tbh

compact sedge
#

tbh modcommon's fsm dumper is far and away the best resource I've had

copper nacelle
#

what about the other fsm dumper

rain cedar
#

It sucks

copper nacelle
#

what

compact sedge
#

that one's ok but requires a third party program for humans to read and that program has a lot of issues

#

I like having a text file

#

in human readable format

rain cedar
#

Implying all of this isn't 3rd party

compact sedge
#

lol

#

u mean ur not paid by team cherry

#

well shit I quit modding

rain cedar
#

If I was on their payroll the switch release would've been out last year

#

Just that good

compact sedge
#

If I was on their payroll the switch release would be out but it'd be shitmodst 4

copper nacelle
#

where'd shitmodst 3 go

rain cedar
#

The dream

compact sedge
#

ยฏ_(ใƒ„)_/ยฏ

rain cedar
#

The 4 stands for "4 skipping 3"

compact sedge
#

1 and 2 are mildly shitty but still grounded in non-shittyness but 4 is so shitty that entering rooms while facing the wrong direction teleports you randomly.

#

1/3rd of the time into a floor

copper nacelle
#

1/3 as a floor imo

rain cedar
#

How do you enter a room while facing the wrong direction?

compact sedge
#

like doors

hollow pier
#

the wrong direction is entering the room

copper nacelle
#

but you can't walk backwards

hollow pier
#

thats where youre wrong

compact sedge
#

hey 56 can I make a request for your mantis mod?

#

You should make the floor change colors over time

exotic venture
#

fucking rainbow floors

compact sedge
#

have it go through a rainbow

exotic venture
#

called it

#

what's wrong with how it currently is imo

compact sedge
#

it's not rainbow

#

right now it's pure black which isn't rainbow

copper nacelle
#

i could make a version which does that i guess

#

not in final tho

#

doesn't seem hard

compact sedge
#

hey 56 update your mod on github I'll send a pullrequest that adds it as an option in global settings

exotic venture
#

fork of mantis gods

#

mantis gays

compact sedge
#

you don't even have to do any work

#

not even joking I'll do it

#

it'll be off by default ofc

#

and global settings so you have to edit a json to change it

exotic venture
#

do call it like that

rain cedar
#

Make it randomly scramble sprites

compact sedge
#

make a fork of my fork and add it

rain cedar
#

Deal

copper nacelle
#

pr when

#

i think you'd just add a component with an update

#

and change colors there

#

and it already has color code

#

should be super easy

compact sedge
#

probably in like a day because I have homework

copper nacelle
#

not procrastinating smh

compact sedge
#

same tho

#

have to read half a book for tomorrow

#

gonna continue doing that

rain cedar
#

I have a class that wants me to read books

#

The secret is to just not do it

copper nacelle
#

my class has been doing romeo and juliet

#

i went through 99% of the unit not reading any of the book except act 1 because i thought she'd check that

#

and then i read all of the book the day before the test last week

hollow pier
#

act 1 more like literally pointless

copper nacelle
#

not wrong tbh

rain cedar
hollow pier
#

you mean modding

exotic venture
#

modding is modding-offtopic

rain cedar
copper nacelle
#

yes

exotic venture
#

gee sean, how come does simo let you have TWO off topic channels?

copper nacelle
#

how come does

hollow pier
#

how come does grammar

exotic venture
#

how come does one even has grammer

#

it's 3am and you can see it's starting to wear on me

rain cedar
#

It's 6pm and you can see I'm not tired yet

solemn rivet
#

please don't

#

otherwise this channel = ded

copper nacelle
#

no it'd just be

#

#how-do-i-install-mods

#

with occasional actual discussion

hollow pier
#

just rename the channel to #check-pins

solemn rivet
#

^

rain cedar
#

#๐Ÿ“Œ

solemn rivet
#

oh, Vmi is here

#

did you manage to finish that rando2 seed?

lucid pond
#

@RandomBluebird you need the Modcommon mod when you play randomizer mod 2.0.

hollow pier
#

nice ping

solemn rivet
#

nice.png

rain cedar
#

If you don't have it it literally says to install it on the main menu

#

I have a feeling that was their issue but I'm also hoping for some degree of intelligence

copper nacelle
#

isn't that what the channel's called already

solemn rivet
#

#pro-photoshop-skillz

lucid pond
#

What's that rando2 seed you say?

solemn rivet
#

eh

#

the one without isma's

exotic venture
#

actually i only had to edit the how-to-install-mods pin once'

#

and that was to change the current version zote

copper nacelle
#

change it to just say

#

use the installer

lucid pond
#

I finished it 2 days ago without isma's

#

And after updating, you can get isma's in sly's shop after giving the key to sly

solemn rivet
#

nice

exotic venture
#

ayy must mean it had taken the place of heavy blow or something

rain cedar
#

That's not how randomizer works now smh

exotic venture
#

i should play the new iteration of randomizer sometime soon

#

since i wasted many hours on the old one

rain cedar
#

Shops have a random item count

#

At least 1

exotic venture
#

sounds good

copper nacelle
#

does lemm still sell stuff

exotic venture
#

lemm sells stuff?

#

wat

#

no way

rain cedar
#

No that was broke because team cherry made shit shops

copper nacelle
#

oof

hollow pier
#

is rando gooder now

rain cedar
#

Maybe some day I'll get around to remaking the shop fsm as a component

exotic venture
#

looks a lot gooder

#

and sounds even gooder than that

rain cedar
#

Then I can put stuff in lemm shop

exotic venture
#

lemm sells 10 egg

copper nacelle
#

lemm sells 10 wayward compass

exotic venture
#

that's value right there

rain cedar
#

Basically how the shops work now is every item has flags for what it is

hollow pier
#

make lemm sell relics for their exact price

rain cedar
#

But those are checked after taking/giving geo

exotic venture
#

wait, maybe i should make a mod that makes everything multiplied by 10

rain cedar
#

Which defeats the purpose completely

#

So everything in the lemm shop acts as a relic even if it has the charm flag

exotic venture
#

see how things break down

hollow pier
#

health x10 ๐Ÿค”

#

soul x10

solemn rivet
#

damage x10

copper nacelle
#

enemy health x10

hollow pier
#

so everything would neutralise

solemn rivet
#

yup

hollow pier
#

nail dmg x 10

young walrus
#

Sell charms to Lemm imo

exotic venture
#

geo x10

copper nacelle
#

wow wayward compass

#

i can give you

#

1 geo

exotic venture
#

jump height x10

#

speed x10

hollow pier
#

wow heavy blow

#

i can take

#

all your geo

solemn rivet
#

but wouldn't you rather do 5k damage instead of 5 damage?

hollow pier
#

๐Ÿค”

solemn rivet
#

even if the enemy also has 1000x as much hp

exotic venture
#

that sounds like final fantasy levels

#

ngl

solemn rivet
#

HK limit break when

exotic venture
#

radiance has 1,8 million health

#

you deal 21000 dmg with pure nail

#

basically, balance

solemn rivet
#

Radiance is basically Kefka from FFVI

exotic venture
#

pffffffff

solemn rivet
#

cuz she weak af

hollow pier
#

Frenz Kefka hollowomg

solemn rivet
#

even tho final boss

#

nice Ptkyr

#

oh god, now I need a mod that replaces Radiance with Kefka

#

and name the mod "Franz Kefka"

hollow pier
#

Kefkaasque

solemn rivet
#

also, hype for Bloodstained - Curse of the Moon

copper nacelle
#

if i were to compile w/ the public beta assembly as a ref

#

and use its consts

#

would it still work on older versions because consts are consts

compact sedge
#

I think that depends a lot on the compiler

#

You could be safe and just set the consts manually

copper nacelle
#

:effort:

copper nacelle
#

does gameobject.findobjectoftype find children

compact sedge
#

modcommon has a FindGameObjectInChildren function

copper nacelle
#

that's an extension

#

iirc

compact sedge
#
        public static GameObject FindGameObjectInChildren( this GameObject gameObject, string name )
        {
            if( gameObject == null )
                return null;

            foreach( var t in gameObject.GetComponentsInChildren<Transform>( true ) )
            {
                if( t.name == name )
                    return t.gameObject;
            }
            return null;
        }
copper nacelle
#

that's an extension

compact sedge
#

yes

#

but that's what it actually does

copper nacelle
#

ik

#

i already use it

#

i wanted to check if a gameobject was in the scene but it's not in any of the scene dumps

#

so idk if it's a child of anything

#

but it's in the fsm dumper

compact sedge
#

idk what dumping thing you use but mine prints all the children too

copper nacelle
#

and I've had a few objects that were in the fsm dumper and not in the scene dumps

#

like

#

the Challenge Prompt for mantis lords

leaden hedge
#

fsms that make fsms

#

thats why its not there

copper nacelle
#

oh

#

re

leaden hedge
#

prompts are an fsm that spawns an fsm that spawns an fsm that controls and spawns the actual promt

copper nacelle
#

wtf

compact sedge
#

just dump it after it spawns it

#

or spawn it manually

#

and then dump it

copper nacelle
#

ik

rain cedar
#

Just make your own prompt marker tbh

#

It's not hard

#

When hero is in range fade in

#

Otherwise fade out

#

If up or down is pressed when in range send some event

#

Done

warped sinew
#

Hey guys, is it possible to mod the game speed? I think 1.1x would make the game better

rain cedar
#

Time scale is probably the easiest thing to mod

#

It would be like a two line mod

compact sedge
#

does time scale apply universally to all FSMs both wait times and animation speeds

rain cedar
#

It should

compact sedge
#

also there are a few problems

rain cedar
#

You have to explicitly declare unscaled time to not be using time scale

compact sedge
#

like you can't get the default length of any wait state

#

so I did the hacky thing and hardcoded them in

#

so I could change them by a multiple

#

but if you do Wait.Value it just returns 0

warped sinew
#

I think a Hollow Knight Hyper Edition would be really cool

rain cedar
#

I can just make a 1.1x speed mod real quick

warped sinew
#

It we could add a combo system/counter too that would be amazing

compact sedge
#

pls prove me wrong seanpr I wanna see it happen

warped sinew
#

1.1 speed would seriously make the game flow better I feel.

#

Maybe even 1.2, have to play around with it, but slightly faster = win

rain cedar
#
using Modding;
using UnityEngine;

namespace HKFast
{
    public class Speedy : Mod
    {
        public override void Initialize()
        {
            ModHooks.Instance.HeroUpdateHook += GoFast;
        }

        private void GoFast()
        {
            if (Time.timeScale == 1f) Time.timeScale = 1.1f;
        }
    }
}```
#

Complex mod

compact sedge
#

wait there's just a timescale variable

rain cedar
#

Yes

#

That's why I said it was easy

compact sedge
#

I quit modding

#

why is the stuff I think is hard so easy

#

and the stuff I think easy so hard

warped sinew
#

Haha nice @rain cedar

rain cedar
warped sinew
#

I'll try it when I get home from work!! In 2 hours...

rain cedar
#

Cool

warped sinew
#

Does it matter what version?

rain cedar
#

It shouldn't matter as long as there's a modding api for the version

#

So any unreleased version you have isn't gonna work

compact sedge
#

I hope it makes the audio faster too

warped sinew
#

Yeah I'll downpatch to lifeblood...

rotund ether
#

Stream it

warped sinew
#

The release not beta one

compact sedge
#

can you compile a 2x one real quick

warped sinew
#

Heeey willlz

compact sedge
#

I don't wanna start my vm for it

rain cedar
#

I'll just make it grab the speed from global settings so you can put it to whatever

#

Default 1.1

compact sedge
#

lol ur gonna have the global settings one done before visual studio launches at this rate

rain cedar
#

Oh wait I didn't realize you need to call to save global settings explicitly

warped sinew
#

Is it easy to edit that .DLL to 1.2, 1.3 etc? So I can mess around with speeds? Like open it in visual studio and edit the code and save?

compact sedge
rain cedar
#

That's what I'm doing right now Graig

warped sinew
#

OK got it niice

#

Lightbringer had that time change charm now that I think about it.

compact sedge
#

too bad modapi mods don't load before the menu or you could also speed up the "don't turn off the game while saving" thing too

rain cedar
#

Well that's just the chosen entry point

#

Easy to change, it's completely arbitrary

#

For some reason the settings aren't actually saving

#

Oh, I think I actually know the issue

#

And it's something that's not necessarily a bug with the API but also kinda unintuitive

#

Think I need to explicitly set values instead of just calling get with a default

rotund ether
#

What's that Grimm pic from?

rain cedar
#

Infinite grimm mod

#

Fight lasts until you die and gets progressively faster

compact sedge
#

I got all of one hit in

#

before dying

rotund ether
#

noice

rain cedar
#

Ok yeah putting this in init makes the value save properly

GlobalSettings.speed = GlobalSettings.speed;```
#

Gonna have to comment that one or future me will delete it

#

After first run this creates a file Speedy.GlobalSettings.json in the save folder

#

Just change the number near the bottom of it to whatever

#

@warped sinew

leaden hedge
#

not that it really matters but doesn't that only make the game go twice as fast if its going at fullspeed

#

i.e. the game will run at normal speed whenever you get hit

rain cedar
#

Making the hitstop last for less time is not something I'm gonna do

#

It wouldn't be as simple as a scale change

compact sedge
#
if (Time.Timescale != currentScale) {
    Time.Timescale *= speed;
    currentScale = Time.Timescale;
}```
#

maybe?

#

so every time the timescale is changed it will multiply that timescale, whatever it is, by the speed multiplier

leaden hedge
#

where are you running it

compact sedge
#

rn it's running on HeroUpdateHook

leaden hedge
#

imagine this case

timescale coroutine runs sets speed to 0.4
some update
some update 2
hero update
some update 3
some update 4
#

only 3 and 4 would work

#

1 and 2 would be at 0.4 speed

#

and the order of updates are "random"

rain cedar
#

Pretty sure hitstop is just 0 time scale

#

So a working version of this wouldn't even do anything

leaden hedge
#

its a coroutine that lerps between 0 and 1

#

iirc

#

its just GameManager.SetTimeScale which needs to change

#
private void SetTimeScale(float newTimeScale)
{
    Time.timeScale = ((newTimeScale <= 0.01f) ? 0f : newTimeScale * speedMult);
}
private IEnumerator SetTimeScale(float newTimeScale, float duration)
{
    duration /= speedMult;
    float lastTimeScale = Time.timeScale;
    for (float timer = 0f; timer < duration; timer += Time.unscaledDeltaTime)
    {
        float val = Mathf.Clamp01(timer / duration);
        this.SetTimeScale(Mathf.Lerp(lastTimeScale, newTimeScale, val));
        yield return null;
    }
    this.SetTimeScale(newTimeScale);
    yield break;
}

would probably do it

warped sinew
#

@rain cedar hey thanks a lot for this! Absolutely awesome!

rain cedar
#

Hey no problem

#

KDT might come out with a better one though since it seems like he's taken an interest in it

leaden hedge
#

if you're gonna do something at least do it as correct as you can hollowface

warped sinew
#

HK Hyper Edition is worth it hollowknice

leaden hedge
#

oh I just realised that'd double dip

#

you dont need to update the enumarator

compact sedge
#

can you make certain gameobjects ignore the time scale?

#

or use their own timescale different to the main one?

leaden hedge
#

probably not

leaden hedge
#

hmm

#

doesn't seem to make a settings file

#

but it works

warped sinew
#

whos modding API do i use now days?

#

1.3.1.5

compact sedge
#

yeah seanpr's build for 1.3.1.5 I guess

warped sinew
#

k

leaden hedge
compact sedge
#

hopefully it works on 1.4

leaden hedge
#

including hitpauses and lerped timescales

#

although writing to the globalsettings doesn't seem to work, it reads from it fine though

warped sinew
#

ok ill try yours out

#

can i tweak the speeds anywhere?

compact sedge
#

that's a large modhooks file

leaden hedge
#

after running it it'll make a json in the save folder called sanic.globalsettings.json

#
{
    "StringValues": {
        "keys": [],
        "values": []
    },
    "IntValues": {
        "keys": [],
        "values": []
    },
    "BoolValues": {
        "keys": [],
        "values": []
    },
    "FloatValues": {
        "keys": [
            "SpeedMultiplier"
        ],
        "values": [
            5.0
        ]
    }
}
warped sinew
#

oh

leaden hedge
#

make it look like that for 5x speed

#

etc etc

compact sedge
#

would highly recommend not doing 5x speed

warped sinew
#

lol 5 times

leaden hedge
#

easy to check its working when its real fast

#

1.2x isn't that noticeable

warped sinew
#

yup

leaden hedge
#

maybe its placebo

compact sedge
#

I did 2x and it was already pretty insane

rain cedar
#

Of course 1.2 isn't gonna look fast after 5

compact sedge
#

you know if it's working if sounds like crystal dash and ambiant stuff and enemy attacks get out of sync

#

unless you fixed that too somehow

#

and if so then you're an absolute god kdt.

#

I mean you already are but like more of one.

leaden hedge
#

i didn't test it much but everything seems in sync

warped sinew
#

lol it works hehe

#

ok im going to stream some

#

ill tweak it a bit, maybt 1.5 times

leaden hedge
#

i was trying to get + and - to adjust the speed by 0.05

#

but api wouldn't write to settings for whatever reason

compact sedge
#

IDK how to explain this but the sounds don't play at the timescale speed so if you start a crystal dash at 2x it only plays half the sound clip. or at 0.5x the sound stops while the dash is still charging. or they didn't on seanpr's version.

#

One way the game is actually really well coded is that almost all sounds automatically stop when they are supposed to, so this doesn't lead to overlap but it can lead to stuff being cut short.

leaden hedge
#

what do you want the sounds to slow down too ๐Ÿค”

#

dunno if I can do that

#

the only issue as far as I can tell is transitions are still fixed length

#

so you go to running animation after using a door

#

which I can fix by replacing GameManager.BeginSceneTransitionRoutine

compact sedge
#

I believe expected behavior which doesn't really matter since the way it's programmed makes it very hard to notice but that sound files are sped up to the timescale modifier speed and pitch shifted accordingly (so they don't sound high pitch). Seems like a lot of work for not a lot of gain but if I was to do it I'd look into getting hooks into the FSM play audio functions.

leaden hedge
#

audio is likely controlled entirely by unities anim system

#

which is completely closed off from code besides play anim

compact sedge
#

well playmaker has audio play functions and those aren't closed off and those are how most of the sound effects are done

leaden hedge
#

its better than mekanism but eh its still got a while to go

#

its unlikely playmaker is actually controlling the sound though

#

most likely just telling unity to play a sound

compact sedge
#

Would have to open up dnspy but I believe the playmaker play audio stuff does have variables for both pitch and speed.

#

ofc it's presumably using these to do what you said, just send stuff to unity, but it is an abstraction layer that you can access with hooks I think

leaden hedge
#

looking at it playmaker uses unities audiosource class

#

which has a pitch value but no speed

#

looking at it, technically possible

#

but 100% not worth it

exotic venture
#

wait isn't this the same thing debug mod has

#

with upping timescale

rain cedar
#

No, not really

#

It's that but actually good

#

Debug mod time scale gets reset every time basically anything happens in game

exotic venture
#

f

#

could this be added to the debug mod as a replacement for timescale?

rain cedar
#

I would rather avoid dependency on monomod hooks if possible

leaden hedge
#

you could add the hooks into the normal api but thats probably not worth it

#

considering this is the only use

rain cedar
#

Lazy

exotic venture
#

argh, darn

rain cedar
#

If this is a feature you actually want I could improve it

#

I just thought you were saying it should be better for the sake of being better

#
List<SpriteRenderer> spriteRenderers = Object.FindObjectsOfType<SpriteRenderer>().ToList();
List<Sprite> sprites = spriteRenderers.Select(item => item.sprite).ToList();

Random rand = new Random();

while (spriteRenderers.Count > 0)
{
    int rendNum = rand.Next(spriteRenderers.Count);
    int spriteNum = rand.Next(sprites.Count);

    spriteRenderers[rendNum].sprite = sprites[spriteNum];

    spriteRenderers.RemoveAt(rendNum);
    sprites.RemoveAt(spriteNum);
}```
#

It's unplayable

#

I love it

compact sedge
#

imo hooks to the normal api would be very useful not just for that

#

or at least I think it would be useful

rain cedar
#

He meant this specific time scale hook would be useless other than this

compact sedge
#

true me dumb

rain cedar
#

Also interesting is no enemies or other NPCs are getting changed

#

So they don't use SpriteRenderer

leaden hedge
#

enemies use tk2dspriterenderer

rain cedar
#

I just kinda assumed that would use the real one internally

leaden hedge
#

but I thought that extended spriterenderer so

#

it might jsut be a meshrenderer though

#

with a sprite shader

#

[RequireComponent(typeof(MeshRenderer))]

#

oh hey i was correct

rain cedar
#

Maybe I should just find all of type Renderer and go from there

compact sedge
#

this is beautiful

rain cedar
#

Oh god the fury effect

copper nacelle
#

lmao

floral furnace
#

hitboxes are still the same right

rain cedar
#

Yes

copper nacelle
floral furnace
#

lmao

rain cedar
#

Well once I get all Renderers swapped instead of just sprite ones that will be a possibility

floral furnace
#

every sprite as cornifer mod

exotic venture
#

Just Cornifer.

copper nacelle
#

does getting the sprites rn just get the sprites from that scene?

rain cedar
#

Unless I load all from resources yeah

copper nacelle
#

imo load them all

leaden hedge
#

you can iterate over each tk2dBaseSprite

rain cedar
copper nacelle
#

the sky is stags

#

lol

rain cedar
#

I'm swapping around the materials on the renderers for this

leaden hedge
#

write a camera shader that deepfries the screen imo

rain cedar
#

No thanks

leaden hedge
#

write a camera shader that makes the screen rotate constantly

copper nacelle
#

that's like Screen.orientation = ScreenOrientation.Portrait and stuff, right?

leaden hedge
#

no

#

that'd just flip it really fast

#

wouldn't rotate it slowly

copper nacelle
#

o

leaden hedge
#

you'd need to take the cameras input and use a matrix to rotate it and render it back

#

tbh theres probably a shader already made for it

rain cedar
#

I love linq

#

It just makes everything easy

#

My kinda game

leaden hedge
#

looks like shit

rain cedar
#

Thanks

exotic venture
#

looks like a perfect shitmodst sequel

floral furnace
#

all its missing is a "Play Lightbringer" text

rain cedar
#

Just look harder

#

I'm sure it's there somewhere

copper nacelle
#

best dll name

rain cedar
#

I can't beat the aspid arena

#

This is the hardest mod

lucid pond
#

I'm going to get some geos to open the translation

#

the seed 20180524

void tree
#

you can save and quit to get out of there, no?

lucid pond
#

No

#

I have to get some geos or debug some geos.then go back

#

I try again and get quake again.

late sphinx
#

mmmmmmmmmmmmmmmmmm

rain cedar
#

@lucid pond I'm not really sure how you would get stuck there

#

It looks like you're right outside white palace

#

To get there you need wings and claw

#

And to get hard saved there you need to beat white palace which means basically every movement ability

#

Also for the second one it just dimmed like that then froze there?

lucid pond
#

I play the sedd 201805240 to get vengeful spirit three times. At first time, I get the right half of kingsoul and I'm transformed outside white palace.At second and third time, I get desolate dive. @rain cedar

rain cedar
#

Oh

#

That makes no sense

#

I think I have an idea of what could have happened actually

#

Before playing the randomizer seed did you do white palace?

lucid pond
#

I finished true ending before play the new seed๏ผŒbecause I stopped the old seed to practice with Inoki. I forgot whether I quit the game after I finished the old seed.

#

I'm lucky to meet the problemsmylajoy hollowomg

rain cedar
#

I know how to fix this

#

I'm glad someone is testing thoroughly

lucid pond
#

I'm glad ,too. You make the game more interesting by creating the mods. Thank you very much๏ผ

rain cedar
#

Ok I put up a new version that should fix it

#

That was a pretty rare edge case to get that bug

#

You must have started the game, then did white palace pretty much immediately, then done a randomizer without relaunching

compact sedge
#

because killing you once isn't bad enough they have to kill you a second time as well

#

wtf

rain cedar
#

Do it

#

No balls

copper nacelle
#

uhhhhhhhhhhhhh

compact sedge
#

lol they died in the acid

copper nacelle
#

what did you do

rain cedar
#

ez

compact sedge
#

literally fought them. died to the first one, they followed me to my bench and killed me again

copper nacelle
#

wtf

compact sedge
#

then I dreamnailed to try to return

#

and then that happened

copper nacelle
#

which version 1

#

where'd you get it

compact sedge
#

compiled it

#

from your github

copper nacelle
#

ree

compact sedge
#

now I can fight them next to that bench

#

and every time I do I can sit down and get heals

#

its awesome

#

also they die to the acid

#

after doing like 4 or 5 of those down slash attacks

copper nacelle
#

w t f

#

i was using dgate to test too

#

i blame beta

compact sedge
#

hahahaha I killed them just by sitting on the bench

#

for heals

#

and this happened

copper nacelle
#

aaaaaaaaaaaaa

compact sedge
#

oh no it is

#

it's the floor you made

copper nacelle
#

wtf did you do

compact sedge
#

bahahahahaha

copper nacelle
#

did scene names change or something

#

or is it just being bad

#

re

compact sedge
#

I entered the room to fight them (all the mantises were hostile which was weird)

#

and the room was black

#

and then I fought and died to the first one

hazy sentinel
#

56 polishes mods

compact sedge
#

and then I died

#

and then the first one spawned next to my bench

#

killed me again

#

and then the rest is history

copper nacelle
#

does it happen again if you try it again

compact sedge
#

I can keep fighting them

#

wait hold on let me go back

copper nacelle
#

i mean like

compact sedge
#

btw are the mantises supposed to be hostile

copper nacelle
#

if you quit the game

#

and do it again

#

does that happen

#

also what

compact sedge
#

the mantises in the village

copper nacelle
#

yes

compact sedge
#

ok even though I killed the normal lords

copper nacelle
#

haven't set up the bool yet

compact sedge
#

after quit to main menu

#

not quit game

copper nacelle
#

are you invisible

#

you know what

#

i'm gonna blame beta cause i can

compact sedge
#

invisible and I can't quit out

#

because I'm stuck

copper nacelle
#

f5

compact sedge
#

nope even quitting the game I'm stuck here

#

f5 what?

copper nacelle
#

debug mod

#

force pause

compact sedge
#

I don't use debug mod

rain cedar
compact sedge
#

not even once

copper nacelle
#

wtf

compact sedge
#

HAHAHAHAHA

copper nacelle
#

reeeeeeeeeeeeeee

rain cedar
#

Are you just putting every mod name in your repos?

copper nacelle
#

that's the plan

#

just steal all search results

compact sedge
#

y'all suck at SEO

copper nacelle
#

what

compact sedge
#

search engine manipulation stuff

#

It's literally as easy as writing a readme.md that talks about your mod and how great it is

#

then people search "great hollow knight mod" and they get yours

copper nacelle
#

effort

rain cedar
#

No I think the issue is that the page is just not indexed at all

compact sedge
#

because it has no readme

#

at all

copper nacelle
#

re

#

just gonna make a readme w/ the words

#

mantis gods

#

the end

compact sedge
#

anyway I'm really hopeful in 2 weeks that my github repo comes up first when someone searches: "blackmoth github hollow knight"

rain cedar
#

The first 3 results for that are modding api

#

Nice

compact sedge
#

you can't find blackmoth github with google

#

I don't think

copper nacelle
#

w h y

rain cedar
#

Yes I can

#

It's the 4th result

compact sedge
#

lol

copper nacelle
#

3rd for me

#

*2nd

compact sedge
copper nacelle
#

if you add hollow knight it's 4th

#

blackmoth readme needs the word hollow knight

compact sedge
#

the problem is the short description is "Repository for Blackmoth HK mod" and it should spell out hollow knight

#

I bet it will be the first result after that

#

not even joking

rain cedar
#

The thing is I don't actually want people to find my mods on google

#

Because then they'll stick the source code in their game folder

#

People already do that

compact sedge
#

if they're not in the discord idc

rain cedar
#

56 was triggered at some point

copper nacelle
#

the shot wasn't being found and i was dying

#

accurate

compact sedge
#

anyway I'm not sure I can downgrade, my assembly was built for beta and if I build an assembly for normal it breaks my controller

#

and then I have to use sc controller keyboard emulation which is worse which will mean I will die a lot

copper nacelle
#

ree

#

i'll try and fix it

#

later

rain cedar
#

Clear registry

compact sedge
#

ok

rain cedar
#

Mick has to do that every time he downgrades from lifeblood

#

?? can't be trusted on any Unity objects

compact sedge
#

I ran rm ~/.wine/system.reg and my game is broken

copper nacelle
#

p a i n

compact sedge
#

ree not using modcommon

#

for finding objects

copper nacelle
#

what

compact sedge
#

oh nvm you are

#

im stupid

copper nacelle
#

mantis gods doesn't depend on modcommon

#

w h a t

#

i just took the extension

compact sedge
#

it uses the modcommon extension

copper nacelle
#

yes

compact sedge
#

technically mine doesn't use modcommon at all either other than the extension

#

but I want people installing modcommon

rain cedar
#

It's a good extension

compact sedge
#

so I just dynamically linked to it

#

umm downgraded to normal and my save is still in a bad state

#

can you send a save file pls 56

rain cedar
#

Debug mod tbh

copper nacelle
rain cedar
#

Wow 32 you cheater

compact sedge
#

ya know what seanpr is right I've made 2 mods without debugmod and it would have made it a lot easier

rain cedar
#

Yes

copper nacelle
#

it's 21 damage

compact sedge
#

ima go compile it real quick

copper nacelle
#

apparently

compact sedge
#

brb

copper nacelle
#

why

#

c e a s e

compact sedge
#

I haven't downloaded any mod binaries...

copper nacelle
#

exactly

rain cedar
#

Binaries could be viruses

#

Building from source much safer

copper nacelle
#

that's why i always keep rm -rf in my source code

rain cedar
#

Joke's on you I run visual studio in an XP vm

compact sedge
#

I'm missing an assembly apparently

rain cedar
#

Very nice

#

Which?

compact sedge
#

idk just know I have undefined references for some reason

copper nacelle
compact sedge
#

im linking against playmaker, unityengine and assembly-csharp modded

copper nacelle
#

why is hooks in there

#

wtf

compact sedge
#

and it says the type Button and Image could not be found

rain cedar
#

UnityEngine.UI is a separate dll

compact sedge
#

oh durr

#

thanks

#

thought it was just unityengine.dll

copper nacelle
#

don't sln have references in them

rain cedar
#

Yeah

compact sedge
#

yes but mine are ofc located somewhere different to wherever they are on seanpr's computer

copper nacelle
#

but you could've just looked in the references menu

rain cedar
#

no

copper nacelle
#

what

#

why

rain cedar
#

Because no

copper nacelle
compact sedge
#

apparently: DebugMod.GM.ReadyForRespawn(); isn't defined or something

#

but idc because I'm probably not gonna need the kill self cheat anyway

copper nacelle
#

i love it when i commit non-working code

rain cedar
#

GM is GameManager

#

I just checked and lifeblood still has that function

compact sedge
#

tbh not sure if I'm using beta or normal assembly

#

but w/e I have a dll now and it doesn't have that one function but I'll make do not using that cheat

rain cedar
#

Oh I see it takes an argument now

#

It didn't in 1.2.2.1

#

This is why you don't compile from source

compact sedge
#

see 56 this is why you build from source it helps you find bugs

#

that function would have just broken it if I can used a prebuilt binary

rain cedar
#

Helps you find bugs that will never be fixed ayy

#

Don't care enough to update debug

compact sedge
#

lol apparently there's a new version available of debugmod that's newer than the github one

rain cedar
#

It says new version always

#

Because of some shit

#

Github updated their TLS to one that Unity can't do

#

For web requests

#

So now checking version always returns 0.0

#

And I was lazy with my version checking so I'm just doing current version != github version

compact sedge
#

uhh my spawnpoint is now I think forever messed up because when I die this is what I see and in the top right a mantis constantly throws his boomerang thing

#

wait how do you show the debug menu after closing it

rain cedar
#

Wow you too

#

It's F1 by default

compact sedge
#

ty

rain cedar
#

There's no flaws with the UI design

#

Everyone else is just stupid for clicking that button before looking at binds

compact sedge
#

after I force respawn

rain cedar
#

Noclip in

copper nacelle
#

what have you done

#

why are there boomerangs

#

with no mantises

rain cedar
#

ur mod gay

#

I upload only fully working mods

copper nacelle
#

rE

#

imo it worked until avenging angle used it on beta

rain cedar
#

Everything works until it doesn't

compact sedge
#

anyway in debug mod to change your spawn to an existing bench

#

that isn't where I am

#

or should I just edit my save

rain cedar
#

Yeah to change bench spawn you turn on noclip and fly to the bench

#

Then rest at it

compact sedge
#

uhh im trapped in a level with no exits I think

#

unless 56 programmed a secret one in

rain cedar
#

Very nice

copper nacelle
#

there are no exits

#

u die

compact sedge
#

when I die I respawn in the god arena

#

this is basically hell

copper nacelle
#

yes

rain cedar
#

Quality mod

#

You killed the save

copper nacelle
#

ree

compact sedge
#

lol it rechallenged them and now there's 3 mantises at once

copper nacelle
#

wait that was happening before

#

i did donotdestroyonload on everything

#

but the repo's updated

#

unless you're using the broken version

#

which i don't think i even commited

compact sedge
#

ofc this is because my save file is broken

copper nacelle
#

amazing-11

compact sedge
#

but lol this video

copper nacelle
#

ree i don't want to download beta

#

but i also want to test it

compact sedge
#

ok I killed em where do I go now to get out

copper nacelle
#

uhhh

#

u don't

#

that was gonna be the part of the dream scene thing

compact sedge
#

wait 1.0 doesn't even let you exit

copper nacelle
#

yes

#

except 1.0 does

#

i just don't change the version number

#

actual 1.0 is in the drive

compact sedge
#

nice versioning

copper nacelle
#

this should be 2.0 alpha

compact sedge
#

oh

#

huh

rain cedar
#

Just do what KDT did with the tracker and grab file version

#

It gets you a shit looking version string but at least it's unique and 0 maintenance

copper nacelle
#

ok

compact sedge
#

wait is this what you were saying about not being able to enter the mantis gods fight normally and needing dreamnail

#

maybe that's why bugs

copper nacelle
#

no

#

that's fixed

#

provided you have the actual build

compact sedge
#

so why my ghost no spawn

copper nacelle
#

uhhhhhhhh

compact sedge
#

but I can hear the music

copper nacelle
#

it does

#

i just destroy the object

compact sedge
#

why I want my geo back

#

your geo back

copper nacelle
#

you could disable mantis gods w/ the in-game menu

#

then dgate back to where you are

rain cedar
#

Or just don't destroy the shade

#

I don't get the benefit of doing that

copper nacelle
#

accident

#

also i was just gonna make that act like the dream scenes do

#

no shade and stuff

#

or like white palace

compact sedge
#

so uh I fought them but the shade music was playing the whole time and it distracting

copper nacelle
#

yeah i should fix that

rain cedar
#

Just leave it

#

Nice feature

copper nacelle
#

but it'll be in the sky

#

oh