06-23-2013, 12:36 PM | #1 |
worst ff player eu
Join Date: Jun 2012
Location: South Yorks., England
Class/Position: o - no, d - scout Gametype: IvDZ Posts Rated Helpful 18 Times
|
Does the FF Lua script support read/write?
I tried using various methods of opening files in the Lua script, but seen as there's about 5 different methods of doing it in different programs using Lua, it's probably better to just ask.
If there is file support, what are the commands, and if there isn't, will we ever see it exist? If it existed, it'd mean that Lua scripts can actually permanently save settings and the like, rather than them resetting to defaults every map change. :P Making plugins would be much more viable with an easier way of changing settings in a file, as well as the ability for stuff to be changed in-game. A few examples:
Overall, adding file support gives the Lua script almost the same amount of flexibility as the actual game's code itself.
__________________
gg ff not ded ff very much alive |
|
06-24-2013, 05:33 AM | #2 | |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
I actually added this in 2.44 but no one's used it yet afaik.
Quote:
__________________
#FF.Pickup ยค Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
|
06-24-2013, 03:32 PM | #3 |
worst ff player eu
Join Date: Jun 2012
Location: South Yorks., England
Class/Position: o - no, d - scout Gametype: IvDZ Posts Rated Helpful 18 Times
|
That's really quite awesome.
Sucks that it's not easily editable like a .cfg though. But it's easy enough to add chat commands to allow admins to change options, etc. (why do i always look for things on the wiki and think its updated when it never is :P) (now to add it to the wiki so next time i search for it its there) http://www.fortress-forever.com/wiki...ving_functions
__________________
gg ff not ded ff very much alive |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|