#✅ | 🙋 | Packaging listeners
1 messages · Page 1 of 1 (latest)
Listeners live inside your config/fancymenu/ folder just like layouts, backgrounds, etc. Packaging them for a modpack works exactly like the rest of FancyMenu’s data:
- Open the source instance and copy the entire
config/fancymenu/folder (it containscustomization,assets,listeners, options, …). - In your modpack instance, delete any existing
config/fancymenu/and paste in the copied folder. - Restart the modpack so FancyMenu picks up the packaged listeners.
If you don’t want players to keep the FancyMenu menu bar or hotkeys, make sure to set modpack_mode=true in config/fancymenu/options.txt once the config is in place (see the Modpacks guide for that detail). You can always flip it back to false later when editing again.
I did just that, copied the entire config fancymenu to the modpack instance, but it doesn't seem to be working
Thanks for the follow-up! Could you share a bit more about what “doesn’t seem to be working” looks like? For example:
- Are the listeners missing entirely from the listener manager menu, or do they trigger but don’t run?
- Did you check that the
config/fancymenu/listenersfolder actually made it into the modpack instance after copying? - Are you using the exact same FancyMenu version in both instances?
- Is
modpack_modestilltrueinconfig/fancymenu/options.txt? (That setting hides the menu bar and can make testing harder unless you flip it back tofalsetemporarily.)
Any extra details you can provide will help me narrow it down.
I don't seem to have a listeners folder in my original folder
If there was no config/fancymenu/listeners folder in your source instance, that means no listener definitions were saved yet. To create one:
- In a normal (non-modpack) instance, go to Customization → Manage Listeners and create the listeners you want.
- Once saved, FancyMenu automatically writes their files to
config/fancymenu/listeners/. - Now you can copy the entire
config/fancymenu/folder (including that newlistenerssubfolder) into your modpack instance, just like you tried before.
If you still don’t see the folder after creating listeners, double-check that the instance you edited actually saved the listeners (look inside the listener manager to confirm they exist). Once the folder exists, packaging works the same way as any other FancyMenu data—copy the whole config/fancymenu/ over to the modpack.
all I seem to have is a listener_instances file instead of a folder, is it correct?
The listener_instances file you see is just FancyMenu keeping track of the running listener state—it’s not where your listener definitions are stored. When you actually create listeners via Customization → Manage Listeners, the mod saves each listener as its own file inside config/fancymenu/listeners/. That’s the folder you need to include in your modpack.
So to get your listeners into the pack:
- Create the listeners in a normal instance (make sure they show up in the manager).
- Confirm that
config/fancymenu/listeners/now exists and contains.json-like files. - Copy the entire
config/fancymenu/folder (which now includeslisteners/) into your modpack instance, replacing whichever one was there. - Restart the modpack instance so FancyMenu loads those files.
If the folder never appears, double-check you actually saved the listeners before copying. Once it exists, packaging works the same as for layouts or backgrounds 😊
should I also have a layouts foldeR?
Yep, your config/fancymenu/ folder should also contain a layouts folder (it holds all your saved layouts). When you package FancyMenu for a modpack, copy the entire config/fancymenu/ directory—this brings listeners, layouts, assets, options, etc. with it. Then paste that into the modpack instance’s config/ (replacing any existing fancymenu folder) and restart the game so everything loads.
If you need a refresher, the Modpacks page walks through the whole process. 😊
how would this layouts folder look like ?
The layouts folder inside config/fancymenu/ just holds your saved layout files (one .txt per layout). Each file contains the serialized layout data for a screen/universal layout. When you copy your FancyMenu setup to another instance, include that entire layouts folder so the modpack can load the same layouts.
If you haven’t created any layouts yet, the folder might be empty—just create and save one in the editor to populate it. When packaging, copy the whole config/fancymenu/ (layouts, listeners, assets, options, etc.) into the modpack instance and restart so FancyMenu picks up everything.
More details are on the Modpacks page.
How do I exactly save the listener? I see no clear option how to do so
When you’re in Customization → Manage Listeners (while not in the layout editor), everything you create/edit there is saved automatically—there is no separate “Save” button. Just finish configuring your listener (name it, pick the event, add its action script, etc.) and close the manager (click Done or press the close button). FancyMenu writes the listener files into config/fancymenu/listeners/ as soon as the listener exists in that menu. Once the files are there you can copy the entire config/fancymenu/ folder into your modpack instance to package the listeners.
I did just that and there's no config/fancymenu/listeners folder
Thanks for confirming you used the listener manager. Since the listeners/ folder still isn’t appearing, it means FancyMenu didn’t actually generate the files yet.
Could you double-check:
- That the listener you created is listed inside Customization → Manage Listeners (with a name and actions)?
- That you pressed Done/closed the manager after creating it so it could persist?
- That you’re editing the same instance whose
config/fancymenu/you’re copying into the modpack? - That
modpack_modeis temporarilyfalsewhile testing, so the menu bar (and therefore the listener manager) is actually accessible?
If it still doesn’t spawn the folder, feel free to share the exact steps you took (which listener event, whether you added actions, etc.) so I can help identify what might prevent it from saving.
🙋 | Packaging listeners
<@&1365490168563372113>
@upbeat belfry has requested human assistance.
A human moderator will help you as soon as possible. In the meantime, you can continue asking questions to the AI support bot if you'd like.
The support team has been notified.
Just in case for any future helpers: what I'm trying to do is package a listener that opens up a custom GUI when joining a server for the first time, this is my own modpack's server so it's fine. What's happening is that the listener_instances file (which I assume is the place where listeners are stored) is being sent correctly to all users, but it doesn't show any screens whatsoever
If the listener manager saved anything, there should be real files inside config/fancymenu/listeners/ (one file per listener). The listener_instances file is just runtime state—Fancybox doesn’t read listener definitions from there.
Steps to make your listener travel with the pack:
- Open Customization → Manage Listeners (outside the layout editor) and make sure your listener is listed, named, has its event/action script, and that you press Done so FancyMenu writes the files.
- Check that
config/fancymenu/listeners/now exists and contains.jsonfiles. If it’s still missing, re-open the manager, add a simple listener, close it again, and watch for the folder’s creation. - Copy the full
config/fancymenu/directory (layouts, assets, listeners, options, etc.) from the work instance into the modpack instance, replacing whatever’s there. That’s the same process described in the Modpacks guide. - Restart the modpack so FancyMenu loads the listener files. Also make sure
modpack_modeisfalsewhile testing (or toggle it back temporarily) so the menu bar/Manager stay available, then flip it totrueagain once everything works.
If your listener opens a custom GUI, double-check that the layout for that GUI is also included in config/fancymenu/layouts/ and that the layout is enabled on the target screen.
Listener reference: Manage Listeners & Listener variables
Packaging reference: Modpacks guide
@upbeat belfry paused AI answers for this thread. The bot will stay quiet until resumed.
I truly don't know what I'm doing wrong, and I feel the AI is hallucinating this listeners folder it's mentioning
User wants to package a FancyMenu listener (that opens a custom GUI when joining a server) into their modpack, but the copied config lacks a listeners/ folder so nothing works—only a listener_instances file appears, and the listener never triggers on the modpack side.
There is no listeners folder. The file is where the listeners are saved.
If you ship that file, you ship all listeners.
You need to show the listener and its action script for others to be able to help you ^^
Hi Snowy, thank you so much for answering
for some god forsaken reason, the changes started working with a delay in deployment
Great job with this mod btw, I'm amazed at the documentation most of all
Absolutely bonkers
This support thread has been marked as solved by @upbeat belfry.
The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!
✅ | 🙋 | Packaging listeners
Consider this as solved, even though I have no idea why it started working overnight