Everything posted by warjort
-
1.18.2 server keeps crashing
Scratch that, it is rubidium not createdeco. It's the same problem, but you don't need that on the server. So you can remove it along with its other related client side only mods like oculus.
-
1.18.2 server keeps crashing
This is a bug with createdeco trying to load client classes on the server. Contact the mod author. Although, I believe createdeco is not up-to-date with recent changes to create anyway: https://www.curseforge.com/minecraft/mc-mods/create-deco#c128
-
Reset all player stat when servers start
Is that a serious question? Did you even look at that class?
-
is forge installer meant to come up with this if not what do i do
It's not sketchy. Another way you could solve the issue is to uninstall your java and reinstall it. This assumes your java installer actually adds the file association for .jar files.
-
is forge installer meant to come up with this if not what do i do
https://johann.loefflmann.net/en/software/jarfix/index.html
-
Reset all player stat when servers start
No, you don't create the player, that will cause all kinds of issues. You update the ServerStatsCounter directly. e.g. the equivalent of your player.resetStat(stat) is stats.setValue(null, stat, 0); Although setValue() takes a player as the first parameter, you can see in the code it doesn't actually use it. So you can pass "null". The idea of using the ServerStatsCounter to update the value is so you don't have worry about the correct handling of the json format.
-
I can't run minecraft 1.19.2; it crashes and i don't know how fix it.
Your original problem is MultiMinecraft2 telling forge to use files that don't exist. Looks like a download problem with that launcher, you will need to contact them about this.
-
[1.8.9] gradlew setupDecompWorkspace fails with ":decompileMc"
You can if you really want to, but you won't get support in these forums.
-
FileNotFoundException-Gui´s
https://forums.minecraftforge.net/topic/91712-supported-version-directory/
-
FileNotFoundException-Gui´s
First don't post text as images. Your problem is probably that you can't have uppercase characters in resource locations or minecraft asset file names.
-
Mincecraft Forge 1.18.2 crashes during world generation
Download the latest optifine preview. If it still doesn't work talk to them. https://github.com/sp614x/optifine/issues/7009#issuecomment-1228057896
-
Reset all player stat when servers start
You changed the **constructor** of PlayerDataStorage to public. You want to change the playerDataStorage field of MinecraftServer. The link I posted above shows an example of changing a field: So you need know what forge calls your field There is probably a more efficient way to do this, but this is how I do it: 1) Look at Mojang's deobfuscation mapping to see what they call field: https://piston-data.mojang.com/v1/objects/8e8c9be5dc27802caba47053d4fdea328f7f89bd/client.txt With some searching you will find: This tells you Mojang call the field "i" Now you need to find out what forge calls it: https://raw.githubusercontent.com/MinecraftForge/MCPConfig/master/versions/release/1.19.2/joined.tsrg and again some searching is required Now you have all the information you need: public net.minecraft.server.MinecraftServer f_129745_ # playerDataStorage Double check my logic is correct, I haven't tested this.
-
Forge Server not Starting Up
Remove rubidium and other broken client side only mods from the server. You don't need them there.
-
Crash log please help :]
Issue with valhelsia_core, make sure you have the latest version then contact the mod author. It might be conflicting with another mod you have.
-
Reset all player stat when servers start
To answer the original question. Try something like this **untested** code in your server starting event: MinecraftServer server = event.getServer(); File statsDir = server.getWorldPath(LevelResource.PLAYER_STATS_DIR).toFile(); // Needs an access transformer PlayerDataStorage storage = server.playerDataStorage; // For each player with an entry in the playerdata folder String[] uuids = storage.getSeenPlayers(); for (String uuid : uuids) { // Load, change and save the stats File playerStats = new File(statsDir, uuid + ".json"); ServerStatsCounter stats = new ServerStatsCounter(server, playerStats); // YOUR CODE HERE stats.save(); } As it says, you will need an access transformer to make the playerDataStorage field in MinecraftServer public. https://forge.gemwire.uk/wiki/Access_Transformers
-
1.18.2 All the Mods 7 Error
https://gist.github.com
-
How to get the name of an Item that an Anvil changed it to.
Not really. You could try to emulate what AnvilBlock.use() does. But you will hit a roadblock trying to implement the ContainerLevelAccess which AnvilMenu/ItemCombinerMenu uses for things like checking the AnvilBlock is still there, breaking the anvil block after crafting, etc.
-
Minecraft crashing on startup (exit code 1)
- HELP
Do you try to read the crash reports before posting them here? You also must be aware that you just installed this mod and hence it is likely the cause. You had a working installation without this mod an hour ago.- HELP
Something is taking a very long time on the server thread. The error does not identify what the problem is. Try installing the spark mod which can help you diagnose problems like this: https://www.curseforge.com/minecraft/mc-mods/spark Look at its documentation/wiki for how to use it.- HELP
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.player.Player.m_150109_()" because "p_27596_" is null at net.minecraft.world.entity.animal.Animal.m_27595_(Animal.java:179) ~[server-1.18.2-20220404.173914-srg.jar%2393!/:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B} at dev.itsmeow.betteranimalsplus.common.CommonEventHandler.entityDeath(CommonEventHandler.java:85) ~[betteranimalsplus-1.18.2-11.0.5-forge.jar%2358!/:1.18.2-11.0.5] {re:classloading} at dev.architectury.event.forge.EventHandlerImplCommon.event(EventHandlerImplCommon.java:199) ~[architectury-4.9.83-forge.jar%2356!/:?] {re:classloading} Looks like an issue with better animals plus, or it could be architectury. Make sure you have the latest versions of these mods then contact the mod author(s).- Error when trying to load into a world.
https://gist.github.com/- Error when trying to load into a world.
Your question is unanswerable. https://forums.minecraftforge.net/topic/89239-excessively-asked-questions-eaq/ Since you are connecting to a server you should post links to both the client's and server's logs/debug.log- forge 1.19.2 cant installed on my pc ;(
Update your java to a recent version.- My minecraft is crashing with 1.19.2
Download the 1.19.2 version of biomesoplenty the 1.19 won't work with your version of Minecraft. https://www.curseforge.com/minecraft/mc-mods/biomes-o-plenty/files/all?filter-game-version=1738749986%3a73407 - HELP
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.