Hi, Im sure someone did the same before me, but maybe his try is not known enough and maybe it does a bit different thing or work different way (than i needed). So here is the widget
WHAT DOES IT DO?
You launch standard game - from every unit defined in your choosen mod/gamefile widgets gets some choosen values (unit statistics). For each unit, it creates separate html page with all choosen stats + navigation (list of names of all units).
It creates one index.html and one style.css file, too.
websiteURL (def: "http://nota.machys.net/" - put here your webpage or let empty -> "")
filePath (def: "LuaUI/stats/" - choose different folder in LuaUI - if you dont want create "stats" there - its folder for output data)
notaPageGoogleStatistics (def: "true" - for different game then NOTA let false OR edit google analytics in head.lua file and use own one)
backgroundColor (def: "fff")
backgroundColor2 (def: "ddd")
POSSIBLE ISSUES
I: I have no result. A: Maybe you forgot to create "stats" folder in your spring ./LuaUI/
I: It says - "./LuaUI/stats/ doesnt exist" in my logfile but I created it A: Maybe you look in the folder with some browser or file manager (folder testing is done by silly way - it tests renaming)
I: There are some units in result I never met in game A: Yes, those bastards are hiding all the time.
I: I dont have any images as you on example page A: Yes, you need to pick all images from you game, convert them to *.jpg and put into same folder as all html files
EXPECTED CRITICS (I answer in Taunts shortcuts)
C: You code like my granny. A: (1) (43)
C: There can be added many features, its not finished, there are only few values, its not possible to change the list of values A: (202)
C: What is that for? It does almost nothing A: (1), its for fast comparing, arguing about balance in you mod/game, for showing to newbies (if no better tools present around in your game community)
FUTURE:
At the end I want to say, it was done in few hours this afternoon to get the some end-value at the smallest time cost.
Another development depends on interest of you or our NOTA dudes.
Attachments:
File comment: just unpack in your spring folder and it should create the result after init of first game you try to play mod_stats_exporter.zip [4.23 KiB]
Downloaded 47 times
Last edited by PepeAmpere on 10 Nov 2012, 18:41, edited 1 time in total.
neat, I did one like this years ago and lost the source code. Good stuff. I didn't think of generating an index with all the names, that is a cool idea.
The reported LOS and speed values are very strange.
Yes, it looks some values are edited in postdef or by engine way. But still, i can cut the string to make it shorter.
Google_Frog wrote:
Also only one weapon is reported and it has a strange damage value.
Yes, in new version i will write all weapons.
Strange DMG value is because some NOTA weapons have set some "strange" number as default and some normal for all armor classes (default is first in list, i write only dmg from first position) = so that "strange" number is never used, because every armor class have some own number. ---> i can list all damages for given weapon.
Combining those generated pages + iframes in WP post + tags can make nice knowledge base, thematical search - check on http://nota.machys.net/faq/notawords
Thx to danil_kalina for new icons set and to Godde for consulting the stats representation and layout.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum