critical invalid moddellist error whilst dynmap is still able to render
JurgenKuyper opened this issue ยท 10 comments
Issue Description: when utilising dynmap-3.4-828 combined with blockscan-3.4-beta-4-forge-1.18 on forge 1.18.2 40.1.76 the server spits out huge amounts of "Invalid modellist patch for box" errors as soon as any mod texture or model file is present in renderdata or renderdata/modsupport. Dynmap is able to start rendering the mods blocks properly, except of the usual unsupported ones like the chisseled blocks.
- Dynmap Version: dynmap-3.4-828
- Server Version: forge 3.4-beta-4-forge-1.18
- Pastebin of Configuration.txt: default, unchanged so no need to create a pastebin
- Server Host (if applicable): Selfhosted
- Pastebin of crashlogs or other relevant logs: latest log from forge: https://cloud.jurgenmk.nl/s/AqF388DNiCKjc6R (too large for pastebin so dropped it on my server)
- **Other Relevant Data/Screenshots:link to modpack
- Steps to Replicate: setup forge server, install dynmap and blockscan and the modpack, start server, after a while the errors pop up on load of server.
[x] I have looked at all other issues and this is not a duplicate
[x] I have been able to replicate this
As a temporary workaround, I made a python script to delete all the offending model data from the modellist file: https://github.com/eski-dev/dynmap_invalid-modellist_fix
But a more permanent solution would be nice. :)
+1Hi, im total newb but can you explain how to deploy this fix on a hosted server ? Thanks !
Sure thing! Don't wanna get too off topic from the issue report though, so I'll try to make this kinda comprehensive for anyone else who might stumble upon this post. If I find the time, I'll also update the script repo with more detailed instructions.
So, in Linux, first ensure you have python3 installed (See for examples)
Then, use curl or wget to download script.py someplace your user has execute permissions (user home is fine)
Lastly, make the script executable (chmod +x script.py
)
Then, all you need to do is have the full file path (or relative path to where script.py is located) of the Minecraft server logfile and the dynmap renderdata directory handy
To run, type: python3 script.py
and hit enter
You will be prompted for the location of the logfile and the renderdata directory, and I would suggest choosing dry run until you confirm everything runs okay
Then, run it for real and let it do its thing
The server doesn't need to be off to run the script, but I would anyway just to ensure there's no issues and it goes quick. Once it finishes running you will need to restart the server to test and see if the startup log doesn't fill up with the invalid modellist patches spam anymore
And that's it!
FYI - You'll need to perform these steps from a user shell on your hosted server instance, in order to execute the python script. If that isn't possible, it's theoretically do-able by uploading the script using web gui/ftp file transfer and scheduling it to execute somehow as long as python3 is installed on the underlying OS. You could also reach out to the host service's customer support and send them context with a link to the script on GitHub to see if they'd be willing to run it for you. YMMV
As a temporary workaround, I made a python script to delete all the offending model data from the modellist file: https://github.com/eski-dev/dynmap_invalid-modellist_fix
But a more permanent solution would be nice. :)
+1
As a temporary workaround, I made a python script to delete all the offending model data from the modellist file: https://github.com/eski-dev/dynmap_invalid-modellist_fix
But a more permanent solution would be nice. :)
+1
Hi, im total newb but can you explain how to deploy this fix on a hosted server ?
Thanks !
Hey, so for a temporary solution.
I just deleted all the Model files but kept the texture files.
It's better than nothing and depending on the mods most textures load
I'm also experiencing this with dynmap 3.6, forge for 1.19.2. Specifically, an all the mods 8 server with dynmap added on to it, specifically this build: https://www.curseforge.com/minecraft/modpacks/all-the-mods-8/files/4787465