Files

> > CS2D > Lua Scripts > CS2D Map Reader v2
Files overviewCS2D overviewLua Scripts overview

English CS2D Map Reader v2 >

1 comment3 kb, 61 Downloads

old CS2D Map Reader v2

WatPz
User Off Offline

API
MapLoader(PATH)
Load map data from the PATH, and return a table with info
Detailed info is listed on the img1

MapSaver(PATH, map_table)
Save the map data from the parameter map_table into the path PATH

Example:
1
2
local mi = MapLoader('maps/de_cs2d.map')
MapSaver('maps/de_cs2d_clone.map', mi)
This code loads the data of map de_cs2d in table mi, and saves the map data in path 'maps/de_cs2d_clone.map'
edited 3×, last 25.06.24 12:38:33 pm
Approved by Gaios

Download Download

3 kb, 61 Downloads

Comments

1 comment
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Gaios
Reviewer Off Offline

Kinda similar to existing ones but gonna leave it Approved as it's written in different style that might help some people.

EDIT
You should rename the file to "file cs2d [Ranu] CS2D Map Reader v2" due to almost same code logic.
I like it!
To the start Previous 1 Next To the start