Making F1 behave as in SP
-
Ok, to clarify this. Alcander back in the day created four exe files that you could use for various things, one of these disabled F1 during flight in MP, the same as it is in SP.
The burning question is how did he do this? There must be an offset for this (looks in Motah’s direction), anyone have any clues?
Don’t get me wrong there are ways to simulate this in FLAC where you fine people for using F1 during battle but that’s not what i’m after. I even have the file that Alcander made, i just want to know how he did it.
-
I can’t comment on how Alcander did it, nor just exactly how disabled you want it, but here’s a hex patch that totally disables F1 during flight, assuming MP - you’ll get interesting results with SP.
File: Freelancer.exe
0A6CCE: 90 90 [ 74 56 ]
0A6CD9: 75 4B E9 77 03 00 00 [ 74 02 B3 01 B9 D0 D2 ]The first line ignores the test for single player, always using multiplayer. The second line jumps to the normal multiplayer code if you’re on a base, but jumps to the function exit if you’re in space. You could try my BDiff utility (which generated the above output) if you want to try diffing the files you have. HTH.
-
But since it’s client-side only anyone with a bit of knowledge can find about it, especially now that you’ve revealed the offsets
Also, I bet it doesn’t disable Alt+F4 does it?
-
Oh I don’t want to say it’s not awesome, because it is, but I just want to make sure people who’d be tempted to use it in production-level mods know of the possible issues with it.
-
Tbh i was curious how it can be done. I mean you can disable F1 useage in FLAC, plus Alcanders files are not excactly difficult to come by.
I also don’t see the problem with it as F1 isn’t accessible in SP anyway unless you’re docked so don’t see the fuss. It’s hardly an exploit as it would put the client at a disadvantage from the word go in a fight on a server, where F1 useage is as per normal in multiplayer.
Reason i asked is i was thinking of using this feature, just wanted to know how to do it manually as opposed to using one of Alcanders files which are at best, buggy