Loading...
  OR  Zero-K Name:    Password:   

Wiki: Complete overview of unit names, roles and factory.

16 posts, 433 views
Post comment
Filter:    Player:  
sort
2 months ago
Hi, as mentioned in this thread: https://zero-k.info/Forum/Thread/27807?page=1
I think it would help new players to have a complete overview of all the units and what they are, in one handy page.


I'm willing to give it a try, otherwise someone more familiar with the wiki might be able to whip it up pretty quick.

I'm proposing the following information:

[FACTORY NAME]

Unit name / role / icon -> Link to unit's page
Aliases (ie. nicknames, previous names)
Cost / HP
On mouseover, information on weapons, DPS, etc.



Also, structures are included in the list too after all the factories, especially combat structures.


Are we ok with this? Should I make a new wiki page or expand one of the existing pages?
(eg. this one: https://zero-k.info/mediawiki/index.php?title=Units )

+2 / -0
The proposed information in a table might be good for the units page. I'm thinking the table for each factory's units should be implemented as a template that gets inserted into both the Units page and the specific factory's page.

(In any case I'd suggest messing with stuff in a sandbox page first, e.g. User:MyUserName/Sandbox)

Might be worth finding someone to make a script that dumps the needed information from the game or the unit files into a pre-formatted table, instead of creating it manually. I might possibly look at this later.
+2 / -0
2 months ago
Yes, considering the information is partially replicated in several different places, being able to do it automatically would reduce double maintenance.


It would be great if you think this is a worthwhile thing to do :D
+0 / -0

2 months ago
AUrankAdmiralZeech I want to work on this with you.
+0 / -0
2 months ago
Sure! Do you mean manually or using scripting? Because I'm not familiar with the latter.
+0 / -0

2 months ago
Some of both.
+0 / -0
2 months ago
Are you able to do the scripting component? Or are we waiting for Histidine? How should we begin?
+0 / -0

2 months ago
We make a sandbox and try to get that to work the way we want, and then make a pull request to get it in the infrastructure repository.
+0 / -0


2 months ago
Sample version
Don't have a good idea for how to implement weapon tooltip. Or indeed whether the information is needed at all, for what appears to be a quick navigation/lookup table...
+1 / -0
Maybe the units template could be improved too? Something like


Edit: the classification would likely boil down to parsing this https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Configs/integral_menu_commands.lua#L6-L151
+12 / -0

2 months ago
pls more upvotes for the post above...
+1 / -0

2 months ago
MYrankAdminHistidine I think yours is near perfect. The only thing I would change of the top of my head is normalize the columns and put the icon in an icon field.
+0 / -0
MYrankAdminHistidine
That's great! The weapon tooltips were a nice to have, but if it's hard then it's easily skipped I guess.


I'm trying to understand the code, do you run this in the engine to generate files for the wiki? Does this mean the aliases have to be edited in by hand each time? I guess the aliases can be saved into a text file with the engine and your code could pull out the data when generating...?
+0 / -0


2 months ago
quote:
function widget:Initialize()

Yep, this needs to go into a widget and execute in the engine.
+0 / -0
Edited to try a version with a separate column for the map icon.

You shouldn't need to run the tool more than once per factory btw, this is just to help quickly generate templates. The tables can be edited entirely manually afterwards.
+1 / -0

2 months ago
I copied the new one to my sandbox and I am going to play around with it.
+0 / -0