[QUOTE=Pandaman09;39974387]Not sure if this is intended... but
[code]
{{Func
|Name=IPAddress
|Parent=Player
|Description=Returns the player's IP Address
| Returns = {{Return| s
|Realm=Server
|IsClass=Yes
}}
{{Ret
|type=string
|desc= ipAddress
}}
{{Example
| Description = Prints the player's IP
| Code = print(ply:IPAddress())
| Output = 127.0.0.1
}}
[/code]
At least a few of the player functions are messed up.
[url]http://i.imgur.com/MDgMVv2.png[/url] <-- picture of what it looks like.
If there is a way to manually fix it, I'll gladly do some.[/QUOTE]
looks like garrys wikibot might have borked up on a few of them, you can fix them yourself by clicking the "Edit" button on the top of a page:
[img]http://img.qrlx.us/skooch/1363737937_4H7K7Q.png[/img]
the correct version of the borked code you quoted should be:
[code]
{{Func
|Name=IPAddress
|Parent=Player
|Description=Returns the player's IP Address
|Realm=Server
|IsClass=Yes
}}
{{Ret
|type=string
|desc= ipAddress
}}
{{Example
| Description = Prints the player's IP
| Code = print(ply:IPAddress())
| Output = 127.0.0.1
}}
[/code]
(The bot forgot to close }} tags)
I fixed it for you but if you see more you can just fix them yourself :)
[QUOTE=usa;39974554]-words and stuff-[/QUOTE]
wanna help me? :3
Also Can't find anymore...
EDIT: went through about half of the list and fixed a few.
I have been filling in hooks whenever I see there are any missing, but only if I can explain how it works well enough. if the example includes something about Garry in it, it was most likely posted by me.
Yeah that isn't intended!
jack if you need help with examples post here or pm me and I'll gladly help think of things with you.
[QUOTE=Pandaman09;39984250]jack if you need help with examples post here or pm me and I'll gladly help think of things with you.[/QUOTE]
I can do examples easily. My only problem is that I don't want to use a stupid name to use as an example person, so I use "Garry :D" on all of them.
[QUOTE=jack10685;39986243]I can do examples easily. My only problem is that I don't want to use a stupid name to use as an example person, so I use "Garry :D" on all of them.[/QUOTE]
oh lol.
I used to write addons and gamemodes for Gmod a very long time ago, and I've mostly forgotten how things work by now. I just got started again and I'm having a really hard time working with the wiki. There doesn't seem to be enough info for a beginner to get started so I thought I would post what's missing from a beginners perspective as it seems most of you guys already knew how to write addons/gamemodes before the new wiki got started.
First I think we need an "Addon Creation" tutorial that just covers how to write a simple entity and/or stool.
The "Gamemode Creation" is currently a bit too basic it only covers how to create the initial info.txt file. That's hardly to any help if you don't already know how the folder structure and filenames etc work. I think it should at least cover the folder structure, core functions and get some basic gameplay going, so you get a overview on how things work.
[QUOTE=ToxeCryz;39997601]I used to write addons and gamemodes for Gmod a very long time ago, and I've mostly forgotten how things work by now. I just got started again and I'm having a really hard time working with the wiki. There doesn't seem to be enough info for a beginner to get started so I thought I would post what's missing from a beginners perspective as it seems most of you guys already knew how to write addons/gamemodes before the new wiki got started.
First I think we need an "Addon Creation" tutorial that just covers how to write a simple entity and/or stool.
The "Gamemode Creation" is currently a bit too basic it only covers how to create the initial info.txt file. That's hardly to any help if you don't already know how the folder structure and filenames etc work. I think it should at least cover the folder structure, core functions and get some basic gameplay going, so you get a overview on how things work.[/QUOTE]
there are tutorials on how to do those things on youtube.
Tutorials are something I want to do better. I'm planning to make a few more gamemode tutorials, and maybe some video tutorials for making gamemodes before the next gamemode contest
So far the Wiki is looking god damn sexy, it looks a lot more sleek than the other Wiki.
I look forward to go through it when it is completely finished :)
The wiki is much better than since I last looked at it, thanks garry :v:
Set up the bot to update the wiki from document comments. Not sure how to handle it if the page already exists - so I'm not gonna do anything right now.
Only functions I added recently have got the comments though.
[url]http://wiki.garrysmod.com/index.php?title=Special:RecentChanges&hideliu=0&limit=100&hidebots=[/url]
Seems the modding tutorials page is getting a bit messy.
[url]http://wiki.garrysmod.com/page/Adding_Console_Commands[/url]
[url]http://wiki.garrysmod.com/page/Removing_Console_Commands[/url]
Are these really needed when we have this?
[url]http://wiki.garrysmod.com/page/Console_commands[/url]
I have no idea why this was even created. This doesn't seem like a tutorial to me, just documentation (if you can call it that).
[url]http://wiki.garrysmod.com/page/GlobalVariables[/url]
Garry, can you remove this page: [url]http://wiki.garrysmod.com/page/Classes[/url]
and all it's subpages? [url]http://wiki.garrysmod.com/page/Classes/*[/url]
Maybe your bot can quickly do this?
And also, these:
[url]http://wiki.garrysmod.com/page/Global[/url]
[url]http://wiki.garrysmod.com/index.php?title=Workshop/Garry%27s_Workshop_Publisher&redirect=no[/url]
[url]http://wiki.garrysmod.com/index.php?title=Workshop/Updating_addons&redirect=no[/url]
[url]http://wiki.garrysmod.com/index.php?title=Workshop/Creating_addons&redirect=no[/url]
Added a tutorial
[url]http://wiki.garrysmod.com/page/Chair_Throwing_Gun[/url]
If you could scan it for errors/misinformation that would be kewl
I could help with tutorials, when i have time.
There's a lot of files that call AddCSLuaFile without parameters ([url=http://www.glua.me/bin/?path=/lua/weapons/flechette_gun.lua]example[/url]), but [url=http://wiki.garrysmod.com/page/Global/AddCSLuaFile]the wiki[/url] doesn't cover it. Does it just AddCSLuaFile the current file?
[QUOTE=Agent766;40036296]There's a lot of files that call AddCSLuaFile without parameters ([url=http://www.glua.me/bin/?path=/lua/weapons/flechette_gun.lua]example[/url]), but [url=http://wiki.garrysmod.com/page/Global/AddCSLuaFile]the wiki[/url] doesn't cover it. Does it just AddCSLuaFile the current file?[/QUOTE]
Yes it does. I added a second example.
Awesome. Updated the wiki page then.
[QUOTE=garry;40036058]Added a tutorial
[URL]http://wiki.garrysmod.com/page/Chair_Throwing_Gun[/URL]
If you could scan it for errors/misinformation that would be kewl[/QUOTE]
While you are at SWEPs, can you explain what these do? ( from weapon_base )
[code]
SWEP.AnimPrefix = "python"
function SWEP:CheckReload()
end
function SWEP:ShouldDropOnDie()
return true
end
[/code]
I can't find any differences after changing any of them.
I think ShouldDropOnDie was removed and replaced with a weapon variable instead. I'll check into it though.
I reorganised the front page, removed a bunch of static pages. Adding tutorials should only require adding appropriate categories to your tutorial.
I can't add a description to the return value. It gets removed when I save the page.
This is the description I want to add to the return value of Vector:Dot(vec)
[code]||A|| * ||B|| * cos(ang)
where
||A|| is the length of vector A
||B|| is the length of vector B
ang is the angle between the two vectors in radians[/code]
[url]http://wiki.garrysmod.com/page/Vector/Dot[/url]
Also, the output of the example doesn't have newlines.
Edit:
God damnit my second example is too long and just got cut off halfway
Why are you doing ||A||
[QUOTE=garry;40043480]Why are you doing ||A||[/QUOTE]
It means the length of the vector.
[img]http://upload.wikimedia.org/math/7/6/0/7607dba1327bbb2312ae7a60fec877c6.png[/img]
Oh.
[QUOTE=garry;40043589]Oh.[/QUOTE]
Don't worry I didn't know what it meant with two lines until half way through the first year of a maths degree
[QUOTE=FPtje;40043450]I can't add a description to the return value. It gets removed when I save the page.
This is the description I want to add to the return value of Vector:Dot(vec)
[code]||A|| * ||B|| * cos(ang)
where
||A|| is the length of vector A
||B|| is the length of vector B
ang is the angle between the two vectors in radians[/code]
[url]http://wiki.garrysmod.com/page/Vector/Dot[/url]
Also, the output of the example doesn't have newlines.
Edit:
God damnit my second example is too long and just got cut off halfway[/QUOTE]
You're mixing the two :
Lua : A:Length() * B:Length() * math.cos( ang );
Maths : ||A|| x ||B|| x cos(ang)
In maths you can use dots too as to not confuse it with the letter x.
I don't think the way to explain what the vector:Dot function does is to use mathematical formula.
It seems like if they know that stuff they won't need to be told it.
Sorry, you need to Log In to post a reply to this thread.