Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Level Director X - change the path where levels get their images.
Started by OCG Studios May 04 2018 12:44 AM

5 replies to this topic
corona level director x images path

Best Answer retrofitProductions , 04 May 2018 - 12:58 AM

Hi,

 

Thanks for using LDX.

 

You can't specify a folder per level, but you can specify a sub folder for all your levels by setting 'imagesSubFolder' in config.lua.

Please look at one of the example projects to see how it is setup.

You can still organise your images in sub folders within this folder for example;

images/trees

images/characters

 

You just need to make sure you start with this structure so LDX knows the relative path when you start adding the assets.

 

I hope this helps.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

OCG Studios

[GLOBAL: userInfoPane.html]
OCG Studios
  • Enthusiast

  • 80 posts
  • Corona SDK

Hi,

 

I am looking for a way to change the path the level .Lua files look for images to display in corona.

 

This project will eventually have many images with will require categorisation.

 

Is there a way to let the level.Lua file know in what sub folders to look for the images?

 

Kind regards,

 

Tommie de Jong



[TOPIC: post.html]
#2

retrofitProductions

[GLOBAL: userInfoPane.html]
retrofitProductions
  • Contributor

  • 318 posts
  • Corona SDK

  Best Answer

Hi,

 

Thanks for using LDX.

 

You can't specify a folder per level, but you can specify a sub folder for all your levels by setting 'imagesSubFolder' in config.lua.

Please look at one of the example projects to see how it is setup.

You can still organise your images in sub folders within this folder for example;

images/trees

images/characters

 

You just need to make sure you start with this structure so LDX knows the relative path when you start adding the assets.

 

I hope this helps.



[TOPIC: post.html]
#3

OCG Studios

[GLOBAL: userInfoPane.html]
OCG Studios
  • Enthusiast

  • 80 posts
  • Corona SDK

Thanks for your help!



[TOPIC: post.html]
#4

CesarHernandez

[GLOBAL: userInfoPane.html]
CesarHernandez
  • Enthusiast

  • 80 posts
  • Corona SDK

Dear, good night,

 

I'm having the problem running all the projects.

 

All the time I receive the following message from the simulator:

 

 

 

Attempt to index a boolean value

 

File: lib/LD_LoaderX.lua

Line: 65

 

 

 

 

May 29 12:24:35.527 WARNING: issue found in /Applications/LevelDirectorX/examples/Joints/config.lua: 

May 29 12:24:35.530 WARNING: unrecognized key: settings.LevelDirectorSettings.imagesSubFolder (string)
May 29 12:24:35.531 WARNING: unrecognized key: settings.LevelDirectorSettings.levelsSubFolder (string)
May 29 12:24:35.531 Copyright © 2009-2018  C o r o n a   L a b s   I n c .
                    Version: 3.0.0
                    Build: 2018.3237
May 29 12:24:35.627 Loading project from:   /Applications/LevelDirectorX/examples/Joints
May 29 12:24:35.627 
May 29 12:24:35.627 Project sandbox folder: ~/Library/Application Support/Corona Simulator/Joints-21A4A2273B7D700648513D14CF74F367
                    Platform: SM-G900S / x86_64 / 10.13.4 / Intel Iris OpenGL Engine / 2.1 INTEL-10.32.48 / 2018.3237 / es-ES | ES | es_ES | es
May 29 12:24:35.627 ERROR: Runtime error
                    lib/LD_LoaderX.lua:65: attempt to index a boolean value
                    stack traceback:
                    lib/LD_LoaderX.lua:65: in function 'loadLevel'
                    scene1.lua:25: in function '?'
                    ?: in function 'dispatchEvent'
                    ?: in function 'gotoScene'
                    main.lua:11: in main chunk
May 29 12:24:35.627 
 
 
 

Can you help me?

 

​I have disable the sierra Gatekeeper, but the issue continues.

 

 

Thanks in advance,



[TOPIC: post.html]
#5

retrofitProductions

[GLOBAL: userInfoPane.html]
retrofitProductions
  • Contributor

  • 318 posts
  • Corona SDK

Hi,  I can't reproduce this error, and I even tried downloading the same build of Corona.

Please could you try reinstalling LDX and try running the examples directly from Corona i.e. do not launch them from LDX.

If there are permission issues with MAC OS then these can cause problems when trying to export the levels and therefore give errors.



[TOPIC: post.html]
#6

CesarHernandez

[GLOBAL: userInfoPane.html]
CesarHernandez
  • Enthusiast

  • 80 posts
  • Corona SDK

Dear, thanks for your quick answer.

 

Was a permission problem. If I open directly from the Corona Simulator works perfect.

 

I have uninstalled LDX and install it again and now works fine.

 

Thanks a lot.

 

Regards,




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: corona, level director x, images, path