Versions in this module Expand all Collapse all v2 v2.3.0 Sep 2, 2026 v2.2.1 Aug 29, 2026 v2.2.0 Aug 28, 2026 Changes in this version + const ARGB32 + const AnmSignature + const AnmVersion + const BodyPropertySignature + const BodyPropertyVersion + const ColSignature + const ColVersion + const DXT1 + const DXT5 + const EndTag + const FreezeAxisNone + const FreezeAxisX + const FreezeAxisY + const FreezeAxisZ + const LocalRotationW + const LocalRotationX + const LocalRotationY + const LocalRotationZ + const MateSignature + const MateVersion + const MenuSignature + const MenuVersion + const ModelSignature + const ModelVersion + const MultiColorSignature + const MultiColorVersion + const NeiTextEncodingShiftJIS + const NeiTextEncodingUTF8 + const PMatSignature + const PMatVersion + const PartialModeFromBoneName + const PartialModePartial + const PartialModeStaticOrCurve + const PhySignature + const PhyVersion + const PresetPropertyListSignature + const PresetPropertyListVersion + const PresetPropertySignature + const PresetPropertyVersion + const PresetSignature + const PresetTypeAll + const PresetTypeBody + const PresetTypeWear + const PresetVersion + const PskSignature + const PskVersion + const RGB24 + const SaveSignature + const SaveVersion + const ShadowCastingModeOff + const ShadowCastingModeOn + const ShadowCastingModeShadowsOnly + const ShadowCastingModeTwoSided + const SkinThicknessSignature + const SkinThicknessVersion + const TexSignature + const TexVersion + const TimelineFinish + const TimelineSignature + const TrackEvent + const TrackProperty + const TrackRotation + const TrackTranslation + var NeiSignature = nei.Signature + func ConvertImageToTexAndWrite(inputPath string, texName string, compress bool, forcePNG bool, ...) error + func ConvertTexToImageAndWrite(tex *Tex, outputPath string, forcePNG bool) error + func EncodeMultiColorBlock(value *MultiColor) ([]byte, error) + func WriteAnimationCurve(writer *stream.BinaryWriter, ac AnimationCurve) error + type AnimationCurve struct + Keyframes []Keyframe + func ReadAnimationCurve(reader *stream.BinaryReader) (AnimationCurve, error) + type Anm struct + BoneCurves []BoneCurveData + BustKeyLeft bool + BustKeyRight bool + Signature string + Version int32 + func ReadAnm(r io.Reader) (*Anm, error) + func (a Anm) Dump(w io.Writer) error + type BodyProperty struct + Signature string + Version int32 + type Bone struct + HasScale bool + Name string + ParentIndex int32 + Position Vector3 + Rotation Quaternion + Scale *Vector3 + type BoneAttachPos struct + Enable bool + PosRotScale PositionRotationScale + type BoneAttachPosEntry struct + BoneAttachPos BoneAttachPos + RID int32 + SlotName string + type BoneCurveData struct + BonePath string + PropertyCurves []PropertyCurve + type BoneLengthEntry struct + LengthOrder []string + Lengths map[string]float32 + RID int32 + SlotName string + type BoneValue struct + BoneName string + Value float32 + type BoneWeight struct + BoneIndex0 uint16 + BoneIndex1 uint16 + BoneIndex2 uint16 + BoneIndex3 uint16 + Weight0 float32 + Weight1 float32 + Weight2 float32 + Weight3 float32 + type Col struct + Colliders []ICollider + Signature string + Version int32 + func ReadCol(r io.Reader) (*Col, error) + func (c *Col) Dump(w io.Writer) error + func (c *Col) UnmarshalJSON(data []byte) error + type ColProperty struct + Color [4]float32 + PropName string + TypeName string + func (c *ColProperty) GetTypeName() string + func (c *ColProperty) Read(reader *stream.BinaryReader) error + func (c *ColProperty) Write(writer *stream.BinaryWriter) error + type Color struct + A float32 + B float32 + G float32 + R float32 + type Command struct + Args []string + Command string + type DanceObjectData struct + Entries []DanceObjectEntry + func ReadDanceObjectData(r io.Reader) (*DanceObjectData, error) + func (d *DanceObjectData) Dump(w io.Writer) error + type DanceObjectEntry struct + ObjectName string + ObjectReferenceTrackIDList []int32 + ResourcesPath string + TargetMaidNo int32 + TopObjectName string + TreePath string + type DynamicBoneCollider struct + Base *DynamicBoneColliderBase + Height float32 + Radius float32 + TypeName string + func (dbc *DynamicBoneCollider) GetTypeName() string + func (dbc *DynamicBoneCollider) Read(reader *stream.BinaryReader, version int32) error + func (dbc *DynamicBoneCollider) Write(writer *stream.BinaryWriter, version int32) error + type DynamicBoneColliderBase struct + Bound int32 + Center [3]float32 + Direction int32 + LocalPosition [3]float32 + LocalRotation [4]float32 + LocalScale [3]float32 + ParentName string + SelfName string + TypeName string + func (base *DynamicBoneColliderBase) GetTypeName() string + func (base *DynamicBoneColliderBase) Read(reader *stream.BinaryReader, version int32) error + func (base *DynamicBoneColliderBase) Write(writer *stream.BinaryWriter, version int32) error + type DynamicBoneMuneCollider struct + Base *DynamicBoneColliderBase + CenterRateMax [3]float32 + Height float32 + Radius float32 + ScaleRateMulMax float32 + TypeName string + func (c *DynamicBoneMuneCollider) GetTypeName() string + func (c *DynamicBoneMuneCollider) Read(reader *stream.BinaryReader, version int32) error + func (c *DynamicBoneMuneCollider) Write(writer *stream.BinaryWriter, version int32) error + type DynamicBonePlaneCollider struct + Base *DynamicBoneColliderBase + TypeName string + func (dpc *DynamicBonePlaneCollider) GetTypeName() string + func (dpc *DynamicBonePlaneCollider) Read(reader *stream.BinaryReader, version int32) error + func (dpc *DynamicBonePlaneCollider) Write(writer *stream.BinaryWriter, version int32) error + type EventParameter struct + Array []EventParameter + ValBool bool + ValColor *Color + ValFloat float32 + ValInt int32 + ValRect *Rect + ValString string + ValVect2 *Vector2 + ValVect3 *Vector3 + ValVect4 *Vector4 + ValueType int32 + type EventTrack struct + MethodDataArray []MethodData + ObjectTreePath string + TotalFrame int32 + TrackID int32 + func (t *EventTrack) GetTypeName() string + type FProperty struct + Number float32 + PropName string + TypeName string + func (f *FProperty) GetTypeName() string + func (f *FProperty) Read(reader *stream.BinaryReader) error + func (f *FProperty) Write(writer *stream.BinaryWriter) error + type ICollider interface + GetTypeName func() string + Read func(reader *stream.BinaryReader, version int32) error + Write func(writer *stream.BinaryWriter, version int32) error + type KeyValuePairInt struct + Key int32 + Value int32 + type Keyframe struct + InTangent float32 + OutTangent float32 + Time float32 + Value float32 + type Keyword struct + Key string + Value bool + type KeywordProperty struct + Count int32 + Keywords []Keyword + PropName string + TypeName string + func (f *KeywordProperty) GetTypeName() string + func (f *KeywordProperty) Read(reader *stream.BinaryReader) error + func (f *KeywordProperty) Write(writer *stream.BinaryWriter) error + type MatPropSave struct + MatId int32 + PropName string + TypeName string + Value string + type MatPropSaveEntry struct + MatPropSave MatPropSave + RID int32 + SlotName string + type Mate struct + Material *Material + Name string + Signature string + Version int32 + func ReadMate(r io.Reader) (*Mate, error) + func (m *Mate) Dump(w io.Writer) error + type Material struct + Name string + Properties []Property + ShaderFilename string + ShaderName string + func (m *Material) Dump(writer *stream.BinaryWriter) error + func (m *Material) UnmarshalJSON(data []byte) error + type Matrix4x4 [16]float32 + type Menu struct + BodySize int32 + Category string + Commands []Command + InfoText string + ItemName string + Signature string + SrcFileName string + Version int32 + func ReadMenu(r io.Reader) (*Menu, error) + func (m *Menu) CalculateBodySize() (int32, error) + func (m *Menu) Dump(w io.Writer) error + func (m *Menu) UpdateBodySize() error + type MethodData struct + ComponentName string + MethodName string + Params []EventParameter + StartFrame int32 + type MissingCollider struct + TypeName string + func (m *MissingCollider) GetTypeName() string + func (m *MissingCollider) Read(reader *stream.BinaryReader, version int32) error + func (m *MissingCollider) Write(writer *stream.BinaryWriter, version int32) error + type Model struct + BindPoses []Matrix4x4 + BoneCount int32 + BoneNames []string + BoneWeights []BoneWeight + Bones []*Bone + Materials []*Material + MorphData []*MorphData + Name string + RootBoneName string + ShadowCastingMode *string + Signature string + SkinThickness *SkinThickness + SubMeshCount int32 + SubMeshes [][]int32 + Tangents []Quaternion + Version int32 + VertCount int32 + Vertices []Vertex + func ReadModel(r io.Reader) (*Model, error) + func (m *Model) Dump(w io.Writer) error + type ModelMetadata struct + Materials []*Material + Name string + RootBoneName string + ShadowCastingMode *string + Signature string + Version int32 + func ReadModelMetadata(r io.Reader) (*ModelMetadata, error) + type MorphData struct + Indices []int32 + Name string + Normals []Vector3 + Tangents []Quaternion + Vertex []Vector3 + func ReadMorphData(reader *stream.BinaryReader, version int32) (*MorphData, error) + type MultiColor struct + PartCount int32 + PartNames []string + PartsColors []PartsColor + Signature string + Version int32 + func DecodeMultiColorBlock(data []byte) (*MultiColor, error) + type NamedPresetProperty struct + Key string + Property PresetProperty + type Nei = nei.Table + func NewNei(rows uint32, cols uint32, data [][]string) *Nei + func ReadNei(r io.Reader, neiKey []byte) (*Nei, error) + type NeiTextEncoding = nei.TextEncoding + type PMat struct + Hash int32 + MaterialName string + RenderQueue float32 + Shader string + Signature string + Version int32 + func ReadPMat(r io.Reader) (*PMat, error) + func (p *PMat) Dump(w io.Writer, calculateHash bool) error + type PanierRadiusGroup struct + BoneName string + Curve AnimationCurve + Radius float32 + type PartsColor struct + IsUse bool + MainBrightness int32 + MainChroma int32 + MainContrast int32 + MainHue int32 + ShadowBrightness int32 + ShadowChroma int32 + ShadowContrast int32 + ShadowHue int32 + ShadowRate int32 + type Phy struct + ColliderFileName string + CollidersCount int32 + Damping float32 + DampingDistrib AnimationCurve + Elasticity float32 + ElasticityDistrib AnimationCurve + EnablePartialDamping int32 + EnablePartialElasticity int32 + EnablePartialInert int32 + EnablePartialRadius int32 + EnablePartialStiffness int32 + EndLength float32 + EndOffset [3]float32 + ExclusionsCount int32 + Force [3]float32 + FreezeAxis int32 + Gravity [3]float32 + Inert float32 + InertDistrib AnimationCurve + PartialDamping []BoneValue + PartialElasticity []BoneValue + PartialInert []BoneValue + PartialRadius []BoneValue + PartialStiffness []BoneValue + Radius float32 + RadiusDistrib AnimationCurve + RootName string + Signature string + Stiffness float32 + StiffnessDistrib AnimationCurve + Version int32 + func ReadPhy(r io.Reader) (*Phy, error) + func (p *Phy) Dump(w io.Writer) error + type PositionRotationScale struct + Position Vector3 + Rotation Quaternion + Scale Vector3 + type Preset struct + BodyProperty *BodyProperty + MultiColor *MultiColor + PresetPropertyList *PresetPropertyList + PresetType int32 + Signature string + ThumbData []byte + ThumbLength int32 + Version int32 + func ReadPreset(r io.Reader) (*Preset, error) + func (p *Preset) Dump(w io.Writer) error + type PresetMetadata struct + PresetType int32 + Signature string + ThumbData []byte + ThumbLength int32 + Version int32 + func ReadPresetMetadata(reader *stream.BinaryReader) (*PresetMetadata, error) + type PresetProperty struct + AttachPositionNameOrders map[int32][]string + AttachPositionOrder []int32 + AttachPositionSlotNames map[int32]string + AttachPositions map[int32]map[string]VtxAttachPosEntry + BoneLengthOrder []int32 + BoneLengths map[int32]BoneLengthEntry + DefaultValue int32 + FileName string + FileNameRID int32 + Index int32 + IsCrcParts bool + IsDut bool + LinkMaxValue int32 + MaterialPropOrder []int32 + MaterialProps map[int32]MatPropSaveEntry + Max int32 + Min int32 + Name string + Signature string + SkinPositionOrder []int32 + SkinPositions map[int32]BoneAttachPosEntry + SubProps []*SubProp + TempValue int32 + Type int32 + Value int32 + Version int32 + type PresetPropertyList struct + CRCPreset *kces.ExpandedKCESPreset + MaidPropOther []NamedPresetProperty + PartsColorOther *MultiColor + PresetProperties map[string]PresetProperty + PropertyCount int32 + PropertyOrder []string + Signature string + Version int32 + type Property interface + GetTypeName func() string + Read func(reader *stream.BinaryReader) error + Write func(writer *stream.BinaryWriter) error + type PropertyCreator func() Property + type PropertyCurve struct + Keyframes []Keyframe + PropertyIndex int32 + type PropertyTrack struct + ColorValArray []Color + ComponentName string + FloatValArray []float32 + IndexArray []KeyValuePairInt + IntValArray []int32 + ObjectTreePath string + PropertyName string + TotalFrame int32 + TrackID int32 + ValueType int32 + Vec3ValArray []Vector3 + func (t *PropertyTrack) GetTypeName() string + type Psk struct + CalcTime int32 + Gravity Vector3 + GravityDistrib AnimationCurve + HardValues [4]float32 + PanierForce float32 + PanierForceDistanceThreshold float32 + PanierForceDistrib AnimationCurve + PanierRadius float32 + PanierRadiusDistrib AnimationCurve + PanierRadiusDistribGroups []PanierRadiusGroup + PanierStressForce float32 + ScaleEaseSpeed float32 + Signature string + StressDegreeMax float32 + StressDegreeMin float32 + StressMinScale float32 + VelocityForceRate float32 + VelocityForceRateDistrib AnimationCurve + Version int32 + func ReadPsk(r io.Reader) (*Psk, error) + func (p Psk) Dump(w io.Writer) error + type Quaternion struct + W float32 + X float32 + Y float32 + Z float32 + type RangeProperty struct + Number float32 + PropName string + TypeName string + func (ra *RangeProperty) GetTypeName() string + func (ra *RangeProperty) Read(reader *stream.BinaryReader) error + func (ra *RangeProperty) Write(writer *stream.BinaryWriter) error + type Rect struct + XMax float32 + XMin float32 + YMax float32 + YMin float32 + type RotationTrack struct + ObjectTreePath string + QuaternionArray []Quaternion + TotalFrame int32 + TrackID int32 + func (t *RotationTrack) GetTypeName() string + type SkinThickness struct + GroupOrder []string + Groups map[string]*ThickGroup + Signature string + Use bool + Version int32 + func ReadSkinThickness(reader *stream.BinaryReader) (*SkinThickness, error) + type SubProp struct + FileName string + FileNameRID int32 + IsDut bool + TexMulAlpha float32 + type Tex struct + Data []byte + Height int32 + Rects []TexRect + Signature string + TextureFormat int32 + TextureName string + Version int32 + Width int32 + func ConvertImageToTex(inputPath string, texName string, compress bool, forcePNG bool) (*Tex, error) + func ReadTex(r io.Reader) (*Tex, error) + func (t *Tex) Dump(w io.Writer) error + type Tex2DSubProperty struct + Name string + Offset [2]float32 + Path string + Scale [2]float32 + type TexOffsetProperty struct + OffsetX float32 + OffsetY float32 + PropName string + TypeName string + func (to *TexOffsetProperty) GetTypeName() string + func (to *TexOffsetProperty) Read(reader *stream.BinaryReader) error + func (to *TexOffsetProperty) Write(writer *stream.BinaryWriter) error + type TexProperty struct + PropName string + SubTag string + Tex2D *Tex2DSubProperty + TexRT *TexRTSubProperty + TypeName string + func (t *TexProperty) GetTypeName() string + func (t *TexProperty) Read(reader *stream.BinaryReader) error + func (t *TexProperty) Write(writer *stream.BinaryWriter) error + type TexRTSubProperty struct + DiscardedStr1 string + DiscardedStr2 string + type TexRect struct + H float32 + W float32 + X float32 + Y float32 + func ConvertTexToImage(tex *Tex, forcePNG bool) (imgData []byte, format string, rects []TexRect, err error) + type TexScaleProperty struct + PropName string + ScaleX float32 + ScaleY float32 + TypeName string + func (ts *TexScaleProperty) GetTypeName() string + func (ts *TexScaleProperty) Read(reader *stream.BinaryReader) error + func (ts *TexScaleProperty) Write(writer *stream.BinaryWriter) error + type ThickDefPerAngle struct + AngleDegree int32 + DefaultDistance float32 + VertexIndex int32 + type ThickGroup struct + EndBoneName string + GroupName string + Points []*ThickPoint + StartBoneName string + StepAngleDegree int32 + type ThickPoint struct + DistanceParAngle []*ThickDefPerAngle + RatioSegmentStartToEnd float32 + TargetBoneName string + type TimelineData struct + FrameRate int32 + TotalFrame int32 + Tracks []TimelineTrack + func ReadTimelineData(r io.Reader) (*TimelineData, error) + func (d *TimelineData) Dump(w io.Writer) error + func (d *TimelineData) MarshalJSON() ([]byte, error) + func (d *TimelineData) UnmarshalJSON(data []byte) error + type TimelineTrack interface + GetTypeName func() string + type TranslationTrack struct + ObjectTreePath string + PosArray []Vector3 + TotalFrame int32 + TrackID int32 + func (t *TranslationTrack) GetTypeName() string + type VecProperty struct + PropName string + TypeName string + Vector [4]float32 + func (v *VecProperty) GetTypeName() string + func (v *VecProperty) Read(reader *stream.BinaryReader) error + func (v *VecProperty) Write(writer *stream.BinaryWriter) error + type Vector2 struct + X float32 + Y float32 + type Vector3 struct + X float32 + Y float32 + Z float32 + type Vector4 struct + W float32 + X float32 + Y float32 + Z float32 + type Vertex struct + Normal Vector3 + Position Vector3 + UV Vector2 + UV2 *Vector2 + UV3 *Vector2 + UV4 *Vector2 + Unknown1 *Vector2 + Unknown2 *Vector2 + Unknown3 *Vector2 + Unknown4 *Vector2 + type VtxAttachPos struct + Enable bool + PosRotScale PositionRotationScale + VtxCount int32 + VtxIdx int32 + type VtxAttachPosEntry struct + RID int32 + VtxAttachPos VtxAttachPos Other modules containing this package github.com/MeidoPromotionAssociation/MeidoSerialization