Skip to content

Lua Input/Output library

Latapostrophe requested to merge SinnamonLat/Kart-Public:kart-io into next

Uses the code straight from the old I/O 2.1 branch to give Kart some long overdue I/O capabilities. Unlike 2.2, there is no file synching between the host and clients but this should be more than enough to open a lot of possibilities.

As a general reminder, files are only created / read in the luafiles folder. The game will throw a warning if you attempt to get out of it by using .. in a path for instance.

The only allowed extensions are .txt, .sav2, .bmp, .png and .cfg.

io.open only opens the file locally so be careful with how you actually use it as it can lead to desynchs in netgames! (io.openlocal does not exist here)

Included are the EXE and a test script which when loaded creates a file in the luafiles folder and immediately reads from it. (32-bits)

srb2kart_io.rar

Merge request reports

Loading