Giter Club home page Giter Club logo

darkrp's Introduction

DarkRP run-glualint

A roleplay gamemode for Garry's Mod.

Getting DarkRP

Please use either git or the workshop. Manually downloading DarkRP or using SVN is possible, but not recommended.

The workshop version of DarkRP can be found here:

https://steamcommunity.com/sharedfiles/filedetails/?id=248302805

Modifying DarkRP

Check out the wiki!

https://darkrp.miraheze.org/wiki/Main_Page

Make sure to download the DarkRPMod:

https://github.com/FPtje/darkrpmodification

Do you want to create a gamemode based on DarkRP? You probably shouldn't. If you insist, use the derived gamemode that can be downloaded here:

https://github.com/FPtje/DarkRP/releases/tag/derived

Just whatever you do, don't touch DarkRP's core files.

Getting help

Please head to the official Discord!

https://darkrp.page.link/discord

darkrp's People

Contributors

aws0mee avatar bailmast avatar bo98 avatar cresterienvogel avatar dbotthepony avatar djtb2924 avatar down-s avatar doxzter avatar florianlechat avatar fptje avatar fruitwasp avatar jjyao88 avatar joeyjumper94 avatar johndoeno001 avatar jurisbog avatar kapppa avatar kefta avatar m0uka avatar mark27205 avatar mcnuggets1 avatar mstruntze avatar namefui avatar realpack avatar ryanehamil avatar smithy285 avatar theemp avatar tochnonement avatar vigifyre avatar wgis avatar williamvenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

darkrp's Issues

DarkRP Lua Error

[ERROR] gamemodes/darkrp/gamemode/shared/animations.lua:131: attempt to call method 'AnimRestartGesture' (a nil value)

  1. Function - gamemodes/darkrp/gamemode/shared/animations.lua:131
    1. unknown - lua/includes/modules/usermessage.lua:87

MySQL issue - GM13

If I try to use a MySQL database a lot of bugs begin to occur. Such as:
-Cannot spawn props properly. Ghosts the first 10 or so props then removed them for "spam"
-Cannot buy doors
-Cannot drop money
Basically everything is broken.

Error:
http://puu.sh/1hzRz

Is this my issue?
mysqloo:
garrysmodbeta\lua\bin\gmsv_mysqloo_win32.dll
libmysql
orangebox\libmysql_win32.dll

The purpose of this

The purpose of this is to track issuse, FP, and part of that is resolving bugs, I am on a linux server, and am trying to resolve my issue here, with your code(A bug), and see where we can try and fix it, doing so requires help from both sides.

As I have stated again, there is an error on linux with filenames and directories.

-Snip-

-Snip- was my bad, sorry mate.

DarkRP Security Exploit?

Well apparently a guy came onto our server and just immediately started spawning money without having administration access. Is this a known problem in DarkRP yet?

I will check my logs and post the issue if I see it.

DB error when creating custom spawns

ERROR: GAMEMODE:'PlayerSay' Failed: gamemodes/darkrp/gamemode/server/data.lua:624: attempt to concatenate local 'id' (a boolean value)
Error: hook->PlayerSay returned a non-string!

Whenever trying to add a custom spawn.

Config is messed up

GM.Config.restrictdrop = true
-- strictsuicide - Whether or not players should spawn where they suicided
GM.Config.strictsuicide = false
-- tax - Whether players pay taxes on their wallets.
GM.Config.telefromjail = true
-- telefromjail - Enable/disable teleporting from jail.
GM.Config.teletojail = true
-- teletojail - Enable/disable teleporting to jail.

There is no way to enable tax + it messed up the config file the descriptions are on top for half then on bottom for the other half.

Recent update broke FPP?

After I updated the server players are now able to use toolguns and physgun on any entity in the server no matter what settings I'm using. People are also able to spawn things they shouldn't be able to such as guns and other entities.

Bunch of random reports

Issues with /sleep:
http://puu.sh/1hTaL

Not sure what this is, appears pretty often though:
http://puu.sh/1hVwe
http://puu.sh/1hV93

Not sure what this is:
http://puu.sh/1hTdM

Not sure what this is:
http://puu.sh/1hTcD

Not sure what this is:
http://puu.sh/1hRZg

Not sure what this is:
http://puu.sh/1hXfD

Property tax issues, happens quite often:
http://puu.sh/1hRXx

Weird pocket stuff:
http://youtu.be/NjBmD_1O4dg
I suggest you watch it in full screen to understand what I'm doing.

Blacklisting props issue?

A few hours ago I spent an hour or 2 blacklisting hundreds of useless, huge, explosive props to tidy shit up...

