Unable to create resource: Font


#1

Hello I am getting this error when trying to run the game with the development app on Android / Windows.

WARNING:RESOURCE: Unable to create resource: /main/fonts/score.fontc
WARNING:RESOURCE: Unable to create resource: /main/gui/play.guic
WARNING:RESOURCE: Unable to create resource: /_generated_dbe2ea85.goc
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /_generated_dbe2ea85.goc.
WARNING:RESOURCE: Unable to create resource: /main/main.collectionc
INFO:DLIB: SSDP: Done on address 192.168.1.103

Thanks


#2

There seems to be a problem with the font somehow. What if you start to strip away things from the app, does it eventually run? Start perhaps by removing the score.font from the play.gui and fix any broken references (perhaps by replacing with the system font). Does it work?


#3

It runs normaly with the normal pc defold emulator


#4

You mean when you do “Project->Build”?


#5

yes, and hot reload


#6

Could you please share the project with me (bjorn.ritzl@king.com)?


#7

Are you sure the app om the device has the same version as the editor you are using to connect to device? The (internal) data format for fonts have changed in the last few releases.


#8

Ah, excellent idea there Johan! This could very well be the cause of the problem.


#9

I thought we checked that they are the same version, otherwise you shouldn’t be able to hot reload?
Haven’t verified in a long time though.


#10

I create the project with defold 2.
I have the dmengine.apk 1.2.144 (last)

WARNING:RESOURCE: Unable to create resource: /main/fonts/score.fontc
WARNING:RESOURCE: Unable to create resource: /main/gui/play.guic
WARNING:RESOURCE: Unable to create resource: /_generated_dbe2ea85.goc
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /_generated_dbe2ea85.goc.
WARNING:RESOURCE: Unable to create resource: /main/main.collectionc

help me please :c

thanks c:


#11

Can you share the project with me (bjorn.ritzl@king.com)