UnderwaterApps / overlap2d

Overlap2D Game development toolkit for UI and Level design
Other
780 stars 224 forks source link

GdxRuntimeException: File not found: project.dt (Internal) #384

Open stevedupras opened 8 years ago

stevedupras commented 8 years ago

Hello how are you this eve? i am having an issue that i cant seem to find a solution for regarding the following error: GdxRuntimeException: File not found: project.dt (Internal) i am trying to simply load a scene for the (http://overlap2d.com/making-physics-based-side-scroller-project-setup-part-1/) tutorial i am doing and i cant seem to find a solution for this error i have done all the steps perfect and have exported to the assets in the core project as i have only desktop and html selected for the libGDX build... here's my code

`package com.newtest.newtestoverlap;

import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20;

public class NewTestOverlap extends ApplicationAdapter {

      private GameStage stage;

      @Override
      public void create()
      {

                stage = new GameStage();
      }

      @Override
      public void render()
      {
                Gdx.gl.glClearColor(0, 0, 0, 1);
                Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

                stage.act();
                stage.draw();

      }

} ` and the gamestage class:

`package com.newtest.newtestoverlap;

import com.badlogic.gdx.Gdx; import com.badlogic.gdx.scenes.scene2d.Stage; import com.uwsoft.editor.renderer.SceneLoader;

/*

` and the desktop launcher i added simply config.width = 1200; config.height = 800;

any ideas???

stevedupras commented 8 years ago

and here is the picture of assets folder! :)

open2dissue

azakhary commented 8 years ago

Where do you guys keep finding this links to OLD documentation for OLD deprecated runtime? :)

You need to take a look at new tutorial series: http://overlap2d.com/runtimes-documentation/ (Scroll down for tutorials)

Part 1, starts here: https://www.youtube.com/watch?v=bhvHm2sM0qo

You need to make sure you are using Editor version 0.1.2 And that you are using runtime version 0.1.2-SNAPSHOT

azakhary commented 8 years ago

Also, check out this: https://github.com/UnderwaterApps/overlap2d-runtime-libgdx/wiki

stevedupras commented 8 years ago

hey i tried to follow the tutorial link that you gave me but i am now having a different issue but still not working... this is what im running: ubuntu 14.04 InteliJ Idea IDE 2016.1.1 Overlap2D Public Alpha v0.1.2 and using runtime 0.1.2-SNAPSHOT runtimesnapshot

This is whats happening: I have followed the tutorial but when he gets to time point (approx 9:40) and uses the sceneLoader.getEngine().update(Gdx.graphics.getDeltaTime()); command i cannot find this command!!... can you help with this issue thank you:) Steve overlap2dissue

azakhary commented 8 years ago

Is there any chance you were using previously old runtime versoin and just recently changed to snapshot? sometimes gradle keeps caches. Try clearing your gradle cache.

stevedupras commented 8 years ago

im really not sure how that is done?? i can always google it... but by chance do you know where on the itelliJ IDEA IDE it is located??

stevedupras commented 8 years ago

ohh i found it

stevedupras commented 8 years ago

ok so i didnt ever realize that gradle needed refershing so thats good to know and immediatly after the refresh it now shows the .getEngine(); :) thank you for your help!! so simple and yet i struggle with it lol ok continuing on with the tutuorial Steve

stevedupras commented 8 years ago

ok well after using the code it still has the same issue as in the beginning where it cannot find the project.dt and it is clearly in the assets folder:) as per the picture any ideas what to check or try next.

overlap2dissue3

azakhary commented 8 years ago

no worries, I have this frustration each time I forget :)))

azakhary commented 8 years ago

hmmmm this is really weird about .dt file o_O Can you try and see if simple Gdx.files.internal("project.dt") works and reads it? and also go in depth with debug stack trace to see where it fails, put a breakpoint in it and test why it happens.

stevedupras commented 8 years ago

hello yes i know it is very strange about the .dt file i still cant seem to figure it out i did some dubuggin for my first time... not sure what i found out except that i thinlk the simple filehandle that i put the project.dt in i think it read as shown in the variable at bottom of the one picture but once the project hits the load"MainScene" line it fail and i can see it says file not found project.dt..??? overlapdebugtrace

overlapprojectnotfound

i also ran an evaluate expression command with the Gdx.files.internal("project.dt"); and it looked like it read it fine...???? overlapevaluateexpresion

azakhary commented 8 years ago

You can debug ResourceManager:346 in order to see exactly what path it tries to load, compared to your example that seems to "read it fine"

stevedupras commented 8 years ago

well i put a breakpoint on the resourceManager:346 and this is what ia see newnew

stevedupras commented 8 years ago

well i did "step into" commands starting from ResourceManager:346 untill the program exits and it tries to locate the project.dt file but it says file not found and then went into a throw (RuntimeException)t; or throw new GdxRuntimeException(t); before terminating... any ideas??? i completely re-installed and re-downloaded both overlap2D and intelliJ IDEA and libGDX just incase these could have been the cause in some way but everything is exactly the same just cannot locate the project.dt file. i really like this application overlap2D but i havent yet seen it work and im really hoping it will as im sure it will be an asset for my game studio:) runtimeexception

any further help on this would be greatly appreciated:) Steve

azakhary commented 8 years ago

Currently I have no idea what it can be, But maybe you can zip this test project and send it to me so I can test on my machine? I am sure we'll figure it out.

stevedupras commented 8 years ago

testfiles.zip ok i put the libGDX project in a zip called newtest.zip and the overlap2D project in the zip called overlap2d.zip thanks for the help

azakhary commented 8 years ago

worked perfectly for me, here is the screen: scr1

What kind of OS are you running?

azakhary commented 8 years ago

maybe it's some kind of weird uppercase/lower case or file permission or something like that issue?

stevedupras commented 8 years ago

i am running ubuntu 14.04.... hummmm so looks like something on my end is messing it up......ok

i will look into the case and permissions but as far as i know everything should be ok in those respects, as i am quite fluent with my linux:)

it has been a few years since i have done a fresh start!! i think tomorrow i will do a complete re-install of everything including the OS and maybe along the way the issue will get resolved!

i will keep you posted as to the outcome!

happy to see the code works :)

Steve

also what OS are you running?

azakhary commented 8 years ago

Thanks Steve! keep me posted, this is important to figure out, could be affecting others! I am using osX or Windows, and unfortunately there is no linux machine around for me to test this. I found linux to be counter productive as there is always something that goes wrong. But I know that others did use linux and things worked fine for them too.

stevedupras commented 8 years ago

ok good to know i will setup a dual boot win/linux to allow me for more testing for instances like this... :)

stevedupras commented 8 years ago

just a preliminary update i went and bought a mac today and loaded everything up on it, rebuilt the project on overlap2D and re-exported it to the assets folder, i then rebuilt the project in the intelliJ IDEA ide and got the same response as on the linux file not found project.dt..... I also rebuilt my main machine and did the dual boot linux and win10 so i will laod it all up on the windows and see the response and let you know:) img_0141

stevedupras commented 8 years ago

ok well I have some unusual progress and by that I mean that I have made NONE! except to find out that all OS are acting the exact same even if I build an entirely new project with different graphics and different locations it always goes back to "file not found: project.dt"

really not sure where to go from here but I am only getting more frustrated trying to use this overlap2d, as it seems all my other applications function perfectly on all OS and have no issues loading, compailing and running any of my other games I have made on the same ide and libgdx but without the use of overlap2d.

I would really like to use it but I am unable to get anything to work.......

here is the shots of it not working in windows 10 also to mention that all my OS were freshly installed and fully updated prior to installing and testing this issue!! img_0165

img_0164

thanks in advance for your help

stevedupras commented 8 years ago

hey azakhary i have been doing some more test probing and have found a small issue but somehow i am unable to reproduce this bug but i will describe it anyways as to help this current problem because i think they might be related.

i created i new project while testing the current issue and i loaded it up in intelliJ with no overlap2d exports as of yet. i wanted to see the base badlogix logo show before i imported just to be sure that everything was working prior to importing the overlap2d files. when i ran the program it gave me a file not found badlogix.png!! and couldnt show the program as it had the same file not found error!!???

this seem to be the same error as the project.dt file not found the only problem was when i ran the program again to reproduce the error.... it somehow corrected the problem because the program ran correctly and showed the badlogix logo~!!!!.....

not sure really how this helps but maybe for you with your knowledge of these applications it will light up a light bulb :) lol

thanks im continuing to test different ideas but i am running out of fresh ones and fast! lol

Steve

azakhary commented 8 years ago

I am sorry for not replying, it's not that I forgot, I just, have no idea, what else to try :D This is seriously wicked.

stevedupras commented 8 years ago

its ok! i completely understand, i am lost for a solution as well! it doesnt seem to make sense that it faults on all OS's. well i will keep you posted and if you come up with any let me know. i will try an wipe and reinstall again and will let you know:)

Deepscorn commented 8 years ago

Maybe non-ASCI symbols in the path? Or permissions?

GeruGersten commented 7 years ago

Try to set the working directory from your DesktopLauncher in IntelliJ to your assets folder. image

jabinespbi commented 7 years ago

Hi. I think we have the same problem. I have found the solution from this thread:

To summarize. Im using eclipse. I EXcluded the android project. Go to Run => Run Configurations.. => choose DesktopLauncher, Arguments Tab => Working Directory => Others then browse to yourproject-core/assets and click Apply => Run

And voila! i ran it.