-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to fix clientside errors #166
Conversation
Fix this : [ERROR] lua/autorun/photon/cl_photon_eng.lua:551: attempt to call method 'ChatPrint' (a nil value) 1. unknown - lua/autorun/photon/cl_photon_eng.lua:551
Fixes this : [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:109: attempt to call method 'Photon_Illumination' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:109 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:115: attempt to call method 'Photon_Illumination' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:115 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:147: attempt to call method 'Photon_Lights' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:147 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:150: attempt to call method 'Photon_Lights' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:150 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:157: attempt to call method 'Photon_Siren' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:157 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:163: attempt to call method 'Photon_Lights' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:163 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:171: attempt to call method 'Photon_Lights' (a nil value) 1. fn - lua/autorun/photon/cl_emv_listener.lua:171 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
Fix : [Photon Lighting Engine] lua/autorun/photon/sh_emv_helper.lua:272: attempt to index a nil value 1. GetTASequence - lua/autorun/photon/sh_emv_helper.lua:272 2. FetchUsedLights - lua/autorun/photon/sh_emv_helper.lua:403 3. Photon_CalculateUsedLights - lua/autorun/photon/cl_emv_meta.lua:183 4. Photon_GetELUsedLights - lua/autorun/photon/cl_emv_meta.lua:178 5. Photon_UpdateFrameLightPositions - lua/autorun/photon/cl_emv_meta.lua:324 6. Photon_RenderEL - lua/autorun/photon/cl_emv_meta.lua:390 7. DrawEMVLights - lua/autorun/photon/cl_emv_init.lua:44 8. fn - lua/autorun/photon/cl_emv_init.lua:92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers for the PR, and thanks for the fixes.
Just a quick question, do you know which error the emv_listener change fixes?
Yup, them : [Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:109: attempt to call method 'Photon_Illumination' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:115: attempt to call method 'Photon_Illumination' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:147: attempt to call method 'Photon_Lights' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:150: attempt to call method 'Photon_Lights' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:157: attempt to call method 'Photon_Siren' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:163: attempt to call method 'Photon_Lights' (a nil value)
[Photon Lighting Engine] lua/autorun/photon/cl_emv_listener.lua:171: attempt to call method 'Photon_Lights' (a nil value)
|
Can you send me the error for ChatPrint aswell? Because according to the wiki LocalPlayer() should return a valid entity. I am just curious why it needs replacement now. |
[ERROR] lua/autorun/photon/cl_photon_eng.lua:551: attempt to call method 'ChatPrint' (a nil value)
I think it's because networking functions aren't setup totally here. |
Tested in prod (3x 75players for 2 days), no errors ! |
Cheers @djtb2924 for the PR. |
Hello, my players have many photon errors that I have tried to fix in this 3 commits, you have the concerned errors in each commits decriptions.
(I haven't tested this ingame, it's only theoretical)