#archived-modding-development

1 messages · Page 103 of 1

rain cedar
#

He doesn't care about lore

compact sedge
#

neither does the knight

#

b/c it doesn't read any of the journals

rain cedar
#

Maybe there's just no lore

copper nacelle
#

_lore

compact sedge
#

if you pay attention to the lore you'd learn the king was the bad guy and well if the knight learned that it'd have no purpose in life and would kill itself.

flat forum
#

;lore

compact sedge
#

``lore`

compact sedge
#

tfw you about to bugtest and are 99% sure something will break but you still have hope in your heart that everything will just go perfectly

flat forum
#

what broke?

compact sedge
#

uh idk yet but im now testing to see if it was my code or some code I copied off the internet but misunderstood

#

it didn't even load :(

flat forum
#
public void OnAttack(AttackDirection dir)
        {
            LogDebug("Attacking");
            if ( PlayerData.instance.equippedCharm_6)
            {
                LogDebug("Special Attack");

                _tempNailDamage = PlayerData.instance.nailDamage; //Store the current nail damage.

                LogDebug("Set _tempNailDamage to " + _tempNailDamage);

               PlayerData.instance.nailDamage += 3*(PlayerData.instance.maxHealth - PlayerData.instance.health);


                return;
            }
        }

private void OnAfterAttack(AttackDirection dir)
        {
            LogDebug("Attacked!");
            PlayerData.instance.nailDamage = _tempNailDamage; 
        }
#

(oops, wanted to save it separately)

compact sedge
#

How do I solve this error in my new mod:

Could not load file or assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

It's a system assembly so I'm utterly confused.

#

I need it to dump a sprite to see if it looks proper

#

or if I messed up my code

rain cedar
#

Try putting it in the HK folder directly

#

You shouldn't have to but idk maybe

compact sedge
#

disgusting

copper nacelle
#

works tho

compact sedge
#

where do I find system assemblies

#

it's just for testing anyway

copper nacelle
#

C:\Program Files (x86)\Reference Assemblies

#

\Microsoft\Framework\v3.5

compact sedge
#

isn't c# supposed to be like java and just effing work on every platform why are system libraries missing from unity

copper nacelle
#

i don't have System.Drawing in there tho

rain cedar
#

I reference it in debug and it works fine

compact sedge
#

ok what system.drawing isn't there

#

yeah

#

wtf

hazy sentinel
#

@solemn rivet pretty sure right now bonfire actually makes the game harder

compact sedge
#

it does earlygame

hazy sentinel
#

it does at every point in the game

compact sedge
#

that's the whole point

#

if you do the math on the curves

#

it shouldn't

hazy sentinel
#

no

compact sedge
#

you get OP faster than enemies do

hazy sentinel
#

stat upgrades have diminishing returns

compact sedge
#

oh

#

maybe

hazy sentinel
#

bro

copper nacelle
#

they do

hazy sentinel
#

level 8 spell damage gives 1.95x multiplier

#

0 dreamers enemy hp is 1.87x

#

level 22 is like

copper nacelle
#

<Reference Include="System.Drawing" />

#

from debug mod

hazy sentinel
#

2.62x

compact sedge
#

I could patch it so they're linear or better scale faster than other stuff

rain cedar
#

Yeah I told you I use it

compact sedge
#

where do I put this

copper nacelle
#

csproj

#

but you should already have it

compact sedge
#

yeah I do

#

because I added it in gui

#
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
    <Reference Include="UnityEngine">
      <HintPath>..\..\mods\UnityEngine.dll</HintPath>
    </Reference>
    <Reference Include="UnityEngine.UI">
      <HintPath>..\..\mods\UnityEngine.UI.dll</HintPath>
    </Reference>
  </ItemGroup>
#

anyone know how to dump a bitmap from a texture without using System.Drawing at all

#

or any image file

#

idc

#

assume I can get the raw color data of the texture.

#

AKA a bunch of r, g, b, a bytes in order

#

and I also know the metadata aka image size

#

at this rate I'm thinking make a whole new project, copy the image making code there, and test it without unity

rain cedar
#

Just embed the image

copper nacelle
#

they're trying to make random textures

compact sedge
#

it wouldn't be procedurally generated if it was embedded now would it

#

anyway I'm dumb and I tried to just make an exe which ofc won't work

copper nacelle
#

make every possible image and embed them

compact sedge
#

because it needs internal unity engine stuff for texture

#

what if minecraft had every possible world just embedded in it

copper nacelle
#

high performance

compact sedge
#

just gonna stop using unity alltogether and use the System.Drawing bmp

#

which is literally the same as a Unity.texture

#

as far as I'm concerned anyway

rain cedar
#
System.Random rand = new System.Random();
int width = rand.Next(500);
int height = rand.Next(500);
int byteCount = width * height * 4;
byte[] bytes = new byte[byteCount];
rand.NextBytes(bytes);
Texture2D tex = new Texture2D(width, height);
tex.LoadRawTextureData(bytes);
tex.Apply();
#

Random texture

#

100% untested

compact sedge
#

ok so here's my problem now. the C# colors are bytes but the unity ones are floats from 0 to 1

#

and if I rewrite my code it means redoing my math

rain cedar
#

byte/255

#

Bam float conversion

compact sedge
#

other way around and it means adding about 12 conversions

#

which ima end up doing for 24 extra lines

#

but my hope is the math is correct

#

maybe I should just apply my texture to the mantis gods floor and use that as my rest

rain cedar
#

Whatever floats your boat

copper nacelle
#

i mean

#

i guess that'd work

compact sedge
#

the problem is it's kinda stretched out

#

w/e ima just steal ur code

#

and make my own giant rectangle

copper nacelle
#

lol

compact sedge
#

why do I need a mesh for a sprite

rain cedar
#

You don't

#

Why would you?

compact sedge
#

why did 56 add one?

rain cedar
#

Idk

#

Mesh is used for MeshRenderer

#

Sprite is for SpriteRenderer

copper nacelle
#

yeah i used mesh

#

and meshrenderer

pearl sentinel
#

tk2d sprites use meshrenderers

compact sedge
#

okthen

pearl sentinel
#

Because 2d toolkit was written back before unity 2d overhaul

compact sedge
#

56 pls

if (PlayerData.instance.defeatedMantisLords)
                PlayerData.instance.defeatedMantisLords = false;

you can't just do a hook on GetBool?

#

you have to edit my save file

#

sorry unrelated

#

but sorry

copper nacelle
#

re i forgot to change that

compact sedge
#

I have to point it out

#

are higher numbers for layers further in front or behind

#

like if layer 8 is floor layer is 9 in front or behind

rain cedar
#

I don't think it's as simple as that

#

I think the behaviour of layers is not standard across unity games

copper nacelle
#

i think it's just groupings

compact sedge
#

oh ok

#

so I need z position then for layers

copper nacelle
#

yeah you still need a z i think

#

layers are for defining some common functionality across unrelated game objects

compact sedge
#

do you ever set the floor's x,y, z coordinates because I can't see you doing that anywhere in your code

copper nacelle
#

CreateMesh

compact sedge
#

nah ur just making a mesh with its given width and height

#

oh I see

#

you just made the height such that at the origin, 0, 0, 0, it would be just tall enough to be the correct height

copper nacelle
#

yes

compact sedge
#

that's hacky af but props

copper nacelle
#

¯_(ツ)_/¯

#

it's what unity had in their create plane tutorial

compact sedge
#

im imagining you in debugmod just slowly lifting your knight until it's at the height you wanted the floor to be at and reading the x,y off

copper nacelle
#

basically that but i just read the height when i was on top of the changing floor

#

then adjusted it a bit

#

and i made the length just super long

compact sedge
#

lol my generated object is in the distant background even though I set its z position to 100

#

wait is lower z closer

copper nacelle
#

dunno

#

i just set it to 0

#

iirc

#

might've been 0.001

compact sedge
copper nacelle
#

yes

compact sedge
#

PERFECT

copper nacelle
#

what's with the outer edges tho

#

also everything else

compact sedge
#

it's supposed to decrease down to about 40-60% opacity because I want to chain a bunch of these together

#

it's clear I didn't think my code through very well

#

but it's ok I'm happy it works just need to go over my math

copper nacelle
#

oh fuck

#

that reminds me

#

after you beat mantis gods you get trapped forever

compact sedge
#

uhhh

#

wait hold up you said you updated mantis gods today and you didn't even fix that

copper nacelle
#

forgot about that

#

i forgot to put it in my to-do list

#

so i just went down the list

#

saw everything was done

#

and released

compact sedge
#

ok setting z = -100 puts the fireball in front of the camera

#

so you can't see it at all

copper nacelle
#

nice

#

also imo set HeroWalkable and layer 8

#

then you can jump on your fireballs for cool skips

compact sedge
#

lol

#

I had that before but making it a floor inside another floor just lead to really glitchy clipping

#

and dying on my main save because im dumb and forgot to use save2

#

and restoring from a backup on that save cuz too lazy to kill shade

copper nacelle
#

nice

compact sedge
#

now to position it to jumpscare you when you spawn in at dirtmouth

copper nacelle
#

what the fuck

compact sedge
#

I made it kinda big

copper nacelle
#

amazing-1.png when

compact sedge
#

also any way to look at an image without the filters of the area applied to it

copper nacelle
#

eat the filters

compact sedge
#

cuz I think part of why its blue is because dirtmouth

#

I mean this is cool af but I need to see what a #nofilter pic would be

copper nacelle
#

destroy the filters

rain cedar
#

Render it in screen space with canvas

compact sedge
#

thanks for the real answer

#

except idk which one that is

#

or how to do that I mean

compact sedge
#

ty

rain cedar
#

Gradow's hp bars are probably good to look at too

compact sedge
#

if I add the plane object as a child of the canvas will it work?

#

or is that the wrong approach

rain cedar
#

What do you mean by plane?

#

Like the fireball?

compact sedge
#

I have a gameobject of type plane right now because I was copying 56's code and that's what i'm using to draw my fireball

rain cedar
#

I'm not familiar with that

compact sedge
#

if this works I'm half expecting just a giant fireball to appear in front of everything

#

the problem is you're using sprites which are PNG files and I'm using a texture which is basically unity's version of the bitmap

rain cedar
#

I create the sprites from textures though

compact sedge
#

reading unity docs this makes sense thanks

compact sedge
#

Thanks now I can look at it without a filter, you solved my problem @rain cedar (although I wish I could have just dumped an image but oh well)

rain cedar
#

Nice

flat forum
#

there was a mod that added an enemy being made?

lucid pond
#

The chair near the Unn lake isn't removed when you don't get ability to leave there. It makes me fun after watching other people streaming.He saved there and couldn't leave there.

#

😂

burnt laurel
#

so i installed randomizer mod from the mod manager

#

and now i can't uninstall it

#

also blackmoth won't load for me

#

like it just says "FAILED TO LOAD! Check ModLog.txt" but i don't know where that is

#

is there any way i could fix that?

exotic venture
#

go to steam, and verify game integrity

#

then try again

#

probably.

burnt laurel
#

ok

#

does it require any other mods to work?

exotic venture
#

don't think it does

burnt laurel
#

ok

#

still fails to load

#

hmm

#

let me try running only that mod

#

nope

#

is it compatible with lifeblood update?

#

where do i find the mod log?

exotic venture
#

hmm if the installer doesn't work, try installing it manually?

#

maybe out of date API causes it

burnt laurel
#

so i just download the mod and put it in my mods folder?

exotic venture
#

and install the api from the pins

#

should be 1.3.1.5

burnt laurel
#

ok

exotic venture
#

if uh

#

if it's up to date

burnt laurel
#

uhh

#

where's the api

leaden hedge
#

Pins

exotic venture
#

someone unpinned the 1.3.1.5 API cornywoke

burnt laurel
#

i dont see it anywhere

burnt laurel
#

thank you

leaden hedge
#

Its in the drive 🤔

burnt laurel
#

now that just goes in the already created API folder i have, right?

exotic venture
#

nah, you install it directly

burnt laurel
#

im in my hollow knight folder

exotic venture
#

so you unzip and copy it in C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight

burnt laurel
#

i see a folder titled "API"

#

so not that?

exotic venture
#

making sure it overwrites assembly-CSharp in Managed

#

nope

burnt laurel
#

do i keep the API folder?

exotic venture
#

it shouldn't do anything after installing this API

#

it's just used for the installer

burnt laurel
#

now how do i download the mod(s)

exotic venture
#

basically, these two files have to be replaced (ignore the NoMod folder- it's for storing inactive mods)

burnt laurel
#

ok

#

i did that

exotic venture
#

so it should look something like that with the Mods folder there with Randomizer in it

#

then try booting it up and see if it works!

burnt laurel
#

but where do i put the mod

exotic venture
#

in the Mods folder

burnt laurel
#

ok

exotic venture
#

inside Managed

#

if there is anything else in it

burnt laurel
#

nope

#

its empty

exotic venture
#

then dump it in there

burnt laurel
#

do i just put the .zip file in mods?

exotic venture
#

no, you need the .dll

burnt laurel
#

ok

#

so i downloaded it

#

now to try it

#

still failed to load

#

it keeps mentioning "ModLog.txt"

#

where could i find that

#

what if i verify integrity and then manually install

exotic venture
#

didn't

#

didn't you just do that

burnt laurel
#

no, when i verified the integrity, i continued to use the mod manager

#

this time i wont use the mod manage

exotic venture
#

akjfsgkdfgfksagfksajfdlksajklfhlasfjsdlaf

#

ok

burnt laurel
#

idk

#

im out of ideas

#

well

#

aside from this

young walrus
#

Copy paste too stronk

#

Opening zips final boss

exotic venture
#

Modding isn't so hard? Are you kidding me? When was the last time you saw such a complicated and complex manipulation of files? Modding puts the game on another difficulty level outside of the game, and we will be cursed if we ever see an experience so challenging again. Save editing ends runs. Cheat Engine ends runs. Modding ends your gaming career. You can keep your hardcore coding. I prefer manipulating the game in ways that are easy to understand.

burnt laurel
#

aaaand its still not loading

exotic venture
#

even after verifying integrity?

burnt laurel
#

yep

exotic venture
#

the fuck is it on

#

are you on beta patch

burnt laurel
#

no

young walrus
#

Base game itself isn't even loading?

exotic venture
#

so you are on 1.3.1.5

#

oh yeah do that first

burnt laurel
#

yes i am

exotic venture
#

base game

#

no mods

burnt laurel
#

the game works but the mod fails to load

young walrus
#

Then you're doing it wrong. hollowdab

burnt laurel
#

wow

#

never would've realized that

exotic venture
#

ok, last thing to do

#

in the pins there is a step-by-step guide on how to mod HK from a clean install

#

try doing that, and if that doesn't work

#

try calling IT

young walrus
#

Download zip, open zip, copy paste folder to other folder location, replace files, done

exotic venture
#

but mick

#

that is hard

burnt laurel
#

im confused by step 3

young walrus
#

All the mods are set up as a folder structure for where they need to go. Just copy paste the entire "hollow_knight" folder and paste it where the actual "hollow knight" folder is

#

The folder structure you downloaded will put all the files in the proper place for you

#

There's a video in pins that shows you this

burnt laurel
#

so just merge the 2 "hollow_knight_data" folders?

exotic venture
#

yes

burnt laurel
#

ok

exotic venture
#

then double check if everything is in place

#

if yes, then good to go

burnt laurel
#

how do i merge

#

i have "replace" and "skip"

exotic venture
#

you.. just say overwrite and merge when prompted

#

replace

young walrus
#

Replace

#

Skipping does nothing. It'll skip installing the mods

burnt laurel
#

i did everything in the steps

#

step by step

#

aaaand

#

surprise surprise, it failed to load

#

all the other mods work just fine

#

or at least the ones i tried

young walrus
#

What mod are you even trying to install?

burnt laurel
#

blackmoth

leaden hedge
#

Blackmoth should work

burnt laurel
#

all it says is "FAILED TO LOAD! Check ModLog.txt for details"

#

or something along those lines

leaden hedge
#

If its really recent it may require modcommon

#

As angle was fixing some bugs with it

young walrus
#

Modlog is in your save folder location

burnt laurel
#

and where's that

leaden hedge
#

Pins say

young walrus
burnt laurel
#

ok

#

no clue what any of it means

#

if i had to guess it has something to do with hooks maybe?

leaden hedge
#

Install hooks.DLL probably

burnt laurel
#

i did

#

and it still fails

#

i'm outta ideas

#

i just wanna play blackmoth

#

why must it be so difficult

copper nacelle
#

gradow was having the same issue yesterday

#

idk if he put the fixed dll in the drive

steel valve
young walrus
#

No u

supple sigil
#

Exactly

#

No

#

Where’s white defender

#

You need to put him in as well

#

And also galien’s scythes

#

And also the beast of god tamer

exotic dune
#

don't forget all 6 of the watcher knights at once

steep sail
#

there are 2 of them already

solid wagon
#

balls 😰

tranquil glen
#

would anyone happen to know how to create a program that could look through a large text document for the biggest numbers?zote

compact sedge
#

sort -n

#

var=$(cat textdocument) echo $var | tr " " "\n" | sort -n

#

this will split up the document at every space and new line and tab and then sort these by number

tranquil glen
#

where do i put that?

#

also thanks

compact sedge
#

you on windows?

tranquil glen
#

yeah

compact sedge
tranquil glen
#

ok thanks

compact sedge
#

sorry there's no native good windows tools to do it

tranquil glen
#

my other option is go through 45 text documents each of which has 2047 lines of numbers so i'll take it

compact sedge
#

for multiple documents do

cd folder/with/documents first

#

and then var=$(cat *)

#

to read all of them

tranquil glen
#

oh great, thanks

compact sedge
#

so sort -n just gives you the largest numbers at the bottom but if you want to know where they actually are in the document

you can then do

grep -C2 -r [paste number here]

and it will print the document name, and line with the number along with the 2 lines above and below it.

tranquil glen
#

nah, just knowing the numbers is all I need

solemn rivet
#

jeez

#

I've been away for less than a day

copper nacelle
#

chat active at night

solemn rivet
#

and there's like infinite messages to read through

hollow pier
#

reading through messages

#

more like

compact sedge
#

you read through the messages

hollow pier
#

press esc on every channel

copper nacelle
solemn rivet
#

be back in like 5 hours

copper nacelle
compact sedge
#

this but just modding

solemn rivet
#

k, back

#

15 minutes precisely

#

nice

#

so

#

@hazy sentinel only eggs and idols give free levels now

#

@compact sedge in enemyhpbar I dumped some images to byte[] and back into sprites, if you wanna take a look

#

@burnt laurel I have a fix, I'll post it shortly

compact sedge
#

I could dump them to byte[] the problem was I couldn't dump them as image files because the image libraries are broken

#

my solution was to render them as sprites

solemn rivet
#

got it

#

and I see you already got it working, so that's even better then

solemn rivet
#

nice! Nice!

rain cedar
#

That looks a lot better than the screenshots from yesterday

solemn rivet
#

it does

#

I'm actually impressed

#

@burnt laurel try re-installing blackmoth

#

I added modcommon and hooks as dependencies to the xml and made it load after hooks

fair rampart
#

guys is there anyway to unbind stuff in debug mod? i somehow managed to bind spawn reset to A on my controller, and when trying to bind it to something i don't use i ended up screwing more shit up.

solemn rivet
#

I think there should be a settings file in your saves folder

exotic venture
#

yeah, deleting the settings resets it to default

fair rampart
#

okay, thanks, i was trying to find something like that but in a different folder

#

btw what is the latest version? because i downloaded the one from the google folder and it keeps telling me that there's a newer one

#

is it bugged or?

exotic venture
#

that's nothing of note

#

if it works, it's fine

fair rampart
#

well uhh

#

i don't know about that

#

it doesn't reset the brooding mawlsomething

solemn rivet
#

and traitor lord

#

but it's up-to-date

fair rampart
#

ah so there are some bugs, fair enough

#

shame, last time i was playing it it could reset that guy no problem

#

¯_(ツ)_/¯

copper nacelle
#

it's almost like major updates to the game without major updates to the mod may or may not affect the mod's functionality

rain cedar
#

Maybe you should fix it 56

#

I'm not gonna

fair rampart
#

no offense meant dude, i have no idea about how the mods work and how updates affect them

copper nacelle
#

@fair rampart you're sure the mawlek spawn didn't work for you?

#

you have to press respawn then leave the area then come back

#

cause it just worked for me

fair rampart
#

yeah

#

then what the heck

#

i have 1.3.3 version of the debug mode and the latest non-beta version of hollow knight and it doesnt work for me

copper nacelle
#

wtf

#

stopped respawning

#

ok.png

fair rampart
#

fuckin rng dude

#

oh wow nice

#

if you reset without picking the shard piece and come back the shard disappears but the boss doesn't reset

#

N I C E

copper nacelle
#

wait

#

ok thanks

fair rampart
#

that means it kinda works? kinda

#

anyway good luck on fixin that or something

copper nacelle
#

I love it when there are two activated variables and both are false but the boss still doesn't spawn

solemn rivet
#

boss respawning is hard

#

I tried to mess with the old kein boss rush to make it a boss-practice mod

#

but, man, was it hard to get some bosses to respawn

copper nacelle
#

yeah

#

on the bright side enemy data was easy to fix

solemn rivet
#

thank god

#

I still hope that we get close to no fsms in the GNG patch

#

I mean, sure, leave them for bosses

burnt laurel
#

oh hey

#

let's hope it works now

copper nacelle
#

yeah same

#

hope what works

burnt laurel
#

blackmoth

exotic venture
#

depends on wilbo's mood really

#

you all are at his mercy and he could meme it up if he wants to

solemn rivet
#

wilbo = meme master

compact sedge
#

meh I could always downpatch

exotic venture
#

downpatch form GnG?

compact sedge
#

but then nobody'd play my mods because nobody else wants to give up GnG

exotic venture
#

yeah sure good luck

solemn rivet
#

can we try and bribe graig?

exotic venture
#

graig can't do anything

solemn rivet
#

he can plant ideas

#

the seeds of chaos

exotic venture
#

ideas of more FSMs

copper nacelle
solemn rivet
#

yeah, I guess

copper nacelle
#

delet this

solemn rivet
#

it's graig we're talking about

exotic venture
#

you can only pray to whatever deity you believe in there will be less FSMs and wilbo will not make spaghetti code or FSMs

solemn rivet
#

inb4 there's an actual class named Spaghetti

exotic venture
#

i wouldn't be surprised if there was

#

but yeah, hope for the best

#

he is the most fearsome man on the entire discord with clear reason

copper nacelle
burnt laurel
#

oh sweet

#

it works now

#

thanks

copper nacelle
#

have fun

#

blackmoth is great

burnt laurel
#

hmmm

#

so i'm fighting one of those giant things with the huge club in the forgotten crossroads

#

and it hit me and i went flying

#

now i'm stuck in a wall

solemn rivet
#

also, the bug where you can't dash through them was unfixed, for some reason

#

like, first lifeblood beta ver introduced that bug, for some reason

#

then next versions removed it

#

now it's back

#

Y

#

and, Dunker, sorry, I have no idea what causes that

burnt laurel
solemn rivet
#

yeah

burnt laurel
#

i've been stuck up here for a bit

solemn rivet
#

enjoying the view?

burnt laurel
#

yeah

#

nice view of the guy i cant murder

#

its like i went noclip and just slowly flew into the sky

#

i was just dashing into the guy and that happened

solemn rivet
#

the thing is, there's nothing I'm doing with blackmoth (at least not this early in the game) that would cause that

#

so I can only assume it's a vanilla bug

burnt laurel
#

eh

#

probably

#

i wonder how shields will work

#

dont spoil it

exotic venture
#

game has bugs

compact sedge
#

well it used to be that if you tinked a shield your dash became useless

#

and this is in vanilla too

burnt laurel
#

"game has bugs"

#

hahaha funny pun

solemn rivet
#

understatement of the year

#

in every possible sense

compact sedge
#

^

solemn rivet
#

also, AA, did you find anything that might cause this while looking through the FSM for sharp shadow?

#

it's been a known bug in blackmoth - something hits you right as you finish dashing and BAM

compact sedge
#

yes I know exactly why it happens. basically there's a state that it enters that it's supposed to transition from after applying a hit to an enemy

solemn rivet
#

stuck on the ceiling

compact sedge
#

oh not that bug idk

solemn rivet
#

oh, yeah

#

the tink one

#

yeah, I figured it was something like that

#

my first guess was that the game was somehow setting the attack type of the dash to a non-valid type

#

so I manually set it to 0, and it didn't fix it

#

then I figured that the game was setting it to type 0 (nail) but with 0 damageDealth

#

but that also didn't fix it

compact sedge
#

Basically the "apply hit to enemy" function fails if you apply it to tink enemy and so the transition state name never gets set to the right name needed to progress to the next fsm state. so it runs out of actions to do in the state it's in so it becomes a dead, useless state.

solemn rivet
#

That's... Stupid

compact sedge
#

idk how to explain it because I don't understand fsms fully

#

but like if you did every action in the FSM state and your transition string isn't set to a string needed to progress then the FSM gets stuck in that state

#

which makes sense but they just forgot to add on TINK transition to INIT

I could have added it but that wouldn't have been a 1 line fix

#

so instead I did the hackier but it doesn't matter anyway fix of just setting it to the correct state

#

if you want to implement a less hacky solution here's what the fsm looks like in its broken state but if the current solution doesn't break anything then I don't see why you should bother.

burnt laurel
#

the "stuck in the ceiling" bug tends to happen when you get hit right after dashing

#

like i dashed through false knight, but i didn't get all the way past him

#

so i dashed and went straight from dashing to getting hit

#

and then i got flung into the ceiling

#

any charm recommendations?

rain cedar
#

Wayward compass

burnt laurel
#

inb4 wayward compass makes your shadow dash 1-hit anything

#

kills everything in the room when combined with gathering swarm

#

is there a list somewhere that tells me what charms are changed?

young walrus
#

Almost like there's a mod readme

solemn rivet
#

great, that's outdated

#

no spoilers

#

tbh just play the game and get the charms to see what they do

#

they have in-game descriptions, so

rain cedar
#

The secret with readmes is to put basically no effort into them because nobody reads them anyway

solemn rivet
#

^

#

that's me

young walrus
#

^

burnt laurel
#

so do the descriptions of the charms change too?

solemn rivet
#

yup

#

and other items...

burnt laurel
#

nice

solemn rivet
#

and their names

young walrus
solemn rivet
#

wut

young walrus
#

"they have in game descriptions"

#

"so do their descriptions change?"

burnt laurel
#

¯_(ツ)_/¯

rain cedar
#

To be fair regardless of if the in game descriptions changed they still would have descriptions

#

Just not necessarily accurate ones

young walrus
#

Still can't be as good as the rando changes

#

"reddit is never wrong"

#

Hahahaha. Loved that one

solemn rivet
#

wut

#

what item has that

rain cedar
#

I think it's on steady body

compact sedge
#

wait why are "things this mod changes" considered spoilers

young walrus
#

Stalwart shell I think?

rain cedar
#

One of the bad melee build charms

young walrus
#

Steady body had a comment about holding a direction

solemn rivet
#

because I like seeing how surprised people react when they get certain items

rain cedar
#

Oh right steady body is the one about walking into enemies

young walrus
#

Yup

burnt laurel
#

spoilers

copper nacelle
#

s h h

burnt laurel
#

actually idc

compact sedge
#

honestly I was surprised by the default 0 charm 0 upgrade blackmoth dash

burnt laurel
#

if its spoiling stuff like charms, i'd like to know what charms i should go for getting

solemn rivet
#

m8 you're using a turbo button

young walrus
#

All of em

compact sedge
#

shh

solemn rivet
#

most people can't dash that fast

compact sedge
#

neither can I

copper nacelle
#

I couldn't manage invincibility

#

even when I tried

burnt laurel
#

uhhh

#

enemy hp bar mod takes hooks

#

right?

copper nacelle
#

yes iirc

burnt laurel
#

hmm

#

well then

compact sedge
#

idk what to say though because even without turbo the steam controller makes it REALLY easy to mash buttons quickly

#

like so easy that I can almost get invincibility without it

burnt laurel
#

i have hooks but the hp bar mod fails to load

#

here we go again

copper nacelle
compact sedge
#

y'all give me shit for using the steam controller but it's such a good controller.

Also post ur log

burnt laurel
#

post a screenshot or post the actual file for it

young walrus
#

grimm H O R I grimm

burnt laurel
#

or does it not matter

copper nacelle
#

shit for the turbo button imo

#

I was considering getting the steam controller but I got the xbone instead

compact sedge
#

sorry for your loss

solemn rivet
#

post the actual file

young walrus
#

Wow, See Me talking about it, still won't get a hori

solemn rivet
#

also, do you have modcommon?

compact sedge
#

is there a program like this for xbox controllers on windows @copper nacelle

copper nacelle
#

dunno

#

never bothered changing anything for my controller

#

thanks for the idea

compact sedge
#

well then ur missing out because this program is awesome

young walrus
#

I think there is

copper nacelle
#

I'll flash firmware onto it

solemn rivet
#

can xbox360ce do that?

compact sedge
#

no firmware needed

copper nacelle
#

like I did to my keyboard

compact sedge
#

probably. I'm a big fan of SC controller but idk if it works on xbox

#

I know it works for steam controllers and PS4 ones

burnt laurel
compact sedge
#

that's not the file

solemn rivet
#

ffs

#

hooks

compact sedge
#

also yeah

solemn rivet
#

can anyone set the priority of hooks to 0 or smth?

compact sedge
#

where hooks at and where modcommon at

#

idk if modcommon needed

#

but where hooks at

solemn rivet
#

hooks works, because blackmoth needs it and it's running

#

the issue is, once again, load order

#

hpbars is loading before hooks

burnt laurel
#

yeah i just have hooks, blackmoth, and enemy hp bar

compact sedge
#

SEE this is why YALL need 56's hooks in modding api patch

#

why is this not accepted yet

burnt laurel
#

hmm

solemn rivet
#

do you have a link to the pr/binary?

compact sedge
#

uh I have a binary but only built for lifeblood beta

solemn rivet
#

oh

compact sedge
#

56 can link the repo

#

ok ill do it

#

it basically globs everything important into the assembly c# file including hooks so it becomes like a 9MB file

#

but it includes the unity engine stuff too

solemn rivet
#

oh

copper nacelle
#

doesn't include unity engine

#

just assembly and playmaker

solemn rivet
#

lemme compile that rq

compact sedge
#

no ur right assembly playmaker, and a bunch of monomod stuff

#

I want Seanpr to accept it though because right now I'm the only one using the ideal modding API. aka your changes plus the newest commit which fixes exception after OnDashPressed

#

not that the exception is a big deal or anything but it means only one mod can do a hook for OnDashPressed

#

because it will cause an exception after the first mod and not run the second mod's code

copper nacelle
#

compile monomod hooks for the other mod

#

And hook the other mod's ondashpressed handler

compact sedge
#

lul

#

but that means the person needs to install the other mod to use my mod

#

and that's stupid

solemn rivet
#

56 can you compile a version of hooks that has priority 0 or something

copper nacelle
#

uhh

#

how tho

solemn rivet
#

how what?

compact sedge
#

and if not then idk that you can

copper nacelle
#

hooks is just hooks

#

no mod class

solemn rivet
compact sedge
#

then what even loads it

solemn rivet
#

magic does

compact sedge
#

like ur telling me just dropping a DLL called modhooks in there without any API to load it and it somehow works

copper nacelle
#

api loads it

solemn rivet
#

I think the API loads every dll in that folder

#

yeah

compact sedge
#

so you drop it in the mods folder

#

oh I thought y'all were sticking hooks one directory higher

burnt laurel
#

wait, how would hpbar be having problems if it was just working earlier today

copper nacelle
#

e c h

#

I'll try and get it loading earlier whenever I get home

solemn rivet
burnt laurel
#

me?

solemn rivet
#

you

burnt laurel
#

ok

#

uhh

#

i try to download it

#

and it wont download

#

like it just leads to an untitled page that does nothing

solemn rivet
#

I downloaded them rn

copper nacelle
burnt laurel
#

hmmmmm

#

i think it might be an issue on my end

solemn rivet
#

it's just a virus mod

rain cedar
#

So I just found out something fun

#

Monomod hooks throw an error if you try to remove something from them that isn't in it

#

Fucking annoying "feature"

#

Now I need like 10 try/catches

copper nacelle
#

wdym

rain cedar
#
On.GeoRock.OnEnable -= RegisterGeoRock;
#

Throws an error if RegisterGeoRock isn't registered on the hook

solemn rivet
#

can't you use reflection to pool all methods that are subscribed to that hook?

rain cedar
#

Why would I ever want to do that?

solemn rivet
#

to unsubscribe RegisterGeoRock?

#

if it is subscribed

rain cedar
#

Seems like way more work than just using try/catch

solemn rivet
#

yeah, I guess

rain cedar
#

Or monomod could just silently fail like every other hook system I've used

burnt laurel
#

so i downloaded the things you listed

#

and still failed to load

solemn rivet
#

wut

#

send modlog

burnt laurel
#

i am

solemn rivet
#

wait wait

#

that's an api error

burnt laurel
#

all this struggle just so i can see when an enemy dies

solemn rivet
#

the method that it's not being able to load is from the API, not hooks

#

huh

#

weird

#

what api version do you have?

burnt laurel
#

the one you gave me earlier

solemn rivet
#

I didn't give you api

burnt laurel
#

wait no

#

not you

#

someone else

#

i think it's 1.3.5.1 or something

#

lemme double check

solemn rivet
#

that's game version

#

1.3.1.5

#

send a screenshot of the title screen

burnt laurel
#

in-game?

solemn rivet
#

well, yeah

burnt laurel
#

oh

#

hold on

solemn rivet
burnt laurel
#

"ModdingAPI_1.3.1.5_beta.zip"

#

thats the name of the one i have

#

someone gave it to me to try and fix blackmoth i think

rain cedar
#

Just get it off the drive

#

Or from the installer

solemn rivet
burnt laurel
#

oh, i can use the mod manager?

solemn rivet
#

sure

burnt laurel
#

nice

#

still want that screenshot?

solemn rivet
#

but only for the api for now

#

nah

#

the thing is, the mods aren't broken

#

but the api should load hooks before loading the mods

#

and it's not doing that, for some reason

#

so the dlls I sent you delay the loading of the mods, so hooks can load safely

#

but as soon as hooks is part of the api, that won't be needed

#

so I won't add those versions to the gdrive

#

they're sort of a "temporary fix"

#

public override int LoadPriority() => 69;

#

because I have the mind of a 13 year old

copper nacelle
#

nice

burnt laurel
#

should i fight the brooding mawlek?

solemn rivet
#

did it work?

#

also, why not?

burnt laurel
#

yeah it worked

#

also it's fairly difficult to get to the arena, that's why

#

and i'm not the most skilled

#

got it down to a bit below half

#

not bad

solemn rivet
#

Niko was working on new designs for the bosses' hp bars

burnt laurel
#

"fairly difficult to get to the arena" i say, as i do the nail pogo in 1 try

#

best part of the mod:

#

i can bypass a few things early game

pearl sentinel
#

@rain cedar just got out of a thing for my wife's family, but will get the pr asap. If I can refactor out the additional dependency is that ok?

rain cedar
#

You'd probably have to remake the GeoControl component to do that

#

But if you want to go for it

#

Also not sure how you would detect geo drops

pearl sentinel
#

I'd add harmony source to mod common since it's runtime and MIT.

#

Then replace the hooks with that

#

Tested it with a demo at work so I know harmony will integrate

compact sedge
#

what is harmony

pearl sentinel
#

Google github harmony

#

Gotta drive now

compact sedge
#

cool

tight zephyr
#

Hello

#

I have a question for whoever made or played blackmoth

copper nacelle
#

ask imo

burnt laurel
#

well we have both here

#

so ask away

#

or dont

#

that works too

compact sedge
#

hey maybe they just wanted to tell us they had a question and didn't actually want to ask it

burnt laurel
#

yeah you're right

#

huh

#

never thought about it that way

#

this changes everything

#

also blackmoth is like

#

my favorite mod so far

compact sedge
#

same but I'm playing it the absolutely unintended way so my opinion doesn't count

burnt laurel
#

if only i could dash upwards and downwards

compact sedge
#

at the same time?

burnt laurel
#

no

#

but like

#

i wanna attack up and down instead of just left and right

#

i know dashmaster has a downward dash ability

compact sedge
#

mothwing cloak imo

burnt laurel
#

or at least it did

compact sedge
#

go fight hornet

burnt laurel
#

ok

#

i can skip so many puzzles intended for pre-hornet

solemn rivet
#

Shhh

#

But yeah

#

Beat hornet1

#

Like asap

compact sedge
#

smh should have made beating hornet do nothing since the player can already dash

solemn rivet
#

Heh

#

I didn't want to make the item go to waste tho

#

And lore

#

There's also lore reasons

burnt laurel
#

did i mention the lore?

compact sedge
#

also question. I managed to activate the crystal lift from the wrong side. Do you think it's possible to get through that section between dirtmouth and the peak without super dash?

solemn rivet
#

I think so

#

With quickdash

#

Or grubber

compact sedge
#

no quickslash, haven't even been to kingdom edge yet

solemn rivet
#

Hmm

#

Are the crystals there pogoable?

compact sedge
#

no but I do have up to quadrupley chained ~3.2x length dashes.

solemn rivet
#

Hmm

compact sedge
#

the only problem is I need to be overcharmed for it

#

and I'm bad

solemn rivet
#

Maybe using dashmaster

#

Yeah

#

Dunno

rain cedar
#

Float imo

compact sedge
#

something that's a bit weird to me still is it seems like you can control the direction of the dash but only the second half of it

solemn rivet
#

Well, there's that

compact sedge
#

the first half seems to be whatever direction when you pressed the button

burnt laurel
#

well thats just great

#

i died in the place where you get the baldur shell

#

i'm not a fan of those things

solemn rivet
#

What do you mean? First half?

compact sedge
#

like you can curve your dashes

#

but at first it just goes in the direction that you pressed when you pressed the direction button

solemn rivet
#

I have no idea what you mean, sorry

#

Can you show me?

copper nacelle
#

^

compact sedge
#

like you can do this ----⤴ if you dash right and hold up

#

and it gives you free height while not counting as an air dash

#

letting you dash a second time with a tiny bit of extra height

#

not as much as a full jump but the extra distance makes it worth it

#

but it seems like you have to wait for a certain amount of the dash to complete before you can curve it, like you can't do

 ^
 |
 |
-⅃```
#

