Gamestudio Links
Zorro Links
Newest Posts
Hedge on FXCM, 4 or 5?
by Martin_HH. 02/16/26 16:09
Camera always moves upwards?
by clonman. 02/16/26 11:44
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, 1 invisible), 8,956 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 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: 934
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 934
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