Packaging Critical error...
by Nic Cusworth · in Torque Game Builder · 12/18/2006 (4:37 am) · 6 replies
Sorry if this has been covered else where. I had a quick look and couldn't find anything. This morning I though I'd try and package up the game demo I'm creating to show a friend. Never used the the packaging tool before so maybe I'm doing something wrong.
I analyze the game. There's no errors. It says it's ignoring .dso files.
When I click on Build I get a critical error saying:
'Failed copying file: [path]/managed/project.t2d.dso'
The build can't be continued...
I tried deleting all the .dso's but it seems to rebuild them when you do the analysis.
Anyone got any suggestions?
Nic.
I analyze the game. There's no errors. It says it's ignoring .dso files.
When I click on Build I get a critical error saying:
'Failed copying file: [path]/managed/project.t2d.dso'
The build can't be continued...
I tried deleting all the .dso's but it seems to rebuild them when you do the analysis.
Anyone got any suggestions?
Nic.
About the author
#2
12/18/2006 (8:40 am)
I hate to say but this is a common occurrence. I always reach a point in my own projects where the built in packager eventually just stops working. There was a recent post by Matthew Langley about how to package your game manually. See if you can turn it up by searching the forums.
#3
1: Copy your project to a fresh folder.
2: Run the build tool
3: Once it's built, copy all your original data:
o data
o gameScripts
o gui
o managed
...from your fresh folder back over the top of the data in the BUILT folder.
I ran it once with the .cs files there, then deleted them and it all ran fine.
Nic.
12/18/2006 (9:08 am)
I just found that article and had problems following it to be honest. BUT - here's an alternative solution.1: Copy your project to a fresh folder.
2: Run the build tool
3: Once it's built, copy all your original data:
o data
o gameScripts
o gui
o managed
...from your fresh folder back over the top of the data in the BUILT folder.
I ran it once with the .cs files there, then deleted them and it all ran fine.
Nic.
#4
Ben, our last game took about an hour and a half to build using the built in packager. It looks like it's totally locked up, but eventually it'd come through if you just let it sit. That's not to say it's much of a working tool at that point though, so a manual build is a much better idea when it gets there. Good for creating a template overnight, making your first .app on mac, or providing a list of every resource in your source tree so you can make sure they all belong.
12/18/2006 (9:06 pm)
I've seen that error show up when I accidentally set the output folder name to a folder which already exists and it failed because it was trying to overwrite that same file which was read-only because it was already built there. Just verify that you've set the output folder to a different folder each time when performing builds. If your game stops working after packaging, pay extra attention to which files are selected for inclusion after the analysis is done. Anything you reference dynamically in script will not automatically be included in your built version.Ben, our last game took about an hour and a half to build using the built in packager. It looks like it's totally locked up, but eventually it'd come through if you just let it sit. That's not to say it's much of a working tool at that point though, so a manual build is a much better idea when it gets there. Good for creating a template overnight, making your first .app on mac, or providing a list of every resource in your source tree so you can make sure they all belong.
#5
Browse to the TGB.exe and start the editor, build and it should work fine. I get the same error above if running in debug from Torsion.
12/19/2006 (8:29 am)
Hey guys, sorry for all your hard work to get around this... but all you had to do was not build while in debug mode. let me guess... running from Torsion?Browse to the TGB.exe and start the editor, build and it should work fine. I get the same error above if running in debug from Torsion.
#6
I'll remember to delete it everytime from now on :)
Nic.
12/19/2006 (9:09 am)
Not using Torsion. I got a feeling that even though it wasn't building it probaby was copying some files so the destination directory was locked for writing.I'll remember to delete it everytime from now on :)
Nic.
Torque Owner Nic Cusworth
Nic.