Fixed debugger crash when trying to represent angles in tables in E2 - #2078
Conversation
…d for the debugger
…d for the debugger
…d for the debugger
|
Travis Cl raises the following error: |
|
Ya, I think it's part of the code convention to not use glua syntax |
Roger that, the error was in old code I didn't touch however |
|
That's weird that it errors because the Edit: Actually where in the stack trace does it point to the code you changed? |
It prints false.
|
|
Ah I see it now, my branches line numbers didn't match your trace. |
|
The debugger tool doesn't have any errors when I look at angles in tables. |
|
Tested with |
|
Nvm got it to happen with |
|
Can you remove the other changes except for line 16? |
Changed as requested |
|
Ok. I'll test it in a few hours. |
If an angle is put into a table and the E2 chip is debugged, the debugger crashes with the following error:
This can be easily confirmed with the following E2:
In
lua/wire/server/debuggerlib.lua, the angle's values are accessed by.p .y .r. They're not assigned as such, as inlua/entities/gmod_wire_expression2/core/angle.luathe functionangplaces the pitch yaw and roll in the table's numerical indices (1, 2 and 3).Angles and vectors are formatted in the same way, so some redundant angle checks were removed, and
formatPort.VECTORis used for both angles and vectors when formatting the values in tables and arrays