I come back to them all being enabled again. I am the only one with admin, I have darkrp to use MySQL so I expected them to save there? It seems they're all wiped.

Have I done something wrong? Sorry I can't provide an error.

FPP Issues

  1. People can edit eachother's faces and colors. Here is a fix for it: http://pastebin.com/raw.php?i=9xpW1cMk
  2. It seems that FPP settings don't save at all, I've disabled antispam, blocked models, and created custom spawns, and it does not save. I am using MySQL, but I know someone who is using sqlite and having the same issue. Wallets save fine.

Command for setting the jail?/propkill

What is the command for admins to set the jail currently the only way i can do it is to change chiefjailpos to true setting it as chief and setting it back to false.

Also, [DarkRP] XXXXX was killed by Entity [141][prop_physics] with a Entity [141][prop_physics]

Can we get this to show who the last person who touch the prop that killed them was?

Remove ammo error?

http://puu.sh/1h71c

Not sure if reports like these are any use since they're ripped from the console with no information with them. Are they?

I can post a lot more if you wish, if you do want me to do I put them all in one issue or create multiple?

DarkRP Drugs Lua Error

This error popped up today with the drugs today. It was spamming non stop.

17:41:04 L 10/28/2012 - 16:41:17: Lua Error:
17:41:04 [ERROR] gamemodes/darkrp/entities/entities/drug/init.lua:21: attempt to call field 'IsTimer' (a nil value)
1. DrugPlayer - gamemodes/darkrp/entities/entities/drug/init.lua:21
2. unknown - gamemodes/darkrp/entities/entities/drug/init.lua:88

Entities spark continuously; Money entity not working

Drug Labs from the Mob boss, and Microwaves from the Cook both just spark continuously once you hit E on them.

Edit: 2nd Issue: Dropping money doesn't actually spawn the money entity, nor does it with checks. Just subtracts money from your amount, so you lose it. Money printers also don't spawn money.

DarkRP Breaks timers

I modified lua/util.lua like so:

function IsValid( object )

    if ( !object ) then return false end
    if type(object) == "string" then ServerLog(debug.traceback()) error("BAD ISVALID CALL v3", 2) return end
    if ( !object.IsValid ) then return false end

    return object:IsValid()

end

And found out that DarkRP is breaking timers because of a bad call to IsValid:

 L 10/28/2012 - 18:56:20: stack traceback:
    lua/includes/util.lua:184: in function 'IsValid'
    gamemodes/darkrp/gamemode/server/gamemode_functions.lua:381: in function 'Func'
    lua/includes/modules/timer.lua:190: in function <lua/includes/modules/timer.lua:160>
    [C]: in function 'pcall'
    addons/ulib/lua/ulib/shared/hook.lua:167: in function <addons/ulib/lua/ulib/shared/hook.lua:145>L 10/28/2012 -              
18:56:20: Lua Error: ERROR: Hook 'CheckTimers' Failed: gamemodes/darkrp/gamemode/server/gamemode_functions.lua:381: BAD ISVALID CALL v3

Door Owning - Or lack of.

No one can own doors.

Checked a previous Issues thread for this and I do have the latest update.

When trying to own a door the value comes back as 'nil'

Infinite loop detected.

Those errors were followed by shitload of disconnects.

[ERROR] gamemodes/darkrp/gamemode/fadmin/logging/sv_init.lua:67: Infinite Loop D
etected!

  1. Nick - gamemodes/darkrp/gamemode/init.lua:23
    1. v - gamemodes/darkrp/gamemode/fadmin/logging/sv_init.lua:67
    2. unknown - lua/includes/modules/hook.lua:86

[ERROR] gamemodes/darkrp/gamemode/fadmin/logging/sv_init.lua:69: Infinite Loop D
etected!

  1. Nick - gamemodes/darkrp/gamemode/init.lua:29
    1. v - gamemodes/darkrp/gamemode/fadmin/logging/sv_init.lua:69
    2. unknown - lua/includes/modules/hook.lua:86

Stop arrest baton ect being able to be /drop ?

Wouldn't it be a good idea to make it default setting that you aren't able to drop stuff like:
Phys Gun
Grav Gun
Tool Gun
Arrest Baton
ect.. ?

Btw, where is such info stored? How would I go about stopping them from being able to be dropped?

Lua error with new files...

[ERROR] gamemodes/darkrp/gamemode/shared/animations.lua:30: bad argument #2 to 'AnimRestartGesture' (number expected, got nil)
1 . AnimRestartGesture - [C]:-1
2 . v - gamemodes/darkrp/gamemode/shared/animations.lua:30
3 . unknown - lua/includes/modules/hook.lua:86

