• Warhammer Online Addons
  • Warhammer Online
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibUtils

 

Project Updated:
Files Updated: Fri, Dec 12 2008
Supports Game Version: Beta 3.0
Category: Data Export, and Development Tools
Tags:

[Edit Tags]

Project Manager: multox
Additional Authors: No additional authors
Current Version: LibUtils 0.02
License: GNU Lesser General Public License version 3 (LGPLv
Development Site: CurseForge
Avg Daily DL (last 30 days): 1
Downloads Total: 951
Favorites: 6
Comments: 7
  • Curse Giveaways
  • Alganon

    Alganon

    Alganon Open Beta Key Giveaway Alganon is an upcoming fantasy-based MMORPG that allows thousands of people to play together in a virtual world that features a rich history dominated by commanding deities...

    Get Key

  • Contests
  • About LibUtils
  •  

Description

A simple library providing some commonly used utility functions. This library solves the problem of reading and writing to a file for communication with an external program!

Reporting Bugs

Post Bugs HERE

Requirements

LibCereal-1.0 must be installed.

Function Documentation

LibUtils.Chat( text ) / Chat( text )

Description

Sends a line of text to the primary chat window.

Parameters

text - A line of text in either string or wstring format.

Returns

Nothing

LibUtils.Dbg( text ) / dbg( text )

Description

Sends a line of text to debug window.

Parameters

text - A line of text in either string or wstring format.

Returns

Nothing

LibUtils.Dump( lua_object, label ) / Dump( lua_object, label )

Description

Prints out the lua_object in string format to the Chat window. It uses the chat window rather than the debug window because the debug window truncates the output.

Parameters

lua_object - Any lua object

Returns

Nothing

LibUtils.LoadFile( filename )

Description

Loads and de-serializes the contents of a file created by LibUtils.SaveFile()

Parameters

filename - The name of the file to load.

Returns

A single Lua object

LibUtils.PlayerName()

Description

Determines the name of the current character.

Parameters

none

Returns

A string containing the name of the current character.

LibUtils.SaveFile( filename, lua_object )

Description

Stores a single lua object (such as a table or a string) to the named file.

Parameters

filename - The filename to write to. lua_object - The object to be stored.

Returns

Nothing

LibUtils.SendCommand( cmd )

Description

Causes a single slash command to be executed. For example, "/target maudib"

Parameters

cmd - Either a string or widestring to be executed.

Returns

Nothing

LibUtils.StrJoin( ) / strjoin()

Description

Parameters

Returns

LibUtils.StrSplit() / strsplit()

Description

Parameters

Returns

  • Downloads (2)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibUtils 0.02 Release Beta 3.0 857 12/12/2008
  LibUtils Lib Utils 0.01 Beta Beta 94 12/9/2008
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • And for all witch try to use this addon with a nother program for example to praser the .log files they in UTF-16 format and not UTF-8

    Reply Report Permalink
  • i fixed a nother line
    TextLogSetIncrementalSaving( filename, true, StringToWString("logs/" .. filename ))

    Reply Report Permalink
  • I still get an error for invalid parameters TextLogSetIncrementalSaving(string,boolean,wstring) ->TextLogSetIncrementalSaving(string,boolean,string)
    but even if i change the string to wstring i get this error.
    dose anyone have the same problem?

    Reply Report Permalink
  • Mitazaki said

    in libutils.lua

    Find This
    TextLogAddEntry( filename, nil, text )

    replace with
    TextLogAddEntry( filename, 0, wstring.format(text))

    Reply Report Permalink
  • Roldero said

    The LibUtil.SaveFile function seems to be broken post patch 1.2.

    Anybody have any clues why?

    Reply Report Permalink
  • Nemes said

    Very interesting. I'm glad someone uses LibCereal ;)

    Reply Report Permalink
  • multox said

    LibCereal was done very well. It made doing this a cinch.

    Reply Report Permalink
  • Valkea said

    The Load and Save method are very interesting.

    Reply Report Permalink
  • 1 page(s)
  • Similar Addons
  •  

Average downloads per day

  1. 327 LibSlash Development Tools
  2. 203 Curse Profiler Data Export
  3. 126 Phantom Buffs & Debuffs, Development...
  4. 61 LibSurveyor Development Tools
  5. 55 NerfedButtons Action Bars, and Development...