• Error
    7 replies, posted
What does this mean? CBaseEntityList::AddNonNetworkableEntity: no free slots! Added this code and that happend: local icon = vgui.Create( "DModelPanel" ) icon:SetModel( LocalPlayer():GetModel() ) icon:SetPos( 140, 180 ) icon:SetSize( 100, 100 ) icon:SetCamPos( Vector( 70, 80, 20 ) ) icon:SetLookAt( Vector( 0, 0, 0 ) ) icon:SetAnimSpeed( 0 ) I want it, that you can only see his head but without animations. So is it possible to stop animations? Edit: (It's on the hud)
Please use - [lua][/lua] tags or else people won't help you. I will do it for ya --POST-- What does this mean? [code]CBaseEntityList::AddNonNetworkableEntity: no free slots![/code] [lua]local icon = vgui.Create( "DModelPanel" ) icon:SetModel( LocalPlayer():GetModel() ) icon:SetPos( 140, 180 ) icon:SetSize( 100, 100 ) icon:SetCamPos( Vector( 70, 80, 20 ) ) icon:SetLookAt( Vector( 0, 0, 0 ) ) icon:SetAnimSpeed( 0 )[/lua] I want it, that you can only see his head but without animations. So is it possible to stop animations? Edit: (It's on the hud) [highlight]Also post your full error[/highlight]
Not sure what your error is, but if you want to stop the animation, don't use AnimSpeed, use this: [code]function icon:LayoutEntity() end[/code]
thanks [editline]10:30PM[/editline] [QUOTE=Justin37111;18135164] [code]CBaseEntityList::AddNonNetworkableEntity: no free slots![/code] [/QUOTE] Well when I join the game, gmod starts lagging and I'll get this error above :/ When I remove DModel my gmod runs normal [editline]10:53PM[/editline] Well thread can be closed. I'll use textures.
[QUOTE=MachinEZ;18135517]thanks [editline]10:30PM[/editline] Well when I join the game, gmod starts lagging and I'll get this error above :/ When I remove DModel my gmod runs normal [editline]10:53PM[/editline] Well thread can be closed. I'll use textures.[/QUOTE] Depending on what you're doing it could result in the same error. Where are you using this code, is it inside a paint hook? That would probably cause weird errors like that. A panel object only needs to be created once, not each frame.
I think it would be more helpful if he posted everything in this file.
[QUOTE=Justin37111;18143404]I think it would be more helpful if he posted everything in this file.[/QUOTE] nope im kinda sure Crazy Quebec just solved it
You've got something in a loop or reoccurring event. You've created too many DModelPanels and you've maxed out our clientside entities. The error is telling you exactly what's wrong when it clearly stated "no free slots". [editline]12:10PM[/editline] Agree'd with Crazy Quebec.
Sorry, you need to Log In to post a reply to this thread.