Files

> > CS2D > Lua Scripts > MikuAuahDark: Log Capture v1.0
Files overviewCS2D overviewLua Scripts overview

English MikuAuahDark: Log Capture v1.0 >

4 comments574 b, 441 Downloads

old MikuAuahDark: Log Capture v1.0

MikuAuahDark
User Off Offline

LogCapture by user MikuAuahDark

∗ Description ∗
Based from file cs2d Weapon Ammo Counts by user Apache uwu 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 ∗
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
Approved by Seekay

Download Download

574 b, 441 Downloads

Comments

4 comments
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

Stinger
User Off Offline

@user Avo: lol, i like the description too
I like it!

old

MikuAuahDark
User Off Offline

@user Hellcat: what, you don't need screenshots here because it's not user interface related

old

Avo
User Off Offline

Hats off, user MikuAuahDark, I like.

Even if it's very simple, I just like your style of using stuff with metatables.
I like it!

old

Hellcat
GAME BANNED Off Offline

Please Screenshoots...
To the start Previous 1 Next To the start