Author Topic: ULX and ULib Documentation  (Read 2128 times)

0 Members and 1 Guest are viewing this topic.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
ULX and ULib Documentation
« on: August 14, 2013, 12:46:36 AM »
I have noticed that the http://ulyssesmod.net/docs/files/ULib_readme-txt.html documentation is not really extensive or easy to use, it seems like more then a few commands are missing from it and to be honest I think it needs a total revamp.

I am willing to help if you wish me to. ( I would be honored if I could help with it :), as my title on this forum suggests... )

---Below is the help and support part---

Also changing the subject slightly...
What is the command used to check what groups inherit from a group?
Is there a way to find the group that is currently the highest rank?
« Last Edit: August 14, 2013, 12:48:17 AM by HeLLFox_15 »
I cry every time I see that I am not a respected member of this community.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX and ULib Documentation
« Reply #1 on: August 14, 2013, 05:35:13 AM »
Throw us an example of how you propose to change the documentation.

To check what group inherits from a group, use ucl.groupInheritsFrom. To find the group(s) that are highest rank (there can be multiple since you can have multiple trees), use ucl.getInheritanceTree. Both of these functions are decently documented. :)
Experiencing God's grace one day at a time.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: ULX and ULib Documentation
« Reply #2 on: August 14, 2013, 01:37:13 PM »
Throw us an example of how you propose to change the documentation.

To check what group inherits from a group, use ucl.groupInheritsFrom. To find the group(s) that are highest rank (there can be multiple since you can have multiple trees), use ucl.getInheritanceTree. Both of these functions are decently documented. :)

Well lets say you are not sure exactly what command your looking for but you know what you want it to do for example the stuff I was talking about above searching ucl brings up nothing, when you would expect it to return some thing similar to this... http://wiki.garrysmod.com/page/Category:Panel

Basically I want to make the documentation more friendly for the average user, so that its easy to find things visually as well as add some ULX functions like ulx.jail and what not.
I cry every time I see that I am not a respected member of this community.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX and ULib Documentation
« Reply #3 on: August 14, 2013, 02:38:49 PM »
Hellfox, we purposely keep ULib separate of ULX.
Though we'd hoped many more developers would write modules for ULib not just ULX, I could see how one would try to intertwine them.

As for your searching for UCL issue, not sure why you have problem.
I do notice if you select 'ucl' instead of UCL after typing the search, it comes up with less/different.
Though the search isn't case sensitive, the documentation apparently is.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX and ULib Documentation
« Reply #4 on: August 14, 2013, 02:59:58 PM »
HeLLFox, what I'm asking for is a working example of how would setup the documentation. EG, we're using Natural Docs right now. If you think using a wiki would be better, create one and document a few functions to show us how you would envision it working.

Though as a note, I think Garry's documentation started out awful and has progressively gotten worse. He did no documentation himself and instead relied on the community to document his work... which is just an awful idea from the get-go. But, when he tried to be more regimented about documenting things himself, it turned out even worse. Or at least, I always find myself referring to the old wiki archives because they tend to be more accurate. Also, we have used a wiki for documenting in the past with very little success ourselves, but that was a very, very long time ago so I'm willing to give it another shot.

On UCL in particular, Natural Docs isn't working quite like you'd expect it to because of ND's limitations with Lua, but if you really needed to see all UCL functions you can do so by looking through the three UCL files (server, shared, client). It's not perfect, but our current documentation system beats out Garry's quite handily.
Experiencing God's grace one day at a time.