Dateien

> > CS2D > Misc. > [Ranu] CS2D Map Reader
DateiübersichtCS2D-ÜbersichtMisc.-Übersicht

Englisch [Ranu] CS2D Map Reader >

1 Kommentar4 kb, 20 Downloads

alt [Ranu] CS2D Map Reader

Ranu
User Off Offline

Hi,
I don't know if this already exists or not, but i could not find any good one so I decided to write my own with @user MikuAuahDark. It's 100% pure vanilla lua 5.1, without using CS2D API or special libraries.
Somebody might need this. If you have any issue, or if there's any bugs let us know.
the code is pretty ugly, i havent put any extra effort into it, as long as it works its fine to me. the purpose of the script is to show you how to read a CS2D map file as the official documentation is very confusing.

put the map name into the "map" variable as a string with the file extension ".map".
would look something like this
local map_folder = "maps/" -- assuming the script is in CS2D folder
local map = "cs_italy.map"


Contains everything about the map:
(1) HEADER √
(2) Tile Modes √
(3) Tile Heights √
(4) Map √
(5) Entities √
Zugelassen von Gaios

Download Download

4 kb, 20 Downloads

Kommentare

1 Kommentar
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

WatPz
User Off Offline

Not long ago, I just have finished my own map reading script o.0. Anyway, thanks for the code.

ps: Noticing that you didn't write the save part, I uploaded my own script, this script can save the modified map information, url: file cs2d CS2D Map Reader v2
Ich mag es!
2× editiert, zuletzt 24.06.24 16:40:24
Zum Anfang Vorherige 1 Nächste Zum Anfang