et.FS_ constants

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

et.FS_ constants

Post by Luk4ward »

hello,

where i can find et.FS_ constants?

regards
wolFTeam.pl
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

send lawyers, guns and money
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

Code: Select all

et.FS_READ
et.FS_WRITE
et.FS_APPEND
et.FS_APPEND_SYNC
ups, thx once again, i missed it

p.s is there an option to create a file by script?
wolFTeam.pl
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API
send lawyers, guns and money
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

ReyalP wrote:
Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API
I meant to create a file via the command in lua script, but its impossible atm i guess. The best way is to always keep one file clean and rename it when its needed, am i right? Thx for replies

edit:
my bad, creating a file via script is possible
wolFTeam.pl
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

ReyalP wrote:
Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API
Hmm but i cant use smth like?:

Code: Select all

io.open (file , "w+")
I want to remove or reset the file, but there is no et.trap_FS_F [remove/reset cmd ] File to do that..
wolFTeam.pl
User avatar
ReyalP
Posts: 1663
Joined: Fri Jul 25, 2003 11:44 am

Post by ReyalP »

Luk4ward wrote: I want to remove or reset the file, but there is no et.trap_FS_F [remove/reset cmd ] File to do that..
Correct, that's why you have to use io instead or os instead. http://www.lua.org/manual/5.0/manual.html#5.6

remove is actually in OS.
send lawyers, guns and money
User avatar
Luk4ward
Posts: 236
Joined: Sun Jul 30, 2006 1:55 pm
Location: Poland
Contact:

Post by Luk4ward »

ok, hope it will work, thx for the reply
wolFTeam.pl
Post Reply