Game Development Community

Trading a build error for a file IO error.

by Shane Cloutier · in Torque Game Builder · 07/24/2013 (7:13 pm) · 2 replies

So I'm slow to update and had been working with Torque 2D Pro 1.7.6. I had made my way through a great deal of work when I decided to send a built version to my brother to see the work. I built the project and tried to run it only to find out that it would crash and tell me it was unable to find initializeProject wich it claimed could be a sign of a corrupt common directory. I looked for answers here on the forums, and tried all the sugestions (remove spaces from the work folder and game name ect.) I eventualy decided to get a later version of Torque and downloaded Torque 2D 1.8. I opened up my project in the new Torque and converted my project. I made a build and the missing initializeProject is gone but now I can not get Torque to read the simple text files I use to save scores, it will write the files just not read from them. Any ideas folks?

#1
07/25/2013 (8:14 am)
Moved to the Torque Game Builder forum, which is what this post is referring to. Post the line of code that contains the file path you are trying to load. It's a common error to use ~/ where ./ should be used, as well as sometimes needing a more qualified path.
#2
07/25/2013 (11:48 am)
The code had originally used ~/ I just gave it the ./ treatment. That seems to have fixed it. Funny thing is that the write function works, it creates the file fine. Guess that is just the difference in the versions. Thank you for the help sir.