Error: Could not save Resource Listing

YellowWolf

  • Posts: 16
I got this when I tried to make a game. Someone know how to solve it?
Signature :S

Epic428

  • Posts: 1118
Unfortunately, I am not sure what causes this, however I have been able to consistently produce it. I believe it is somehow related to a Font Fix that was added right before launch. But I have reported this.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
Please attach your logs and tell us exactly what you were doing before this happened. Did you download something from Forge?

Epic428

  • Posts: 1118
Olivia on chat had this error too. I asked her to post her logs here to this thread, but it appears she has not done so yet.

She did tell me though that she was trying to change the color of a font currently used in her game, and upon doing so, when she saved she got the error and it wouldn't save.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
It would help to know how that font was obtained, and if it came off Forge, which font that was.

YellowWolf

  • Posts: 16
It's OK now, I acctually just typed in "Please do not glitch or error" in the description box. And it worked, surprisingly. Stencyl seems well-raised and awnsers when you say "please" xD
Signature :S

Epic428

  • Posts: 1118
Jon, I can reproduce this consistently. If I create a brand new font. Doesn't matter what I do to it, or what font I use. But if I create a brand new one, save the game, and then make an alteration to that font, upon trying to save again I receive the error. Every single time.

Again.

Create new font - can be anything with any setting.
Save game.
(maybe close game)
Change font.
Save game.
Receive error - font also does not save.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
Jon, I can reproduce this consistently. If I create a brand new font. Doesn't matter what I do to it, or what font I use. But if I create a brand new one, save the game, and then make an alteration to that font, upon trying to save again I receive the error. Every single time.

Again.

Create new font - can be anything with any setting.
Save game.
(maybe close game)
Change font.
Save game.
Receive error - font also does not save.

Can't reproduce, whether or not I close the game in the middle.

Epic428

  • Posts: 1118
Interesting. When I close the game or resource and try it. I cannot save.

Here is the logs of a test game I made, which I will be uploading to forge called Resource Listing Error:

