Game Development Community

Torsion Doesnt Save game.cs Updates But Saves Other Script Updates.

by Jack-S- · in Torsion · 11/08/2011 (7:56 am) · 5 replies

Hi,
I have had Torsion for a while now and have came up across a strange problem. I am working with iTorque 1.5 and previously 1.4.1. Up until about a month and half ago I had no problems with Torsion but then all of a sudden Torsion for some reason doesnt seem to save any updates I make to the game.cs file in my project folder.

The most unusual thing about this though is that Torsion will save anything be it, new scripts, or modifications to other scripts but for some reason doesnt save changes made to game.cs.

I have also tried un-installing then re-installing again but this hasnt fized the problem...

Has anyone had this problem and how do I go about fixing it?

Thanks in advance.

#1
11/08/2011 (11:00 am)
Just a shot in the dark, but check the file attributes for that game.cs and make sure it's not set to Read-Only.
#2
11/09/2011 (11:44 am)
Hi, there are no read/write restrictions on the document itself so im a little puzzled as to why this is happening
#3
11/09/2011 (2:22 pm)
A few more things:

1. Was this project upgraded from 1.4?
2. Have you tried a new project file?
3. Did you check permissions on all files in the project file folder?
4. Are you running Torsion as an administrator?
#4
01/25/2012 (2:09 pm)
Hey guys,

Are you tested in the IOS Simulator or IOS devices through Xcode after modification directly?

Same issue make me crazy!!!

But...I had found the solution. After modifying the game.cs file, just go back to TGB then "Play Game" once to open the TGBGame Debug. Quit it and the game.cs contents will be update to somewhere automatically.

I had check for several time. Now I can modify it by Xcode or by Smultron, -> Play through TGB -> Compile with Xcode to my...old...iPhone 3G.

Hope this can help!

I am using:
Mac OS X 10.6.8
Xcode 4.2 build 4C199
iTorque 2D 1.5
Smultron 3.5.1

Sorry of my poor English!
#5
01/26/2012 (3:46 am)
Update, I found some sentences on the "Rainy Day" demo tutorial:

" Since you have now made changes to a script, you need to recompile the game. Delete the projectFiles/game/scripts/game.cs.dso file. This is a compiled script file containing your old script code. Run the game again to generate a new .dso using the accelerometer code. Finally, go through the process of deploying your game to an iOS device or Simulator. If you need a reminder, you can click back to the Building section this tutorial. "

you could find on the page :
http://docs.garagegames.com/it2d/official/content/documentation/Tutorials/Demos/RainyDay.html#Accelerometer_Support

or your local help documentation, under Tutorials -> Demos -> Rainy Day -> 9 IOS Input -> 9.1 Acceleromenter Support, The lastest of that section.

If you are using Xcode to compile, just delete the game.cs.dso (be careful in the extension DSO, not the game.cs file), modify the game.cs file , then save and everything will be ok. It is not necessary to do anything with TGB. (*_^)