#Dota2 Mana and Spell Icons Lua port of https://github.com/rossengeorgiev/dota2mod_manacost
This script will automatically parse all spell icons and item icons. It will use the data found in the vpk to overlay manacost and damage type onto the image.
- Download latest VPK here
- Create directory
SteamApps/common/dota 2 beta/game/dota_mods
- Add the downloaded
pak01_dir.vpk
to your newly created folder - Edit
SteamApps/common/dota 2 beta/game/dota/gameinfo.gi
- Add the line highlighted in the image below
- Launch Dota2 and enjoy!
- Convert struct to ffi and drop dependancy
- Convert imlib2 to ffi and drop dependancy
- http://luajit.org/download.html
- https://github.com/keplerproject/luafilesystem
- http://freecode.com/projects/imlib2
- Edit render.lua and modify any of the paths to suit your needs
- You should only need to modify
vpk_dir
andvpk_output
- run
luajit render.lua
from the repository directory
- CapsAdmin - For his VDF parser
- rossengeorgiev - VPK class and original icon rendering and inspiration