English MikuAuahDark: Log Capture v1.0 icon

4 comments
03.04.14 09:30:47 am
like 2 like it!
574 b, 43 Downloads
MikuAuahDark
User
Offline Off
LogCapture by user MikuAuahDark

∗ Description ∗
Based from file cs2d Weapon Ammo Counts (14) by user PyKemis lua, i think that after you use cs2d cmd parse then it directly trigger cs2d lua hook log hook before execute the next code. Doing a research about this and i'm right and this is created!
LogCapture(this lua) allows you to get log output that logged from cs2d cmd parse command

∗ Features ∗
> Small(less than 600 byte)
> No timer used
> Easy to use
> LF delimiter
> Only use 1 variables

∗ How to Install ∗
> Do it like another normal scripts

∗ Reserved Global Variables ∗
> LogCapture

∗ Information ∗
> 30 Lines
> 546 Bytes
> Hooks: 1, cs2d lua hook log

∗ Function ∗
LogCapture(command[,keep_log])
- Get log output from cs2d cmd parse command
Arguments:
command - command to executed(string)
keep_log - keep log output written into file?(anything that equal to true or false)
Returns: Log Output where each line is separated by LF character(string)

∗ Example ∗
Code:
1
2
3
4
5
6
-- Get list of items
local lit=LogCapture("items")

-- Try to spawn an object but allow information to written to log
local more_info=LogCapture("spawnobject 1 -1 -1 0 0 0 0",true)
print(more_info)     -- ERROR: spawnobject - position is out of map bounds!


∗ Notes ∗
Nah, just like my earlier uploads. Feedbacks, suggestions, bug reports on comments

∗ Rules ∗
√ You can use it for your lua & server
√ You can edit it
√ Share to others
√ Say user MikuAuahDark made it
√ Reupload with me on credits
× Say you made it
× Redistribute your edited version
× Re-upload without me on credits
ok This file has been reviewed and approved by Seekay (04.12.15 01:07:18 pm)

Comments

4 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
04.04.14 07:57:40 am
like I like it!
Up
Loli-
User
Offline Off
@user Avo: lol, i like the description too
04.04.14 05:45:16 am
Up
MikuAuahDark
User
Offline Off
@user Hellcat: what, you don't need screenshots here because it's not user interface related
03.04.14 03:51:48 pm
like I like it!
Up
Avo
User
Offline Off
Hats off, user MikuAuahDark, I like.

Even if it's very simple, I just like your style of using stuff with metatables.
03.04.14 02:35:53 pm
Up
Hellcat
GAME BANNED
Offline Off
Please Screenshoots...
To the start Previous 1 Next To the start