Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TedMar, AndrewAMD), 1,344 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Resource / .txt files ??? #340004
08/30/10 19:44
08/30/10 19:44
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
Can someone help me here...
I am getting a new Lite-C project to the point where I am creating a resourced .cd folder.

The project is similar to the template "Car Level" and I am using the Demo/Tour feature which reads five .txt files that have been recreated.

When running the project from the main folder (not resourced), the project runs properly.
When running from the resourced .cd folder, the engine seems un-able to read or find the .txt files.

I have tried two ways.
One - where the .txt files are added to the top level of the resource folder
and
Two - where they are not in the resource folder but they are in the .wrs file.
Niether way works...

Any advice to clear this up will be most appreciated..
Thanks

Re: Resource / .txt files ??? [Re: TerraSame] #340022
08/30/10 21:57
08/30/10 21:57
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
try to create a wdl file with the same name as your mainscript (main.c => main.wdl)

And add:
Code:
path "directors/folder..etc";



to it..
then just place it in the folder of your mainscript/exe


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Resource / .txt files ??? [Re: Espér] #340025
08/30/10 22:26
08/30/10 22:26
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
Espér,
Thanks...
I've messed with those path statements in the past...
But, they never work for me...
Dambest thing !
I'll try again...
But, I can't understand it... if that might work... why wont it work with the .txt files in the top level of the finished / resourced folder?
They work from my main construction folder but not the resourced folder...
Dambest thing !
Thanks again...

Re: Resource / .txt files ??? [Re: TerraSame] #340026
08/30/10 22:30
08/30/10 22:30
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
i don´t know.. seems like the compiled file is not reacting on PRAGMA_PATH..

But.. i dunno.. i´ve fixed such problems with the wdl...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Resource / .txt files ??? [Re: TerraSame] #340027
08/30/10 22:32
08/30/10 22:32
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
If you are not shure, the easiest way is to copy all of your assets manually into
the "cd" folder.
This way you dont forget anything.
Dont waste too much time checking that the automatic copy functions work properly, and just do it manually.
The time is spend better on other stuff.

Re: Resource / .txt files ??? [Re: Damocles_] #340030
08/30/10 22:44
08/30/10 22:44
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439

Nice of you guys to help!

Damocles_
I already tried that but even that will not work...
It's the dambest thing !

Espér,
I'm still at it tryin' as you suggested...

Thanks!!!

Re: Resource / .txt files ??? [Re: TerraSame] #340032
08/30/10 22:58
08/30/10 22:58
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
If copying all your assets into the cd folder (and correct subfolders if you split it up that way) does not work,
you have some deeper problem lying behind that.

Either you load stuff from a wrong path, or
missed some important assets or dll.

See: the "publish" does two things:
It compiles your code into the executables (and
possibly script files)
and second, it copies your assets into the cd folder.

The second step you could do manually in any case
with the same results.

If that does not work, there is some systematic problem.

Re: Resource / .txt files ??? [Re: TerraSame] #340033
08/30/10 22:59
08/30/10 22:59
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
No luck !!!

I made a .wdl file (Same name as the main)
I put this code in the .wdl
PATH "text";
I added a folder called "text" with the .txt files into the resourced folder...

The game runs from the construction folder...
but...
No luck !!!
It's the dambest thing !

Thanks guys !

Re: Resource / .txt files ??? [Re: TerraSame] #340034
08/30/10 23:02
08/30/10 23:02
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
try putting and loading the txt files from the main folder.

Re: Resource / .txt files ??? [Re: Damocles_] #340039
08/31/10 00:03
08/31/10 00:03
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
I already tried that... first thing...
It all works fine from an un-resourced folder but not from a resourced folder...
I get the same problem from the un-resourced folder when I remove the text files from it...
That tells me, that the engine cant find the files... even if I manually put them into the resourced folder...
Crapola!

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1