I'm starting with libGDX and overlap2d, I'm following this tutorial: Runtime Quick Start - Overlap2D setup tutorial. I did everything like the video shows, but when I try to run it, some red lines appear. I don't have any idea about what I could do to solve. Can any one help me?
Here's my console:
Here's my Main class:
Hers my GameStage class:
project.dt:
{"pixelToWorld":3,"originalResolution":{"name":"orig","width":1920,"height":1200},"scenes":[{"sceneName":"MainScene","physicsPropertiesVO":{}}]}
MainScene.dt:
{"sceneName":"MainScene","composite":{"sImages":[{"uniqueId":3,"tags":[],"x":-7.666664,"y":-13,"originX":85.333336,"originY":85.333336,"layerName":"Default","imageName":"chao"},{"uniqueId":4,"tags":[],"x":159.33334,"y":-10.333336,"originX":85.333336,"originY":85.333336,"zIndex":1,"layerName":"Default","imageName":"chao"},{"uniqueId":5,"tags":[],"x":-7.3333282,"y":157.66666,"originX":85.333336,"originY":85.333336,"zIndex":2,"layerName":"Default","imageName":"chao"},{"uniqueId":6,"tags":[],"x":159.33333,"y":158.66667,"originX":85.333336,"originY":85.333336,"zIndex":3,"layerName":"Default","imageName":"chao"}],"layers":[{"layerName":"Default","isVisible":true}]},"lightSystemEnabled":true,"ambientColor":[0,0,0,1],"physicsPropertiesVO":{}}
Does anyone have any idea how can I solve it?
Thank you
The thing is that method loadScene(MainScene.dt) is looking for a pixelToWorld field but there is no pixelToWorld in your MainScene.dt file.
Possible reason may be Overlap2d Editor and overlap2d-runtime version incompatibility.
Related
I can't seem to get my debug configuration to accept the main class i have chosen.
According to the IDE everything seems to be ok and running correctly. This is from the Hello World template that comes out the box.
But i have another application where my specified main class is in Blue.
I was wondering if anybody knows what the issue is? Or even if it is an issue?
Cheers all.
Intellij doesn't seem to like the default package being the source of the main class. So i created a package and referenced from it.
I'm currently learning Java with the help of IntelliJ (2016.1.3 with jdk1.8.0_92) and encountered following problem with the program:
Everytime I want to create a "Command Line App" via the template, IntelliJ makes a new Main File and not a Main.java class.
Here is a Screnshot of the problem. I've already searched the web and tried to reinstall IntelliJ and the JDK, but that won't fix it...
My current workaround is to create a new Class "Main1.java" and code somewhere else to have the benefit of syntax highlighting. It would be great if you could help me to code directly in the created "Main".
Thanks in advance!
Actually, I tried it and it works for me.
Try creating a project without a template and create a new Main class yourself, you will learn more from that.
Also you could contact the JetBrains support: https://intellij-support.jetbrains.com/hc/en-us
I've experienced a really weird behaviour when using Netbeans today. Firstly, I get Error: Could not find or load main class <name of my class> at random. I know what this means but I don't change anything, it appears and disappears randomly. Secondly, when I modify the code e.g. adding a line System.out.println("x"); that I am 100% sure should be executed, Netbeans seems to overlook that modification and run the old version of the code (before System.out.println("x"); was added) so as a result it doesn't get printed.
Both errors appear at random and last for some time, then disappear and appear again and so on. I've been trying to fix them for 2 hours but to no avail. They make me unable to do any work with Netbeans.
EDIT: Reinstalling Netbeans and Java didn't help. When I load the same project in Eclipse, everything works correctly.
Make sure your class has a public qualifier. Also the name of the file and the class containing the main method should be same.
I am new to libgdx and i followed everything that the tutorial says. I have also added
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=#user.dir
to my eclipse.ini file. The error I get is(cannot post image becoz reputation is less than 10) :
null
see error log for details
I have eclipse version 4.1(Juno)
Please Help. I am very exited to develop 2d games. Any help would be appreciated.
Thanks in advance.
I need your help to resolve a class problem. When I run my virtual device, and when I click on button to call a method, that doesn't work.
I tryed with different libraries like itext and justformPDF (last one is java libraries).
I indicated it in build path but I have a mistake ... The class is not found :(
Thanks for your help :)
You can see the logcat here : www.aclebpokerclub.com/Application/LogCat.png