• Updating Lua Lexer - List of Garry's Mod 13 Functions?
    51 replies, posted
Hi, If anybody here uses [URL="http://notepad-plus-plus.org/"][I]Notepad++[/I][/URL], then you will know that it on the Garry's Mod 13 Update, the lexer became outdated. My goal is to update the plugin with all of the new Syntax, Functions, and such created in the updates. My Question is if anyone knows where a list of the functions may be so that I can get started on this. While I am aware of [URL="http://www.sublimetext.com/2"][I]Sublime Text 2[/I][/URL], many people complain about it due to the, "Ugly Themes" and, "All Syntax is the same colour!" I have also gotten used and prefer Notepad++, personally. For those who don't know what I mean: [img]http://i.imgur.com/W4HUcUe.png[/img] [B]Progress Update:[/B] -For Loop created to print all GLua functions into a .txt file. ( Thanks to [I]'Gran PC'[/I] and [I]'BoowmanTech'[/I] ) -For Anyone who wants it: [lua] for k, v in pairs(_G) do if type(v) == "function" then file.Append( "GLua_1.txt", (tostring(k).."\n") ) end if type(v) == "table" then for i, z in pairs(v) do if type(z) == "function" then file.Append( "GLua_2.txt", (tostring(k).."."..tostring(i).."\n") ) end end end end [/lua] [B]FINISHED RESULT:[/B] You can download the plugin [B][U][I][URL="http://www.mediafire.com/?1hfasijv4d2v8dr"]HERE[/URL][/I][/U][/B] ( Special Thanks to [I][U][URL="http://facepunch.com/member.php?u=231212"]Donkie[/URL][/U][/I], who did a good portion of the functions. I was able to merge his findings with mine to finish the plugin! ) [B]Installation![/B] 1.) Be Sure to have Downloaded [I][URL="http://notepad-plus-plus.org/"]Notepad++[/URL][/I] and Run to the Welcome Screen. 2.) On the TopBar, go to plugins > PluginManager > Show Plugin Manager 3.) Scroll down and find "GMod Lua Lexer", check the box and hit install. 4.) When prompted, Select Yes and restart Notepad++ 5.) [WINDOWS] Navigate to APPDATA/ROAMING - Start > Run > %AppData% > Notepad++ 6.) Open the Notepad++ Folder 7.) Open Plugins 8.) Open Config 9.) Locate the 'GModLua.xml' file inside 10.) Place the downloaded file inside and OVERWRITE the old one 11.) Restart Notepad++ Q.) ??? Lemon.) Profit Happy Coding Everyone :)
You should continue this BITCH
[QUOTE=MrGregsWorld;40831401]Hi, If anybody here uses [URL="http://notepad-plus-plus.org/"][I]Notepad++[/I][/URL], then you will know that it on the Garry's Mod 13 Update, the lexer became outdated. My goal is to update the plugin with all of the new Syntax, Functions, and such created in the updates. My Question is if anyone knows where a list of the functions may be so that I can get started on this. While I am aware of [URL="http://www.sublimetext.com/2"][I]Sublime Text 2[/I][/URL], many people complain about it due to the, "Ugly Themes" and, "All Syntax is the same colour!" I have also gotten used and prefer Notepad++, personally. For those who don't know what I mean: [img]http://i.imgur.com/W4HUcUe.png[/img][/QUOTE] You are better of writing your own exporter script(using Lua) or just use the ones that already exist.
[QUOTE=Wizard of Ass;40831494]You are better of writing your own exporter script(using Lua) or just use the ones that already exist.[/QUOTE] Yeah if you can find the old thread for the Lexer it comes with a Lua script that exports all the functions. But it was never updated to GM13.
[QUOTE=Ice Tea;40832411]Yeah if you can find the old thread for the Lexer it comes with a Lua script that exports all the functions. But it was never updated to GM13.[/QUOTE] It almost needs no fixing.
[QUOTE=Wizard of Ass;40833621]It almost needs no fixing.[/QUOTE] It almost don't need fixing "ALMOST"
[QUOTE=Wizard of Ass;40833621]It almost needs no fixing.[/QUOTE] -snip-
I suppose this would be useful, as it tells what changes has been made in the libaries. [url]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1[/url]
[QUOTE=bluemist;40833813]I suppose this would be useful, as it tells what changes has been made in the libaries. [url]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1[/url][/QUOTE] That article has maybe like 1% of the new functions that got added in gm13.
[QUOTE=ollie;40840662]That article has maybe like 1% of the new functions that got added in gm13.[/QUOTE] That article explains what have been removed and broken and how to fix that, not what was added. You have wiki for that.
Is it somewhat easy to create an export script with lua? I want to try it now out of curiosity, I will help if any is needed.
[QUOTE=find me;40843876]Is it somewhat easy to create an export script with lua? I want to try it now out of curiosity, I will help if any is needed.[/QUOTE] It should be, I'll fetch the GM12 version purposely made for this Lexer. [editline]30th May 2013[/editline] Here it is: [url]https://code.google.com/p/npp-gmod-lua/source/browse/GmodLua/bin/Npp_Keywords.lua[/url] Would be nice if anyone would have a go at it to update it to GM13. I'll take a crack at it now.
[QUOTE=ollie;40840662]That article has maybe like 1% of the new functions that got added in gm13.[/QUOTE] Well at least its something...
[QUOTE=Ice Tea;40844135]It should be, I'll fetch the GM12 version purposely made for this Lexer. [editline]30th May 2013[/editline] Here it is: [url]https://code.google.com/p/npp-gmod-lua/source/browse/GmodLua/bin/Npp_Keywords.lua[/url] Would be nice if anyone would have a go at it to update it to GM13. I'll take a crack at it now.[/QUOTE] I'd much appreciate it if you got it updated :) [editline]30th May 2013[/editline] With the help of: [URL="http://facepunch.com/member.php?u=555987"][I][B]'BoowmanTech'[/B][/I][/URL] and [URL="http://www.facepunch.com/members/converse.php?u=116165&u2=503693"][I][B]'Gran PC'[/B][/I][/URL], I was able to create a 'for loop' and print ALL the GLua Functions into a .txt file. I will now begin to add them into the Colour-Coder and well yeah. FUN TIME! But not really.
[url]http://pastebin.com/Bgg3Temf[/url] woot.
[QUOTE=Dannyman;40855880][url]http://pastebin.com/Bgg3Temf[/url] woot.[/QUOTE] Nice, both datastream and GLON are dead.
None of them are used in the actual code, its just required at the top.
[url]https://dl.dropboxusercontent.com/u/15075155/GmodLua.xml[/url] There, I updated it mid-february and not that many methods has been added since. I lost the script I used to create it, perhaps I'll make a new one.
[QUOTE=Donkie;40863931][url]https://dl.dropboxusercontent.com/u/15075155/GmodLua.xml[/url] There, I updated it mid-february and not that many methods has been added since. I lost the script I used to create it, perhaps I'll make a new one.[/QUOTE] Well then... I kid, Great Work! I'll go ahead and merge the file to the OP and be sure to give you your credit.
Nice job and I will use it until I die or find something better :D
[QUOTE=MrGregsWorld;40864280]Well then... I kid, Great Work! I'll go ahead and merge the file to the OP and be sure to give you your credit.[/QUOTE] That's still only mid-february, I'm sure more stuff has been added in the past 4 months.
Like a boss go on with this work really nice
[QUOTE=Ice Tea;40866232]That's still only mid-february, I'm sure more stuff has been added in the past 4 months.[/QUOTE] You're right, a few things were added in. I merged his list with mine to fix about 95% of them. I have it released now and it's only missing a few functions. I'll get around to updating it fully in a few days. For now, I must make pointshop before I leave! D:
Latest Added [lua]Lib: VoiceNotify.Init VoiceNotify.Paint VoiceNotify.Think VoiceNotify.Setup VoiceNotify.FadeOut coroutine.wait list.Contains player_manager.TranslatePlayerHands player_manager.AddValidHands navmesh.Find util.Timer util.Stack util.SteamIDFrom64 util.SteamIDTo64 duplicator.RemoveMapCreatedEntities motionsensor.ChooseBuilderFromEntity motionsensor.ProcessAnglesTable motionsensor.ProcessPositionTable motionsensor.ProcessAngle motionsensor.BuildSkeleton motionsensor.ChooseBuilderFromEntity motionsensor.IsAvailable motionsensor.BuildSkeleton motionsensor.ProcessAnglesTable motionsensor.Stop motionsensor.Start motionsensor.IsActive motionsensor.ProcessPositionTable motionsensor.GetSkeleton motionsensor.ProcessAngle motionsensor.GetColourMaterial _G: BotChatPrint LookUpName DebugInfo PrintMessage EmitSound IsValid BotSay ConsiderInput DecryptAI KeyPressed BuildFonts SetOrgScale QueueHat QueueBody QueueBottom QueueGlasses PreloadHSModels Filter Scrabble FirstSpawn Loadout Angle QueueSkin ChangeClass Path GetConVar HSHugNPC QueueTop WorldToLocal Bilder LocalToWorld ChangeClass2 QueueAcc DropCurrentWeapon RemoveTooltip PickupStax AddCostume CanPlayerSuicide Sanitise VampIt Taunt NegateDamage BenGetMummy PickupStix pSpawn Ask ManageRoboFeet Pocket createDeathRagdoll physgunPickup ClassMenuShow GAMEMODE: GAMEMODE.PlayerSpawnedNPC GAMEMODE.PlayerSpawnNPC GAMEMODE.PreGamemodeLoaded GAMEMODE.PlayerPostThink GAMEMODE.PlayerDriveAnimate GAMEMODE.PlayerSwitchWeapon GAMEMODE.PlayerSpawnedProp GAMEMODE.PlayerButtonUp GAMEMODE.StartEntityDriving GAMEMODE.GrabEarAnimation GAMEMODE.OnReloaded GAMEMODE.ShowHelp GAMEMODE.PlayerSpawnRagdoll GAMEMODE.PlayerSpawnProp GAMEMODE.PlayerStartTaunt GAMEMODE.PlayerSpawnedVehicle GAMEMODE.PlayerSpawnEffect GAMEMODE.PlayerTick GAMEMODE.CanProperty GAMEMODE.HandlePlayerVaulting GAMEMODE.PostGamemodeLoaded GAMEMODE.CanEditVariable GAMEMODE.CheckPassword GAMEMODE.PlayerCanPickupItem GAMEMODE.PlayerSpawnSWEP GAMEMODE.PlayerGiveSWEP GAMEMODE.CanTool GAMEMODE.CanRender GAMEMODE.CanPose GAMEMODE.PlayerFrozeObject GAMEMODE.OnViewModelChanged GAMEMODE.PlayerSpawnedRagdoll GAMEMODE.MouthMoveAnimation GAMEMODE.OnGamemodeLoaded GAMEMODE.VehicleMove GAMEMODE.PlayerSpawnSENT GAMEMODE.EndEntityDriving GAMEMODE.AllowPlayerPickup GAMEMODE.CanConstrain GAMEMODE.CanConstruct GAMEMODE.PlayerSpawnedSENT GAMEMODE.CanDrive GAMEMODE.HandlePlayerNoClipping GAMEMODE.PlayerSpawnedEffect GAMEMODE.HandlePlayerLanding GAMEMODE.VariableEdited GAMEMODE.PlayerUnfrozeObject GAMEMODE.FindUseEntity GAMEMODE.PlayerButtonDown GAMEMODE.PlayerShouldTaunt GAMEMODE.PlayerSpawnObject GAMEMODE.PlayerSpawnVehicle GAMEMODE.PlayerSpawnedSWEP [/lua] [url]https://dl.dropboxusercontent.com/u/17743302/gmod/GmodLua.zip[/url] for notepad++ Dir - C:\Program Files\Notepad++\plugins\Config
-SNIP-
Thankyou so much!
Updated the .xml file with more stuff, mostly NextBot stuff. Download: [url]https://dl.dropboxusercontent.com/u/10382947/GmodLua.xml[/url]
I updated it once more, the download link stays the same, I added more nextbot stuff, more sandbox stuff, cleaned it up, removed some unnecessary stuff. I think I got all the hooks and most functions, but I still have to do the globals. And I was thinking about making the PANEL: hooks highlighted just like GM: hooks are.
Congratulations, you're turning yourself into a demigod of the GMod npp lua community! ;D
I started coding autocomplete for Notepad++, but did not finish since this requires patching notepad++ so it doesn't unload the autocomplete (and we should probably switch to faster xml parser too) Have a project anyway [url]https://github.com/Python1320/gmod-wiki-npp[/url]
Sorry, you need to Log In to post a reply to this thread.