-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Allow for refreshing the mod scripts currently active without a hotkey (Or at least document the hotkey in game) and stop them from being permanently loaded. #3795
Comments
Can't you just press |
That's... a thing? If it is it should really be in a hotkeys menu or explained like, somewhere right? Even still most things doable with hotkeys should also have their own buttons in a dropdown for people still learning at least, and the issue with deleted scripts staying loaded would still stand. |
I read the title of this issue in my head and said "F5" aloud to myself. |
I think this issue is plenty resolved and can be closed now! |
Nah cause there should still be interfaces for these imo + Plus my 2nd issue still stands... in fact lemme edit this a lil' rq. |
I think debug functions being hidden away isn't necessarily a bad thing, given that the general audience for the game will likely never interact with debug features. |
I feel like if you're fucking around with chart editor you're already on the modding path + resetting script won't do anything bad unless you were actively making a mod and had some really specific thing set up at the moment. |
In addition to the debug hotkey documentation in |
I agree |
Ok, but it's faster to do things that way for a lot of things. It's faster to press ctrl+s to save, press F1 to bring up the user guide, or ctrl+F to flip around selected notes, yet there are still buttons for those. I don't see why their shouldn't be, especially if there is going to not be documentation in the in-game help guide that these hotkeys exist. |
Alright well where do you suppose this button should be located, it should be accessible from ANYWHERE in the game, so have fun slotting such a button somewhere. |
It's important to note that F5 is part of a group of hotkeys that can be used in any state, not just the Chart Editor. By that logic, there would need to be an interface for these other hotkeys. Adding on to this, the function that is called when pressing F5 does a lot more than just reloading song scripts: /**
* Clear and reload from disk all data assets.
* Useful for "hot reloading" for fast iteration!
*/
public static function forceReloadAssets():Void
{
// Forcibly clear scripts so that scripts can be edited.
ModuleHandler.clearModuleCache();
Polymod.clearScripts();
// Forcibly reload Polymod so it finds any new files.
// TODO: Replace this with loadEnabledMods().
funkin.modding.PolymodHandler.loadAllMods();
// Reload scripted classes so stages and modules will update.
Polymod.registerAllScriptClasses();
// Reload everything that is cached.
// Currently this freezes the game for a second but I guess that's tolerable?
// TODO: Reload event callbacks
// These MUST be imported at the top of the file and not referred to by fully qualified name,
// to ensure build macros work properly.
SongEventRegistry.loadEventCache();
SongRegistry.instance.loadEntries();
LevelRegistry.instance.loadEntries();
NoteStyleRegistry.instance.loadEntries();
PlayerRegistry.instance.loadEntries();
ConversationRegistry.instance.loadEntries();
DialogueBoxRegistry.instance.loadEntries();
SpeakerRegistry.instance.loadEntries();
AlbumRegistry.instance.loadEntries();
StageRegistry.instance.loadEntries();
CharacterDataParser.loadCharacterCache(); // TODO: Migrate characters to BaseRegistry.
NoteKindManager.loadScripts();
ModuleHandler.loadModuleCache();
} |
In the interest of making vital functions accessible without hotkeys, buttons should be added for redundancy. The question is whether this debug function in particular should be made accessible. That's for Funkin' Crew to decide! |
Well yeah, it sure is, and I think this one should be accessible, hence the
enhancement tagged issue lol.
…On Mon, Oct 28, 2024, 4:40 PM Hundrec ***@***.***> wrote:
In the interest of making vital functions accessible without hotkeys,
buttons should be added for redundancy.
The question is whether this debug function in particular *should be*
made accessible. That's for Funkin' Crew to decide!
—
Reply to this email directly, view it on GitHub
<#3795 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFPZOMZJIXGYSLMGKMC3WZDZ53DQRAVCNFSM6AAAAABQWISHNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSHA3TKMJXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Issue Checklist
What is your suggestion, and why should it be implemented?
I know that there is a debug hotkey for refreshing scripts, but it's not well documented anywhere ingame, I don't believe it refreshes scripts for indivijual songs, and like with plenty of other hotkey'd functions, I believe it should still have it's own buttons for doing it without hotkey knowledge in game. So on top of adding in this hotkey to the help menu, I suggest having:
In addition to this, scripts currently do not at all register when they have deleted. I couldn't tell if this was a bug or not, but it's very annoying. The only way to remove a scripts effects is to edit it to be blank, which I had to find out myself by floundering, as this is not intuitive at all. Removing from the folder and even straight up deleting a .hxc file does not remove it's effect on the game, I guess it somehow stays stored in the games memory until it sees an edit, and it doesn't count deleting as editing?- so I would also suggest that the game checks if a loaded script is even still there when loading in scripts.
The text was updated successfully, but these errors were encountered: