#Getting game state data

81 messages · Page 1 of 1 (latest)

onyx flume
#

Hello! I'm new to Celeste modding (but already an experienced programmer). I'd like to start with a simple project to get the hang of everest api. I'd like to show in a command line (or on screen) the current gamestate, with Madeline X/Y coords, current map we are in, maybe Madeline velocity etc.. this kind of data. Is it possible?

I've found a lot of stuff on reacting to events, but is it possible to actually get live data from the game without any event triggering?

I believe it's possible to get this kind of data from entities but i'm not sure i really understand how it works.

Thanks a lot :)

barren girder
shrewd jettyBOT
barren girder
#

you can look at how it does it

onyx flume
#

Thanks a lot! I think that's exactly what i'm looking for, i'll look into it

barren girder
#

you can try it in/game

#

install the mod and press left control twice

#

you can show up a cursor by holding left control and you can drag the window around

onyx flume
#

Is there an API? The goal of this is for the data to be used in my code in the end

barren girder
#

well, you can just copy what celestetas does

onyx flume
#

Yea i'll just look the source code

#

Thanks

barren girder
#

be aware celestetas is pretty complex so you may see a lot of confusing stuff

onyx flume
#

I've looked into it and it's indeed quite confusing lol, if anyone that has a good knowledge on the CelesteTAS codebase (a maintainer maybe?) passes by i'd really appreciate if you can slide in my dms to help me 🙏

#

actually @barren girder, i see that you're working on celesteNET, would how you're transfering data between players be a potential thing i could look into?

#

if i can send data as detailed as what CelesteTAS is showing to a local endpoint it would be more than sufficient

inland hemlock
#

if you just want data sent to an endpoint, celestetas has a debugrc endpoint that you can use to access the info that it displays

onyx flume
# barren girder how would that relate?

my goal is to get the data, one way or an other, since at least some data is getting passed around in celestenet (i assume) maybe i would have found what i'm looking for in there

onyx flume
onyx flume
#

i'm not sure what i'm doing wrong, is there an option i need to activate?

barren girder
#

idk about you, but it just works™️ for me

#

can you open the link in your browser?

onyx flume
barren girder
barren girder
#

try netstat -anop TCP

#

wait no

#

its not the 80 port

#

hm

onyx flume
barren girder
#

yeah ik

#

besides its not even using the 80 port

#

is something using 32270

onyx flume
barren girder
#

it should be just 0.0.0.0:32270

#

reopen everest and check?

#

this is weird

onyx flume
#

same thing :/

barren girder
#

what if you open everest this time and check

onyx flume
#

nothing after everest restart 😭

#

i'll try on my other computer lmao

barren girder
#

okay what the hell

#

can it not open a socket or something

#

is there anything in the log

onyx flume
#

no clue, i've never messed with network on this computer

onyx flume
barren girder
#

are you checking the right log?

#

it should be right next to Celeste.exe

onyx flume
barren girder
#

that's.... the wrong log

#

that's olympus

#

not everest

onyx flume
#

oh sorry :x

barren girder
#

olympus is the launcher, everest is the mod loader

onyx flume
barren girder
#

there should be a Started DebugRC thread, available via http://localhost:32270/ line at the bottom

onyx flume
#

logs end there

barren girder
#

okay weird

#

hmm

#

i could make a custom everest build has better error checking?

final otter
#

Is debug mode enabled?

onyx flume
barren girder
#

oh

#

wait true

#

its in mod settings

final otter
#

Thats your problem

onyx flume
barren girder
#

yeah i literally just got to here lmao

#

thats so bs

final otter
barren girder
onyx flume
barren girder
#

i mean there always is

onyx flume
#

ok this fixed it i feel kind of stupid now ahah

barren girder
#

its not immediately obvious so

final otter
#

Well.. it is called debugrc

onyx flume