CapsAdmin / pac3

advanced avatar customization for garrysmod
GNU General Public License v3.0
205 stars 94 forks source link

Model browser is not displaying properly #368

Closed CattoGamer closed 7 years ago

CattoGamer commented 7 years ago

When pressing on the model selection button, i'm receiving this error:

[ERROR] addons/pac3-master/lua/pac3/editor/client/model_browser.lua:31: attempt to index field 'ContentNavBar' (a nil value)
  1. ModelBrowser - addons/pac3-master/lua/pac3/editor/client/model_browser.lua:31
   2. SpecialCallback - addons/pac3-master/lua/pac3/editor/client/panels/properties.lua:1288
    3. DoClick - addons/pac3-master/lua/pac3/editor/client/panels/properties.lua:561
     4. unknown - lua/vgui/dlabel.lua:232

also this error occurs randomly after a time:

[ERROR] addons/pac3-master/lua/pac3/core/client/hooks.lua:219: attempt to index local 'ply' (a nil value)
  1. OnClientsideRagdoll - addons/pac3-master/lua/pac3/core/client/hooks.lua:219
   2. fn - addons/pac3-master/lua/pac3/core/client/hooks.lua:322
    3. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109
CapsAdmin commented 7 years ago

The panel ContentSidebar is missing. Are you using sandbox? And if not how did browsing for models work before?

I fixed the second error though.

CattoGamer commented 7 years ago

I am using Cinema, it's uses the base gamemode.

Edit: it did not also worked before the model browser commit, everyone had to go into the singleplayer or typed it manually.

CapsAdmin commented 7 years ago

so apparently this was fixed?

CattoGamer commented 7 years ago

Sadly no, Cinema is not interhit by Sandbox. Any DPanels of Sandbox wont work in this gamemode.

CapsAdmin commented 7 years ago

Then how did you browse for models before?

I'll add the sandbox panels I'm using anyway to the resource browser code.

CapsAdmin commented 7 years ago

How about now?

CattoGamer commented 7 years ago

Entered the model name manually or switched to singleplayer

Edit: I saw the commit and tested it, works without any problems. Do you want use it as default or as a alternative for gamemodes that not devirate by sandbox? - Thank you for solving this rare error :)