return fail/success for File Reading,. .

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

return fail/success for File Reading,. .

Post by jph_wacheski »

if no file is found I would like to create the default data,. in this way the single exe file can generate files when they are not yet there and if they are it will read and use the data in the file,. currently I see no way to find if the file was read successfuly or not, is there a way? if not perhaps the FileAction component could have a value that is -1 when failed,. or 0 when successfull,. .
lockOn now saves its settings, but needs to have a default file distributed with it.
iterationGAMES.com
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

I'll try to find a better solution with a error code or something.

Meanwhile a workaround: if the file is empty the variable will not be assigned with the FileMoveData-component. So if set the variable to -1, then FileMoveData, then use the value if the variable is different to -1.
Post Reply