Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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 | 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