and have it count as a ground dash

solemn rivet
#

I'll look into it tomorrow then

burnt laurel
#

should i abandon zote for the achievement

solemn rivet
#

It's midnight here

#

Gnight

compact sedge
#

is changing your dash midair supposed to be impossible then I guess

solemn rivet
#

Yeah it is

compact sedge
#

I have a theory

exotic dune
#

not unless you haven't saved him before (in another playthrough) imo, you'd be missing out on something

compact sedge
#

if I'm, hypothetically turboing the dash button, idk why anyone would do it, but maybe pressing that button while holding a direction lets you change the direction of your dash

#

the thing I'm gonna test is how a certain charm in kingdom's edge to avoid spoilers affects that behavior

#

ok here's a video to show what's going on

#

and with that charm (not naming names) I can just sorta fly by turbo pressing c and moving left stick

flat forum
#

Hmmmm

#

in Blackmoth

#

because you dash to attack

#

do you still have the nail?

#

what happens to nail affecting charms?

copper nacelle
#

replaced

flat forum
#

What happens to Dashmaster

burnt laurel
#

beat hornet 1st try

copper nacelle
#

replaced 2

flat forum
#

What happens to SHARP SHADOW

copper nacelle
#

replaced 3

burnt laurel
#

OH MY

#

i just found the mothwing cloak

