"IngeJones;15188617" wrote:
Thanks, I'll see how far I get with the above, and come back if I get stuck :)
If you're going to work with the full object list or any of the resource lists, I'd recommend writing them to a file since the console won't handle more than a few hundred lines before it begins to hang the engine and file.write is good for debugging as well (obviously).
file_path = "C:\\Projects\\TS4"
output_file = open(file_path + '\\filename.extension', 'a')
output_file.write("This is a test file.\n")
output_file.close()
I'd recommend not opening and closing files during loops but obviously you can write as frequently as necessary.
Also, I've neglected to correct an error in the previous post, however I know that you'd see it immediately so I assumed that you would just laugh at it. For the instance manager example, use the
tuning_instance_id from the loop to get the tuning instance rather than tuning_id which has not been defined, and don't indent the if statement.
The resource type list can be found within Core\Sims4\resources.pyo