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

Does not build #5

Open
benckx opened this issue Apr 17, 2020 · 6 comments
Open

Does not build #5

benckx opened this issue Apr 17, 2020 · 6 comments

Comments

@benckx
Copy link

benckx commented Apr 17, 2020

➜  litiengine-gurk-nukem-0.0.2 ./gradlew clean build
Downloading https://services.gradle.org/distributions/gradle-5.0-bin.zip
.................................................................................
Unzipping /home/benoit/.gradle/wrapper/dists/gradle-5.0-bin/pu5208521seraqlersebvqk/gradle-5.0-bin.zip to /home/benoit/.gradle/wrapper/dists/gradle-5.0-bin/pu5208521seraqlersebvqk
Set executable permissions for: /home/benoit/.gradle/wrapper/dists/gradle-5.0-bin/pu5208521seraqlersebvqk/gradle-5.0/bin/gradle

Welcome to Gradle 5.0!

Here are the highlights of this release:
 - Kotlin DSL 1.0
 - Task timeouts
 - Dependency alignment aka BOM support
 - Interactive `gradle init`

For more details see https://docs.gradle.org/5.0/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':distTar'.
> Could not resolve all task dependencies for configuration ':runtimeClasspath'.
   > Could not resolve project :litiengine.
     Required by:
         project :
      > Unable to find a matching configuration of project :litiengine: None of the consumable configurations have attributes.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 14s
@AZ-0
Copy link

AZ-0 commented Apr 17, 2020

Duplicate already solved issue #4 😉

@benckx
Copy link
Author

benckx commented Apr 18, 2020

Now I got this one. I'll have a look.

➜  litiengine-gurk-nukem-0.0.2 ./gradlew clean build 

> Task :compileJava FAILED
/home/benoit/Tuto/litiengine-gurk-nukem-0.0.2/src/com/litiengine/gurknukem/Player.java:15: error: cannot find symbol
import de.gurkenlabs.litiengine.physics.CollisionType;
                                       ^
  symbol:   class CollisionType
  location: package de.gurkenlabs.litiengine.physics
/home/benoit/Tuto/litiengine-gurk-nukem-0.0.2/src/com/litiengine/gurknukem/abilities/Jump.java:31: error: cannot find symbol
      super(ability, ability.getAttributes().getValue().getCurrentValue().intValue(), EffectTarget.EXECUTINGENTITY);
                                            ^
  symbol:   method getValue()
  location: class AbilityAttributes
/home/benoit/Tuto/litiengine-gurk-nukem-0.0.2/src/com/litiengine/gurknukem/Player.java:84: error: cannot find symbol
    return Game.physics().collides(groundCheck, CollisionType.STATIC);
                                                ^
  symbol:   variable CollisionType
  location: class Player
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
2 actionable tasks: 2 executed

@benckx
Copy link
Author

benckx commented Apr 18, 2020

  • CollisionType has been renamed to Collision
  • ability.getAttributes().getValue().getCurrentValue().intValue() must be replaced by ability.getAttributes().value().get()

@benckx
Copy link
Author

benckx commented Apr 18, 2020

It works for the version found at https://codeload.github.com/gurkenlabs/litiengine-gurk-nukem/zip/v0.0.2, but the master branch here has other issues.

@benckx
Copy link
Author

benckx commented Apr 18, 2020

I was able to find a few fixes for the master branch here, but it looks like the map rendering API is too different and I can not find what is what:
https://github.com/benckx/litiengine-gurk-nukem/commit/3356caf380d8c9d3011de081adaef9c3ea21a43f

It would be nice if this sample project could be compiled independently from the current local implementation of the engine.

@AZ-0
Copy link

AZ-0 commented Apr 19, 2020

I don't think you should compile from the master branch but from the latest stable version instead.

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

2 participants