Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Bug Report: trying to get json files doesnt work (this also affects texture atlases) #316

Open
bopcityfan opened this issue Sep 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@bopcityfan
Copy link
Member

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as deleting the YoshiCrafter29 folder from AppData) before submitting an issue.

If you're using an older version of the engine, check if the bug haven't been already fixed

PS : the "everything goes black while changing state in developer mode bug" is not a bug, it's been designed this way to refresh all bitmaps between states to allow easier modding.

Which target are you using?

windows

What version of the engine are you using (Bottom left of the screen in main menu) ?

2.20b (latest)

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.

using File.getContent (sys.io.File) or Assets.getText (openfl.utils.Assets) to get json files results in an error [lime.utils.Assets] ERROR: There is no TEXT asset with an ID of "(path to json)"

Please describe your issue. Provide extensive detail and images if possible.


using File.getContent (sys.io.File) or Assets.getText (openfl.utils.Assets) to get json files results in an error [lime.utils.Assets] ERROR: There is no TEXT asset with an ID of "(path to json)"

@bopcityfan bopcityfan added the bug Something isn't working label Sep 7, 2022
@bopcityfan
Copy link
Member Author

too lazy to edit it so just to mention, this happens if you use Paths.file too

@YoshiCrafter29
Copy link
Contributor

Assets.getText(Paths.json("path/to/json/without/extension/in/data"));?

@BernardoGP4504
Copy link

File.getContent('path to json')?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants