![]() |
Saving/Loading data
Hi, I've been wondering what is possible with Vizard to do in the case of saving and loading data?
I've found a post here that shows how to output the keystrokes to a text file, but I'm trying to save things such as what options were selected at a text box, if the player has already "talked" to an avatar, etc. What are the options for this? |
Here's a link to a tutorial on creating data files. If you have further questions on writing your data to file let me know.
http://www.worldviz.com/vizhelp/Creating_data_files.htm |
The code is not working for me... I keep getting this error from it:
Quote:
|
This means you have assigned a text object to a variable named open, which conflicts with the built-in Python function. You should rename your text objects to something less generic.
|
The tutorial mentioned above uses the same code and it works, though...
Code:
import viz |
the problem is not the name of your file, score_data. Somewhere else in your script you have a variable named open. You'll just need to give that a new name
|
Ah yes, I looked around for 'open' and it seems I had forgotten that I had a text object outside of the script so it was on the stage. No wonder I was having so much trouble finding it... thanks for the help!
|
thanks - saved me time
thanks for making this post. it saved me a lot of debugging time!
|
All times are GMT -7. The time now is 10:56 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC