Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource was not pre cached for the resource (all tiles turn black) #97

Closed
ghost opened this issue Sep 11, 2018 · 7 comments
Closed

Resource was not pre cached for the resource (all tiles turn black) #97

ghost opened this issue Sep 11, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2018

Plugin version
2.2
godot: 3.1

Issue description
when re-importing a .tmx i get:

ERROR: Resource was not pre cached for the resource section, bug?
   At: core\io\resource_format_binary.cpp:1507

works fine on 3.0.6 tho, hmm

@shinaka
Copy link
Contributor

shinaka commented Sep 13, 2018

Out of curiosity, would you happen to be testing this on a copy of your project? I had the same issue with the importer and 3.1, and it turned out to be because the tmx was referencing images in my original project folder, and thus were outside the loaded project's resource root. Fixing that made the problem go away.

@ghost
Copy link
Author

ghost commented Sep 13, 2018

Out of curiosity, would you happen to be testing this on a copy of your project? I had the same issue with the importer and 3.1, and it turned out to be because the tmx was referencing images in my original project folder, and thus were outside the loaded project's resource root. Fixing that made the problem go away.

yeah, actually i am. how u know lol

i made a backup of 3.0 cuz last time 3.1 saved files weird (tscn) and had to edit stuff to reopen. so i just made a backup just in case. should i delete .import and reimport? i checked the .tmx still points to the same texture location tho.. hmm

@vnen
Copy link
Owner

vnen commented Sep 13, 2018

Might be a bug in Godot.

@ghost
Copy link
Author

ghost commented Sep 18, 2018

@vnen and @shinaka i tried to replicate this in a fresh new project. i can't. i'm betting it's a rare edge case with my current project (pretty large?)

i have a feeling there might just be a lingering file laying around causing this. or the directory to the tileset texture is not correct. is it possible to delete entire godot cache and .import or something? i bet that might help

i'll fiddle around with this today and report back if i find anything, this has really got me puzzle'd

but jeez, everytime i use tiled, i don't want to go back to the built in editor lol

@ghost
Copy link
Author

ghost commented Sep 18, 2018

ok. after some testing, i think the problem is related to setting your tileset's texture in tiled, to a texture that is OUTSIDE of your local game folder. that's what I did last time, and it worked fine but ran into this issue later.

edit: if anyone comes across this issue: i recommend setting the tileset's texture to a texture that is local to your game directory.

so, vnen feel free to close if you want, if it happens again, i'll remake a issue or post here.

@vnen
Copy link
Owner

vnen commented Sep 18, 2018

Sure, thanks for testing it out. I still think this an issue in how Godot handles resources. If you are copying your project somewhere else, deleting the .import folder might avoid this.

@vnen vnen closed this as completed Sep 18, 2018
@Atermnus
Copy link

Atermnus commented Aug 9, 2023

Happened to me today in 4.1.

Cannot replicate, seems to happen at random.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants