About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Direct file access like in EE1.0
Author Message
Abruzzi Offline
Member

Post: #1
Direct file access like in EE1.0
Hi Esenthel and all Users,
I have question about file access.
In EE 1.0 I can access file with his filepath+filename like this "gfx/logo/logo.gfx". In new version of engine there is UID.

Example from EE 1.0:
DataPath("Data/");
Images("gfx/logo/logo.gfx");

And it is work fine on EE 1.0. But on EE 3.0 I always have a message that: "Can`t load Image "gfx/logo/logo.gfx"".
Yes I Know If Drag and Drop logo.gfx on script then all fine.
There is my question: Can I work on EE 3.0 with files like in EE 1.0? The problem is that all the objects in my game are loaded using the old method. It is very difficult to replace all the scripts to load objects by UID.

Thanks in advance. smile
01-23-2016 06:30 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Direct file access like in EE1.0
You could try putting all existing files in a PAK file.
Drag and drop the PAK file to your project as new element.
Then do Paks.add(EncodeFileName(PAK ID));
After that accessing resources like "Images("gfx/logo/logo.gfx");" should work OK

In the long run I however recommend switching to the new system.
01-24-2016 05:04 AM
Find all posts by this user Quote this message in a reply
Abruzzi Offline
Member

Post: #3
RE: Direct file access like in EE1.0
Thank you very much smile
01-24-2016 08:00 PM
Find all posts by this user Quote this message in a reply
Post Reply