summaryrefslogtreecommitdiff
path: root/skinlist.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2016-09-05 21:02:53 +0200
committerAlexander Weber <web.alexander@web.de>2016-09-05 21:02:53 +0200
commit8aef2c19bab48d552c1701f22a273b6b521e51fa (patch)
tree2708416623a65fa2d28ba08380e4d8f3dfd091f7 /skinlist.lua
parentbe8fa19b68f7362bce5bd0b519c61b0c743eb851 (diff)
The u_skins is a mod, not a modpack. Moved u_skins to the root and all updater stuff to the (new) updater directory
Diffstat (limited to 'skinlist.lua')
-rw-r--r--skinlist.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/skinlist.lua b/skinlist.lua
new file mode 100644
index 0000000..718646c
--- /dev/null
+++ b/skinlist.lua
@@ -0,0 +1,26 @@
+u_skins.list = {}
+u_skins.meta = {}
+
+local id = 1
+local internal_id = 1
+local fetched_skip = 0
+while fetched_skip < 40 do
+ local name = "character_"..id
+ local file = io.open(u_skins.modpath.."/meta/"..name..".txt", "r")
+ if file then
+ local data = string.split(file:read("*all"), "\n", 3)
+ file:close()
+
+ u_skins.list[internal_id] = name
+ u_skins.meta[name] = {}
+ u_skins.meta[name].name = data[1]
+ u_skins.meta[name].author = data[2]
+ u_skins.meta[name].license = data[3]
+ u_skins.meta[name].description = "" --what's that??
+
+ fetched_skip = 0
+ internal_id = internal_id + 1
+ end
+ fetched_skip = fetched_skip + 1
+ id = id + 1
+end \ No newline at end of file