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,089 guests, and 2 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
PRAGMA_PATH #300276
12/01/09 06:00
12/01/09 06:00
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Hello Guys,

I defined 25 files as

#define PRAGMA_BIND "1.lvl";
#define PRAGMA_BIND "2.lvl";
#define PRAGMA_BIND "3.lvl";
...
...
and so on..

for these to be included in the published folder. Indeed when I publish my codes in SED with just Compile EXE being checked all these files are copied on the .cd folder and the game runs successfully, but I don't want to published it that way, I need those files to be in resource file so during publish I checked Resource but unfortunately *.lvl are not copied successfully in .wrs file that's I got a pointer error when running the game.

Any idea how to include these files in the resource file.?

Any help would be much appreciated..



Can't is not an option™
Re: PRAGMA_PATH [Re: seecah] #300284
12/01/09 08:24
12/01/09 08:24
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
I have included already my files in the resource file but why do I still get an invalid pointer in reading it.. ???

Anybody please..???

Last edited by seecah; 12/01/09 08:38.


Can't is not an option™
Re: PRAGMA_PATH [Re: seecah] #300320
12/01/09 14:55
12/01/09 14:55
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

What do the .lvl files contains?


Ottawa

Re: PRAGMA_PATH [Re: Ottawa] #300323
12/01/09 15:26
12/01/09 15:26
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
First of all, I think filenames shouldn't begin with numbers.

Your *.lvl-files are a file format you made yourself, isn't it? Then I guess you open them by file_open_read/file_open_write? This is only possible if the files aren't in a resource. I know that although I don't even have Pro. grin

Re: PRAGMA_PATH [Re: Lukas] #300345
12/01/09 16:38
12/01/09 16:38
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
You must copy the files out of your resource with file_cpy.

Re: PRAGMA_PATH [Re: Tobias] #300399
12/02/09 03:33
12/02/09 03:33
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
@Ottawa:
My *.lvl files contains characters..

@Lukas:
Yes, I'm the one making my *.lvl files and just access it through file_open_read.. Actually that's what I think also that files starting with number are not possible in a resource file, then I've tried yesterday before your replies by just renaming 1.lvl to sample.lvl but still the same result.

@Tobias
I'll try that approach..

Thanks all!!!



Can't is not an option™
Re: PRAGMA_PATH [Re: seecah] #300553
12/03/09 08:45
12/03/09 08:45
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
May I know what is the better approach.. Is it file_cpy or file_load for reading files from a resource file...???



Can't is not an option™
Re: PRAGMA_PATH [Re: seecah] #300602
12/03/09 17:20
12/03/09 17:20
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline
User
Gordon  Offline
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
take your files and put them in a text sections and just read the lines from the text section. That is the only way to read a text file from a resource as far as I know.


Our new web site:Westmarch Studios

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