Comments (5)
No longer an issue, I found out how to reverse engineer. See commit edde141.
from fnf-newgroundsport.
No longer an issue, I found out how to reverse engineer. See commit edde141.
how?
from fnf-newgroundsport.
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.
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.
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)
- Enhancement: Pretty print fnf 0.2.8 json file to make much more ez to look at it HOT 2
- Bug Report: Can't skip credits video in HTML5 target HOT 3
- Bug Report: Game crashes HOT 2
- Enhancement: Animated actual cutscene HOT 2
- Question: Add a comment HOT 7
- Bug Report: gfcutscene layer variable should be FlxGroup not FlxTypedGroup HOT 1
- Enhancement: use new FlxAnimate instead of old version HOT 3
- Enhancement: Add a new FlxAnimate thingy HOT 4
- Enhancement: Game Build HOT 3
- can I use this as a base for my engine HOT 4
- Enhancement: Use hxCodec instead for compatibility on desktop HOT 5
- Bug Report: HOT 1
- Bug Report: Notes move choppy HOT 6
- Bug Report: HOT 4
- Bug Report: Cant compile because of no Project.xml file, but its already there? HOT 7
- Question: sorry but how do you open a prompt HOT 1
- Bug Report: Can't Compile HOT 4
- Bug Report: The game crashes HOT 8
- Bug Report: Html5 error HOT 2
- Question: How To Compile FNF-NewgroundsPort(MACOS AND WINDOWS)(NOT A QUESTION) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fnf-newgroundsport.