The Mugen Fighters Guild

M.U.G.E.N Central => MFG Presents Street Fighter => FullGame development => Ryu => Topic started by: Just No Point on June 20, 2014, 09:25:19 pm

Title: Documenting and updating our template
Post by: Just No Point on June 20, 2014, 09:25:19 pm
I'd like to discuss what the best way to document Ryu for new creators and old alike would be.

Here is an example:
Spoiler, click to toggle visibilty

I am curious if each part of the code should be documented to explain what it does or means. As far as assuming people are familiar with the source of course. If you have never played a SF game we will not be discussing the parts that deeply!
Perhaps the coding should only be documented in a dedicated documentation thread to add links like this:
You will find this part in ryu.command

You will find the following lower down the ryu.command file under the [Statedef -1] area

The following is found in basics.st


I'm kind of thinking this would be the better way to approach this. Perhaps saving what I post on the forum as html as well so that I can add it to Ryu in a documentation folder. The old Mugen Code tag would be great right about now!

Comments? Suggestions?
Title: Re: Documenting and updating our template
Post by: XGargoyle on June 22, 2014, 11:20:26 am
You are basically posting the content of Elecbyte's docs there... is it worth documenting every line?

I would document only the necessary parts, as in the specifics of the full game environment, but documenting that a semicolon is used to comment something out I find it ridiculous and a real waste of time/efforts

just my 2 cents
Title: Re: Documenting and updating our template
Post by: Just No Point on June 22, 2014, 01:40:53 pm
Semi colon thing is over doing it, yes. I just wanted something for each line of code :P

Keep in mind I'm hoping that this helps people that have never tried to code before participate. Some of this stuff I even missed when I was looking for more info on it because info is strung across all kinds of pages of DOCs. It is also a way for me to keep pushing this stuff in my own head. Because I'm rereading everything I'm linking to as well.

Anyway, it's not like I'm going to do this with every line of code. I'm thinking to do this with the rest of the LP code. And a few snippets of code from some other basics that get different lines of code added.

I might want to separate the documentation into the file names found in Ryu; IE Basics.st, ryu.command, constants.cns, etc and make a sticky post that harbors links to each part. Also giving a list on the standards being used in the sticky.

@Loona: You're just as ridiculous about this stuff as I am. You have any input?
Title: Re: Documenting and updating our template
Post by: Loona on July 11, 2014, 01:47:12 am
All that comes to mind right now is don't repeat comments in the same file - it's OK to be detailed early on, but after that just comment what's different from what was already commented.
Title: Re: Documenting and updating our template
Post by: Just No Point on July 11, 2014, 02:09:15 am
That's the plan.

This slowed down because there is a ton of stuff being added to the basic setup for all moves due to coding the config file. I should stick with my guns and wait till he's more complete to document.

Another thing I intend to do will be make a quick view on standards in the coding. For people familiar with coding it will explain what must be kept in what situations. Like the universal hitpauses I found for certain attacks, JZ's coding that is used to make the hit pause pause on a later frame than the one that connects, etc