This is the lua error i get when i own a door. It just spams until i close the game.
I'm playing this on Gmod 13.
If this is an error just for me then help me troubleshoot but if its with the game then fix it :3

Thanks

Citizen salary bugged

The citizen's salary is $45 on connect spawn, even when I change it to $90. The $90 only takes affect after a kill or job change.

Case?

Issue 1: If I name the darkrp foldder "DarkRP" and put "gamemode DarkRP" in server.cfg, the server isn't able to load it. On the other hand, if I change both to lower case, it does load.

Lottery + laws broken?

When I try to add a law, remove a law or place a law board the commands simply appear in the chatbox like plain text. Almost like there is no command there?

-- maxlawboards - The maximum number of law boards the mayor can place.
GM.Config.maxlawboards = 3

When I try to start a lottery it tells me "You are unable to /lottery"

-- lottery - Enable/disable creating lotteries for mayors
GM.Config.lottery = true

DarkRP could not be found

Just changed back to your master code(DarkRP 2.4.3)
I loaded the gamemode on my server but it kept saying the error "DarkRP could not be found"
And yes. I did upload DarkRP and called it DarkRP.

Being ejected on the top of a car...

In Gmod 13, when I get out of any car it seems the game puts me at the top of a vehicle, therefore getting me stuck in a roof. I've tried the same thing in sandbox, and it puts me nicely down next to the car instead of on top of it. Is this a problem with my game or is it a problem with the gamemode?

Thanks

Couple of problems...

Well we have an active server that has been getting 20+ people it daily. Here are some issues that we're running into. When baby god is enabled and you die so many times it glitches so that you are permanently baby godded along with anyone else who spawns after that.

Our second issue is the server being on for so long making people unable to buy any doors. If they hit f2 on the door it just doesn't register, nothing happens.

Other than that everything seems to be working fine.

DarkRP Breaks Timers: Gunlabs

ERROR: Hook 'CheckTimers' Failed: gamemodes/darkrp/entities/entities/gunlab/init.lua:93: attempt to call method 'createGun' (a nil value)
Removing Hook 'CheckTimers'

Timer issues? [GM13]

A friend who runs a DarkRP server told me he came accross timer issues when he hit around 20 players.

Server recently hit 20 or so players:
http://puu.sh/1gLwj

Because of this:
When you spawn a prop it is removed due to prop spam.
You are unable to buy doors.
You are unable to /dropmoney

I imagine a few others are broken too. I restarted the server to make sure people don't get too pissed, lol.

EDIT: I've capped server at 18 players to try and stop it but even with 9 players it's happening. Not sure what I'm meant to be looking for in the console though. :(

F4 Admin menu not showing up as root and material issues, etc.

For some reason after the recent Garry's Mod update to 13 there have been some issues. First issue is the F4 admin menu to control the role-play settings is not working as intended, it does not appear. Second issue is the F4 menu is appearing as purple and black for most people. Third issue is when you try to give a player a weapon using the scoreboard it will kick you out of the game due to lua errors.

Can't enable flashlights

When I switch the server over to sandbox, flashlights work fine but in darkrp they don't. In the server.cfg I have mp_flashlight 1 set. Anyone else having this problem?

Permanent arrested?

Once I am arrested I seem to never get unarrested. The 120 seconds pass, the 120 second vanishes yet I am never unattested.

-No weapons
-Slow walk speed
-Cannot run
-CAN spawn props?

Once I kill myself I am unarrested . An unarrest baton doesn't help either.

Errors that happened just as it happened:
http://puu.sh/1h9Ti
Idk if it's related though.

FPP doesnt block physgun/use/gravgun/tool touch +more

Anyone can move doors around no matter what i change the setting to(huge)

AnimRestartGesture error like before happens when you lock/unlock a door

alltalk must be broken or something because no matter what I set it to anyone can see my messages.

When you own a door your name shows up on it twice.

I think door groups are broken like they were before but I cant test that because gmod crashes right when i try to unlock the door.

Only thing i care about atm is the fpp issue I can fix the rest myself.

DarkRP Share Props Lua Error

When people try to share props we get this error.

Attempted to use tool sharepropsL 10/28/2012 - 11:30:17: Lua Error:
[ERROR] .../darkrp/entities/weapons/gmod_tool/stools/shareprops.lua:7: attempt to call global 'ValidEntity' (a nil value)

  1. RightClick - .../darkrp/entities/weapons/gmod_tool/stools/shareprops.lua:7
    1. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:267

