Pokecube-Development / Pokecube-Issues-and-Wiki

This is where all issues for the core pokecube mods should go, also this is where the main wiki should be maintained
MIT License
30 stars 24 forks source link

Create a short README teaching developers how to configure, test, and build the mod #761

Open WadsonPontes opened 3 years ago

WadsonPontes commented 3 years ago

Is your feature request related to a problem? Please describe. I can't configure the mod, I don't know which SDK I need, "gradlew genEclipseRuns --refresh-dependencies" and "gradlew eclipse" seems to work, but "run_client_1.launch" and "run_client_2.launch" don't open in Eclipse.

Describe the solution you'd like Create a README containing the necessary SDK and its versions and command and/or steps to be executed to run the mod in Eclipse and create a build.

Describe alternatives you've considered N/A

Additional context N/A

Thutmose commented 3 years ago

This is a wonderful idea, I will see about getting this done, I also need to update the simple addon

Thutmose commented 3 years ago

I will see about getting a clean VM setup, then I can find the minimal instructions set for getting this working, though it looks like some versions may differ in 1.17, I can at least get this started for 1.16

Thutmose commented 3 years ago

It appears something major has changed in the last month or so, the old ways of setting things up no longer work, so I am looking into how to fix this...

Thutmose commented 3 years ago

Looks like something has broken mixin related, it no longer adds the refmap to the jar... This may be a bit more complicated to fix than I initially expected.

As it presently is however, setup and running in eclipse works fine, but the compiled product doesn't work out of the box

WadsonPontes commented 3 years ago

I also managed to compile, generated the files (in build/libs): (1) pokecube-aio-1.16.5-3.12.0.c.jar (2) pokecube-aio-1.16.5-3.12.0.c-deobf.jar (3) pokecube-aio-1.16.5-3.12.0.c-server.jar (4) pokecube-aio-1.16.5-3.12.0.c-sources.jar

I suppose (1) is the release of the mod, but putting it in the mods folder doesn't work and neither does one of the others individually.

Thutmose commented 3 years ago

(1) or (3) are the correct one, however it needs to also have this refmap (the json in the zip, not the zip itself) added to it.

pokecube.refmap.json.zip

This used to be done automatically on compile, it would generate that json file and then package it in, but something seems to have changed on the forge/gradle side, and it no longer does