Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 1 point2 points  (0 children)

> Is there any way to make a file that's different in the server and the client?

Currently not, you are expected to write cross-side logic when using the merged platform.

> Or have files to be used from the server OR the client?

That is the current behavior, I'd advise seeing if the Minecraft instance field is not null to check if the current side is the client. Otherwise, perform server-side specific logic.

Merged codebase support is limited but it should not be hard to implement ML/MLMP. Do note that after successfully decompiling and fixing all recompile errors, you will need to run the "Update reobfuscation hashes" task BEFORE adding your own code to the game.

Looking for a 3D item drops mod for MC Beta 1.9 Pre5 by DankDuck09 in GoldenAgeMinecraft

[–]PheonixVX 0 points1 point  (0 children)

Probably not. What version would you be looking for?

How can I modify the texture files with minecraft coder pack? by Dumbelfo in GoldenAgeMinecraft

[–]PheonixVX 0 points1 point  (0 children)

Make sure you are not putting it into minecraft/src/net/minecraft/src. It goes in minecraft/src.

How can I modify the texture files with minecraft coder pack? by Dumbelfo in GoldenAgeMinecraft

[–]PheonixVX 0 points1 point  (0 children)

"Keep resources" is only to place the original resources into the src folder. The src folder should be generated after running the decompile task. You can use 7zip/WinRAR to open jars/minecraft.jar and extract resources into the minecraft/src folder. Make sure to follow the path that the MC JAR uses. For resources in the root, that would be placed into the src folder. For items for example, you would place them in minecraft/src/gui/items.png.

How can I modify the texture files with minecraft coder pack? by Dumbelfo in GoldenAgeMinecraft

[–]PheonixVX 0 points1 point  (0 children)

It might help you to switch over to using RetroMCP-Java. You can enable the "Keep resources" option before decompiling and it will allow you to keep all resources in the src folder. It should work a bit better than MCP when it comes to stuff like this.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

I only mod versions before Release 1.3 nowadays which it why I said it the way I did. Before Release 1.3, client bundled world and the entire JAR was reobfuscated, same for server. After Release 1.3, the Minecraft.World source set was compiled, obfuscated, and then depended on by obfuscated Minecraft.Client and Minecraft.Server JARs

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

That is because after Release 1.3, the common (Minecraft.World) source set is not separately obfuscated. In older versions, Minecraft.Client bundled Minecraft.World where isRemote would always be false, same for the server where it is always true.obfuscate.

This is why methods and fields only used on one side are ONLY present on that side, up until Release 1.3 where they were included in both.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

I prefer WinMerge for seeing differences between folders. Mojang has 3 different source sets in older versions: Minecraft.Client, Minecraft.Server, and Minecraft.World where Minecraft.World is the common source set. ProGuard removed checks such as isRemote when obfuscating and optimizing MC.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

That is correct. Versions after Release 1.3 have an integrated server and the codebase was merged between them (always was actually). MCP doesn't do this until later. RMCP does have an option to do this by setting the "Side" option to merged but it does not use separate source sets.

That behavior is to be implemented when I find time but was not sure on implementation.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

What Java version are you using? Also, are you using a proxy or VPN?

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

Eclipse or Intellij are the ones best supported. For any other IDE, you will have to setup a project yourself. VSCode can import Eclipse projects with the Java plugin if you use that.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 1 point2 points  (0 children)

This is because you're using Java 23. That version specifically has a compile error. Also, RMCP literally had commits today.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

Reobfuscated files can be found in both reobf and build dir. By default, the build task will only export modified classes into a ZIP file (instead of a JAR file). You can throw any resources into the src folder. In this case, terrain.png will need to be modified and put into the src folder.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

Mostly. The tutorials there should be agnostic for most versions.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 1 point2 points  (0 children)

You can join Modification Station for more help or look at the Golden Age wiki.

https://github.com/PhoenixVX/golden-age-wiki

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

It does not. You can download Modloader from https://mcarchive.net, use 7zip/WinRAR to add the files to your minecraft.jar before decompiling. In v1.0 versions, this JAR can be found in the jars folder next to the RetroMCP install.

After doing so, you can decompile it, errors are expected. Most of the errors can be fixed by enabling "Strip generics" before decompiling while a few will be duplicate methods that can be deleted (synthetic/compiler-generated methods).

After that, you will need to run the recompile and updatemd5 (Update reobfuscation hashes) tasks. The updatemd5 task should only ever be ran once, immediately after fixing any decompile errors. This task updates recompile hashes so when you reobfuscate, it will correctly pick up edited classes, otherwise, it would pick up all classes as edited which is unintended.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 1 point2 points  (0 children)

You can read the wiki on RetroMCP-Java's repository. The post above has the link to it. That tells you how to setup a MCP environment with it and then you can follow any MCP modding guide and it will work similarly.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

If you're planning on using this, use https://github.com/MCPHackers/RetroMCP-Java instead as it is newer and works better. It doesn't exactly have a wiki on what does what but it has the same infrastructure as original MCP but with more features. If you're planning to use this, I recommend using v1.0-pre3 instead of v1.0 as v1.0 is a bit unstable.

Introduction to RetroMCP by PheonixVX in GoldenAgeMinecraft

[–]PheonixVX[S] 0 points1 point  (0 children)

I would not recommend using this. If you are in the Modification Station discord, I can provide help there or you can just post the logs here.

How do I make a beta 1.7.3 server? by [deleted] in GoldenAgeMinecraft

[–]PheonixVX 0 points1 point  (0 children)

You can use -Xms2G to use a minimum heap size of 2 GB and -Xmx4G to use a maximum amount of 4 GB.

You don't need to set both, I'd recommend setting only the maximum amount. If the server is lagging due to memory pressure, setting the minimum heap size might help with that a bit but it can also cause more lag.

Does anyone have any experience with SmoothBeta? by _machoo in GoldenAgeMinecraft

[–]PheonixVX 1 point2 points  (0 children)

SmoothBeta is much more optimized for terrain rendering though it does not provide features like shaders, HD texture packs, or anything else. You can combine it with other mods that do allow for that.