Forum

> > CS2D > Scripts > Dofile all *.Lua files on a directory
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Dofile all *.Lua files on a directory

38 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Dofile all *.Lua files on a directory

Avo
User Off Offline

Zitieren
Am I the only one who noticed that some of replies in forum threads and comments in file archive just disappeared? (I don't want to create thread for it, therefore I posted here - some replies disappeared here, too.)
1× editiert, zuletzt 02.05.13 09:49:30

alt Re: Dofile all *.Lua files on a directory

Gajos
BANNED Off Offline

Zitieren
For Windows >


For Linux >

Admin/Mod Kommentar

You should credit the work. /Starkkz

alt Re: Dofile all *.Lua files on a directory

KagamineLen
User Off Offline

Zitieren
@user Avo: your right.

Edit: another thing the code didn't work i just tested it

1
2
3
4
5
6
7
8
modules = ("sys/lua/PBS Script v2.0/Modules")

--// Modules
for k, v in pairs(ReadDir(modules, false, true)) do
     if string.sub(v, -4) == '.lua' then
          dofile(v)
     end 
end
5× editiert, zuletzt 03.05.13 13:11:12

alt Re: Dofile all *.Lua files on a directory

KagamineLen
User Off Offline

Zitieren
user Starkkz hat geschrieben
I didn't have time to test the Linux function, but soon I'll improve it. I have already written stream library for Lua, check my profile.


I'm using windows, i tried the stream on your profile it still not works

user Infinite Rain hat geschrieben
@user KagamineLen:
Console error(s)?


There are no console errors.
but there are popping cmd's when i start the server
2× editiert, zuletzt 03.05.13 23:42:55
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht