#regionkit-support

1 messages · Page 1 of 1 (latest)

zealous storm
#

hey, i added a custom region but every time i try to enter it, the door animation freezes and the game freezes

tender knollBOT
#

Close the game and send the exceptionLog.txt file that you can find on your root installation folder (next to the .exe, default path: C:\Program Files (x86)\Steam\steamapps\common\Rain World).

zealous storm
#

i made the region that has the issue

hard oak
wary leaf
#

when the game crashed it was trying to add creature spawns

hard oak
#

This is for region kit related issues

wary leaf
#

so there is probably something wrong with those

zealous storm
hard oak
zealous storm
hard oak
#

No

lavish hazel
#

#modding-quick-support message

I've been trying to debug why ConditionalEffects is breaking my game. As of about an hour ago it's now freezing when I try playing the main game, and I don't understand what changed. However, I do have some interesting debugging results...

I added a line in RegionKit to log the effect that's currently being parsed. It's crashing on Fog-0.2391304-23-82 which is from CC_SettingsTemplate_Outside.txt which is the first template that CRS loads when it loads them all at the start of the game. Removing this effect causes it to freezes on the next loaded effect - basically, for whatever reason the hook freezes the first time it's ran. It's not an issue of an invalid syntax

lavish hazel
#

I just tried it on a completely fresh install after copying only the BepInEx stuffs over from the previous install, and it still freezes with the exact same exception

lavish hazel
#

ok, looks like the whole bug was caused by missing curly braces in the version I was building from VS. Releases version works fine (could've sworn I tried using that already)

supple lantern
#

👀

wary leaf
#

im in

supple lantern
#

epic

wary leaf
#

wait is this a problem with regionkit and underbelly?

supple lantern
#

not sure rn, I'm dnspying around to see what's up and it might be because the playerprogression or save slot hasn't been loaded yet, but I'm not sure

#

what did you say you were doing when it broke?

wary leaf
#

i was just trying to look at underbellys map and art in the main menue regions tab

#

do you want any other logs or smth?

supple lantern
#

I couldn't see anything I thought was unusual in the customworldlog, but could I see the console log?

#

not sure that it will help, but probably worth having

wary leaf
#

here ya go

supple lantern
#

ty

wary leaf
#

no problem

supple lantern
#

oh

[CustomRegions] Error finding Title directory for [UB] - at [Mods\CustomResources\Underbelly\Assets\Futile\Resources\Illustrations\]
Wrong syntax effect loaded: Fog
wary leaf
#

is that the problem

supple lantern
#

the Wrong syntax effect loaded log message is from the same hook that throwing the exception

#

I didn't realise it was a normal log and not an error log message so assumed that wasn't happening because it wasn't in the exceptionlog

wary leaf
#

i see

supple lantern
#

... interesting decision

#

idk much about regionkit, so I'm not 100% here

#

first thing to check would be that your room effect string for Fog is formatted correctly

wary leaf
#

how would i do that?

supple lantern
#

not sure how room effects are meant to be formatted but I can check that now lol

wary leaf
#

alright cool

supple lantern
#

unless I'm wrong, which is possible

#

hold on

wary leaf
#

i can look at it again and send the logs again if you want

supple lantern
#

yeah sure

wary leaf
#

maybie i did something else and forgor

#

here is a new console log

supple lantern
#

ah, yeah I forgot you could start a story session and then exit to main menu hunterbonk

#

bear with, I am trying to check something but realm is having a fit lol

wary leaf
#

ah lol

#

gotcha

supple lantern
wary leaf
#

i see

supple lantern
#

I have a feeling that might not be the issue causing the crash, but huntershruggy

wary leaf
#

your guess is as good as mine

#

well your guess is probably better

supple lantern
#

(quietly praying that gar arrives)

wary leaf
#

xd

wary leaf
#

hey imma have to leave now, sorry
if you find something you could put it here and i guess ill see it later slugtuchright

#

and thanks for the help still

supple lantern
#

no worries, hopefully if I don't find anything then someone else will. Can't remember how visible threads are to people who haven't joined them

wary leaf
#

not very visible, i guess i can just ask again and find another unfortunate victim

supple lantern
#

Wrong syntax effect loaded: Fog
misunderstood where this was coming from - this is from the vanilla method, not the regionkit hook that's throwing the exception

wary leaf
#

Is there some scuffed shit going on with the fog?, i actually remember seeing somethibg like that very early in the regions development

supple lantern
#

that is logged from the catch clause of a try-catch, but the catch isn't filtered by exception type, so there's no immediate way to tell what the issue is, just that something went wrong when it was reading the Fog affect for a room

#

and I'm again not sure if this is what sets off the big issue

wary leaf
#

Yikes

#

I dont see why that would cause problems with the main menue map thing but u dont jnow how this game is coded

strange escarp
#

he does know, you're the one who doesn't

wary leaf
#

M

supple lantern
#

presumably a typo

wary leaf
#

Oh yeqh im on phone

supple lantern
#

lol

wary leaf
#

Sorry for any confusion

supple lantern
#

it loads the map for the region at some point for the region menu

wary leaf
#

Oh and also, just before leaving i tested it without regionkit, and it worked

supple lantern
supple obsidian
#

<@&882919010251976744> (so you can be here)

supple lantern
#

oh, awesome

#

summoning circle

supple obsidian
#

<@&870666604940238880> slugtuch

#

i like this

wary leaf
#

Satanic ritual

supple lantern
#

so it looks like you have a dodgy fog effect string somewhere, vanilla game is ignoring it (to check that, the message should still be in consolelog when running without regionkit), but something is causing the regionkit hook to die

wary leaf
#

got it

#

Could i just remove fog from every room and add it again lol

supple lantern
#

vanilla game is ignoring it
as in, it sticks the message in the debug log and skips loading it

wary leaf
#

Oh so i can just check for a room without fog cuz there should be fog in pretty much every room in underbelly

supple lantern
#

no, the fog affect is in a room, but something about it for that room is wrong

#

effect format should be Fog-a-b-c where a, b, and c are floats

wary leaf
#

Oh

supple lantern
#

so like Fog-0.5-50.2-584.3242 or something

wary leaf
#

I see

turbid karma
#

i wasn't manually fiddling with pobj saving in RK

#

so idk what these hooks are rn

supple lantern
#

it looks like an extension of the room effect loading stuff

#

has extra "filters"

wary leaf
supple lantern
#

hopefully

#

unless there is something else going on, which there doesn't seem to be

supple obsidian
#

regionkit-support

wary leaf
#

I gues i could manually check every effects file

supple lantern
#

okay, the format is Fog-amount-x-y where x and y are the x and y coords for the devtools panel for the effect

wary leaf
#

Ok cool

#

how would i spot that something is fucked up with a specific instance?

#

would a value be missing or something

supple lantern
#

yeah, missing values like Fog--x-y, or something where a float/numeric value should be that isn't a digit or .

#

I'm not sure how that would have happened in the first place though

wary leaf
#

would that be easier to spot in game or by checking the text files actually, all those numbers just make my brain melt

supple lantern
#

well, you probably wouldn't spot it in-game because it isn't loading the effect

#

I think

#

I'd imagine there is a room somewhere that's meant to have fog but actually doesn't in-game

wary leaf
#

i mean every room in UB is meant to have fog

#

so i feel like that would be easy to spot

supple lantern
#

oh, fair enough

wary leaf
#

ill check when i get home in a few minutes

#

see what i can find

#

thanks for the help

supple lantern
#

nw

hard oak
#

I don’t think I’ll be able to release a fix this week

#

How important is this?

supple lantern
#

I don't think it's actually an issue with regionkit (though a little logging and more specific exception handling for this hook would be nice)

#

but not sure yet

#

I guess we just wait and see if this fixes it (if it does then it was just a mistake in the room settings)

wary leaf
#

alright im back home and i think i found it

#

room 5 doesnt seem to have any fog, no matter how much i mess with the settings

supple lantern
#

Fog-0.4565217-270-20 fog settings for UB room 5

#

uh

#

not sure why it doesn't like that

#

I am back to being confused

#

unless it's different on your end

wary leaf
#

no matter what i do i cant seem to turn on fog in the room, so im assuming its the problem

supple lantern
#

open the settings txt for room 5 and see what the fog settings are

wary leaf
#

i removed it so idk what they were originally

supple lantern
#

ah

wary leaf
#

i have the version of UB thats on crs so its probably the same as for you

#

this is what the effect looks like when ive maxed it out

#

Fog-1-20-20

#

seems pretty normal

supple lantern
#

yeah

#

now that you've changed the values to something we know loads properly, try the region menu again

wary leaf
#

i just removed it cuz the fog didnt load either way for some reason?

supple lantern
#

didn't load as in?

wary leaf
#

haunted room ig

supple lantern
#

lol

wary leaf
#

oh nope it still crashes

supple lantern
#

same exception

wary leaf
#

yeah

supple lantern
#

oh...

wary leaf
#

i took a little peek at the console log and i seems to be complaining about flies now

supple lantern
#

different effect complaint...

#

yeah

wary leaf
#

yeah

#

that

supple lantern
#

wtf

#

actually cursed room? epic

wary leaf
#

let me go back to that exact same room and check again iguess

supple lantern
#

gimme a minute

#

can you upload your copy of the room 5 settings txt?

wary leaf
#

this is the one i have

#

fog is gone

#

(i removed it)

supple lantern
#

no flies in that room?

wary leaf
#

yeah

supple lantern
#

is it crying about a different room then

wary leaf
#

good god

supple lantern
#

okay I have a few ideas

#

one second

#

if you run with this, it should put the room names in the consolelog before it loads the effects

#

that way we'll be able to tell which room it's having issues with

wary leaf
#

oh thanks a lot

#

onle minute ive got some stuff to tend to

supple lantern
#

np

#

yeah, dw

wary leaf
supple lantern
#

can you upload the settings for UB_room65 ?

wary leaf
supple lantern
#

ah

#

Flies-0.4021739--1-55
there are two -- in a row

wary leaf
#

huh

turbid karma
#

no manual editing?>

supple lantern
#

so it's trying to parse an empty string as a number

wary leaf
#

no not as far as i remember

turbid karma
#

weird

wary leaf
#

idk what i was on when i made UB tho so i cant be completely shure

supple lantern
#

perhaps something in regionkit accidentally tampered? I know there is a lot of messing with effects and pobjs and stuff

#

lmao

wary leaf
#

i guess ill just remove flies from that room and call it a day

#

unless there are more broken efects

supple lantern
#

yeah...

#

I'm still a bit confused about why this is causing regionkit to piss itself though

#

oh

wary leaf
#

okay i removed flies moment of truth

#

oh it works

supple lantern
#

epic

#

welp, that was weird

wary leaf
#

at least its fixed

#

thanks a lot for the help :)

#

do you mind if i credit you in the update thingy?

#

cuz i 100% would not have been able to fix this without your help

supple lantern
#

yeah, I did actually just finish a version that will also log the effect parsing in full, but this seems like a pretty niche issue lol

supple lantern
#

and no worries

wary leaf
#

but yes, seems a bit to nieche

supple lantern
#

@supple obsidian is the idea of the drought and regionkit threads to reuse them for future drought and regionkit issues?

supple obsidian
#

yeah, maybe multiple users have the same problems

#

common solutions could be pinned

supple lantern
#

okey slugthumbsup

#

tldr on this one was that if a room effect string is malformed then the vanilla game doesn't care but for some reason regionkit will freeze the game

valid vessel
valid vessel
#

Why is it a different file size every time I post it

supple lantern
#

evidently you relaunched the game between sending the files because this log is different

#

the apparently fatal error in the log you sent in modding support before I suggested you post it here was occurring while regionkit was trying to load room effects. This is very different and it probably and incompatibility between sporecat and another mod that edits slugcat tail length (fancy, etc.), so this log is not regionkit related

valid vessel
#

That's odd. I completely removed fancy slugcats and deleted all LizardSkin things so this might be an old version of this file in the game file

supple lantern
#

when you open the game with beepinex installed, it clears everything in the exceptionlog file and starts writing it again from scratch

#

old copies of the file aren't left there - they're lost