#archived-modding-development

1 messages · Page 459 of 1

safe hamlet
#

so like if (bossscenecontroller.instance.bosslevel == ?)

fair rampart
#

got it

fair rampart
#

can you directly instantiate a preloaded gameobject?

rain cedar
#

yes

fair rampart
#

I've been trying to instantiate Hornet Boss 2 from GG_Hornet_2 as a test but she doesn't appear

#

actually I changed the scene to Deepnest_East_Hornet_boss cause I get a key error w GG_Hornet_2 that idk how is happening

copper nacelle
#

Did you set the object active?

fair rampart
#

e

#

I'll do that now

#

hmm, still not appearing

copper nacelle
#

did you set position

fair rampart
#

I had the position argument for instantiate set to somewhere within the arena

floral furnace
#

question are you using dictionaries

fair rampart
#

yeah

floral furnace
#

and other GOs worked for that dictionaries right?

#

cuz i dont fucking know why, but placing the GOs i found on a dictionary would screw them up so i temporarily added them as declared static objects instead

fair rampart
#

when I try to instantiate the preloaded GOs directly?

#

cause I haven't had any success with those

floral furnace
#

if im getting this correctly
what youre doing right now is
preload > get go > put it in dictionary > get it from the dictionary > instantiate it

right

fair rampart
#

yes

floral furnace
#

hmm, well that was my original issue before, placing them at dictionaries would fail, so what i just did for now was make a static global gameobject variable named "examplePrefabGO", place it there, then once i need it i just do Instantiate(examplePrefabGO)

im just saying all of these cuz your issue MIGHT PROBABLY POSSIBLY PERHAPS be related to this

fair rampart
#

so like

