Game Development Community

export() function... for those searching for why it crashes

by Tim Scheiman · in Torque Game Builder · 02/13/2010 (10:48 pm) · 0 replies

Hey all.

Just a heads up, primarily for those who search for "Why is the export function crashing?" like I just was.

The buffer created in the source per LINE of written data, is 1024 characters.

So if you do something crazy like "$GiantLine = create4000variables();", and then try to export all "$G*" variables, it will crash.

There's certainly no good reason to DO either of those things, but it's good to know... just in case you were doing something silly like me and creating all of the points on an ellipse and storing them in a string.

Make your global variables of reasonable size if you feel like saving them to a file using 'export', I guess, is the moral of the story.

-Tim