Code: [Select]
[LOG] Activated: Welcome Center
[LOG] CREATING A BLANK GAME
[LOG] Saving a new game.
[LOG] Save in place.
[LOG] Writing out local resources.
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Saving block favorites.
[LOG] Write String out as file to: games/Resource Listing Error/favorites.xml
[LOG] Write String out as file to: prefs/favorites.xml
[LOG] Done writing game.
[ERR] Could not delete file: C:\Users\James\.stencylworks
[LOG] Loading attribute into tree: Players
[LOG] Loading attribute into tree: Tiles
[LOG] Loading attribute into tree: Doodads
[LOG] Loading attribute into tree: Actors
[LOG] Loading attribute into tree: Regions
[LOG] Activated: Game Center
[LOG] Took 339ms
[LOG] Loading Closed Resource: Test Font
[LOG] Activated: Test Font
[LOG] Open Took 243ms
[LOG] Total Took 277ms
[LOG] Action: Save Game
[LOG] Save in place.
[LOG] Writing out local resources.
[LOG] Marking as written to disk: Test Font
[LOG] Removing resource from active documents.
[LOG] true
[LOG] Copy file from: C:\Users\James\Downloads\LeapObjects\LeapObjects\Menu\ARLR
DBD.TTF to: games\Resource Listing Error\resources\ARLRDBD.ttf
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[ERR] Created: games\Resource Listing Error\resources\0.png (Arial Rounded MT Bo
ld font, 8-bit color, 65 colors, w/alpha)
[LOG] Mark font as clean (disk).
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Saving block favorites.
[LOG] Write String out as file to: games/Resource Listing Error/favorites.xml
[LOG] Write String out as file to: prefs/favorites.xml
[LOG] Done writing game.
[LOG] Activated: Game Center
[LOG] Closed Document: Test Font0
[LOG] Warning: Unable to refresh document.
[LOG] If you're opening up a code mode snippet, ignore this message unless you t
hink something is wrong.
[LOG] If you just closed a document, ignore this message.
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[LOG] Loading Closed Resource: Test Font
[LOG] Activated: Test Font
[LOG] Open Took 132ms
[LOG] Total Took 165ms
[LOG] Action: Save Game
[LOG] Save in place.
[LOG] Writing out local resources.
[LOG] Removing resource from active documents.
[LOG] true
[LOG] Copy file from: C:\Users\James\Downloads\LeapObjects\LeapObjects\Menu\ARLR
DBD.TTF to: games\Resource Listing Error\resources\ARLRDBD.ttf
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[ERR] Created: games\Resource Listing Error\resources\0.png (Arial Rounded MT Bo
ld font, 8-bit color, 65 colors, w/alpha)
[LOG] Mark font as clean (disk).
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Saving block favorites.
[LOG] Write String out as file to: games/Resource Listing Error/favorites.xml
[LOG] Write String out as file to: prefs/favorites.xml
[LOG] Done writing game.
[LOG] Action: Close Game
[LOG] Save in place.
[LOG] Writing out local resources.
[LOG] Removing resource from active documents.
[LOG] true
[LOG] Mark font as clean (disk).
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Saving block favorites.
[LOG] Write String out as file to: games/Resource Listing Error/favorites.xml
[LOG] Write String out as file to: prefs/favorites.xml
[LOG] Done writing game.
[LOG] Resetting workspace.
[LOG] Activated: Game Center
[LOG] Closed Document: Test Font0
[LOG] Warning: Unable to refresh document.
[LOG] If you're opening up a code mode snippet, ignore this message unless you t
hink something is wrong.
[LOG] If you just closed a document, ignore this message.
[LOG] Activated: Welcome Center
[ERR] Could not delete file: C:\Users\James\.stencylworks
[LOG] Initializing... 0 : Test Font
[LOG] Loading attribute into tree: Players
[LOG] Loading attribute into tree: Tiles
[LOG] Loading attribute into tree: Doodads
[LOG] Loading attribute into tree: Actors
[LOG] Loading attribute into tree: Regions
[LOG] Activated: Game Center
[ERR] Could not delete file: sandbox\build\code
[LOG] Took 193ms
[LOG] Could not parse: games\Resource Listing Error\resources\ARLRDBD.ttf
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[LOG] Converting: games\Resource Listing Error\resources\0.fnt
[LOG] Loading Closed Resource: Test Font
[LOG] Activated: Test Font
[LOG] Open Took 105ms
[LOG] Total Took 140ms
[LOG] Action: Save Game
[LOG] Save in place.
[LOG] Writing out local resources.
java.lang.NullPointerException
        at stencyl.sw.editors.font.FontPage.save(FontPage.java:995)
        at stencyl.sw.editors.font.FontTab.save(FontTab.java:219)
        at stencyl.sw.app.doc.Workspace.saveResource(Workspace.java:1433)
        at stencyl.sw.app.doc.Workspace.saveResourceToDisk(Workspace.java:1487)
        at stencyl.sw.io.write.ResourcePackWriter.writeResourcesFile(ResourcePac
kWriter.java:86)
        at stencyl.sw.io.write.ResourcePackWriter.write(ResourcePackWriter.java:
37)
        at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:137)
        at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:60
)
        at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:18
)
        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[LOG] Writing out scenes.
[LOG] Copying over snippets.
[LOG] Saving block favorites.
[LOG] Write String out as file to: games/Resource Listing Error/favorites.xml
[LOG] Write String out as file to: prefs/favorites.xml
[LOG] Done writing game.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
Does it have to be a custom font? That makes a big difference.

Epic428

  • Posts: 1118
I made a custom font. I used the Arial Rounded Bold MT. But I also Ran into this a lot when trying to upload the fonts to forge for the featured section. Though they, according to tests, had come out fine.

I also uploaded game to forge called "Resource Listing Error"  Lemme make it public. Done.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Hottech

  • Posts: 1
Here are my logs, and a screenshot, hope this helps.
I downloaded the font from the forge and I went to change the size but couldn't save.

spolvid

  • Posts: 22
I got this error trying to save after turning off smoothing on a font from Forge. Logs attached.

Epic428

  • Posts: 1118
I would just like to say that when I created the new fonts and uploaded them to forge, I had installed a fresh copy of SW prior to doing so. In addition, my consistent reproduction happens with any font I create.

Could it be possible that because of the problem I had with my computer and reinstalling windows on top of itself, it somehow caused this problem for any font I specifically create? Though, I have seen others receive the error on their own without any font I specifically created and uploaded.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
Nah, I know what's up. I'll include it in this week's patch and put up an unofficial manual patch just to get you guys to verify before I push it out to a shuddering amount of users. ;)