Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Nymphodora), 490 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
txt_load files into resource #229857
10/01/08 04:48
10/01/08 04:48
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Hello

The txt_load function(for loading text files into a text object) is a real life-saviour for certain rpg game elements in our game , but unfortunately these txt files are not getting packed into a resource. Can resource packing of txt files also be possible ?. Otherwise we dont know how to secure the info in our txt files frown
Thanks

regards
zazang


I like good 'views' because they have no 'strings' attached..
Re: txt_load files into resource [Re: zazang] #229865
10/01/08 06:46
10/01/08 06:46
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Unpack them from the resource, read them, delete them.

Don't know the exact command, it might be some file_copy or so - check the manual.

Re: txt_load files into resource [Re: FBL] #229870
10/01/08 08:52
10/01/08 08:52
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702

Ok file_cpy is the command. This is from the manual :-

// unpack a packed a text database file from the game resource
file_cpy ("database.txt","database.pak");

However I dont understand how I can pack my .txt file into a .wrs or a .pak file. frown

Thanks a lot !


I like good 'views' because they have no 'strings' attached..
Re: txt_load files into resource [Re: zazang] #229878
10/01/08 09:27
10/01/08 09:27
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
For .pak, only rename your text file from .txt to .pak. For putting it into the resource, you need a line like 'BIND "mytextfile.pak";' in your WDL file.

Re: txt_load files into resource [Re: Spirit] #229914
10/01/08 14:32
10/01/08 14:32
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Much appreciated help..thanks Spirit !


I like good 'views' because they have no 'strings' attached..

Moderated by  aztec, Spirit 

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