Jump to content

[SOLVED][1.9 1846] An unknown persistent registry type


siverson

Recommended Posts

Hi,

 

I started Minecraft with my kids right when 1.9 came out. I set up a vanilla server and then 1.9.1 and 1.9.2 came out. I had to upgrade the server because the clients were auto upgraded to 1.9.2. I then found out about Forge and installed it with the installer on the server and the clients. I figured out how to choose a specific Minecraft version on the clients.

 

The world was working great on Forge 1826. I used the installer to install Forge 1846 but now I get an error about an unknown persistent registry type "minecraft:villagerprofessions".

 

I know Forge does not support downgrading sub-versions (1.9.2 -> 1.9), but, maybe it would be good to handle unknown persistent registry types by ignoring them and logging that fact.

 

Maybe use return instead of StartupQuery.abort(); in PersistentRegistryManager.

private static <T> void loadPersistentDataToStagingRegistry(boolean injectFrozenData, Map<ResourceLocation, Map<ResourceLocation, Integer[]>> remaps, LinkedHashMap<ResourceLocation, Map<ResourceLocation, Integer>> missing, Map.Entry<ResourceLocation, GameDataSnapshot.Entry> snapEntry, Class<T> regType)
{
ResourceLocation registryName = snapEntry.getKey();
//Translate old names
if ("fml:blocks".equals(registryName.toString())) registryName = PersistentRegistryManager.BLOCKS;
else if ("fml:items".equals(registryName.toString())) registryName = PersistentRegistryManager.ITEMS;
else if ("fmlgr:villagerprofessions".equals(registryName.toString())) registryName = VillagerRegistry.PROFESSIONS;
FMLControlledNamespacedRegistry<T> currentRegistry = PersistentRegistry.ACTIVE.getRegistry(registryName, regType);
if (currentRegistry == null)
{
FMLLog.severe("An unknown persistent registry type \"%s\" has been encountered. This Forge instance cannot understand it.", registryName);
StartupQuery.abort();
}
...

 

If there is a way for me to remove the registry manually, I would be happy to do it.

 

Log: https://gist.github.com/anonymous/9453650154d56474e3cd712d7c4932c6

 

Thank you for the work you do on Forge.

Link to comment
Share on other sites

1) Forge is the one who creates and controls all of those registries, not Minecraft

2) Downgrading vanilla worlds *might* work, but with their new world fixer system i'm honestly not sure.

3) That registry in question SHOULD exist unless you've derped something up that is causing the FML pre-init event to not fire...

 

So what are you doing?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

I tried installing all the different versions between Forge 1826 an 1846. The server started in each version. It did not run in 1846. On a whim, I tried 1853 and it worked.

 

I don't know why it was having problems but for now, it is working on 1853.

 

Thanks.

Link to comment
Share on other sites

Ya fry derped up and killed the FML/Forge mod for the server. We've fixed it and it all should go correctly now.

I've verified this myself with the latest build.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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