Coder Social home page Coder Social logo

nadmodpp's People

Contributors

nebual avatar sammyt291 avatar thegrb93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nadmodpp's Issues

Error preventing use of the Q menu if it is just you and a bot on the server

If you join an empty server, and then spawn a bot through the RCON/server console, you cannot open the Q menu until you rejoin the server due to the following error:

[Nadmod Prop Protection] lua/autorun/client/cl_nadmodpp.lua:238: attempt to concatenate a nil value
  1. ClientPanel - lua/autorun/client/cl_nadmodpp.lua:238
   2. v - lua/autorun/client/cl_nadmodpp.lua:250
    3. Call - lua/includes/modules/hook.lua:84
     4. Run - gamemodes/sandbox/gamemode/spawnmenu/spawnmenu.lua:228
      5. unknown - gamemodes/base/gamemode/cl_spawnmenu.lua:11
       6. unknown - lua/includes/modules/concommand.lua:54


[Nadmod Prop Protection] lua/autorun/client/cl_nadmodpp.lua:204: attempt to concatenate a nil value
  1. func - lua/autorun/client/cl_nadmodpp.lua:204
   2. unknown - lua/includes/extensions/net.lua:32

This will only happen if you've opened the Nadmod client settings at least once.

Clientside owners don't update after player reconnects / joins to already spawned ents

New props - spawned after player already joined are received properly by the clientside,
but props that already were spawned before player connected will display N/A and won't have ownership on client (server's CPPIGetOwner will still return the correct player)

NADMOD.SendPropOwners() works properly (tho client might not receive it since it's instantly called on PlayerInitialSpawn).

From my initial tests client receives only a small chunk of that containing weapons he's spawned with.
Sent IDs: 0-109 (last 10 being my props)
Received IDs: 83-94.
All that with few skipped of course due to IDs being unique.

I dislike networking to extend where I'm not even gonna start thinking of what's happening there, sorry @thegrb93 ;c

HUD generates console errors when looking at any prop

When looking at a prop, I get constant script errors:

[Nadmod Prop Protection] lua/autorun/client/cl_nadmodpp.lua:82: 'ChatFont' isn't a valid font

  1. SetFont - [C]:-1
  2. v - lua/autorun/client/cl_nadmodpp.lua:82
    3. unknown - lua/includes/modules/hook.lua:84

I find it kinda weird since ChatFont is listed as a default font in the GMod wiki, but I'm not sure what's going on here

Pressing "use" to non props/entities with enabled "use protection" causes script error

If you enable "use protection" and try to click to the air/walls/floor (not props or entities) you will get
14:20:07 [ERROR] addons/nadmodpp/lua/autorun/server/nadmod_pp.lua:246: attempt to index a nil value 1. fn - addons/nadmodpp/lua/autorun/server/nadmod_pp.lua:246 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
The reason of this error is NADMOD.Props[ent:EntIndex()].Name. For some reason ent = player that tried to use.
So the solution is add and !ent:IsPlayer() before NADMOD.Props[ent:EntIndex()].Name to check if the ent is not equals player.

Full fixed 246 line:

if !NADMOD.PPConfig["use"] or NADMOD.PlayerCanTouch(ply, ent) or (ent:IsValid() and !ent:IsPlayer() and NADMOD.Props[ent:EntIndex()].Name == "W") then

spawnmenu_reload breaks ability to open spawn menu due to Nadmod error

Went to do spawnmenu_reload to fix the stuck purple selection box in the prop menu, I had to rejoin my server after being unable to open the spawn menu after doing so. When I press Q, I get this error:

[Nadmod Prop Protection] lua/autorun/client/cl_nadmodpp.lua:141: attempt to call method 'ClearControls' (a nil value)
  1. AdminPanel - lua/autorun/client/cl_nadmodpp.lua:141
   2. v - lua/autorun/client/cl_nadmodpp.lua:261
    3. Call - lua/includes/modules/hook.lua:84
     4. Run - gamemodes/sandbox/gamemode/spawnmenu/spawnmenu.lua:238
      5. unknown - gamemodes/base/gamemode/cl_spawnmenu.lua:11
       6. unknown - lua/includes/modules/concommand.lua:54

Props become ownerless if player changes name

I've noticed an issue with Nadmod on servers where if a player changes their name in Steam, all of the players props become ownerless and cannot be cleaned up with the admin panel for Nadmod. The props after they are ownerless can only be removed by using the remover or with admin Cleanup Everything. Just as somewhat of a solution to this, I could say possibly use Steam ID for prop ownership

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.