MachineMuse / MachineMusePowersuits

Minecraft mod, take 2
236 stars 105 forks source link

Cant compile project locally #778

Closed compilerqq closed 7 years ago

compilerqq commented 7 years ago

What libraries/dependencies does this project have that aren't in source control?

I tried building it locally from the gradle script but it blew up with errors about forestry, mekanism and other api's.

lehjr commented 7 years ago

If you find it asking for certain libraries, then supply them. Dependencies are subject to change without notice, so what compiles today may not compile tomorrow.

lehjr commented 7 years ago

this is my current list in /libs (note not all are needed, some are for one experiment or another) :

lehjr commented 7 years ago

The full IC2 jar can be used, but it often crashes (probably 1 out of every 8 times), even with CraftTweaker removed. Forestry also has issues.

eyeonus commented 7 years ago

Okay, how do I run this thing? For some reason powersuits doesn't show up at all in the mod list. whereismysupersuit no mmps

lehjr commented 7 years ago

How exactly did you set it up in the first place?

lehjr commented 7 years ago

To set it up, use

gradlew setupDecompWorkspace --refresh-dependencies

then

gradlew eclipse

also, when searching in JEI, prefix your search with @ for mods

eyeonus commented 7 years ago

Github download. Extract the archive to my workspace. Run "gradlew setupdevworkspace eclipse". Run eclipse Import Gradle Project. Add the needed jars to mods directory. Run Minecraft using the MachineMusePowersuits-1.10.2-Java_Client Crash from errors from the other mods. Move the jars to a "lib" folder and add to the Build Path because tossing them in the mods folder wasn't working. Run Minecraft using the MachineMusePowersuits-1.10.2-Java_Client Take screenshots.

lehjr commented 7 years ago

not sure, I don't use eclipse, but I think you needed to run gradlew eclipse I know you do with Intellij

eyeonus commented 7 years ago

Yes, I know. "@power" shows nothing at all, and "power" still would've shown the power fist, power armors, etc.

eyeonus commented 7 years ago

According to the three different tutorials I looked at, I used the right command for setting it up in eclipse.

As you can see from the first screenshot, the source is showing. Eclipse knows it's there.

MINECRAFT doesn't.

lehjr commented 7 years ago

yes, you're right. However, the project isn't setup if the mod isn't showing. This is literally all I do to set the mod up for development (note I use intellij):

gradlew setupDecompWorkspace --refresh-dependencies

then

gradlew idea
lehjr commented 7 years ago

then open the project rather than importing it

eyeonus commented 7 years ago

Just to make sure, I did a test. gradlew setupdevworkspace eclipse does the exact same thing as gradlew setupDecompWorkspace --refresh-dependencies gradlew eclipse except as one command, not two.

I'm trying again starting with a git clone instead of a download.

eyeonus commented 7 years ago

No. I'm sure it's not anything to do with the repository. The mod shows up just fine in the project. All the source is there. It's just not showing up in Minecraft.

So, again, how do you run it?

lehjr commented 7 years ago

again, I do not use eclipse

eyeonus commented 7 years ago

What are the run conditions you use when you run it from within IntelliJ?

Or, more simply, how do you run it?

lehjr commented 7 years ago

the mod can show up as files, but that does not mean the project is set up correctly. You can have source files not associated with the project.

lehjr commented 7 years ago

select run from the drop down menu, that's pretty much it

lehjr commented 7 years ago

If you import the project as a gradle project rather than opening it as an eclipse or idea project, your project files will likely get overwritten

eyeonus commented 7 years ago

I assure you, that is not the case. src main java

lehjr commented 7 years ago

"project files" being the IDE settings files

eyeonus commented 7 years ago

No, it asked me if I wanted to keep or overwrite.

lehjr commented 7 years ago

check the logs, if the mod does not show up in the logs, then the project is not set up correctly. It's really that simple. It doesn't matter what files you can open if the IDE is not seeing them as source files in the source directory.

lehjr commented 7 years ago

I set the mod up all the time, especially when I want to test something sketchy and I've never had the issue you are having.

eyeonus commented 7 years ago

Minecraft isn't detecting it because an mcmod.info isn't getting generated.

Apparently I need to build it first, which is what I thought I was doing when I told the thing to run....

eyeonus commented 7 years ago

How many times do I have to tell you I know for a fact that the IDE is seeing the source files as source files? I even showed you a damned screenshot!

lehjr commented 7 years ago

and how many times do I have to tell you that you can have source files in a project not associated with the project. And how many times do I have to tell you that if the mod isn't visible, the project is not set up correctly.

lehjr commented 7 years ago

I'm done with this. Either you'll figure it out or you wont. But it won't be with any further help from me