banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

et.FS_ constants

 
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Modding
View previous topic :: View next topic  
Author Message
Luk4ward



Joined: 30 Jul 2006
Posts: 236
Location: Poland

PostPosted: Tue Nov 27, 2007 8:50 am    Post subject: et.FS_ constants Reply with quote

hello,

where i can find et.FS_ constants?

regards
_________________
wolFTeam.pl
Back to top
View user's profile Send private message Visit poster's website
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Tue Nov 27, 2007 3:45 pm    Post subject: Reply with quote

http://wolfwiki.anime.net/index.php/Lua_Mod_API#predefined_constants
_________________
send lawyers, guns and money
Back to top
View user's profile Send private message
Luk4ward



Joined: 30 Jul 2006
Posts: 236
Location: Poland

PostPosted: Tue Nov 27, 2007 4:04 pm    Post subject: Reply with quote

ReyalP wrote:
http://wolfwiki.anime.net/index.php/Lua_Mod_API#predefined_constants


Code:

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
Back to top
View user's profile Send private message Visit poster's website
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Tue Nov 27, 2007 7:32 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Luk4ward



Joined: 30 Jul 2006
Posts: 236
Location: Poland

PostPosted: Wed Nov 28, 2007 3:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Luk4ward



Joined: 30 Jul 2006
Posts: 236
Location: Poland

PostPosted: Wed May 14, 2008 8:48 am    Post subject: Reply with quote

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:

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
Back to top
View user's profile Send private message Visit poster's website
ReyalP



Joined: 25 Jul 2003
Posts: 1663

PostPosted: Thu May 15, 2008 12:53 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Luk4ward



Joined: 30 Jul 2006
Posts: 236
Location: Poland

PostPosted: Sun May 25, 2008 11:41 am    Post subject: Reply with quote

ok, hope it will work, thx for the reply
_________________
wolFTeam.pl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Modding All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group