Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 942 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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