Page 1 of 1

XML in EDGE?

PostPosted: Mar 10, 2006 @ 5:42am
by Nic-Gun
Is it possible to use xml files in EDGE? or must i use structs? because i wanted to set the position of each enemy at each level and i don't want to hardcode them on my code.

PostPosted: Mar 10, 2006 @ 9:09am
by edge
You can use structures to save your game data and read/write them to and from files using ClassEFile.

For the upcoming Edge 2.50 release, a new class will be added to read and write ini-type files.

PostPosted: Mar 10, 2006 @ 10:20am
by Nic-Gun
okay, so can i write down the config file for ClassEFile using any text editor? or are there samples that using ClassEFile?

PostPosted: Mar 10, 2006 @ 12:01pm
by edge

PostPosted: Mar 14, 2006 @ 1:31pm
by Nic-Gun

PostPosted: Mar 14, 2006 @ 1:51pm
by edge
It doesn't matter with which extension you save your file, although it is recommended to pick an extension which represents the type of your file.

When using your own extension, try to create an extension which isn't widely used (you can also use .dat or .bin as an extension, which are commonly used for all type of data files). However, the extension doesn't change the data within the file, only which program starts it when double clicking on it in Windows.