But I know that this is meaningless if script can not save edited data.
I searched for similar scripts - MikuAuahDark: Map Protection v1.0 (10) ,and someone uploaded old C4 server script previously but seems like it has been deleted ( here, this is file )
also I read about map format spec text file however, I couldn't find clear way to make new individual cs2d map file.
The way how I am thinking about make new individual map file is -
1. use tile command to get frames with loop ( start with 0 to map("xsize"), 0 to map("ysize") )
2. Convert em into hexadecimal value
3. Save it as new map_name.map file
so.. question is
How can I write a map that currently running in server as new map file via lua?
Writing header ( Unreal Software's CS2D Map File (max) ), tiles and stuffs. any example or tips?