#

wont spoil it for anyone but

#

i'll enjoy it

flat forum
#

What happened to not only the men., but the women and children too?

copper nacelle
#

replaced

flat forum
#

What happened to my actually good answers I hoped for?

copper nacelle
#

spoilers

#

re

flat forum
#

Should I get it?

copper nacelle
#

blackmoth?

flat forum
#

yeah

copper nacelle
#

yes

#

very fun

flat forum
#

that's what we've been talking about

#

K

compact sedge
#

@solemn rivet btw I suspect the problem is the cooldown for when you can start another dash ends before the first dash is over. WHen this cooldown is over, but while you're still in a dash pressing the dash button while holding a direction doesn't start a new dash in that direction but redirects your current one. Ideally this cooldown should be just slightly longer than the dash length itself which would fix both this and immortality through spamming the dash button.

burnt laurel
#

is it at all possible to have the large "boss" health bar for the giant moss charger?

#

and other large minibosses like that

warped sinew
#

hmm i just tried infinite grimm on lifeblood

#

but he died

#

so i guess it doesnt work?

copper nacelle
#

did you install modcommon

warped sinew
#

oh no, i just have the normal api

#

thx

copper nacelle
#

yw

warped sinew
#

ok

#

honestly at normal speed he is a joke

#

you should def do 1.5times