Instantiate(prefabGO);```?
floral furnace
#

well try testing it like that, but what i mean is, you dont put the GO inside the dictionary anymore
instead of
preload > get gameobject > put inside dictionary > get from dictionary > instantiate
you just do
preload > get gameobject > put it inside a static gameobject var > instantiate that game object once you need it

#

just see if it works

fair rampart
#

you put the preloaded go in the static go var in Initialize?

#

go = preloadedObjects["Scene"]["GO"]; and then in another file:
Instantiate(filewithgo.go);?

floral furnace
#

yeah

#

again im not 100% sure this will work, but it might just be a similar case with you

#

i honestly have 0 idea why its even happening with a dictionary, because conceptually it SHOULD work no problems

fair rampart
#

maggotprime nope

floral furnace
#

pensive, well sorry i thought you had a similar issue

fair rampart
#

I'm getting a NullReferenceException when I try to load an asset using AB

#

even when the path containing the AB exists

ornate rivet
#

hmm show code for getting asset bundle

#

spawning hornet should work btw, I've done it before. You say she doesn't appear, is the go null or just not appearing. And it might be an fsm issue.

flat forum
#

given up on trying to spawn PV at the end of PoP?

ornate rivet
#

Depends on what you mean with giving up zote

#

It'll be finished alongside propeller knight and fluke goddess

flat forum
#

yay~

#

I really really really want that mod

copper nacelle
#

make it elderC

flat forum
#

FSM manipulation more like I 'm not doing that

#

apparently PV detects floor weirdly

ornate rivet
#

It doesn't detect floor. It's set to only move around within a certain range but changing the constraints doesn't seem to change anything

flat forum
#

^

#

whatever he said

fair rampart
#

When I logged the hornet go == null I get false

fair rampart
#

my code for the assetbundle is

_bundle = AssetBundle.LoadFromFile(path);
Sprite[] _tisoSprites = _bundle.LoadAssetWithSubAssets<Sprite>("TisoSprites");
#

"tisosprites" being the name of the ab and "TisoSprites" being a sprite sheet bundled inside it

#

when I logged path, it printed C:/Program Files (x86)/Steam/...\tisosprites

#

dunno why it's a backslash there

#

tried replacing it with a forward slash, then all the forward slashes with an escaped backslash but still couldn't load from the ab
the result was the same when I tried LoadAllAssets too

copper nacelle
#

It printed with 3 dots?

fair rampart
#

no I just didn't want to write the full path

#

all the path delimiters were forward slashes except the one created by the Path.Combine between the streamingAssets path and the ab file name

copper nacelle
#

Is the bundle non-null

fair rampart
#

_bundle == null logged as false

copper nacelle
#

slashes really shouldn't matter

#

forward slash tends to just work

copper nacelle
#

Are the sprites null or

fair rampart
#

idk cause I always get an exception there maggotprime

copper nacelle
#

not specifying what exception you get with a stacktrace x5fiftPrime

fair rampart
#

nullreferenceexception

#

ok so yeah

copper nacelle
#

On the assignment line?

#

any stacktrace

fair rampart
#

yes

#

how do

copper nacelle
#

like

#

what is the stacktrace

#

Is the NRE within the LoadAssetsWithSubAssets or does that method throw because _bundle is null

fair rampart
#

um

#

do I need to use the stacktrace class?

copper nacelle
#

you know how it says

#

NRE: blah blah at blah
blah blah
blah blah
blah blah blah

fair rampart
#

yes

copper nacelle
#

that is a stack trace

#

i would like it

fair rampart
#

System.NullReferenceException: Object reference not set to an instance of an object at Tiso.StartTiso.Start () [0x00000] in <filename unknown>:0

copper nacelle
#

And it doesn't get past the sprite array assignment?

fair rampart
#

nope

copper nacelle
#

you're 100% sure _bundle isn't null?

fair rampart
copper nacelle
#

my boy

fair rampart
#

but I double checked my path log and now it says the path doesn't exist

#

hm?

copper nacelle
#
  • binds stronger than ==
fair rampart
#

whoops

copper nacelle
#

You're checking if ("Bundle null? " + _bundle.ToString()) is null

fair rampart
#

that's why it only said False maggotprime

copper nacelle
#

yes

fair rampart
#

but I wonder if the false path has anything to do with my problem

#

ok it is null

copper nacelle
dark wigeon
#

you can even save your work and load it instantly now

dark wigeon
#

oh and all components are allowed to be used now, aside from monobehaviours

ornate rivet
#

awesome

fair rampart
#

using the dreamnail next to a debugcollider seems to freeze the game

#

you can still pause though

copper nacelle
#

x

#

What's your dream nail button

fair rampart
#

Q

copper nacelle
#

that's probably it

#

I think W also freezes the game with it on

fair rampart
#

yeah I found that out too since I use WASD

copper nacelle
#

it's for like frame advancing i think

fair rampart
#

is there a component I can just add to enable damaging a GO?

floral furnace
#

do you want that GO that youll add a component to damage the player, or be damaged?

fair rampart
#

be damaged

floral furnace
#

HealthManager?

fair rampart
#

ok

#

on another note, I'm trying to add a collider, DamageHero component, and EnemyDreamnailReaction to GO Tiso Boss

floral furnace
#

alrighty yeah that should work, HealthManager has its own Hit() method that accepts a HitInstance to damage it

fair rampart
#

I logged between each line and it passes but no hitbox exists when I start the fight

floral furnace
#

thats odd

#

did you use BoxCollider2D?

fair rampart
#

yes

floral furnace
#

set it activated?

fair rampart
#

yep

#

the GO right?

floral furnace
#

uhh the collider itself too

#

afaik it has a seperate Active section too

copper nacelle
#

did you check output_log

floral furnace
#

so you can have an active GO but an inactive collider, right 56?

copper nacelle
#

Yeah

fair rampart
#

what should I be looking for in output_log?

copper nacelle
#

sometimes it complains that it can't add the component because it's incompatible with some other thing and then throws no exception

fair rampart
#

also is there a SetActive method for BoxCollider2D?

floral furnace
#

there should be, otherwise, ehem, dont let saleh see me say this

.active = true; should work too

fair rampart
#

I see an isActiveAndEnabled but no active

#

and isActiveAndEnabled has no setter

copper nacelle
#

.enabled

floral furnace
#

misremembered then my bad, they all seem synonymous so i get them mixed up

copper nacelle
#

these things happen

fair rampart
#

maybe I should just instantiate a new GO

floral furnace
#

Gee Tiso, How come your dev lets you have TWO Boxcolliders?

fair rampart
#

cause I added one of them maggotprime

floral furnace
#

i was just jesting 😔

#

you could try it yeah

#

the instantiation i mean

safe hamlet
#

modding hk is bad

dark wigeon
#

it won't load in the mod yet but you can save it

#

who wants to bet I can beat silksong
Edit: my editor racing silksong not me completing silksong lol

floral furnace
#

if you release it first yes

brazen mortar
#

provided you havent beaten silksong already

obtuse stag
#

what? you haven't already? That's slow

fair rampart
#

think I encountered one of those component incompatibilities

#

couldn't add a rigidbody2d but no exception was thrown when I tried to log it

leaden kestrel
#

Oooh The editor is done now?

dark wigeon
#

not done

#

well basically its done, but I have to configure the mod to load the scene

leaden kestrel
#

Ah
So...What are the features in this Level Editor?
Anything that will make adding shortcuts easier?

young walrus
#

We went over this a few days ago

#

lol

leaden kestrel
#

Yeah, but I don't really get it still
I need Unity (Which maybe I was not downloading it correctly, I might have to go back and do it again)
But once I do have unity, I will be able to create mods easier?

young walrus
#

mods aren't made in unity

#

so... no

#

I believe Nes was talking about Unity Editor

rain cedar
#

You can do stuff with Unity but you don't have to

young walrus
#

mods are usually written in.... I forget the program now

#

microsoft visual studio

leaden kestrel
#

My mod for the game would be literally adding in shortcuts throughout the game

ornate rivet
#

are new scenes and gateways next on your list after fixing the mod? @dark wigeon

dark wigeon
#

I need to look into that, but yes, once I add the ability to get sprites from other scenes, I'll add new scene support

ornate rivet
#

okie

leaden kestrel
#

Oh this sounds like it would EXPLODE mod creation
Especially for those mods in the vein of "Daughters of Ash"

unborn flicker
solar jacinth
#

get high

#

FİNİSHED

dark wigeon
#

Are those capital lower case letter İs?

solar jacinth
#

i live in turkey

#

ğüilşİç

dark wigeon
#

You mean "İ lİve İn turkey"

solar jacinth
#

lol

ornate rivet
#

The go preloader doesn't seem to save radiance orbs correctly.
I printed the path name for it and it was "Radiant Orb" but when I try to get ("GG_Radiance", "Radiant Orb"), it says it cant find it

dark wigeon
#

not sure if it helps, but Radiant Orb is a prefab stored in Dream_Final_Boss

ornate rivet
#

hmm, I'll try to get it from there then

#

nope, didn't find it there either

dark wigeon
#

maybe the preloader is just wrong

#

I don't know what it is, but it may not be able to pick up on prefabs

ornate rivet
#

It's never been wrong before but yea it might be, because I can find it if I load the scene and search for it

dark wigeon
#

is the preloader a mod thing or a hollow knight thing

ornate rivet
#

mod thing

#

It's not in the hierarchy of the scene

#

sigh

#

guess I wont be updating DoH

dark wigeon
#

give me like 10 minutes

ornate rivet
#

I can probably get the radiance instead, and get the orbs from her fsm

#

that's probably what I have to do

dark wigeon
#

Yeah looks like prefabs without actual places would've had to be created by monobehaviour

ornate rivet
#

sad

dark wigeon
#

Can't think of a normal way to get it, but I do know a really bad way how to

ornate rivet
#

tell me, just for fun, I'll probably do it the fsm way anyways

dark wigeon
#

Create an asset bundle from it and load that

ornate rivet
#

that sounds amazing actually

dark wigeon
#

I don't think there's another way to get a prefab without an initial pptr

#

So yeah I think getting it from a script that references it is a lot easier

#

I can check the dependency graph

#

Lol

#

In dream_final_boss, its in the PersonalObjectPool monobehaviour

#

It's also in the attack commands fsm as well

#

So just look for a PersonalObjectPool object, look through the prefabs (should be the last one)

ornate rivet
#

okie

#

cool it works

ornate rivet
copper nacelle
#

not sure about that one

unborn flicker
#

Is there a fast way to get the knight's coordinates?

#

eh, nvm

#

to be continued

hazy sentinel
#

wtf

ornate rivet
#

randomized benches when

unborn flicker
#

ultrajunk pit: benches and soul totems are randomized and can spawn out of shinies

#

cursed ultrajunk pit: instead of benches, it spawns dream warriors

ornate rivet
#

Updated DoH

jovial vault
#

DoH but hornet attacks with benches now

solar jacinth
#

Better , make a bench boss fight

flat forum
#

Hollow Knight but there's benches literally everywhere

still hare
#

Every instance of a vessel is replace with bench

ornate rivet
#

bench mimic when

worldly stirrup
#

Bench Mimic would be great. 😂

young walrus
#

found the translation dll from 4 months ago.

solar jacinth
#

custom knight bench sprite sheet when

unborn flicker
copper nacelle
#

you just sign in

#

if your network exists

unborn flicker
#

my network does exist

#

and I am signed in

#

but the license will not update rootcry

copper nacelle
#

unfortunate

unborn flicker
copper nacelle
#

if you have an edu email you could try rider but i imagine that's more effort

unborn flicker
#

hopefully it will fix when I am not on a hotspot

ornate rivet
#

the trial thing is fake

#

it works perfectly fine once it expires

unborn flicker
#

Well, yes, since my license expires on July 16th, I have a bit of time before I have to worry about that

#

if it were September, I might be more worried though

fair rampart
#

so it turns out my damagehero component wasn't working cause the go wasn't on the right layer

#

still working on how to make a go with a hm take damage and how to give the flash effect when you dream nail

floral furnace
#

theres a flash component afaik

#

hold on let me check for it

#

yeah theres literally a SpriteFlash component

#

then just call flashWhiteQuick();

fair rampart
#

noice

fair rampart
#

can the output file from PrintSceneHierarchyTree be viewed in FSMViewer?

ornate rivet
#

Nope

fair rampart
#

darn

ornate rivet
#

would be a good feature nes

#

but please work on level editor instead zote

fair rampart
#

what files does FSMViewer take?

ornate rivet
#

the level files?

copper nacelle
#

level files yeah

#

You could probably modify it to take jsons from like the fsm dumper instead though

#

Which is just JsonUtility.ToJson

fair rampart
rain cedar
#

Looks like the SpriteFlash is broken or being activated continuously

fair rampart
#

looks like the spriteflash is ignoring the sprite's transparency

rain cedar
#

What material are you using?

#

Try stealing a material from one that works

copper nacelle
safe hamlet
#

ur nice for modding

#

stop wasting time and give us the mod we have been waiting for

copper nacelle
safe hamlet
#

how does the dbg method work

copper nacelle
safe hamlet
#

thought so

#

i have done this just not in a method form

#

it would definitely reduce the frustration of logging a lot of things

fair rampart
#

logging the material of the spriterenderer says Sprites-Default

ornate rivet
#

When I added the white flash to propeller knight, I just made it myself, my material was Sprites/Diffuse Flash so try changing it to that instead

fair rampart
#

new Material(Shader.Find("Sprites/Diffuse Flash"))?

ornate rivet
#

yea that should be it

#

make sure it actually finds it

fair rampart
#

it's not finding it for me

ornate rivet
#

eeee

#

oh wait lmao, diffuse flash is the name of the custom shader I made zote

#

try Sprites/Diffuse

copper nacelle
fair rampart
#

I've tried that and it didn't fix it

ornate rivet
#

it still spawns the white rectangle

fair rampart
#

yep

ornate rivet
fair rampart
#

so I paste this into a .shader file

#

and then put it where?

ornate rivet
#

hmm, I used it with assetbundles

fair rampart
ornate rivet
#

actually, you should be able to without assetbundles, right?

#

You make a shader class then do something like
new Material(reference to shader);

fair rampart
#

lemme try

ornate rivet
#

what

fair rampart
#

no

copper nacelle
#

:MAGGOTPRIME:

ornate rivet
#

oof

fair rampart
#

on another note, how do I use HealthManager's Hit to make a go take damage?

floral furnace
#

probs OnTriggerEnter2D

#

saleh didnt you say you had issues tho

ornate rivet
#

Wait, name it Diffuse Flash.shader and use Shader.Find("Sprites/Diffuse Flash")

#

issues with the shader ttacco?

floral furnace
#

no with the HM Hit collider

#

i vaguely recall

ornate rivet
#

I never figured out how to use it

floral furnace
#

oh, well best bet you have jngo is just to steal saleh's hit source code

ornate rivet
#

uh what code

floral furnace
#

cuz im thinking you need to get the GO on collision, then get the hitinstance inside of it (if it exist) then manually apply it on the Hit method

#

the way you made PC damageable

ornate rivet
#

that's just adding HM and setting it to the right layer

#

I think jngo already knows that

fair rampart
#

think we may be in the same boat creating a boss from a completely blank go

ornate rivet
#

I'll add propeller knight code to github

#

but I use assetbundles for most things

copper nacelle
ornate rivet
#

wtf

#

when do I do that

dark wigeon
#

Asset bundles are cool

ornate rivet
#

interesting

#

they are very cool

#

literally god tier

copper nacelle
ornate rivet
#

I wanted to make sure 2 moves that would be impossible to dodge together didn't happen together and I wanted a quick solution

copper nacelle
#

ah

ornate rivet
#

@fair rampart
It didn't work?

fair rampart
#

no

ornate rivet
#

assetbundle time then? tisowo

fair rampart
#

sure

safe hamlet
#

imagine modding hk tbh

ornate rivet
#

imagine releasing your mods tbh

#

cought pls give royal dreamer and marmu cough

floral furnace
#

imagine playing hollow knight to begin with tbh

ornate rivet
#

Also jngo, why do you need HM's Hit()?

#

oh shoot actually

#

to get hits to work

#

unless 56 knows a better way

#

the reason the flash isn't working might be because of the same thing

#

a prefab is probably null

copper nacelle
#

thanks i hate it

dark wigeon
#

r/tihi

#

wait a second

copper nacelle
#

i have waited

ornate rivet
#

same, pls it's past my bedtime

dark wigeon
#

Ok stop waiting

safe hamlet
#

nes might be orbiting a blackhole

dark wigeon
#

Bold of you to assume I haven't already entered the black hole

safe hamlet
#

i want to enter a blackhole

copper nacelle
#

i mean if you entered wouldn't the messages be unable to get out

dark wigeon
#

Also the editor has diffing basically working now

floral furnace
#

lmao then just enter one its that easy lmao 😂

dark wigeon
#

Nah these messages are just really delayed

safe hamlet
#

56

dark wigeon
#

You know, black hole time differences

safe hamlet
#

are you tryna question big brain gamer science

#

discord messages are faster than the speed of light

copper nacelle
#

also yeah saleh you could do that in a way which wouldn't make your eyes hurt

#

would be a bit slower though

ornate rivet
#

how

copper nacelle
#

doubt it matters for this though

#

just fieldinfo my dude

ornate rivet
#

what that be

copper nacelle
safe hamlet
#

buddy

#

you have used it before i am pretty sure

ornate rivet
#

typeof(HealthManager).GetFields?

copper nacelle
#
foreach (FieldInfo fi in typeof(HealthManager).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).Where(x => x.Name.Contains("Prefab"))
{
     fi.SetValue(_hm, fi.GetValue(hornHP));
}
ornate rivet
#

ah ok thanks

safe hamlet
#

shouldn't the hm and value be switched

copper nacelle
#

x

floral furnace
#

reflection elderC

copper nacelle
safe hamlet
#

what are the args for setattr

copper nacelle
#

obj to set field on, field name, field value

safe hamlet
#

then how is it that

copper nacelle
safe hamlet
#

ain't SetValue(the object to set value of, value)?

copper nacelle
#

is it

safe hamlet
#

i think so

#

unless i am wrong

#

:wesmart:

copper nacelle
#

you are right

#

I thought you meant swap hornHP and _hm

safe hamlet
#

o no, i meant the setvalue thingy

copper nacelle
#

yeah i figured that out

ornate rivet
#

you meant BindingFlags right?

copper nacelle
#

yes

safe hamlet
#

yes

copper nacelle
#

you saw nothing

fair rampart
floral furnace
#

it just works

ornate rivet
#

awesome

unborn flicker
unborn flicker
#

Mmm, this is some peak TC content here. 19 of the benches copy correctly. Of the remaining 3, one covers the player transparently and the other 2 are there but invisible

#

Guessing the sprite is a background object at the same location as an invisble bench in those cases maggotprime

fair rampart
#

I have no idea why my assetbundle is null when the file path to the bundle exists

ornate rivet
#

@fair rampart
You used the assetbundle broswer right?

#

and you are using Unity 2017.4.10f1?
and you set the asset bundle's build target to either standalone linux, windows, or osx based on your operating system?

#

and you get it with
AssetBundle ab = AssetBundle.LoadFromFile(Path.Combine(Application.streamingAssetsPath, filename));

#

and you are getting the file named after what you named the asssetbundle?

fair rampart
#

I swear I was using that version of unity

#

let's try this again

floral furnace
#

Unity 2017.4.10f1

#

wait does it have to be

fair rampart
#

ok, that fixed it

#

guess it does have to be that version

fair rampart
copper nacelle
#

perfect

#

empty hops shroompog

fair rampart
#

gotta have em

ornate rivet
#

@floral furnace yes

floral furnace
#

well, that probably explains it then

#

because ive been using 2018 for the asset bundles

ornate rivet
#

sigh

floral furnace
#

and i couldnt get them

#

¯_(ツ)_/¯

copper nacelle
ornate rivet
#

I'll edit the guide so it says that

floral furnace
#

very good

fair rampart
#

I'm getting an issue where the bundle becomes null when I refight the boss

#

the assets load fine the first time

copper nacelle
#

why are you reloading the bundle

fair rampart
#

how should I go about it?

copper nacelle
#

I mean you could just read it once and set it to a static var on like the mod

fair rampart
#

ah

copper nacelle
#

or if you have a .instance w/ a public property

copper nacelle
#

unity errors in modlog

floral furnace
#

pog

#

ers

copper nacelle
rain cedar
copper nacelle
#

wow ruined

#

There's a set stack trace type thing

#

you can have it log unmanaged exceptions

rain cedar
#

Nice

copper nacelle
#

also preloader makes unity want to commit die

rain cedar
#

Very nice

copper nacelle
dark wigeon
#

if you used bundles there wouldn't be any errors WeSmart

copper nacelle
#

Saleh uses bundles and has plenty of errors

#

Theory disproved

dark wigeon
#

saleh doesn't use real bundles

#

theory disproved

ornate rivet
#

owo what

fair rampart
#

is EnemyHitEffectsUninfected supposed to do something?

#

looks like exactly what I need but it doesn't work for me

copper nacelle
#

any set fields

#

🐌leh

fair rampart
#

explain to my walnut brain please

ornate rivet
#

stuff like uninfectedHitPt need to be set

copper nacelle
#

same thing as the hm

#

yeah

#

tc just has them all set via editor

fair rampart
#

what kind of go would I assign to that?

ornate rivet
#

you would get it from someone else who has it

#

like hornet

fair rampart
#

ah

ornate rivet
#

the same way you did it with the healthmanager

fair rampart
#

would it just be the same format as with the hm example?

ornate rivet
#

um depends on what you're replacing
if it's public you don't need reflections

#

and also, that sets all variables that have "prefab" in their name

#

uninfectedHitPt doesn't have that (also it's public so you wouldn't need to do this for it either way)

fair rampart
#

the preloader sometimes can't find the scene and go I'm looking for

ornate rivet
#

what does it say

fair rampart
#
  at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.String,UnityEngine.GameObject]].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at Tiso.TisoSpencer.Initialize (System.Collections.Generic.Dictionary`2 preloadedObjects) [0x00000] in <filename unknown>:0 
  at Modding.ModLoader.LoadMod (IMod mod, Boolean updateModText, Boolean changeSettings, System.Collections.Generic.Dictionary`2 preloadedObjects) [0x00000] in <filename unknown>:0 
  at Modding.ModLoader+<LoadMods>d__6.MoveNext () [0x00000] in <filename unknown>:0 ```
ornate rivet
#

is this for a specific scene

fair rampart
#

GG_God_Tamer > Lancer

#

it doesn't work for Room_Colosseum_Gold > Lancer either

ornate rivet
#

so does the error occur because it can't find Lancer or the scene

fair rampart
#

pretty sure it's the scene bc I can't load any go from it

ornate rivet
#

this is very strange and makes no sense

#

time to wait for 56 or Sean

rain cedar
#

The error is thrown from your mod

fair rampart
ornate rivet
#

ok Jason

fair rampart
#

ok Mohammad

ornate rivet
#

but Saleh is also my actual name

copper nacelle
#

Mohammad I sleep

#

Mr. Ghaemi real shit

#

email and three are good Es if you are looking for more

ornate rivet
#

thank you

fair rampart
#

but could I be doing anything wrong in this code?

#

I see from propeller knight that there's GG_Hornet_2 then Boss Holder/Hornet Boss 2

copper nacelle
#

Are you sure lancer is unparented

fair rampart
#

I am not

ornate rivet
#

oh wait

#

you need the path name

copper nacelle
#

prime maggot

#

any scene dump

ornate rivet
#

I got it (I meant I got it as in I got the path name for lancer smh stop these false elderCs)

fair rampart
#

teach me ur ways

ornate rivet
#

You have the scene dumps

#

look for lancer in Room_Colosseum_Gold

copper nacelle
#

Ok so in the enemy randomizer folder in the gdrive there's a bunch of scene dumps

ornate rivet
#

find its full name

copper nacelle
#

You get the scene you want and then you just find Lancer in there and it'll be associated with a path

#

Note that GG scenes aren't already dumped but you can just use unity scene manager active scene changed and just call print scene hierarchy tree if you have a modcommon ref and that'll get you one very easily

#

I'd use the GG scenes over the colo scenes as that's one enemy compared to like 30

#

But I'm not exactly sure on the load times so e

fair rampart
#

yeah

#

does a Scene have a PrintSceneHierarchyTree method?

#

I just see PrintHierarchy

ornate rivet
#

that is it

fair rampart
#

it also outputs to the Mods folder?

ornate rivet
#

probably

ornate rivet
copper nacelle
#

can you stand under the blade on the right and not have the knight be touching the sword

#

if so yes

ornate rivet
#

cool

buoyant obsidian
#

just don't actually put hitboxes on any of the attacks and the player will think "Wow, all these swings keep coming really close but I keep dodging them!"

ornate rivet
#

big brain move

#

that's what I did for propeller knight

rain cedar
#

Please no backswing

#

Most annoying shit ever

hollow pier
#

now you gotta make it only backswing

ornate rivet
#

^

copper nacelle
#

backswing really does suck

ornate rivet
#

it's only a little bit

leaden hedge
#

hitboxes should be a little better than that

rain cedar
#

Unity polygon colliders are pretty easy to set up if you're using editor

leaden hedge
#

if you wanted it to fit with what hk does, they use polygon colliders and do like

rain cedar
#

Might as well just take like 10 second to roughly trace the attack

leaden hedge
#

as thats how they do it in vanilla

dark wigeon
#

Nah use magic wand tool

ornate rivet
#

ok I'll do that thanks

safe hamlet
#

np

copper nacelle
#

release your mod

#

go markoth man

fair rampart
copper nacelle
ornate rivet
#

is it HK's lighting?

copper nacelle
#

racist

dark wigeon
#

it's not that much more white, but have you tried changing the color of the sprite

#

also have you tried using the correct shader

ornate rivet
dark wigeon
#

tk2d has its own shader, everything else has a lit shader

#

also pixel art in hk

ornate rivet
#

I'm not sure I understand what you mean

ornate rivet
#

ok I figured it out

copper nacelle
#

not saying the answer x5fiftPrime

fair rampart
#

stackoverflow vibes

ornate rivet
#

I used the custom shader I had for flashing when hit and set the self illumination field to 0.23

dark wigeon
#

Tk2d doesn't use the normal unity sprite shader

ornate rivet
#

I'm not using tk2d

dark wigeon
#

Right, that's why they didn't match

ornate rivet
#

but it worked fine with propeller knight

dark wigeon
#

Was propeller knight full white

ornate rivet
#

no zote

#

so is there a better solution than lowering the self illumination

dark wigeon
#

I wonder if you could just steal the tk2d shader and have it work fine

#

But I'm sure you can play with the settings to make it close enough

ornate rivet
polar garden
#

how do i get into modding of hk

#

where do i start

safe hamlet
#

?api

#

?docs

#

bruh

ornate rivet
#

to start with basic stuff

safe hamlet
#

modding hk is a bad idea, don't do it

ornate rivet
#

you're right, it's very addictive

copper nacelle
#

it's very addictive until you suddenly lose all motivation for multiple months

safe hamlet
#

erudashi

ornate rivet
#

very true

safe hamlet
#

i can confirm

copper nacelle
safe hamlet
#

except i lost motivation forever

#

erudashi - elderC

polar garden
#

Is it viable to create new areas ?

ornate rivet
#

yea

#

but no one has done it

#

and it will be painful for the first person who does it

#

at least, until the hk map editor nes is making adds new scene support

polar garden
#

is it the same for new sprites ?

ornate rivet
#

new sprites are easy (look for assetbundles in pins)

#

I suggest making an easy mod first to get familiar with the modding api, then moving on to adding new sprites

copper nacelle
#

i suggest being jngo

polar garden
#

Yep this seems way more complicated than creating mods for fallout

fair rampart
#

hi

polar garden
#

also subbed

safe hamlet
polar garden
#

Pale Champion is by far the most impressive modded boss i seen

safe hamlet
#

that's cause you haven't seen my epic mod

polar garden
#

oh yea :p ?

ornate rivet
#

imagine if sid shadow dropped nightmare dreamers mod with all dream warriors modded

safe hamlet
#

yea no

#

that's not gonna happen

#

i was gonna give you the mod to finish

#

i need to add some stuff to marmu, then i will give it to you

#

i know that's what i said a month ago too :^)

copper nacelle
ornate rivet
#

but I already have 5 mods on hold smh

polar garden
#

is it hard ?

ornate rivet
#

modding?

polar garden
#

the hk modding yea

#

i only developed shit for fallout

ornate rivet
#

it requires dedication more than skill

#

the modding staff here are more than capable of helping through the difficult stuff if they feel like it

polar garden
#

I would like to create atleast a basic boss or something small i love to create stuff

ornate rivet
#

that's totally possible

fair rampart
#

the people here are very helpful

ornate rivet
#

agreed

polar garden
#

Is someone making an anime boss or something because of what i read above ? or were you guys just talking about sprites

copper nacelle
#

local man omegaluls at self 2k19

ornate rivet
#

I'm making a Fennel boss fight

polar garden
#

anime boss fight would be lit

#

i want to see a Touhou crossover with dialogue

ornate rivet
#

uh isn't that top down?

polar garden
#

what hollowwoke

safe hamlet
#

smh weeb

polar garden
#

Hey im fine with elder bug fight in dirthmouth too

hearty crown
#

I started doing my own skin for the knight and geez it takes time

#

I lower my hat to the ones that made the ones in the drive

dark wigeon
#

I mean if you do it at a 45 degree angle you can do half of both

#

A reply to "is that top down"

polar garden
#

waiting for hollow knight low quality mod where everything is just piexels

copper nacelle
#

everything is just pixels right now

polar garden
#

you know what i mean lmao my bad

dark wigeon
#

Play hollow knight but it's one pixel and one hz audio

#

Hollow knight but the audio is played on a real piano by a robot

#

Oh also doesn't th 1/2 have fighting games

ornate rivet
#

Adding PolygonCollider2D and DamageHero, and setting the layer to 17 should get damage working right?

#

because it's not

polar garden
#

Hollow knight but enemies are replaced by dead memes

#

or everything is a primal aspid

fair rampart
copper nacelle
ornate rivet
#

LMAO

copper nacelle
#

oh yeah @polar garden

fair rampart
copper nacelle
tribal sigil
#

oh no

raven ferry
#

@fair rampart that is probably the most horrifying thing ive ever seen in my entire life

floral furnace
#

uhh can anyone provide feedback for performance/feel?

tap focus to swap between nail

ornate rivet
#

Tested it 2 seconds before going to bed and with the limited time I had with it, I can say that I it felt pretty good

fair rampart
#

looks really nice

ornate rivet
#

having to constantly tap the attack button will get a bit annoying though I think

#

especially since it seems to do little damage

fair rampart
#

doesn't seem to do damage to PV

#

or it rarely hits them

hazy sentinel
#

are enemies supposed to do no damage

#

ah it appears nothing does

floral furnace
#

oh yeah sorry about PV, i have no idea why but it doesnt affect him yet

hazy sentinel
floral furnace
#

also yeah im planning on doing burst firing by upgrade, so youre supposed to be shitty firing until late game, but i just testing it for the performance for now

#

yeah thats another bug, just swap it

hazy sentinel
#

i cannot swap yet

#

for i have no gun

floral furnace
#

reloaded save?

hazy sentinel
#

i am assuming gun is vs

floral furnace
#

no

#

you get it from the start

hazy sentinel
#

ok so i just cannot swap

floral furnace
#

that is weird

hazy sentinel
#

what is default focus button

floral furnace
#

i had it on Q for me

#

unless i am an idiot, and i forgot had it swap provided you have vengeful eugh

hazy sentinel
#

hmmm

#

also is the invulnerability intended or

floral furnace
#

nope shouldnt be

hazy sentinel
floral furnace
#

that is odd

hearty crown
#

The skin i'm making is very simple, just a wine-red cloak, but it consumes me

floral furnace
#

well more to the bug list then

#

i never had that issue so thats weird

#

unless its from a reloaded save

hazy sentinel
#

wdym reloaded

floral furnace
#

quit save, load save

hazy sentinel
#

i had it from new save creation

#

and also from reload

floral furnace
#

what to heck taco

#

i literally dont know why thats happening, i might just have some hooks fucked up

hearty crown
#

Today I learned to never underestimate the pixels

floral furnace
#

changing those sprites ARE tedious yeah

hearty crown
#

And I fear that when I try it will look wrong and have to fix it.

fair rampart
#

Sorry to bug yall, but do you know how to get/set up the randomizer mod ;;

safe hamlet
#

?i

autumn shardBOT
safe hamlet
#

install the installer and install

hazy sentinel
fair rampart
#

Thank you!

#

Sorry for the obvious question haha

floral furnace
#

i tried it on a new save on mine, seems to work fine

odd dome
#

that is quite peculiar

floral furnace
#

this is like chadgwchadomegathink levels of confusion

so yeah sorry about that, hence i wanted others to test it cuz shit like this always happens to other users

hazy sentinel
#

alright i got vs and still cannot swap

floral furnace
#

oof, can you restart HK?

#

and see if it fixes it

hazy sentinel
#

still broken

#

am i supposed to be on current patch or is this for 1221 or something

floral furnace
#

current patch

#

are you using 1221

hazy sentinel
#

no

#

ok i started a second save and the gun just doesn't exist

floral furnace
#

what the heck, well thanks for trying it, im guessing its broken for some people so at least i know theres a problem

fair rampart
#

I'm getting a glitch where if you enter a save, leave, then come back, the gun is gone

floral furnace
#

if you swap it it should work

fair rampart
#

pressing focus still logs "Swaping weapons"

floral furnace
#

yeah reloading saves is buggy atm

#

like it just unexist

fair rampart
#

tf

#

is that not embedded

floral furnace
#

thats discord for you

fair rampart
floral furnace
#

alrighty, one more to the list, thanks

copper nacelle
#

Wait

#

Do you have the assets 🅱ngo

fair rampart
#

it works the first time

copper nacelle
fair rampart
#

this just happens when I reenter the save after quitting

#

so the gun is there

floral furnace
#

yeah reloading saves is broken

#

by reloading i mean

#

quitting to menu then loading a new save

#

afaik i think i just forgot to destroy most of my stuff on quit

hearty crown
#

Any recommendations for making skins for the knight?

ornate rivet
#

EEEEEEEE
the sprite for the asset I'm trying to load won't show up but the other components (like box collider) work fine

ornate rivet
#

well this sucks

floral furnace
#

thats big pensive moment

ornate rivet
#

every moment spent debugging hk mods is a big pensive moment

floral furnace
#

every moment spent debugging hk mods

you mean 90% of the time right

ornate rivet
#

correct

dark wigeon
#

every moment spent debugging hk mods is a big pensive moment

fair rampart
#

every moment spent debugging hk mods is a big pensive moment

hearty crown
#

Just finished the Sprint png

#

Gonna test it

#

Ah

#

I need both so I can test it

#

...

#

Gonna take a rest

#

Had more than the recommended dose of pixels for a few hours

rain cedar
#

You can leave the default sheets in for testing only one

hearty crown
#

??? So you mean only changing one sprite?

young walrus
#

only one sheet

hearty crown
#

So mean I only change the sprint sheet and leave the other ones at default?

copper nacelle
#

sure

hearty crown
#

Nope doesnt work

young walrus
#

Did you equip sprintmaster

#

Cuz that's what the Sprint sheet is for

hearty crown
#

Ooooooohh

#

Makes sense

#

Now that I think about it, you could probably be able to make a rainbow cloak

#

Is there a better app than gimp for doing this?

copper nacelle
#

@brazen mortar go art man

#

as in idk the answer

brazen mortar
#

wat

copper nacelle
#

unfortunate

fair rampart
#

🅱aitor 🅱od

brazen mortar
#

just

#

overlay a rainbow

#

done

fair rampart
#

ok

fair rampart
#

@hazy sentinel gun? @floral furnace

#

what gun lol

#

HOLY SHIT

#

ITS A LITERAL GUN MOD

copper nacelle
#

that is the point yes

hazy sentinel
fair rampart
#

W H A T T H E FU C K

#

where can i download it lol

hearty crown
#

Samr

fair rampart
#

ok i fucking love this mod

#

its actually a fair tradeoff for not letting you use any of the shadow abilities

#

and if you would make the gun shoot just by holding the attack button it would be amazing lol

ornate rivet
#

@fair rampart
Did you actually get the white flash to work without a custom shader?

#

cause I might need to do that with this mod zote

fair rampart
#

nope

ornate rivet
#

oof

#

can someone please explain why she goes from looking too bright to normal when the fight starts?

#

my code literally changes nothing material/shader/sprite related

unborn flicker
#

does it change z coordinate?

ornate rivet
#

no

#

It fixes itself the moment a non-intro animation starts

#

nvm you were right homothety

#

thank you once again

unborn flicker
ornate rivet
#

very shroompog

#

I finished all the attacks, all I have to do now is add the ai and sound

#

at this speed, I might actually get to replace all hk bosses

sonic sequoia
#

hey can anyone tell me how to add mods on mac?

hazy sentinel
#

yusuf go

copper nacelle
#

you just run the .app

#

takes a bit to startup

sonic sequoia
#

thank you

ornate rivet
#

you're welcome yusuf

sonic sequoia
#

56 how do i find it

ornate rivet
#

he already gave it to you in modding help

#

you've literally gone to every modding channel, asked this, and have been answered multiple times by now

copper nacelle
#

hmmmmm

ornate rivet
#

my point still partially stands

copper nacelle
#

fair

civic hare
ornate rivet
#

You're not Alek

copper nacelle
#

but they are

#

fool

ornate rivet
#

oh shoot, me bad

hazy sentinel
#

something something haliitti pasta

civic hare
#

o yea i turned into a girl because i thought it would be funny

copper nacelle
#

hol up

civic hare
#

what

#

theres nothing weird abt it

hearty crown
floral furnace
#

@fair rampart that was the plan, but i remembered you cant hold buttons because nail arts exist and i dont wanna unexist them, so i just opted to add burst fire depending on your stats/nail level

shy cloak
shy cloak
#

QoL broke, and also broke other stuff yayyy

copper nacelle
#

ah I forgot to update the api

#

the benchwarp error was a thing before iirc, it doesn't really break anything

#

also I updated the api now

#

It's just that as a new thing QoL has an option (by default on) to log exceptions for unity to modlog

#

which is nice for monobehaviours in mods

ornate rivet
#

I'm trying to implement the fade thing but it's not changing anything.
The shader I am using has the property:
_Color ("Tint", Color) = (1,1,1,1)
I initialize all the image GOs

afterimages = new GameObject[5];
for (int i = 0; i < afterimages.Length; i++)
{
    afterimages[i] = new GameObject("afterimage");
    afterimages[i].AddComponent<SpriteRenderer>();
    afterimages[i].GetComponent<SpriteRenderer>().material = _sr.material;
    afterimages[i].AddComponent<AfterimageFader>();
}

In update, I have

afterimageTimer += Time.deltaTime;
if (afterimageTimer > 8f / 60)
{
    afterimageTimer -= 8f / 60;
    afterimages[afterimageIndex].GetComponent<SpriteRenderer>().sprite = _sr.sprite;
    afterimages[afterimageIndex].transform.position = gameObject.transform.position;
    afterimages[afterimageIndex].transform.localScale = gameObject.transform.localScale;
    afterimages[afterimageIndex].GetComponent<AfterimageFader>().BeginFade();
    afterimageIndex++;
    afterimageIndex = (byte)(afterimageIndex % afterimages.Length);
}

and in the fader class I have an Ienumerator that does

float f = 0.5f;
while (f >= 0)
{
    Color c = sr.material.GetColor("_Color");
    c.a = f;
    sr.material.SetColor("_Color", c);
    f -= (Time.deltaTime * 6f) * (60f / 40f);
    yield return null;
}
Color b = sr.material.GetColor("_Color");
b.a = 0;
sr.material.SetColor("_Color", b);
#

@leaden hedge

#

I don't get why it changes nothing

leaden hedge
#

because it uses something else

#

_TintColor iirc

ornate rivet
#

but _sr.material.SetColor("_Color", 0.3f); on the real fennel works fine

#

I'm not using Unity's default shader

leaden hedge
#

hmm

#

what shader are you using

leaden hedge
#

hmm it should work

#

does it work in unity and just not in hk?

ornate rivet
#

I didn't do the coding in unity editor

leaden hedge
#

try changing the actual colour

#

like setting it to 1,0,0

ornate rivet
#

the main go or the images in the fade class?

leaden hedge
#

the fade one

ornate rivet
leaden hedge
#

did they not show up before?

ornate rivet
#

nope

leaden hedge
#

my assumption is

#

your numbers are too large

ornate rivet
#

changed the while loop to

while (f >= 0)
{
    //Color c = sr.material.GetColor("_Color");
    //c.a = f;
    sr.material.SetColor("_Color", new Color(1f,0f,0f));
    f -= (Time.deltaTime * 6f) * (60f / 40f);
    yield return null;
}
leaden hedge
#

and its becoming invis

#

in like 2 frames

#

try doing just f -=Time.deltaTime

ornate rivet
#

okie

#

am a dungo as usual

#

thank you

leaden hedge
#

yeah Time.deltaTime is 1s / 1s

#
  • 6 is 1/6
#
  • 1.5 is 1/9
#

and it starts at 50%

#

so its 1/18th of a second

#

and it starts obscured by her too Kappa

ornate rivet
#

so then how did this code work for you palehmm

leaden hedge
#

less questions

#

i think my shader worked differently

solar jacinth
#

saleh making crazy mods

leaden hedge
#

thats a cool afterimagefader though

#

who made that POGGERS

ornate rivet
#

katie senpai

solar jacinth
#

its always nice to share salehs mods at hk discussion with no context

leaden hedge
#

hey wheres the health bar I made for fennel Kappa

ornate rivet
#

health bars are for the weak

leaden hedge
#

she has one in momodora

#

i would also make the afterimages spawn like twice as often btw

ornate rivet
#

¯_(ツ)_/¯

leaden hedge
#

stolen code from traitor lord

ornate rivet
#

thinkgrub
I wrote it though

leaden hedge
#

should recolour it imo

#

to be redder

ornate rivet
#

will do that

#

purple like the effect or red?

leaden hedge
#

probably like purple and white

#

sorta like how void spells are black + white

#

pure purple would probably look jank

ornate rivet
#

hmm alright
I'll probably have to ask someone else to do that though

#

and that someone else is

#

mino...but they're pretty busy so who knows

leaden hedge
#

meano 😤

#

have you programmed the lightning yet?

ornate rivet
#

yes

#

it's kind of janky though

#

lemme get a video

leaden hedge
#

ah i just think it'd be meme to have them leave mines like that one boss in deaths gambit Kappa

ornate rivet
#

the amount spawning isn't randomized like in the game and overall it doesn't look as good
https://streamable.com/sa0of
I'll go through all the moves and try to clean them up once everything else is complete though

#

do you have a video of that boss

leaden hedge
#

honestly with how easy it is to dodge, and how vulnerable she is

#

it'd probably be a good idea to make lightning worse

ornate rivet
#

yep

leaden hedge
#

or maybe you could make something like the circles pv has

#

that explode around her as she slams her hand

ornate rivet
#

also make the lightning cover half the arena smugrad

leaden hedge
#

That too Kappa

ornate rivet
#

actually make the lightning spawn like the spikes pv spawns

#

and have the pv orb protect fennel

leaden hedge
#

also how customizable is your slam

#

can you make the front like twice as big like ya boi zote Kappa

ornate rivet
#

the jump to slam slam, right?

leaden hedge
#

yeah

#

it'd probably look better if the front slam was taller

ornate rivet
#

ah the wave you mean?

#

yea I can do that

leaden hedge
#

yeah

#

like zotes wave

ornate rivet
#

the spawn method has a size parameter

leaden hedge
#

exact same move

ornate rivet
#

okie

leaden hedge
#

and his front wave is like double the back one

solar jacinth
#

now this is epic

flat forum
#

hot

unborn flicker
#

ah, thanks

#

I think there might be a few more herocontroller references that I need to fix. I got a little lazy during the last update because I wasn't using the modlog anyways

#

But I'll check for sure

#

And I can also fix the menu now, so actually this is good timing

ornate rivet
#

might have to increase the idle time on some attacks

leaden hedge
#

they thought hornet walk was op

#

also the spacing looks fine on the lightning

#

I'd just make the hitboxes smaller

ornate rivet
#

okie

leaden hedge
#

like they are way too big rn

ornate rivet
#

agreed

leaden hedge
#

this hits next frame

ornate rivet
#

oh wat lol

ornate rivet
#

so in the real game, the indicator for a dash is a bubble thing?

floral furnace
#

PV's circle explosion will never be not not uncool

solar jacinth
#

^

ornate rivet
floral furnace
#

very good

solar jacinth
#

good but the circle is not centered

#

perfectly

ornate rivet
#

it's part of the lore 😎

solar jacinth
ornate rivet
#

fuck

#

I suck at making the ai

#

or any ai in general

rain cedar
#

Copy the thk fsm

#

Or just be lazy and do full random attacks

#

Blasphemous bosses are almost completely random and it works okish

ornate rivet
#

but the boss doesn't feel good when you do that

#

oh god now I'm getting stackoverflow

flat forum
#

haha noob

unborn flicker
rain cedar
#

Use enums instead of magic type/zone numbers

unborn flicker
#

Ok, I have the mapzone enum on hand already. Not sure where the respawn type enum is (KP is the only one that isn't 1 anyways)

copper nacelle
#

blessed

#

fwiw you can also make the functions the delegates call be a function you make with another function

unborn flicker
#

I think the bench class might have knocked out over 1000 lines

#

Well, even that could be a lambda

unborn flicker
#

A bad preload call from Benchwarp prevented rando from preloading, then rando crashed, then the api didn't load (at least, no top left text)

copper nacelle
#

ah

#

it is the person's issue

#

What was the bad preload call

#

did it just not have the object

rain cedar
#

That shouldn't crash it

#

The error there is from settings

unborn flicker
#

I had just changed the preload when that happened

#

it wasn't happening before when I made all the previous changes

rain cedar
#

Is that the full stack trace?

unborn flicker
#

Ok, I rechecked. At the main menu, the last line is
[INFO]:[API] - Checking preloads for mod "Benchwarp"
The error occurred after selecting a file

rain cedar
#

Sounds unrelated to the preload

unborn flicker
#

well, randomizer never preloads here

rain cedar
#

If it gets to the menu fine then dies on save load

unborn flicker
#

I'm not having a game crash