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

Project Setup Error #89

Closed
NazarDoeH opened this issue Dec 8, 2020 · 8 comments
Closed

Project Setup Error #89

NazarDoeH opened this issue Dec 8, 2020 · 8 comments

Comments

@NazarDoeH
Copy link

HI I want to modify the game

but i have a problem running it
one of the problems is the code for android (which I commented on)
and the other is this:

error: YioGdxGame is not abstract and does not override abstract method scrolled(float,float) in InputProcessor
public class YioGdxGame extends ApplicationAdapter implements InputProcessor {
^

error: method does not override or implement a method from a supertype
@OverRide
^

@yiotro
Copy link
Owner

yiotro commented Dec 9, 2020

Hi.

Please provide a screenshot of the problem, maybe I will be able to help.

Also, were you able to successfully compile sample libgdx project? (the one generated by gdx setup tool)

@NazarDoeH
Copy link
Author

image
image
2)yes it compiled and launched without problems.
Hi ))

@Arkanosis
Copy link

Arkanosis commented Dec 9, 2020

It looks like your version of libgdx is more recent than the one used by @yiotro . The prototype of scrolled has changed in libgdx/libgdx@432df1b#diff-b30936e4220582acb1c05b729fb20cbf1d4c593dea354b6f97d539f942d9fc7e (that's between 1.9.11 and 1.9.12).
The backward-compatibility breaking nature of this change has been acknowledged in libgdx/libgdx#6154 .

@NazarDoeH
Copy link
Author

hmmm and how to change the version?

@subchannel13
Copy link
Contributor

It should be an entry in core/core.iml but I see a hardcoded path to libgdx JAR there. Chances are you don't have an exact path on your machine, did compilation complain before?

And now I know dev's first name :)

@NazarDoeH
Copy link
Author

NazarDoeH commented Dec 10, 2020

did compilation complain before?
Blank ̶p̶̶̶r̶̶̶o̶̶̶j̶̶̶e̶̶̶c̶̶̶t̶̶̶ ̶̶̶s̶̶̶t̶̶̶a̶̶̶r̶̶̶t̶̶̶e̶̶̶d̶̶̶ ̶̶̶w̶̶̶i̶̶̶t̶̶̶h̶̶̶o̶̶̶u̶̶̶t̶̶̶ ̶̶̶p̶̶̶r̶̶̶o̶̶̶b̶̶̶l̶̶̶e̶̶̶m̶̶̶s̶
PS. There is a couple of warnings
dev's first name?

@subchannel13
Copy link
Contributor

When you cloned or downloaded this game source code and tried to compile it, was there a complaint about missing libgdx JAR file? I don't understand Gradle scripts very well (or almost at all) but only place where I see libgdx referenced is in core\core.iml file, with the absolute path on dev's machine, containing dev's user name.

@NazarDoeH
Copy link
Author

NazarDoeH commented Dec 12, 2020

It works.
But I installed jdk 13 and gdx 1.9.11.
Of course there are problems in the code but I just commented on them.
PS. to repair textures just run AtlasTextureCreator.jar which is in the assets\field_elements folder.
image

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