So I was playing gmod one day, and i suddenly lost one of my amine models. (dont ask.)
Posted by12 months ago
Archived
I was goddamn mad because it was an npc and i needed to reskin it for personal use. (already done.)
But thank god i downloaded it. it was hard recovering it but there were more addons. (https://steamcommunity.com/sharedfiles/filedetails/?id=1433190646 Link to the recovered addon by me)
i couldn't find out for the sake of god why addons were being pulled out of the workshop! i lost my M1 Garand rifle and now my stress relivers. Please help.
F.Y.I i dont have the addon that needed to be revived.
4 comments
I am trying to organize my addons a little, because I don't know what's what anymore. I would like to place weapons in a weapons subfolder for example, having them all in different subfolders (e.g. a folder for lightsabers, a folder for shrink gun, ..) by using GMAD extractor and then placing them inside of this 'weapons folder', as shown in the image below.
I tried doing this by adding an autorun lua file in my 'weapons' subfolder and just loading all other autoruns inside the separate folders (lightsabers, shrink gun, ..), but this isn't working. This is my 'autorun' code:
Any ideas on how I can organize my addons the way I want them to be organized?
Michiel StandaertMichiel Standaert
1 Answer
The documentation for the
include function reveals that (since it's a function in Lua) the path names must be enclosed by parentheses.
Therefore, your code should look something like this.
ninenine
3,70733 gold badges2525 silver badges5757 bronze badges
Not the answer you're looking for? Browse other questions tagged modsgarrys-modsteam-workshop or ask your own question.
ULX is an admin mod for Garry's Mod.
ULX offers server admins an AMXX-style support. It allows multiple admins with different access levels on the same server.It features commands from basic kick, ban, and slay to fancier commands such as blind, freeze, voting, and more.
Visit our homepage at http://ulyssesmod.net.
You can talk to us on our forums at http://forums.ulyssesmod.net.
Requirements
ULX requires the latest version of ULib to be installed on the server.
InstallationWorkshop
ULX's workshop ID is
557962280 . You can subscribe to ULX via Workshop here.Don't forget you'll also need ULib, whose workshop ID is 557962238 and can be found here.
Classic
To install ULX, simply extract the files from the downloaded archive to your garrysmod/addons/ folder.When you've done this, you should have a file structure like this:
(garrysmod)/addons/ulx/lua/ulib/modules/ulx_init.lua
(garrysmod)/addons/ulx/lua/ulx/modules/fun.lua
You absolutely, positively have to do a full server restart after installing the files. A simple map change will not cut it!
Usage
To give yourself a jump start into ULX, simply remember the commands
ulx help and ulx menu .
To access the commands and settings in ULX, you can open the GUI with
ulx menu in console. It is recommended to bind this command to a keyboard key. Additionally, you can use console commands in the form of ulx (command) (arguments) or chat commands in the form of !(command) (arguments) .
To add users to usergroups, navigate to the 'Groups' tab of the GUI and select a group. Then use the 'Add' button to add connected players. You can also use the
ulx adduser (user) (group) command. If you absolutely need to, you can also edit the data/lib/users.txt file.
A word about superadmins: Superadmins are considered the highest usergroup. They have access to all the commands in ULX, the ability to override other user's immunity, and are shown log messages which are hidden from other players (EG, they are shown rcon commands admins are running). Superadmins also have the power to give and revoke access to commands using userallow and userdeny.
All commands are preceded by
ulx . Type ulx help in a console without the quotes for help.
Check out the config folder in ulx for some more goodies.
Credits
ULX is brought to you by.
A big thanks to JamminR for listening to the rest of the team (especially Megiddo) ramble on, never giving up on us, and for giving the project fresh insights.
Changelog
See the CHANGELOG file for information regarding changes between releases.
I have recently been building my GMOD server and is slowy getting popular but I was interested to create a addon so I put together something that, should, download some worksop links in loading screen and others ingame. This is what I have created.
sv_auto_download:
Vosem MediaVosem Media
1 Answer
No, this will not work.Firstly,
PlayerInitalSpawn runs after the loading screen and also resource.addworkshop is a server side function that is loaded once so that the server knows to load the workshop files, meaning addons will still be downloaded in the loading screen anyhow.
You can not 'download some worksop links in loading screen and others ingame' and you should not force players to download 10gigs of models if they don't want to.
The best way to get players to download addons is through the workshop.
Then, players will automatically download server content and it is easy for you to add more addons, with it also serving as a way for players to quickly download large models permanently if they wish to play on your server for an extended period of time.
By the way, you forgot to include the function delegate into the
hook.Add :
hook.Add ( 'PlayerInitialSpawn', 'DownloadFiles', DownloadFiles )
holmrekRholmrekR
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged luagarrys-mod or ask your own question.
(Redirected from Lua error explanation)
A Lua error is caused when the code that is being ran is improper. There are many reasons for why a Lua error might occur, but understanding what a Lua error is and how to read it is an important skill that any developer needs to have.
An error will halt your script's execution when it happens. That means that when an error is thrown, some elements of your script might break entirely. For example, if your gamemode has a syntax error which prevents init.lua from executing, your entire gamemode will break.
The first line of the Lua error contains 3 important pieces of information:
Here is an example of a code that will cause a Lua error:
The code will produce the following error:
That is because Print is not an existing function (print, however, does exist).
The first line includes the path to the file that is causing the error - addons/my_addon/lua/autorun/server/sv_my_addon_autorun.lua
Afterwards, the line that's producing the error - sv_my_addon_autorun.lua:2 (Line 2)
Lastly, the error itself - attempt to call global 'Print' (a nil value)
Below the error, we have the trace of the function. Simplified - If the error is inside a function/chunk of code that is called from somewhere else, it will state where the code is called from.
How To Access Gmod Lua In Addons Download
If the error happens serverside, the text color will be blue. If it happened clientside, it will be yellow. If it's menu code, it will be green (not a typical scenario). Messages which look like errors but are colored differently, such as red or white, are not Lua errors but rather engine errors.
If you want to print your own error messages, there are three functions to do it:
Attempt to call global '?' a nil value
Description: You tried to call a function that doesn't exist.
Possible causes:
Ways to fix:
Attempt to perform arithmetic on global '?' (a nil value)
Description: You tried to perform arithmetic (+, -, *, /) on a global variable that is not defined.
Possible causes:
Ways to fix:
How To Access Gmod Lua In Addons Download
Attempt to perform arithmetic on '?' (a type value)
Description: You tried to perform arithmetic (+, -, *, /) on a variable that cannot perform arithmetic. (e.g. 2 + 'some string')
Attempt to index global 'varname' (a nil value)
Description: You tried to index an undefined variable (e.g. print( variable.index ) where variable is undefined)
Possible causes:
Ways to fix:
Malformed number near 'number'
Description: There is a malformed number in the code (e.g. 1.2.3, 2f)
Possible causes:
Ways to fix:
Unexpected symbol near 'symbol'
Description: You typed a symbol in the code that Lua didn't know how to interpret.
Possible causes:
Ways to fix:
'symbol1' expected near 'symbol2'
Description: Lua expected symbol1 instead of symbol2.When 'symbol2' is <eof>, Lua expected a symbol before the end of the file
Possible causes:
Ways to Fix
Retrieved from 'https://wiki.garrysmod.com/index.php?title=Lua_Error_Explanation&oldid=29383'
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |