FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
463 stars 710 forks source link

DarkRP player's issue. #2527

Closed Pingu12 closed 8 years ago

Pingu12 commented 8 years ago

Description of the bug

Player's join as job named '' Unassigned''. Not all of them, only few inviduals, and the console erros start getting spammed. You can change their jobs and the errors stop, but they may not play like they should.

How to make the bug happen

Bug happens as soon as the some player joins.

Lua errors

[Connections | 08:56:10]Matt(STEAM_0:0:142134477) has connected

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_data.lua" on line 427. The best help I can give you is this:

Failed to retrieve player information from the database.

Hints:

The responsibility for the error above lies with (the authors of) one (or more) of these files:

  1. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 427
  2. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 313
  3. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 299
  4. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 243
  5. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 287
  6. gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua on line 304
  7. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 267
  8. gamemodes/darkrp/gamemode/modules/base/sv_data.lua on line 312
  9. gamem [ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua" on line 384. The best help I can give you is this:

There is a player with an invalid team!

The player's name is Matt, their team number is "1001", which has the name "Unassigned"

Hints:

The responsibility for the error above lies with (the authors of) one (or more) of these files:

  1. gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua on line 384
  2. gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua on line 605 ------- End of Simplerr error -------

    Why the developer of DarkRP is responsible for this issue

Developer of DarkRP is probablly the best person to ask for the help, obviously. Since he probablly does know how to handle this ''Simple'' problem. Also server is not being runned on MYSQL.

Bo98 commented 8 years ago

Updating DarkRP should fix this. RP names used to have to be unique. This had the side effect of affecting people who happened to have a Steam name matching an existing RP name. This was fixed in June.

Pingu12 commented 8 years ago

Alright, thank you for the repply. Hopefully this will fix the issue.

Pingu12 commented 8 years ago

After updating Darkrp, i am not able to use /advert anymore. when i try to use advert ( exmp. /advert hey ) it states that '' This model of entity is blacklisted ''

Bo98 commented 8 years ago

No idea why the blacklist is having any affect on that. If it did then /placelaws wouldn't work either (both commands use the billboard model). Are you using FPP or something else?

Pingu12 commented 8 years ago

Yes, i do use FPP. Before i've updated the DarkRP, it worked like it should. so what should i do for it to work again?

Bo98 commented 8 years ago

Does /placelaws work?

Bo98 commented 8 years ago

I think I figured why it isn't working. It's a part of FPP's protection against the likes of Wiremod E2s (and some default GMod tools like buttons and thrusters) from using blocked models. You could either unblock "models/props/cs_assault/Billboard.mdl" or alternatively check "Apply to props only" under "Blocked model settings" if you don't use stuff like E2s or don't care about people potentially abusing tool models.

Though perhaps something should be done so that this isn't necessary - I'll have a look and see.

Pingu12 commented 8 years ago

Alright, i've done "Apply to props only" under "Blocked model settings". Now adverts are being spawned like lawboards, which is horrible. http://imgur.com/a/8JKqr

Bo98 commented 8 years ago

It's supposed to do that. It was changed a couple months ago due to very heavy abuse of the old /advert command - now it actually represents an advertisement rather than a logging system some servers had adopted. (Though with your "help me" request that can still be done with /cr or /911 which is sent directly to the cops/police.)

Pingu12 commented 8 years ago

Oh god. I wasn't aware of that. Any possibility to use the /advert like before? I don't really think spawning boards to say youre mugging/kidnapping/raiding them is really thing i need, but thats just mine opinion.

Bo98 commented 8 years ago

to say youre mugging/kidnapping/raiding them

That type of stuff really should be done differently than announcing it globally to the whole server. I'm not entirely sure what you're reasoning behind the rule was (different people have stated different reasons) but there are alternatives like having the victim contact the police or incorporating a system where instead of announcing publicly, it logs it only for admins to see, depending on what you were trying to achieve from such a rule.

Any possibility to use the /advert like before?

Officially, no. I have no idea if any addons exist that restore the command but I do recommend thinking whether you really need it as there have been people I've talked this with that have realised that there was in fact better solutions instead of the old system. If you do find an addon and do decide to use the old system, do remember that it isn't supported anymore by the DarkRP developer so any issues that arise with it won't be fixed.

Pingu12 commented 8 years ago

Alright then, it looks like ill have to get used to the new ways of the Darkrp. Thanks anyways.

Bo98 commented 8 years ago

I'm happy that you're at least trying to do so. I know it's a big change but at least you aren't arrogant like some people were. If you're not sure about new ways to approach things then let me know and I'll try come up with suggestions.

It's something that takes a while to go around servers but hopefully soon enough new methods will become the norm like how updates like DarkRP 2.5 did.