• Need help with a gmod script for a server
    12 replies, posted
Hi there, recently I began developing a gmod Halo RP server for a friend. He gave me the darkrp Job ranks script as seen on [v1.2.7] Job Ranks System Customizable · gmodstore He wants me to re purpose this script for our Halo RP server, however I have tried quite a few times I cannot seem to figure out how to configure the script to work with our custom joblist. If anyone is able to teach or tell me how to accomplish this I would greatly appreciate it! An example of some errors I get when trying to use the script unconfigured: [ERROR] addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks_config.lua:186: unexpected symbol near '}'  1. unknown - addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks_config.lua:0 [ERROR] addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks_config.lua:186: unexpected symbol near '}'  1. unknown - addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks_config.lua:0 L 05/09/2018 - 23:37:24: Lua Error: [ERROR] addons/jobrankssystem/lua/tbfy_jobranks/sv_jobranks.lua:229: attempt to index global 'JobRanksConfig' (a nil value)  1. unknown - addons/jobrankssystem/lua/tbfy_jobranks/sv_jobranks.lua:229   2. include - [C]:-1    3. unknown - addons/jobrankssystem/lua/autorun/sh_loadjobranks.lua:8 [ERROR] addons/jobrankssystem/lua/tbfy_jobranks/sv_jobranks.lua:229: attempt to index global 'JobRanksConfig' (a nil value)  1. unknown - addons/jobrankssystem/lua/tbfy_jobranks/sv_jobranks.lua:229   2. include - [C]:-1    3. unknown - addons/jobrankssystem/lua/autorun/sh_loadjobranks.lua:8 [ULib] addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks.lua:64: attempt to index global 'JobRanksConfig' (a nil value)  1. fn - addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks.lua:64   2. Call - lua/ulib/shared/hook.lua:109    3. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:149     4. unknown - gamemodes/darkrp/gamemode/init.lua:111      5. DeriveGamemode - [C]:-1       6. unknown - gamemodes/halorp/gamemode/shared.lua:6        7. include - [C]:-1         8. unknown - gamemodes/halorp/gamemode/init.lua:4 [ULib] addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks.lua:64: attempt to index global 'JobRanksConfig' (a nil value)  1. fn - addons/jobrankssystem/lua/tbfy_jobranks/sh_jobranks.lua:64   2. Call - lua/ulib/shared/hook.lua:109    3. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:149     4. unknown - gamemodes/darkrp/gamemode/init.lua:111      5. DeriveGamemode - [C]:-1       6. unknown - gamemodes/halorp/gamemode/shared.lua:6        7. include - [C]:-1         8. unknown - gamemodes/halorp/gamemode/init.lua:4 Message Edit Reply Quote Find Posts Report
Kind of hard to tell when we can't see your code. Wild guess though, you're closing a table incorrectly in sh_jobranks_config.lua on line 186. Presumably if you fix that, you fix all the errors you're getting.
Why don't you ask the script creator?
Please do formatting in your Text...oh my god How about following the path that gets shown in the errors and try to fix it? unexpected symbol near '}' is probably some misplaced letter or symbol. attempt to index global 'JobRanksConfig' (a nil value) maybe gets loaded too early so it doesnt exists at the moment the addon loads. So basically: Try to fix it? Also: what is the stuff under the error messages? Message Edit Reply Quote Find Posts Report What????
those stuff under the error messages have links to forums that also leak gmod scripts. Okay then
Also, if you or your friend actually bought the script from gmodstore, then create a support ticket, so the real creator can help you
If you don't give us code we can't do anything Try to go to the paths it gave, you should know this if your friend gave you a job to do with confidence Make a support ticket on gmodstore If you can't make a support ticket, don't use leaked scripts kthx
Thanks for the Heads-up about those links under the error messages. The reason those were there was because I also made this same post on that forum looking for help with the same problem, and to save myself time I copied the post content over from there to here. I didn't notice the links there and went to bed because it was late.
"I just develop the server but I can't fix errors given a stack trace." Can we please use the word "developer" and all of its forms properly?
Calm down, I would rather say "Develop the server" than "Code LUA" because I don't code, LUA, I develop servers. Developing the server is easy enough without having to learn LUA.
If a Script creator on gmodstore refuses to support you can report him...but for me it sounds alot like you leaked the script..so..your on your own. Dont leak scripts
No I didn't meant the creator I meant my friend. He's refusing to open the ticket so idk. don't worry about it thought I fixed the problem.
alright then. But if your friend refused to open a ticket: then A: He dont care about the server B: He leaked the script
Sorry, you need to Log In to post a reply to this thread.