nodes2python is a piece of shit python βscriptβ that i βwroteβ to βtranslateβ .nodes files to βpythonβ β for another cancelled project called Styx that i also wouldβve written in βpythonβ
-
i didnt even get anything done today because conversion to signed big endian integers is bullshit-confusing
i thought i had this down a long time ago but apparently not -
-
2 AM progress update
After 14 hours straight with a few breaks, several mental breakdowns, creating a stack overflow account, and copy and pasting from the guy who answered my question, progress on .NODES to .PY is finally going smoothly
The bytes are still represented as base10, but converting them to base2 seems good so far.
-
Hello. It is 3 AM for you but 2 AM for me. Just something I thought I share for the heck of it. I canβt get any sleep so Iβm binge watching jaiden animations do nuzlocke challenge in PokΓ©mon games. I had to sleep in my sisters room since she is at a sleep over with her friends and I have to to watch our dog that sleeps in here room named baby. I have shared way to much information for no reason at all so good night to you sir
-
Yep I definitely know what this means. But seriously, good job, although you may wanna take a break besides little short ones since 14 hours does seem like a bit much. Thatβs just me though
-
Replying to:
happened to me before,i was a kid when this happened
i was trying to sleep because i have schools tommorow at 4:00(at night)
instead of sleeping,i wasnt able to
i was with my parents that time and im the topper layer bed,if i move the top layer makes a bit of a noise so yeah ,because of that i had to not move for a whole ass 4 hours trying to not move and not opening my eyes
-
Replying to:
Thatβs rough. Luckily it was a Friday for me, I would go nuts if I didnβt get any sleep on a school night.
Sorry that happened, I wish it doesnβt happen again for you, and also. When I canβt sleep I take a melatonin pill, they usually help.
-
-
-
creating a stack overflow account, and copy and pasting from the guy who answered my question
my son, you a true developer now
welcome into the family
-
-
Its been a few hours and somehow I only just realized that I can skip the step of converting the .nodes bytes back to base16, and just convert it to base2 immediately since I will have to do that anyway to effectively read bits
-
For some reason python decides its a good idea to provide all of the hex I imported with base10 so now i have to define an entire function dedicated to converting it back to base16 and this is hell just trying to convert every byte into a list of objects in the exact way i want them
Im getting there though.. kinda -
Iβll start work on a python .nodes file reader tommorow but right now my brain canβt handle it
-
-
-

-
why do you do this to yourself?
-
Replying to:
why do people drink hot sauce
-
Replying to:
Comparing an unreasonable tolerance to spice with extreme mental anguish is not a valid response
-
Replying to:
the comparison is that i have an unreasonable tolerance to extreme mental anguish and its fun to nearly slit my throat out of frustration
-
Replying to:
and on my journey i unlocked the secrets to the universe and i shall now apply that knowledge to bring humanity forward, even the ones that call me a madman
-
Replying to:
I’m calling you a madman because that’s exactly what you are
-
-
-
-
-
-
congratulations
it’s an egg
-
Good job
Do you need a psychiatrist yet?-
Replying to:
no thanks i will create a psychiatrist in a hex editor
-
-
bro became a hacker
-
-
ah donβt you just love it
Learning the inner workings of an underdocumented file format using your very limited knowledge of binary and hex, so you can have a script convert that into a not only humanly-readable form, but also python-readable form, using a language that you are ALSO not very knowledgeable about
This operation is held together with scotch tape and thumbtacks
-
But if I can actually get this to work it might be huge
Python is the Swiss Army knife of programming languages, especially when it comes to automation
The implications are huge-
Replying to:
Well if Python is versatile, then C++ is the oligarch of all programming languages
Python is what the scrubs learn before getting to the real deal es em esh
-
Replying to:
all these terms are foreign to me i only know gml
-
-
-
stick nodes in general is held together by fairy dust and magic so this is appropriate
-
underdocumented feels like an understatement
from what ive been seeing from vince’s path to insanity it’s just completely nonexistent-
Replying to:
there is one outdated document from 3.1.9 and thatβs it, so all I have to work with is that
-
-
-
Alright I just had my first attempt at creating a stickfigure entirely in hex. It didnβt work yet, and Iβm assuming itβs the version number thats invalid. Iβll try and fix it in just a moment.
-
im trying to read vince\’s documentation on the nodes format, and i keep seeing things like \”[32-bit signed int big endian]\” , or \”8-bit signed byte\” .
No idea what these things mean, other than \”int\” and \”float\”.I\’ve only heard what \”signed\” is from minecraft videos talking about the integer limit lmao all documentation i can find on \”big endian\” and \”little endian\” is so out of my skill level help im going to die
-
ok i finally think i figured it out
a “32-bit signed int big endian” means you have to represent the number using 32 bits max, and the first bit of that must represent a negative or positive (i dont know which is which, probably 0 = negative and 1 = positive but who knows)
-
Replying to:
i was wrong, 1 = negative and 0 = positive
-
Replying to:
But why dahell did ralf make the version number signed, the version number isnt gonna go into the negatives lmao
-
Replying to:
i have successfully done it
the sticknodes version number in 32-bit signed int big endian is 01111111 00101011 00000000 00000000and in hex that is 7F 2B 00 00
i am a godso why doesnt that match up to what i see in my test figure
-
-
-
-
one thing i never quite grasped the concept of is wtf big vs little endian is
i should figure that out one day
-
Replying to:
i think big endian means that what the bit is multiplied by starts as 256 and slowly works down till the lowest power of two (1), and itβs pretty popular because us humans read left to right
and little endian is the exact opposite, starting with 256 and ending with 1
Iβm also pretty sure little endian is a tiny bit faster so itβs the norm for a few systems
-
-
-
-
yet another update
Lets see what bools correspond to what bytes. If you\’re unfamiliar with what a bool is, its just a type of data that has two outcomes – True and False.
To represent bools in a byte, you can use this:
01 = True
00 = FalseEight bools exist per node: Is static, Is stretchy, Use smart stretch, Dont Smart Stretch, Use segment color, Use Gradient Color, Reverse Gradient, and Use Stickfigure Scale.
Obviously you know some or all of these if you have ever used sticknodes before. These are all options that you either tick on or tick off — in other words, they are either true or false.
Proceed — Below is where you can find each bool in a one-node figure. This is a lot of info so I\’m probably going to have to create some site to host all of my documentation on this soon.
IS STATIC:
Data Position 00000060, byte 5

IS STRETCHY
Data Position 00000060, byte 6

USE SMART STRETCH
Data Position 00000060, byte 7

DONT SMART STRETCH
Data Position 00000060, byte 8

USE STICKFIGURE SCALE
Data position 00000060, byte 13

USE SEGMENT COLOR
Data Position 00000060, byte 9

USE GRADIENT COLOR
REVERSE GRADIENT
Data Position 00000060, byte 12

Finally I got through writing all that. Hopefully nothing screws up with all those embeds. But now we know which bytes to edit for bools.
-
You have a member now! I actually find this interesting
-
- Load More









i’m not indian but you can still convert to these big integers
hi not indian but you can still convert to these big integers