Releases: Hampo/LuaP3DLib
Releases · Hampo/LuaP3DLib
v2.3
What's Changed
- Added
AddEntrymethod toATC(7bf2d5e) - Updated
ATCP3DChunk:AddEntrymethod to return the new index (11741fe) - Added
P3D.BreakableObjectP3DChunk.Indexesenum (9a602a1) - Added local
P3Dreferences for efficiency (f6916ed) - Added
P3D.LocatorP3DChunk.Typesenum (f67dc0a) - Updated shader param chunks to
asserton invalid FourCC param (c4f0a4c) - Added
SetColourParameter,SetFloatParameter,SetIntegerParameterandSetTextureParametermethods toShader(c4f0a4c) - Fixed
FollowCameraDataandWalkerCameraDatahaving the wrong class name (9fae122) - Renamed chunk files to match their class name (929daf0)
- Note: If upgrading from 2.2, it is advised to delete the existing
Chunksfolder to handle these renames
- Note: If upgrading from 2.2, it is advised to delete the existing
- Added an
assertto each chunk to prevent duplicates (5978028) - Added BigEndian support (6e2b48d afa2301 1e4e23d)
- Improved
Locatordata handling (8d282b6) - Fixed the
Replacemethod (924fc46) - Added
CompressedQuaternionChannel2chunk (596f007 635e689) - Fixed
ChannelInterpolationModeincorrectly readingInterpolateas anUInt32instead ofInt32(cbcc8f2) - Fixed
IntegerChannelincorrectly reading the values asUInt32instead ofInt32(b9b329d) - Added optional
Nameargument toGetChunkfunctions (32cfde3) - Improved
GetChunkfunctions (3637603) - Fixed a bug in
ATCP3DChunk:AddEntrymethod (02457b5 5a753c6) - Fixed a bug in
ShaderP3DChunk:SetXParameterwhere existing paramters where incorrectly searched for byNameinstead ofParam(5dd1a36 941c04d) - Fixed
P3D.Vector2:__mul(ae65311) - Added
P3D.P3DFile:LoadFromData(dd9aa7f 766ba59) - Replaced
math.atan2withmath.atan(01e2e21) - Added
P3D.CollisionEffectP3DChunk.ClassTypesenum (8afbeb7) - Added
ToArgbandFromArgbmethods toP3D.Colour(722833b 83a7e7d) - Added
NewOnDoesntExistargument toLoadP3DFile(9c725ba) - Minor
P3D.FrontendLanguageP3DChunk:GetNameHashimprovement (61f4d44) - Updated
LoadP3DFilefile doesn't exist error to include file path (89f72b2) - Various minor Lua efficiency improvements (5f9d785)
- Added
ToHSLandFromHSLmethods toP3D.Colour(b99acfc) - Fixed
Lightconstructor not assigning theVersion,Type,Colour,Constant,Linear,SquardandEnabledvalues (edbb216) - Updated
MultiController2to auto calculateNumTracks(efbc31e) - Updated
AnimationGroupListto correctly calculate number of animation groups, instead of blindly using the chunk count (dbb9020) - Cleaned up
OldPrimitiveGroup(29f2659) - Fixed
FrontendLayerconstructor not assigning theVisibleandEditablevalues (38d66ad) - Fixed
MultiController2incorrectly requiring aNumTracksin its constructor (8e7d473) - Updated
OldExpressionOffsetsto auto calculateNumPrimGroupsandNumOffsetLists(4ae85f5)- This has a side effect of changing the constructor arguments -
PrimGroupIndicesis now argument 1
- This has a side effect of changing the constructor arguments -
- Fixed
StatePropCallbackDataincorrectly readingEventEnumas aInt32instead ofUInt32(ec3b62f) - Updated
StatePropStateDataV1to auto calculateNumDrawable,NumFrameControllers,NumEventsandNumCallbacks(da687f7)- This has a side effect of changing the constructor arguments -
OutFrameis now argument 4
- This has a side effect of changing the constructor arguments -
- Updated
FrontendScreento clean thePageNames(1b6ff03)
Full Changelog: v2.2...v2.3
v2.2
What's Changed
- Updating example mod
Meta.ini - Fixed the constructors of
CollisionObjectP3DChunkandCollisionVectorP3DChunk - Fixing typo in
LocatorP3DChunkconstructor - Added
__pairsmetamethod toP3DChunkclass to only output properties if a known chunk, andValueStrif unknown - Improved
__pairsmetamethod implementation forP3DChunkclass - Improved
P3D.DecompressBlock - Added
Pathto invalid P3D file error - Replaced slow
table_packwith faster{} - Added local reference to
tostringfor faster building - Minor optimisation to
FrontendLanguageclass - Added a missing assert in
FrontendLanguageP3DChunk:GetNameHash - Added
Clonemethod toP3DFileandP3DChunk - Remove redundant comment
- Fixed a bug in
:GetChunksand:GetChunksIndexedwhere it looked atchunksNinstead ofchunkN - Fixed
:Clone()incorrectly cloning the metatable too. Should use the standard metatable of the chunk type. - Added
:Match(Filters) - Added
:Find(Filters, Backwards) - Added
:FindFirst(Filters, Backwards) - Added
:Replace(NewChunk) - Fixed a bug in
Meshconstructor - Improved
OldPrimitiveGroupP3DChunkUV List handling - Fixed a bug in
OldPrimitiveGroupP3DChunkconstructor - Improved
OldPrimitiveGroupP3DChunkGetVertexType() - Fixed a bug in
FrontendLanguageP3DChunk:SetValue - Fixed a bug in
OldIndexOffsetListP3DChunk:__tostring() - Started implementation of Vector maths
- Fixed a typo in
Float2ChannelP3DChunk(Thanks @mazexz7 for pointing it out) - Fixed a bug when adding a chunk by index to the end of the chunk list
Full Changelog: v2.1...v2.2
v2.1
- Complete VertexMask in
OldPrimitiveGroupP3DChunk - Improved error on
FrontendLanguageP3DChunk:GetValueFromName - Removed unused data from
RoadP3DChunk - Updated
RoadP3DChunkto usexinstead ofBwith hardcoded0 - Removed unused chunks
- Fixed
__callinP3DChunk - Updated print to include source
- Added basic implementation of
P3D.Vector2,P3D.Vector3,P3D.SymmetricMatrix3x3,P3D.Quaternion,P3D.MatrixandP3D.Colour - Fixed child chunks not having chunk functions
- Added a version print on load
- Updated Example to v2.1
- Fixed an error in constructor of
ImageDataP3DChunk - Fixed
ImageCountnot auto calculating inSpriteP3DChunk - Fixed a grammatical error in
P3D.LoadChunks