#

try it 56!!

copper nacelle
#

oh yeah

#

hkfast.dll, right?

warped sinew
#

oph it litterally says requires mod common in the top left of the screen

#

im an idiot

copper nacelle
#

lol

warped sinew
#

Sanic.dll

#

KDT modded it so the slowdowns don't interupt the game speed

copper nacelle
#

cool

warped sinew
#

in the save folder there will be a json file, you can edit it to the speed you want

#

1.5 baby!

#

how do i turn hard mode on?

copper nacelle
#

same thing as sanic

#

in the save folder there's a json

warped sinew
#

thanks

copper nacelle
#

yw

warped sinew
#

what does hard mode do?

copper nacelle
#

iirc faster and less staggers

#

and gets faster faster

warped sinew
#

ahh nice!

#

ok

copper nacelle
#

wow i died

#

holy shit pufferfish is brutal

flat forum
#

Indeed

#

What was your score?

copper nacelle
#

no i mean

#

1.5x grimm

flat forum
#

Oh

#

Not InfiniteGrimm

compact sedge
#

1.5x pufferfish is hard, but probably harder when the knight also moves at 1.5x speed

flat forum
#

(Also, I think I'm done with mt first mod)

copper nacelle
#

nice

compact sedge
#

what's harder? dealing with super fast grimm or dealing with the super fast knight?

copper nacelle
#

dunno

flat forum
#

Hmmm

#

As in

#

You move faster? "Super fast knight"

#

Or a fast THK fight?

compact sedge
#

the knight is a nightmare to control at 1.5x speed last I tried

flat forum
#

Yeah

compact sedge
#

but maybe I'm just not used to it

flat forum
#

At 1.2 or 1.3 isn't all that bad tho

#

So,I guess you can get used to it?

copper nacelle
#

beat it

rain cedar
#

Prove it

copper nacelle
compact sedge
#

alright now do 1.55x

#

keep going up until y'all reach the limits of human capability

copper nacelle
#

u

#

that was fun af

compact sedge
#

but uh I have a problem

#

I don't find playing the game as fun as modding it.

#

what do?

copper nacelle
#

re

hazy sentinel
#

mod the game to be more fun

#

daily programming hk challenges

rain cedar
#

Mod in co-op

compact sedge
#

eventually

#

but I'm gonna need to do some research on it so I wouldn't expect a coop mod by me for at least a month

rain cedar
#

Instead of fighting the game singletons the easiest way would honestly be to just create a completely new player class

#

Saying something that that's easiest

compact sedge
#

idk how keyboard inputs are done in unity

#

is it something in TC's code or in unity's code?

rain cedar
#

HK uses a library called InControl

compact sedge
#

Do I hook on it or can I also use that library?

rain cedar
#

You can use it for input yeah

compact sedge
#

ok will look into some time if I can use an existing library maybe I can build my own game object from an existing game object but which is controlled by inputs from a second player.

rain cedar
#

I would look at the HeroActions class

#

And the related PlayerAction

compact sedge
#

thanks but multiplayer is definitely gonna have to wait a bit. Hell I'm in summer school so I don't have the free time you might expect me to otherwise.

Also no way in hell I can do online multiplayer or anything like that

#

I wouldn't even know where to start on networking.

rain cedar
#

That's fine it was a joke suggestion anyway

compact sedge
#

but it's a serious plan I have... although definitely one that, unlike my other plans, may never happen

warped sinew
copper nacelle
#

nice

warped sinew
#

his attacks start getting fairly fast

compact sedge
#

Hey graig, just a heads up but you don't need grimmchild if you want two extra notches for something else

flat forum
#

Um

#

I tested the mod I made

#

and for some reason it isn't working

#

I have no idea what the reason could be

deep sleet
#

Making games is impossible and we're all going to die

flat forum
#

yes