No description
| media/lua/Utils | ||
| mod.info | ||
| Readme.txt | ||
| utility.png | ||
================================================
RoboMat's Modding Utilites
created by RoboMat
================================================
Check out pz-mods.net!
------------------------------------------------
0. Info
------------------------------------------------
This is a community driven project. Basically this file
works similar to the luautils provided by RobertJohnson.
I started writing it when I used the same functions
in several of my mods over and over again.
It contains several utility functions such as string
splitting or table concatenation. The idea is to have
a hub for commonly used functions so that modders can
easily use them.
Since version 2.0 I also added other "classes" such
as FileIO or the LuaBenchmark.
------------------------------------------------
1. Installing
------------------------------------------------
Look here for instructions:
http://theindiestone.com/forums/index.php/topic/1395-
------------------------------------------------
2. Contributors
------------------------------------------------
RoboMat original File & idea.
------------------------------------------------
3. Changelog
------------------------------------------------
Version 2.0.0
- Completely rewritten code
=> Divided the former utils in seperate sub libraries
-> LibMath
-> LibString
-> LibTable
-> LibZomboid
=> Usage-Instructions can be found here: http://theindiestone.com/forums/index.php/topic/1395-
- New documentation of each function.
- Added IO classes
=> FileIO
-> Can read any file
-> Basic tag reading functionality
=> IniIO (WIP)
-> Can read .ini files
-> Can write .ini files
- Rewritten LuaBenchmarker
- RMUtility.getVersion() can be used to see if the user has installed the correct version of the Utils.
Version 1.9.1
- Updated readFile(...)
=> Now allows for comments (use "-- " to start line comments)
- Tweaked Benchmarker
=> Removed memory measure stuff
Version 1.9.0
- Added Lua Benchmarker
=> measures time between start() and stop()
=> untested memory management stuff
- Added Utility.split()
=> Splits a file at a certain delimiter e.g. "/"
- Updated readFile(...)
=> now can scan for unlimited amount of tags (e.g. <title>)
it will store the content of the line in the
table of the file, where you can use the tag
to access it later on. (e.g. file.title)
Version 1.8.2
- Fixed readFile(...)
=> catches crash and returns error msg
=> stores "Error: FileNotFound at <FilePath>." instead
Version 1.8.1
- Updated readFile(...)
- Updated isInHand(...)
=> now detects 2 handed weapons
Version 1.8.0
- Added readFile(...)
- Added getStringLength(...)
- Added getStringHeight(...)
- Added wrapString(...) - WIP
- Readded info on startup
Version 1.7.0
- Updated to work with the latest modloader
- Added round(...)
- Added isInInventory(...)
- Added isInHand(...)
- Added trim(...)
- Added startsWith(...)
- Added weaponLowerCondition(...)
- Changed getRndValue(...) - returns index
- Changed lower(...) - added cap parameter
- Changed increase(...) - default values
- Removed lowerCondition(...)
- Fixed filter(...)
- Lots of refactoring & new documentation
- Updated for new modloader functions
Version 1.6.0
- Added equipItems(...)
- Added walkToObject(...)
- Added getExactTimeOfDay(...)
- Added tCalculateAverage(...)
- Tweaked attractZedsToPlayer(...)
Version 1.5.0
- Added convertArrayList(...)
- Added info to make sure users have installed the
most recent version.
Version 1.4.0
- Added replaceNestedIfs(...)
Version 1.3.2
- Fixed bug with centered okModal(...)
Version 1.3.1
- Changed okModal(...) - can be centered now
Version 1.3.0
- Added okModal(...)
- Added lowerCondition(...)
Version 1.2.0
- Added attractZedsToPlayer(...)
- Added filter(...)
- Changed increase(...) - added cap parameter
Version 1.0.0
- ADDED:
=> isString()
=> contains()
=> rnd()
=> getRndValue()
=> tConcat()
=> tPrint()
=> tContains()
=> lower()
=> increase()