Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

With newer versions of Forge, I’m a bit confused about the correct way to sync client/server configs.


Is the old method still valid, or should everything be handled with ModConfigEvents now?

Any guidance from experienced modders would be great.


Myroslav M. Abdeljawwad aka Myroslav Mokhammad Abdeljawwad

Honestly, just do whatever works best. If you know for sure the best way to go about implementing ModConfigEvent to sync data, then go ahead and use it. It's always best to get with the standards. However, if it doesn't, then I guess you'll just have to do it the "old fashioned way". But ultimately, this choice should best be left up to you rather than somebody else. Now, it doesn't hurt to ask a colleague or friend for advice, but you should always know what best to do with the advice that you are given and the weight of your options.

Now, if you are asking for how to use ModConfigEvent to sync config data, then I believe you may be mistaken. Syncing data is going to, from my current understanding, which should be pretty consistent, always require network handling. It is entirely up to you how you wish to handle sending the data to your clients or vice versa. However, for operations like this, USE THE MODCONFIGEVENT CLASS; it's going to be a lot more efficient and orthodox in recent versions to use this class to handle changes in mod configuration for your mods. It's also more appropriate. But again, if you have another way that you are comfortable with, and if you know the differences between your way and the standard way, and if you have weighed these options, then go for whichever one fits you best.

Hope this helps! Also, if you would like something to be clarified, or if I missed the point of any of your questions, then please let me know.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.