I used a list object and just put the conditon:
At start of the frame
Load "actuallist.txt"
I put the list in resources folder and.....
Nothing happens, th list is empty
What's wrong?
I used a list object and just put the conditon:
At start of the frame
Load "actuallist.txt"
I put the list in resources folder and.....
Nothing happens, th list is empty
What's wrong?
You'll need to add the file to your project inside XCode, it's not enough to just copy it to a folder.
Select the Resource folder in XCode from the list on the left, then use File>Add files to lista and select the file you want to add.
Now rebuild your app and it should work.
Hi!
I've done all that. I worked like i work with an INI file but it doesn't work
Probably the load/save is not yet working?
You don't need to add the INI file though do you? Cause I've released games with INI without adding any files, and they've always worked...
DistantJ - If you've created the INI using an event, then there's no need to add an INI file to XCode. Same with the List object.
Pedro - I use saving and loading of list files all the time - they definitely work. Check the spelling of the filenames and extensions match. iPhone is case sensitive so mydata.dat is different from MyData.DAT (although simulator is not case sensitive!). Also try a very simple example where user presses a save button and it saves a pre-populated List object called "test.txt". Then when user presses the Load button it jumps to next frame where it loads "test.txt"
Hope that helps!
I don't have an event which creates the INI, but I have events which set values in it, I'm guessing those generate it? Because every game I've built with INI has saved the values properly and everything without me having to put any extra files into the Xcode project.
I think the problem was with the name. I think it was case sensitive
THX