Stromner / ACE-TitanQuest

Titan Quest Character Editor
Apache License 2.0
4 stars 6 forks source link

Cant execute #21

Closed lprawetz closed 3 years ago

lprawetz commented 4 years ago

Hey man, nice project! I'm new to github so i'm not sure if this is the right way to contact you. I cant get TQCE executed, could you point me in the right direction?

grasmanek94 commented 3 years ago

I'm also wondering how I would run this?

I did manage to figure out I need JDK version 13m set JAVA_HOME to JDK 13 path. Then

mvnw compile
mvnw package

But when I try to run the jar file, nothing happens. When I try with command line:

C:\Users\Rafal\.m2\repository\tq\character\editor\Application\1.0-SNAPSHOT>java Application-1.0-SNAPSHOT.jar
Error: Could not find or load main class Application-1.0-SNAPSHOT.jar
Caused by: java.lang.ClassNotFoundException: Application-1.0-SNAPSHOT.jar

C:\Users\Rafal\.m2\repository\tq\character\editor\Application\1.0-SNAPSHOT>java -jar Application-1.0-SNAPSHOT.jar
no main manifest attribute, in Application-1.0-SNAPSHOT.jar

C:\Users\Rafal\.m2\repository\tq\character\editor\Application\1.0-SNAPSHOT>
periodic commented 3 years ago

I just ran the app with roughly the following.

cd Application
mvn package
mvn exec:java -D exec.mainClass="tq.character.editor.TqCharacterEditor"

I was able to browse to the save file and open it, though the skills tab was blank, which is what I was hoping to reset.

Stromner commented 3 years ago

Hey! Incredibly sorry that I missed this issue, had notifications for github turned off and haven't worked on it in a while. I haven't released anything that can be executed stand-alone as I've been running it from inside my IDE during development. @periodic mentioned how you can execute it as a workaround but it does require Maven setup locally. I will try to release and update the documentation later today so you don't have to use Maven.

@periodic Yeah, sorry my build doesn't have support for that yet. I have it planned whenever I get more free time again. Check out https://github.com/epinter/tqrespec for a full character editor.

Stromner commented 3 years ago

@lprawetz better late than never I guess, but I've created an executable jar so you can at least start the application. Start it with "java -jar Application-1.0-SNAPSHOT-exec"

https://github.com/Stromner/TQCharacterEditor/releases

I will close the issue, please re-open if you still can't start it.