Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help needed #268

Open
xFr0z3n opened this issue Feb 19, 2024 · 3 comments
Open

Help needed #268

xFr0z3n opened this issue Feb 19, 2024 · 3 comments

Comments

@xFr0z3n
Copy link

xFr0z3n commented Feb 19, 2024

i want to make a minecraft mod and i understand everything except the 3rd point [Ensure your project is under VCS. For example initialise git repository by running git init; git commit --message "initialized repository"] whats VCS what do i need to do, [Run ./gradlew build] just run bat? Moreover i did everything else ran the gradlew.bat and everything was red "build failed with and exception" could not open cp_proj starter\build.gradle , .gradle\caches\6.9.1\scripts\bunchofnumbers , is there perhaps a more extensive guide?

@CreamChatilly
Copy link

Could you provide more information? Like what operating system are you using, windows, Linux or even mac? to be frank this repo don't have much info on how to use it on anything else then Linux. Look up how to use gradlew on your OS.

@ChrisJStone
Copy link

@xFr0z3n with out an error message it's hard to say exactly what caused the error however I have noticed that with the newer versions of the starter and migration packages that are released with this project you have to be using a newer versions of the jdk. If you still want to use jdk 8 then you have to disable the spotless checks in gradle.properties. In regards to VCS that is Version Control System.

@thePalindrome
Copy link

Based on your thought to try running the .bat, I'll assume you're on windows (this should still work fairly well on other platforms, but need adaptation)

Firstly, open the folder in file explorer
Second, shift+right click empty space beneath any files
Third, click the "Open Powershell window here" or "Open Command Prompt Window here"

From there, you can run "git init" to initialize the repo, then the "git commit" part creates a new commit to make sure all the files are in. Note that this would require you have git installed ( https://git-scm.com/download/win )

Alternatively, if you're using the Github app or any other git client, you can simply handle that part from there. The important part is just making sure you have git or any other VCS set up in the repository. From there, follow the instructions, replacing "./gradlew" with "./gradlew.bat" ( the "gradlew" file with no extension is a Shell script file, which won't work by default on windows without additional software)

Lastly, any further build errors may be the result of misconfigured gradle.properties, or Spotless getting snippy about code styling, which you should be able to understand!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants