This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

Mesh Error : File NOT FOUND

Mesh Error : File NOT FOUND

Postby howler » 15 Apr 2014, 12:02

v0.7.5
I've created a terrain with a road and imported (via right-click, import model) a bridge to make the racetrack a figure-8. After saving the scene and reloading it I get an error
"File NOT FOUND :: projects_bridge_3ds.mesh. Using default Emitter mesh instead"
The mesh file it's looking for is in the original mesh location which isn't the directory the scene was saved into. I've tried moving the mesh into the scene's directory and reloading. When that didn't work I tried doing a "Refresh Resources" and reloading the scene - I still get the same error.
I had a look on the wiki page about importing models and couldn't see anywhere that I have to move the mesh file to any specific directory, so I'm not sure why it can't find the model.
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 15 Apr 2014, 12:08

have you placed the mesh, materials and textures inside the asset library or your project folder.
This is essential inside skyline.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby howler » 15 Apr 2014, 12:44

If, by my project folder, you mean the folder where my scene is, then yes. If "project folder" means something else, then no. :D
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 15 Apr 2014, 13:03

Skyline uses the Asset Library ($(SkylineSDK)/Asset Library) where general assets can be stored, this is also where your main scenes are stored.
Skyline when booting auto scans the asset library to find any assets that can be used and loads them into resources.
So your mesh should be picked up if stored in this folder.

if you post the path to which the asset is stored; that might help narrow down the problem. :D

But if you are making a game and don't want to use the asset library as all assets are for your game only, then skyline can create a project folder which can be stored anywhere on your hard drives and skyline will load all assets found within.
This can be created by clicking the "File->New project" or clicking the icon on the main toolbar.
Documents: http://www.chi-ad.com/DokuWiki/doku.php/english_manual:gs_firststeps4 - toolbar may be out of date but icons are the same.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 15 Apr 2014, 13:06

oh i should also note to all users, that the resource system will be changing in the next release to be more memory efficient and have faster skyline loading times.
Plus you can work from more folders than the asset library ;)
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby howler » 15 Apr 2014, 13:26

Well my model wasn't in my asset library so that's why that didn't work.
I just created a new project and selected a folder I already had created so I've ended up with F:\projects\racinggame\racinggame. I'm not worried about the duplication, I'll create a proper project directory when I get all this project vs scene stuff figured out.
I've moved my scene files from F:\projects\racinggame (they were in there before I created a project in there) into the now created F:\projects\racinggame\racinggame\scenes directory, and the .material and .mesh file into the F:\projects\racinggame\racinggame\Models directory.

Incidently, moving the scene files while Skyline has the scene open then trying to refresh your resources crashes the editor. The crash is understandable when I move all its files out from underneath it - but some sort of "disk error" warning would be more user friendly.

It still wasn't finding the mesh files, so it occurred to me that maybe I have to explicitly load the project (I assumed it was going to automatically open the last opened project). I open the project, then open the scene (why doesn't the open scene file browser default to the base directory of the project I've just opened? Can that be a feature request please?) and the editor crashes. Presumably somewhere in the scene files it's stored the location on the filesystem where the scene was origially created and doesn't like it if you move the scene into a new project directory structure?
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 15 Apr 2014, 14:12

i got your email to support and watched the video.

Refresh Resources is already part of our job list for the new resource system as we found out it also crashes.
So not to worry on this bug, it will hopefully be fixed for the next release :P

I will add a text line into the new project dialog to show the current project path that will be created, this should help eliminate any path issues.

When you open a scene from within your project using the "open scene" button, the project is automatically loaded.
Perhaps the reason why the meshes were not found is because you created a project which auto loads the project in(skyline also stops a project being loaded in again if it is already loaded), then you placed the meshes into the folder and it couldn't find them.
If you close skyline down and reopen. Then load the scene in the project for the first time without loading the project first and all assets should be located and loaded in fine.
i will rework the new project workflow for the new resource system in the next release :D

why doesn't the open scene file browser default to the base directory of the project I've just opened?

This is already supposed to happen, i checked one of my projects and it seems to work.
Steps:
> Open project,
> Open scene - opens dialog to project/scenes folder.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 15 Apr 2014, 14:20

I just created a new project and selected a folder I already had created so I've ended up with F:\projects\racinggame\racinggame. I'm not worried about the duplication, I'll create a proper project directory when I get all this project vs scene stuff figured out.

There is now a path at the bottom of the project dialog displaying the end output folder. :D
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby howler » 16 Apr 2014, 11:43

Your scene suggestion didn't work - I got another crash.

So to recap what I did
1) Had a working scene
2) Made a project
3) Moved the working scene into the scene folder of the new project
4) Moved the related mesh and material file into the Models subdirectory of the project
5) Started Skyline
6) Open the scene (not the project)
7) Crash during loading
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Mesh Error : File NOT FOUND

Postby SolarPortal » 16 Apr 2014, 13:06

does the skyline.log say anything about this
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Mesh Error : File NOT FOUND

Postby howler » 16 Apr 2014, 13:26

I've just deleted the log, started the editor and reproduced the crash. The resulting log file I've emailed to you.
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Mesh Error : File NOT FOUND

Postby howler » 17 Apr 2014, 13:14

In case anyone else hits this problem, it was caused by the double "racinggame" directory name in the path.
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron