English [OR] Get Map Data 2.0 icon

14 comments
18.06.15 05:03:08 pm
like 12 like it!
4 kb, 58 Downloads
Ortimh
User
Offline Off
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

> Updates
Update 2.0 - 06.17.2017 >

Update 1.2b - 06.28.2016 >

Update 1.2 - 12.15.2015 >

Update 1.1 - 08.07.2015 >


flame Usage
Gets all possible data from a map.
Code:
1
local getmapdata = require("path/to/mapdata")("path/to/map.map")

Example:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local getmapdata = require 'mapdata'
local map = getmapdata 'maps/de_dust2_new.map'

print('author: ' .. map 'author' .. ' (#' .. map 'author_usgn' .. ')')
print('use modifiers: ' .. tostring(map 'modifiers'))
print('size: ' .. map 'width' .. ' x ' .. map 'height')

for i = 0, map 'tile_count' do
     print('tileset frame #' .. i .. ' = ' .. map('tile_mode', i))
end

for x = 0, map 'width' do
     for y = 0, map 'height' do
          if (map('tile', x, y, 'rot') > 0) then
               print('tile ' .. x .. '|' .. y .. ' has unusual rotation')
          end
     end
end

for i = 1, map 'entity_count' do
     for j = 1, 10 do
          if (#map('entity', i, 'setting')[j][2] > 0) then
               print('entity at ' .. map('entity', i, 'x') .. '|' .. map('entity', i, 'y') .. ' has different setting')
          end
     end
end


spam Documentation
Documentation is available in readme.txt.

illegal Rules
• You are allowed to use this script in your server.
• You are allowed to edit this script for your server.
• You are not allowed to copy any part of this script without permission.
• You are not allowed to say this script is yours.

off-topic Installation
1. Download the file and then extract it anywhere.
2. Connect your script with this script using
require
.
3. Get your desired map data!

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
edited 16×, last 19.06.17 05:19:55 pm
ok This file has been reviewed and approved by Seekay (04.12.15 01:31:41 am)

Comments

14 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
17.06.17 08:11:27 pm
like I like it!
Up
RequieM52
User
Offline Off
Great
17.06.17 03:59:15 pm
like I like it!
Up
ZxC
Moderator
Offline Off
Great work, pretty useful!
16.12.16 10:56:39 am
like I like it!
Up
lilyagirl123
User
Offline Off
Ey, I'm indonesia too :D. I liked your script! 10/5
edited 1×, last 16.12.16 11:14:25 am
11.11.16 04:23:40 pm
like I like it!
Up
mimafan
User
Offline Off
Nice!
11.11.16 01:56:12 pm
like I like it!
Up
Hajt
User
Offline Off
That's what I'm looking for
28.06.16 03:02:36 pm
like I like it!
Up
Nekomata
User
Offline Off
Cool.
18.07.15 11:03:54 pm
like I like it!
Up
muxarus
User
Offline Off
nice!
01.07.15 05:09:29 pm
Up
Ortimh
User
Offline Off
Thanks everyone, and of course the downloads. And user Mommy123, yes, I'm Indonesian.
01.07.15 07:09:23 am
like I like it!
Up
xXxProxXx
BANNED
Offline Off
Good job
01.07.15 02:23:08 am
like I like it!
Up
Mommy123
User
Offline Off
Great, you are Indonesian too ? user Ortimh
01.07.15 01:03:17 am
like I like it!
Up
BcY
User
Online On
Thanks @user Ortimh ,i think it'll be pretty useful for me.
24.06.15 02:11:10 pm
Up
Ortimh
User
Offline Off
There you go. Also you can find the documentation in readme file which is lot better and nicer to read as well.
21.06.15 05:02:58 pm
like I like it!
Up
VADemon
User
Offline Off
It's awesome! Though please, put everything in the description under one spoiler! It's a pain to click on every single one especially if someone is going to work with this script daily.
18.06.15 05:31:16 pm
like I like it!
Up
lennon
User
Offline Off
Well i think its non sense program, itz good but...i dont care about this things more than half of them are usless
Like for work
To the start Previous 1 Next To the start