Skip to content

Comments

Add serverside config syncing#12

Draft
heloman1 wants to merge 6 commits intoFlashkirby:masterfrom
heloman1:add_serverside_config_syncing
Draft

Add serverside config syncing#12
heloman1 wants to merge 6 commits intoFlashkirby:masterfrom
heloman1:add_serverside_config_syncing

Conversation

@heloman1
Copy link

So I have done the following things:

  • I have replaced all mod.BuffType, mod.ItemType with ModContent.BuffType
    -tModloader (v 0.11.6.2) it would not build without this change

  • I have made quite a few changes to the config system. It now uses tModloader's ModConfig Class instead of Terraria's Preference class.
    -tModloader can automatically sync ModConfigs between the server and client, and force the client to reload if needed. This means if the server has chosen to disable everything except base content, the client will automatically haave the same settings

    • This can allow for multiple configs, as well as client and server side configs. This means server side settings can be synced while client side settings like whether you want your WeaponOut will be left untouched

This is a draft as it still needs at least the following things:

-The ability to convert from the old config to the new ones
-The WeaponOut_Custom still uses preferences, and could use similar ModConfig treatment

Of course, I'm open to suggestions and feedback.

@Flashkirby
Copy link
Owner

Hello and first off, thank you so much for contributing!

I am in the process of updating my workflow to the latest version of tModloader, as I haven't touched the repo in a while, but once I have it up and running I will have a proper review of the changes here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants