Git Product home page Git Product logo

Comments (5)

AngelDTF avatar AngelDTF commented on August 17, 2024

No longer an issue, I found out how to reverse engineer. See commit edde141.

from fnf-newgroundsport.

dumdum4347 avatar dumdum4347 commented on August 17, 2024

No longer an issue, I found out how to reverse engineer. See commit edde141.

how?

from fnf-newgroundsport.

AngelDTF avatar AngelDTF commented on August 17, 2024

how?

This is gonna take a moment to explain.

Using Chrome's built in dev tools, I traced the JS file for the Friday Night Funkin' Newgrounds Exclusive version (this is the file if you're curious). I then used some extensions in VS Code and some case sensitive replacing to beautify this code and give some proper naming to the variables to make it easier to read. The end result wasn't the prettiest, but after a ton of trial and error and a lot of code comparisons between classes and functions that haven't changed, I basically self-taught myself how the compiler translates the Haxe code into Javascript, and used that knowledge to rewrite it back into Haxe. And just for some sanity checks, I could recompile my reverse engineered code back into Javascript and compare it to the compiled file for the Newgrounds Exclusive to make sure it matched. Using this knowledge, I tediously went through every class in the game and compared line by line to see what changed and what didn't to make this project. I didn't double check all of it though, so there may still be some mistranslations within my code, but for the most part, it's accurate, and it's v0.2.8.

from fnf-newgroundsport.

dumdum4347 avatar dumdum4347 commented on August 17, 2024

how?

This is gonna take a moment to explain.

Using Chrome's built in dev tools, I traced the JS file for the Friday Night Funkin' Newgrounds Exclusive version (this is the file if you're curious). I then used some extensions in VS Code and some case sensitive replacing to beautify this code and give some proper naming to the variables to make it easier to read. The end result wasn't the prettiest, but after a ton of trial and error and a lot of code comparisons between classes and functions that haven't changed, I basically self-taught myself how the compiler translates the Haxe code into Javascript, and used that knowledge to rewrite it back into Haxe. And just for some sanity checks, I could recompile my reverse engineered code back into Javascript and compare it to the compiled file for the Newgrounds Exclusive to make sure it matched. Using this knowledge, I tediously went through every class in the game and compared line by line to see what changed and what didn't to make this project. I didn't double check all of it though, so there may still be some mistranslations within my code, but for the most part, it's accurate, and it's v0.2.8.

i meant how you got the colors

from fnf-newgroundsport.

AngelDTF avatar AngelDTF commented on August 17, 2024

If you’re asking how I found the color values, they were in the previously mentioned JS file, and then I converted them into the hexadecimal format as that was what Ninjamuffin was primarily using in the source code.

If you’re asking how I fixed the bug, this was a bug related to the legacy version of my code, which wasn’t actually a reverse engineering and was more of a rewrite based on code from Psych Engine and FNF Modding Plus, and their implementations set the color on creation, while the official Newgrounds version sets the color continuously throughout the update function, and that function isn’t called until the state has fully transitioned.

If I still haven’t answered your question exactly, my apologies but your question is a bit vague, in the future please specify more clearly what your question is.

from fnf-newgroundsport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.