Tags: NekerSqu4w/StarfallEx
Tags
Add various missing functions, and also fix a crash (thegrb93#1307) * add Entity:getBoundingRadius * add PhysObj:getSurfaceArea, PhysObj:isMoveable, PhysObj:getVolume, PhysObj:getStress * fix bodygroup crash * add Entity:getBodygroupCount * oops! -(2^31-1) still crashes... just make the minimum bodygroup id 0 then * add Entity:isDormant not exposed in e2 either but very useful function * add Entity:getNearestPoint
Update physobj.lua (thegrb93#1131) * Update physobj.lua Add phys_obj:getVolume() * made return number optional in docs applied information thegrb93#1131 (comment)
Fixed big endian encoding of int32 and int16. (thegrb93#1102) Before the fix ```lua local stream = bit.stringstream("", 1, "big") stream:writeInt32(90) print(stream:size()) -- 3 ``` only writes 3 bytes instead of 4. ```lua local stream = bit.stringstream("", 1, "big") stream:writeInt16(90) print(stream:size()) ``` fails with ``` addons/starfallex/lua/starfall/libs_sh/bit.lua:324: attempt to get length of local 'v' (a number value) stack traceback: addons/starfallex/lua/starfall/libs_sh/bit.lua:324: in function 'size' SF:tests/stringstream_bigendian_test.txt:7: in main chunk ``` because `ss_methods:write(data)` expects a single string.
Fix some networking bugs from newly joined players. Fixes: thegrb93#1005
PreviousNext