L 10/28/2012 - 11:30:17: Ron williams (STEAM_0:0:41084957) Attempted to use tool sharepropsL 10/28/2012 - 11:30:17: Lua Error:
[ERROR] .../darkrp/entities/weapons/gmod_tool/stools/shareprops.lua:7: attempt to call global 'ValidEntity' (a nil value)

  1. RightClick - .../darkrp/entities/weapons/gmod_tool/stools/shareprops.lua:7
    1. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:267

Babygod issues

EDIT BY FPTJE
To Garry Newman:
This is the issue report of something in DarkRP that broke because some other mod broke timers.
This user just sees that something in DarkRP is not working, so he reports it to me.

He does not know, he CANNOT know that it's not my damn fault. I TOLD you this would happen in the GMod beta thread, and you rated disagree.

My babygod algorithm is proved correct at the bottom of this issue report.

To remind you of what I said about confused owners. Here's your timer problem.
Addon X uses timers
Addon Y uses timers
Addon X breaks timers
Addon Y, depending on timers, fails silently
Addon Y stops working
Server owner sees the failure of Addon Y
Rightly ignorant server owner reports error to maintainer of Addon Y
Maintainer of Addon Y has his hands in his hair (I saw it coming so I wasn't) because of an issue he can't reproduce

-- END OF EDIT
After a little bit of uptime, and a few players getting killed, everyone gets stuck in babygod, ghosted, and invulnerable.

Player name update

When you join a server you will see a few names which have role play names and the rest will have Steam names, when you walk up to a player that has a steam name on TAB he will also have his steam name when you look at him.

But when he talks in OOC he has a Role Play name and when you look at one of his props he also has a role play name so only in TAB and when you look at him he will have a Steam name.

The only way of half fixing this is by being the first person on the server because it works properly when players join while you are in the server, but if i were to join the server with players already in it then it wouldn't update properly and do what i wrote up there.

If this sounds confusing i could maybe get some screenshots is that helps.

"GMOD 12 - GITHUB DARKRP"

1 more bug

[ERROR] gamemodes/darkrp/gamemode/fpp/client/fpp_hud.lua:62: attempt to perform arithmetic on local 'w' (a nil value)

  1. AddNotify - gamemodes/darkrp/gamemode/fpp/client/fpp_hud.lua:62
    1. Function - gamemodes/darkrp/gamemode/fpp/client/fpp_hud.lua:80
    2. unknown - lua/includes/modules/usermessage.lua:87

Also...
Evolve now conflicts with fpp. That is what was causing my problem before..

Um and why do citizens spawn purple?
Edit all of the jobs playermodels are purple

And most of the time people spawn without their keys and shit.

I can't get showjob to work either.

Now theres lua/includes/modules/time.lua:164 attempt to perform arithmetic of field'Delay' (a nil value)
spammed in server console after a while and people cant own doors or spawn props(prop removed due to spam)

cl_init errors

On the initial load of the server:
[Player] Lua Error:
Couldn't include file 'darkrp\gamemode\cl_init.lua' (File not found) ()

[Player] Lua Error:
Couldn't Load Init Script: 'darkrp/gamemode/cl_init.lua'

If I do a changelevel then this error doesn't appear and it works fine.

Door owners saving error

Players kept getting this error when they looked at certain door.

[ERROR] gamemodes/darkrp/gamemode/shared/entity.lua:103: bad argument #1 to 'Player' (number expected, got string)

  1. Player - [C]:-1
    1. DrawOwnableInfo - gamemodes/darkrp/gamemode/shared/entity.lua:103
    2. DrawEntityDisplay - gamemodes/darkrp/gamemode/client/hud.lua:315
      1. unknown - gamemodes/darkrp/gamemode/client/hud.lua:340

Went to the door and ran:

] lua_run_cl print(LocalPlayer():GetEyeTrace().Entity.DoorData.AllowedToOwn)

Output: ";310"

Solution: gamemodes/darkrp/gamemode/shared/entity.lua
Line 103:

if IsValid(Player(b)) then

Change to:

if b ~= "" and IsValid(Player(b)) then

F4 Menu Texture Missing

The F4 menus texture is not being downloaded correctly. It says it downloads when I join, but I still have black and purple checkers in the F4 menu.

Split FPP into its own project

Hi,
I'm currently working with FPP and have applied a couple of local patches. The move to integrate the repositories together is problematic for me as I can't keep a clean git history without dumping out all of DarkRP.

Could you move FPP into its own repository and use a git submodule in DarkRP or would this be too problematic? For the moment I will cherry pick patches as they're pushed.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.