Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AndrewAMD), 1,187 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Resource / .txt files ??? [Re: TerraSame] #340041
08/31/10 00:10
08/31/10 00:10
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
try giving the subfolder as parameter in the
filename.

Anyhow, first try to load it from the mainfolder.
if you can load it from there, then there is a problem in
reading the file from subfolders.

I remember that I always put text files into the main folder
to read it.
You may have to use "texts\\my.txt" as filename format

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

Joined: May 2009
Posts: 439
Thanks for your help Damocles_...

I have a path statment, as I said before, to a folder called "text"
In that folder are 5 .txt files...
In my construction folder is a copy of the "text" folder...
When I run the game from WED, the engine is finding the files in the sub-folder "text"...
So, it's working from my main folder...
But after publishing a resource folder and manually adding the "text" folder does not work... same as manually adding the text files to the resourced folder...

What a pain in the //*@%#* <Scriped out for soft ears/eyes...>
Grrrrrrrr

Re: Resource / .txt files ??? [Re: TerraSame] #340046
08/31/10 01:37
08/31/10 01:37
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Try a different folder name, it may be the compiler doesn't like the name text because it's a variable in the engine.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: Resource / .txt files ??? [Re: Nidhogg] #340050
08/31/10 04:01
08/31/10 04:01
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
Nidhogg,
Cool...
Now that's a hell of an idea!
You might be on to somthing with that thought...
I've been running out of ideas...
First thing in the morning I will try that.
Thanks a bunch...

Re: Resource / .txt files ??? [Re: TerraSame] #340053
08/31/10 07:46
08/31/10 07:46
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
When you want to include the .txt files, they dont automatically bind when using PATH. that will only add a path to search files in for. You need to specify the actual file you want to bind in the .wrs resource file itself.
You'll have to manually add each textfile using:

Code:
BIND "textfile.txt";



This still has to live in the .wdl, not the .c file

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Resource / .txt files ??? [Re: TerraSame] #340071
08/31/10 16:20
08/31/10 16:20
Joined: May 2009
Posts: 439
T
TerraSame Offline OP
Senior Member
TerraSame  Offline OP
Senior Member
T

Joined: May 2009
Posts: 439
Hey guys...
I've tried everything you each suggested... and more...
All to no avail...
Bummer...
At this point I'm thinkin' Damocles_ is right...
It's a "systematic problem", most likly user (my) error...
And... I'm wastin' to much time...
So, Damocles_ is, once again, right...
"The time is spend better on other stuff."
I'm still lookin' for a pro-coder to do other work, so I'll ask him to address that too...
Thank you all for your suggestions and help...
laugh

Re: Resource / .txt files ??? [Re: TerraSame] #340076
08/31/10 17:21
08/31/10 17:21
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

My .txt file works and is included in a .wrs
It's in the work folder
In main.c I use
#define PRAGMA_PATH "..\\Models";

I use : PATH "..\\Models";
in the main.wdl, and
at the top of the file used to bind the files.

Last edited by Ottawa; 08/31/10 17:24.

Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Page 2 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