Closed UNSTOP4BLE closed 4 months ago
Reading Controls is not a part of Friday Night Funkin. It's low-level function, programmed in packages like HaxeFlixel, OpenFL, Lime, or Haxe itself.
As declared in Controls.hx, FNF reads controls from:
flixel.input.actions.*, flixel.input.gamepad.*, flixel.input.keyboard*
So reading controls from keyboard may be part of Operating System, but interpreter is part of FNF: Controls.hx
So i cant just rebind them without external tools and engines?
You can. You can bind up arrow as a other key, g as down arror and any another key. The only restriction is that applies only in game. You cannot rebind you keyboard (modify drivers) but in game - yes
how?
@UNSTOP4BLE Just modify the source, then compile the game. What you want to rebind?
Dont ask why but i want A, S to be the same And i want Z to be D, and X to be W, i also want W to be X and D to be Z
@UNSTOP4BLE You want to keep old binds?
No? Edit: i just relised how stupid i am, i will put a image
Wait, I will tell you what I mean:
Dont ask why but i want A, S to be the same
So, either A and S must work?
A and S stay default
@UNSTOP4BLE You can choose only some parameters. If you you Kade Engine, you can rebind game (image) If you use vanilla FNF, give me parameters from the image, and I will rebind FNF, and I will send you source and binaries
sry i didnt tell u this but im trying to do it for a ios port FunkinIOS (the source code is 99% the same) so that explains the weird control scheme and wdym by parameters?
sry i didnt tell u this but im trying to do it for a ios port FunkinIOS (the source code is 99% the same) so that explains the weird control scheme and wdym by parameters?
Can you limit your scheme to above image or it's impossible? I can change Controls.hx for you, but I don't have Iphone/Mac so I won't compile it.
i can compile it but make sure you get controls.hx from the funkinios link above, also what does limit the scheme mean. sry if its a stupid question EDIT: oh do you mean by limit the scheme to the image above just pasting the buttons if thats what you mean here ya go:
@UNSTOP4BLE oh, thanks for updating. I will check it
@UNSTOP4BLE "ACCEPT" means "ENTER" and "PAUSE" too?
Yes i think?
actually i dont think so, it is bound to Z witch in the original game only means like advance through the menu, not pause
@Maniues did you do it?
@UNSTOP4BLE I'm going to try it at the moment.
oh, cool. i made the sprites
@UNSTOP4BLE I sent you invitation to get a copy of rebinded game on GitHub. If you compile it, may you make a release in repo?
Ok, i will try it tomorow after school
Okay
Well, i somehow got a cold so i cant go to school. I will try to compile the game now
@Maniues sadly it hasnt chaned anything, i think that there are controls in other files like mainmenustate.hx and others
@Maniues what did you change in controls.hx?
yeah, i see what you chaned rn too, tryng to change other stuff too
why do you have inline bindKeys(Control.UP, [W, FlxKey.UP]); and inline bindKeys(Control.UP, [X, FlxKey.UP]); in the same section? edit:nvm it was only in the commit
@UNSTOP4BLE I will check this
no i didnt relise it was just in the commit, the source code is fine
this is so wierd! no matter what i change in controls.hx nothing changes, maybe the dev just put it in another file?
@UNSTOP4BLE vanilla FNF works with Control.hx. Maybe iOS port changed the file.
Does the FNF allow you to port it to iOS without using that fork?
Nope, this one has on screen controls
maybe it is possible to port the luckydog7's android port to ios? i have seen it on web browsers and they do work but i wanna play mods
@UNSTOP4BLE It is possible (probably). Haxe is CROSS-PLATFORM. Just type lime build/test ios and it should work.
wow, thats not the answer i expected! gonna try it now
wow, thats not the answer i expected! gonna try it now
I think It should work, but the same applies for C/C++ Language. This port may use Android API (I didn't check), and it may don't work, but yea, try!
ok!
do i have to do it in mac os? if i do it gives me Error: Source path "/usr/local/lib/haxe/lib/extension-webm/git/ndll/iPhone/libextension-webm.iphoneos.a" does not exist
@Maniues on windows it gives me error Source path "C:/HaxeToolkit/haxe/lib/extension-webm/git/ndll/iPhone/libextension-webm.iphoneos.a"
on xcode it gives me Command ExternalBuildToolExecution failed with a nonzero exit code the build tool is "make"
@UNSTOP4BLE It means that you must have Iphone version of "extension-webm". Try to get it here: https://github.com/KadeDev/extension-webm
ok
how do i install it?
@UNSTOP4BLE Using HaxeLib. But you must select version from KadeDev . I think "haxelib install" and link to github. You must have installed openfl
so like haxelib install https://github.com/KadeDev/extension-webm
Please check for duplicates or similar issues before asking your question.
What is your question?