• Posts

    • my forge server keeps crashing here is the crash log: ---- Minecraft Crash Report ---- // Oops. Time: 21/10/20 03:02 م Description: Exception in server tick loop com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $     at net.minecraft.util.JsonUtils.func_193838_a(SourceFile:506)     at net.minecraft.util.JsonUtils.func_193841_a(SourceFile:522)     at net.minecraft.server.management.UserList.func_152679_g(SourceFile:141)     at net.minecraft.server.dedicated.DedicatedPlayerList.func_187246_z(SourceFile:99)     at net.minecraft.server.dedicated.DedicatedPlayerList.<init>(SourceFile:25)     at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:220)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Unknown Source) Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $     at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559)     at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401)     at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:593)     at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)     at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:74)     at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)     at net.minecraft.util.JsonUtils.func_193838_a(SourceFile:504)     ... 7 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_241, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 31980888 bytes (30 MB) / 148299776 bytes (141 MB) up to 3652583424 bytes (3483 MB)     JVM Flags: 6 total; -Xmx3500M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2847 4 mods loaded, 4 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State  | ID        | Version      | Source                                  | Signature |     |:------ |:--------- |:------------ |:--------------------------------------- |:--------- |     | LCHIJA | minecraft | 1.12.2       | minecraft.jar                           | None      |     | LCHIJA | mcp       | 9.42         | minecraft.jar                           | None      |     | LCHIJA | FML       | 8.0.99.99    | forge-1.12.2-14.23.5.2847-universal.jar | None      |     | LCHIJA | forge     | 14.23.5.2847 | forge-1.12.2-14.23.5.2847-universal.jar | None      |     Loaded coremods (and transformers):      Profiler Position: N/A (disabled)     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)
    • Yes I agree on some point. As a developer my self I'm quite understand how important of the structure. And I'm follow TechnoVision tutorial because it's very clear, straight to the point. Different from others, I don't need his explanation, I just want to know how to code in Minecraft Mod. Mmmm, like I know what class is, method is, contructor is, but I don't know how to construct a structure for modding Minecraft. Also as you said, may be I know a logic, but don't know a word for that in Minecraft, so watching him is fullfil what I need.   For example, when learning php, whenever I need something, then go to Google and it will show me the method (because php have a large community as the official page it self). But Minecraft Forge not, or is outdated. So I just need something quick, straight to the point. Hope you understand what I said.
    • I'm not good at json. Is there a template or a detailed explanation somewhere?
    • You already got a very exhaustive answer by diesieben07 in another post, i am sure i could not add anything more to what he already said. Yes, their code may work apparently, but they don't bother explaining why they do certain things and how the code works. People following these tutorial are most likely to just copy paste their code without really understanding what they are doing. So when their copy pasted code doesn't work because they made mistakes that simple java knowledge could solve they come here asking for help. Also when they want to achieve something they cannot find a tutorial for they find themselves absolutely lost and sometimes think that we have to give them the code packed and ready to be copied...i don't think you want to add ten different kind of ruby blocks to minecraft right? What if you want to do something more complex but you don't even know where to start because the tutorial you followed don't explain the hows and whys?
    • So can you provide a best practice Guide then? I don't know if they are bad practice, no explain code. But somehow, it work and we can follow to do something.
  • Topics

  • Who's Online (See full list)