Resource question about files

Posted By: Logitek

Resource question about files - 05/15/12 16:40

Hello,

i have a question about the resource files.

For example, if i have two resource files with same modelname in resource 1 and for example also in resource 9:

1. Resource "IamNrOne.wrs" includes the file test.mdl

9. Resource "IamNrTwo.wrs" includes also a file named test.mdl

Which file will be used by gamestudio?
The one of the first resource file? Or the one from the latest resource file?

Which order does gamestudio use?

Thanks.
Posted By: jcl

Re: Resource question about files - 05/16/12 12:19

If the resources are included automatically, the order is random, i.e. it's the order in which the files are listed in the directory. You should then avoid having files with the same name in different WRS files.

It the resources are included with a RESOURCE statement in the WDL file, the order is the same as in the file.
© 2024 lite-C Forums