forked from metin-server/m2dev-client
Compare commits
14 Commits
claude/upd
...
issue-4-bi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c11008d1c8 | ||
|
|
a52debbb2a | ||
|
|
403dddd6af | ||
|
|
10915467c1 | ||
|
|
780900af61 | ||
|
|
b9065ca8d2 | ||
|
|
8767a2b3ac | ||
|
|
0edaea5993 | ||
|
|
5e79fc27e1 | ||
|
|
95fc2df7c0 | ||
| 1dba3e3c91 | |||
| 9c95590099 | |||
|
|
dd0643137f | ||
|
|
0aa8361f09 |
@@ -1,524 +0,0 @@
|
||||
BoundingSphereRadius 0.000000
|
||||
BoundingSpherePosition 0.000000 0.000000 0.000000
|
||||
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.176000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 10.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 3
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 5.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 -50.000000
|
||||
0.100000 -20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 100.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 10.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 60.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 36.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.737143 1.000000
|
||||
1.000000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.072000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 10.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 3
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 -50.000000
|
||||
0.100000 -20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 50.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 10.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 72.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 48.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.737143 1.000000
|
||||
1.000000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 10.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 3
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 50.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 -50.000000
|
||||
0.100000 -20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 100.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 5.000000
|
||||
0.083429 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 10.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 60.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 36.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.737143 1.000000
|
||||
1.000000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
0.216000 "MOVING_TYPE_DIRECT" 0.000000 -20.000000 20.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 30
|
||||
|
||||
CycleLength 10.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 3
|
||||
|
||||
EmitterShape 3
|
||||
EmitterAdvancedType 1
|
||||
EmittingRadius 80.000000
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.010000 0.010000 0.010000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 10.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 128.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 128.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 4
|
||||
RotationSpeed 56.000000
|
||||
RotationRandomStartingBegin 360
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 0
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 0
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
0.000000 0.000000
|
||||
0.034286 0.100000
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 0.500000
|
||||
1.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 0.500000
|
||||
1.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 0.819608
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 0.780392
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 0.682353
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.112821 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\monster2\smoke_dirt1.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,654 +0,0 @@
|
||||
BoundingSphereRadius 0.000000
|
||||
BoundingSpherePosition 0.000000 0.000000 0.000000
|
||||
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.176000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 20.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 2
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 5.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 50.000000
|
||||
0.100000 20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 100.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 60.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 36.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.376923 1.000000
|
||||
0.500000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.072000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 20.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 2
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 50.000000
|
||||
0.100000 20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 50.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 72.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 48.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.387179 1.000000
|
||||
0.517949 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.072000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 20.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 2
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.080000 0.000000 0.000000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 50.000000
|
||||
0.100000 20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 50.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 72.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 48.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.405128 1.000000
|
||||
0.505128 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 1
|
||||
|
||||
CycleLength 20.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 2
|
||||
|
||||
EmitterShape 0
|
||||
EmitterAdvancedType 0
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.100000 0.000000 0.050000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 50.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 50.000000
|
||||
0.100000 20.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 10.000000
|
||||
0.050000 100.000000
|
||||
0.100000 1000.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 5.000000
|
||||
0.083429 15.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 60.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 36.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 0
|
||||
RotationSpeed 0.000000
|
||||
RotationRandomStartingBegin 0
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 1
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 1
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.382051 1.000000
|
||||
0.500000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_01.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_02.dds"
|
||||
"D:\Ymir Work\effect\pet\halloween_2022_coffin_bat_03.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
Group Particle
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
0.216000 "MOVING_TYPE_DIRECT" 0.000000 -20.000000 20.000000
|
||||
}
|
||||
|
||||
StaticRotation 0.000000 0.000000 0.000000
|
||||
Group EmitterProperty
|
||||
{
|
||||
MaxEmissionCount 30
|
||||
|
||||
CycleLength 20.000000
|
||||
CycleLoopEnable 1
|
||||
LoopCount 2
|
||||
|
||||
EmitterShape 3
|
||||
EmitterAdvancedType 1
|
||||
EmittingRadius 80.000000
|
||||
EmitterEmitFromEdgeFlag 0
|
||||
EmittingDirection 0.010000 0.010000 0.010000
|
||||
|
||||
List TimeEventEmittingSize
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingAngularVelocity
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionX
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionY
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TimeEventEmittingDirectionZ
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventEmittingVelocity
|
||||
{
|
||||
0.000000 1.000000
|
||||
}
|
||||
List TimeEventEmissionCountPerSecond
|
||||
{
|
||||
0.000000 1000.000000
|
||||
}
|
||||
List TimeEventLifeTime
|
||||
{
|
||||
0.000000 20.000000
|
||||
}
|
||||
List TimeEventSizeX
|
||||
{
|
||||
0.000000 128.000000
|
||||
}
|
||||
List TimeEventSizeY
|
||||
{
|
||||
0.000000 128.000000
|
||||
}
|
||||
}
|
||||
|
||||
Group ParticleProperty
|
||||
{
|
||||
SrcBlendType 5
|
||||
DestBlendType 6
|
||||
ColorOperationType 4
|
||||
BillboardType 1
|
||||
RotationType 4
|
||||
RotationSpeed 56.000000
|
||||
RotationRandomStartingBegin 360
|
||||
RotationRandomStartingEnd 0
|
||||
|
||||
AttachEnable 0
|
||||
StretchEnable 0
|
||||
|
||||
TexAniType 0
|
||||
TexAniDelay 0.040000
|
||||
TexAniRandomStartFrameEnable 0
|
||||
EnableFrustum 0
|
||||
|
||||
List TimeEventGravity
|
||||
{
|
||||
}
|
||||
List TimeEventAirResistance
|
||||
{
|
||||
0.000000 0.000000
|
||||
0.034286 0.100000
|
||||
}
|
||||
List TimeEventScaleX
|
||||
{
|
||||
0.000000 0.500000
|
||||
1.000000 1.000000
|
||||
}
|
||||
List TimeEventScaleY
|
||||
{
|
||||
0.000000 0.500000
|
||||
1.000000 1.000000
|
||||
}
|
||||
List TimeEventColorRed
|
||||
{
|
||||
0.000000 0.819608
|
||||
}
|
||||
List TimeEventColorGreen
|
||||
{
|
||||
0.000000 0.780392
|
||||
}
|
||||
List TimeEventColorBlue
|
||||
{
|
||||
0.000000 0.682353
|
||||
}
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.000000 1.000000
|
||||
0.050000 0.000000
|
||||
}
|
||||
List TimeEventRotation
|
||||
{
|
||||
0.000000 0.000000
|
||||
}
|
||||
List TextureFiles
|
||||
{
|
||||
"D:\Ymir Work\effect\monster2\smoke_dirt1.dds"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
BoundingSphereRadius 400.000000
|
||||
BoundingSpherePosition -180.000000 -60.000000 650.000000
|
||||
|
||||
Group Mesh
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
MeshFileName "mushroomA_01.mde"
|
||||
MeshAnimationLoopEnable 1
|
||||
MeshAnimationLoopCount 0
|
||||
MeshAnimationFrameDelay 0.020000
|
||||
|
||||
MeshElementCount 1
|
||||
Group MeshElement00
|
||||
{
|
||||
BillboardType 0
|
||||
BlendingEnable 1
|
||||
BlendingSrcType 5
|
||||
BlendingDestType 2
|
||||
|
||||
TextureAnimationLoopEnable 1
|
||||
TextureAnimationFrameDelay 0.020000
|
||||
TextureAnimationStartFrame 0
|
||||
|
||||
ColorOperationType 5
|
||||
ColorFactor 0.168627 0.643137 0.360784 1.000000
|
||||
List TimeEventAlpha
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
BoundingSphereRadius 500.000000
|
||||
BoundingSpherePosition 100.000000 0.000000 550.000000
|
||||
|
||||
Group Mesh
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
MeshFileName "mushroomA_03.mde"
|
||||
MeshAnimationLoopEnable 1
|
||||
MeshAnimationLoopCount 0
|
||||
MeshAnimationFrameDelay 0.020000
|
||||
|
||||
MeshElementCount 1
|
||||
Group MeshElement00
|
||||
{
|
||||
BillboardType 0
|
||||
BlendingEnable 1
|
||||
BlendingSrcType 5
|
||||
BlendingDestType 2
|
||||
|
||||
TextureAnimationLoopEnable 1
|
||||
TextureAnimationFrameDelay 0.020000
|
||||
TextureAnimationStartFrame 0
|
||||
|
||||
ColorOperationType 5
|
||||
ColorFactor 0.184314 0.643137 0.462745 1.000000
|
||||
List TimeEventAlpha
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
BoundingSphereRadius 330.000000
|
||||
BoundingSpherePosition -160.000000 0.000000 370.000000
|
||||
|
||||
Group Mesh
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
MeshFileName "mushroomA_04.mde"
|
||||
MeshAnimationLoopEnable 1
|
||||
MeshAnimationLoopCount 0
|
||||
MeshAnimationFrameDelay 0.020000
|
||||
|
||||
MeshElementCount 1
|
||||
Group MeshElement00
|
||||
{
|
||||
BillboardType 0
|
||||
BlendingEnable 1
|
||||
BlendingSrcType 5
|
||||
BlendingDestType 2
|
||||
|
||||
TextureAnimationLoopEnable 1
|
||||
TextureAnimationFrameDelay 0.020000
|
||||
TextureAnimationStartFrame 0
|
||||
|
||||
ColorOperationType 5
|
||||
ColorFactor 0.200000 0.521569 0.227451 1.000000
|
||||
List TimeEventAlpha
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
BoundingSphereRadius 2500.000000
|
||||
BoundingSpherePosition 0.000000 0.000000 1800.000000
|
||||
|
||||
Group Mesh
|
||||
{
|
||||
StartTime 0.000000
|
||||
List TimeEventPosition
|
||||
{
|
||||
0.000000 "MOVING_TYPE_DIRECT" 0.000000 0.000000 0.000000
|
||||
}
|
||||
|
||||
MeshFileName "turtle_statue_tree_roof_light01.mde"
|
||||
MeshAnimationLoopEnable 1
|
||||
MeshAnimationLoopCount 0
|
||||
MeshAnimationFrameDelay 0.020000
|
||||
|
||||
MeshElementCount 1
|
||||
Group MeshElement00
|
||||
{
|
||||
BillboardType 0
|
||||
BlendingEnable 1
|
||||
BlendingSrcType 5
|
||||
BlendingDestType 2
|
||||
|
||||
TextureAnimationLoopEnable 1
|
||||
TextureAnimationFrameDelay 0.020000
|
||||
TextureAnimationStartFrame 0
|
||||
|
||||
ColorOperationType 5
|
||||
ColorFactor 0.772549 0.733333 0.188235 1.000000
|
||||
List TimeEventAlpha
|
||||
{
|
||||
0.046667 0.577320
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/Effect/ymir work/effect/etc/compete/ready.dds
Normal file
BIN
assets/Effect/ymir work/effect/etc/compete/ready.dds
Normal file
Binary file not shown.
BIN
assets/Effect/ymir work/effect/monster2/smoke_dust.dds
Normal file
BIN
assets/Effect/ymir work/effect/monster2/smoke_dust.dds
Normal file
Binary file not shown.
@@ -1,5 +1,4 @@
|
||||
ScriptType MotionData
|
||||
|
||||
MotionFileName "D:\Ymir Work\monster\orc_lord\32_1.GR2"
|
||||
MotionFileName "D:\Ymir Work\monster\orc_lord\30_1.GR2"
|
||||
MotionDuration 0.833333
|
||||
|
||||
|
||||
BIN
assets/Sound/sound/common/walk_grass_n.wav
Normal file
BIN
assets/Sound/sound/common/walk_grass_n.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/bou/bou_swing1.wav
Normal file
BIN
assets/Sound/sound/monster/bou/bou_swing1.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/chuhen/club_attack.wav
Normal file
BIN
assets/Sound/sound/monster/chuhen/club_attack.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/gupae/gup_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/gupae/gup_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/gupae/gup_swing3.wav
Normal file
BIN
assets/Sound/sound/monster/gupae/gup_swing3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/maenghwan/mah_swing1.wav
Normal file
BIN
assets/Sound/sound/monster/maenghwan/mah_swing1.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/misterious_diseased_boss/damage_1.wav
Normal file
BIN
assets/Sound/sound/monster/misterious_diseased_boss/damage_1.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thief1/th1_act2.wav
Normal file
BIN
assets/Sound/sound/monster/thief1/th1_act2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thief1/th1_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/thief1/th1_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thief1/th1_swing3.wav
Normal file
BIN
assets/Sound/sound/monster/thief1/th1_swing3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thief2/th2_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/thief2/th2_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thief2/th2_swing3.wav
Normal file
BIN
assets/Sound/sound/monster/thief2/th2_swing3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thiefboss1/thb1_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/thiefboss1/thb1_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thiefboss2/thb2_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/thiefboss2/thb2_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thiefboss2/thb2_swing3.wav
Normal file
BIN
assets/Sound/sound/monster/thiefboss2/thb2_swing3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/monster/thiefboss3/thb3_swing2.wav
Normal file
BIN
assets/Sound/sound/monster/thiefboss3/thb3_swing2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/pc/sura/general/attack_1.wav
Normal file
BIN
assets/Sound/sound/pc/sura/general/attack_1.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/pc/sura/general/attack_2.wav
Normal file
BIN
assets/Sound/sound/pc/sura/general/attack_2.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/pc/sura/general/attack_3.wav
Normal file
BIN
assets/Sound/sound/pc/sura/general/attack_3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/pc/sura/general/swing_3.wav
Normal file
BIN
assets/Sound/sound/pc/sura/general/swing_3.wav
Normal file
Binary file not shown.
BIN
assets/Sound/sound/pc/sura/skill/horse_splash.wav
Normal file
BIN
assets/Sound/sound/pc/sura/skill/horse_splash.wav
Normal file
Binary file not shown.
Binary file not shown.
@@ -55,6 +55,157 @@ from _weakref import proxy
|
||||
SCREENSHOT_CWDSAVE = False
|
||||
SCREENSHOT_DIR = None
|
||||
|
||||
|
||||
def _WriteHeadlessMapTrace(message):
|
||||
if os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower() != "map_load":
|
||||
return
|
||||
|
||||
try:
|
||||
open("log/headless_map_load_trace.txt", "a").write("%s\n" % message)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def _GetHeadlessScenario():
|
||||
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower()
|
||||
|
||||
|
||||
def _WriteHeadlessTrace(message):
|
||||
scenario = _GetHeadlessScenario()
|
||||
if scenario == "map_load":
|
||||
tracePath = "log/headless_map_load_trace.txt"
|
||||
elif scenario == "gm_teleport":
|
||||
tracePath = "log/headless_gm_teleport_trace.txt"
|
||||
else:
|
||||
return
|
||||
|
||||
try:
|
||||
open(tracePath, "a").write("%s\n" % message)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def _GetHeadlessFloat(name, default):
|
||||
try:
|
||||
return float(os.environ.get(name, str(default)))
|
||||
except (TypeError, ValueError):
|
||||
return default
|
||||
|
||||
|
||||
def _GetHeadlessWarpSteps():
|
||||
rawValue = os.environ.get("M2_HEADLESS_WARP_STEPS", "").strip()
|
||||
steps = []
|
||||
|
||||
if not rawValue:
|
||||
return steps
|
||||
|
||||
for rawStep in rawValue.split("|"):
|
||||
rawStep = rawStep.strip()
|
||||
if not rawStep:
|
||||
continue
|
||||
|
||||
parts = [part.strip() for part in rawStep.split(",")]
|
||||
if len(parts) != 3:
|
||||
_WriteHeadlessTrace("Invalid warp step=%s" % rawStep)
|
||||
continue
|
||||
|
||||
mapName = parts[0]
|
||||
|
||||
try:
|
||||
globalX = int(parts[1])
|
||||
globalY = int(parts[2])
|
||||
except:
|
||||
_WriteHeadlessTrace("Invalid warp coords step=%s" % rawStep)
|
||||
continue
|
||||
|
||||
steps.append({
|
||||
"map_name": mapName,
|
||||
"global_x": globalX,
|
||||
"global_y": globalY,
|
||||
})
|
||||
|
||||
return steps
|
||||
|
||||
|
||||
HEADLESS_GM_STATE = {
|
||||
"initialized": False,
|
||||
"steps": [],
|
||||
"index": 0,
|
||||
"phase": "idle",
|
||||
"command_at": 0.0,
|
||||
"deadline": 0.0,
|
||||
"quit_requested": False,
|
||||
}
|
||||
|
||||
|
||||
def _HeadlessGMEnabled():
|
||||
return _GetHeadlessScenario() == "gm_teleport"
|
||||
|
||||
|
||||
def _HeadlessGMCommandDelay():
|
||||
return _GetHeadlessFloat("M2_HEADLESS_COMMAND_DELAY", 5.0)
|
||||
|
||||
|
||||
def _HeadlessGMWarpTimeout():
|
||||
return _GetHeadlessFloat("M2_HEADLESS_WARP_TIMEOUT", 20.0)
|
||||
|
||||
|
||||
def _HeadlessGMSettleDelay():
|
||||
return _GetHeadlessFloat("M2_HEADLESS_SETTLE_DELAY", 2.0)
|
||||
|
||||
|
||||
def _HeadlessGMRequestQuit(message):
|
||||
global HEADLESS_GM_STATE
|
||||
|
||||
if message:
|
||||
_WriteHeadlessTrace(message)
|
||||
|
||||
if HEADLESS_GM_STATE.get("quit_requested"):
|
||||
return
|
||||
|
||||
HEADLESS_GM_STATE["quit_requested"] = True
|
||||
app.Exit()
|
||||
|
||||
|
||||
class _HeadlessDummy(object):
|
||||
def __call__(self, *args, **kwargs):
|
||||
return None
|
||||
|
||||
def __getattr__(self, name):
|
||||
return self
|
||||
|
||||
def __nonzero__(self):
|
||||
return False
|
||||
|
||||
|
||||
_HEADLESS_DUMMY = _HeadlessDummy()
|
||||
|
||||
|
||||
class _HeadlessInterface(object):
|
||||
def MakeInterface(self):
|
||||
return None
|
||||
|
||||
def ShowDefaultWindows(self):
|
||||
return None
|
||||
|
||||
def HideAllWindows(self):
|
||||
return None
|
||||
|
||||
def Close(self):
|
||||
return None
|
||||
|
||||
def BUILD_OnUpdate(self):
|
||||
return None
|
||||
|
||||
def OpenWhisperDialog(self, *args):
|
||||
return None
|
||||
|
||||
def SetMapName(self, *args):
|
||||
return None
|
||||
|
||||
def __getattr__(self, name):
|
||||
return _HEADLESS_DUMMY
|
||||
|
||||
cameraDistance = 1550.0
|
||||
cameraPitch = 27.0
|
||||
cameraRotation = 0.0
|
||||
@@ -64,6 +215,7 @@ testAlignment = 0
|
||||
|
||||
class GameWindow(ui.ScriptWindow):
|
||||
def __init__(self, stream):
|
||||
_WriteHeadlessTrace("GameWindow.__init__ begin")
|
||||
ui.ScriptWindow.__init__(self, "GAME")
|
||||
self.SetWindowName("game")
|
||||
net.SetPhaseWindow(net.PHASE_WINDOW_GAME, self)
|
||||
@@ -72,6 +224,7 @@ class GameWindow(ui.ScriptWindow):
|
||||
self.quickSlotPageIndex = 0
|
||||
self.lastPKModeSendedTime = 0
|
||||
self.pressNumber = None
|
||||
self.headlessGmEnabled = _HeadlessGMEnabled()
|
||||
|
||||
self.guildWarQuestionDialog = None
|
||||
self.interface = None
|
||||
@@ -82,9 +235,16 @@ class GameWindow(ui.ScriptWindow):
|
||||
self.playerGauge = None
|
||||
|
||||
self.stream = stream
|
||||
self.interface = interfaceModule.Interface()
|
||||
self.interface.MakeInterface()
|
||||
self.interface.ShowDefaultWindows()
|
||||
if self.headlessGmEnabled:
|
||||
self.interface = _HeadlessInterface()
|
||||
_WriteHeadlessTrace("GameWindow.__init__ interface_headless")
|
||||
else:
|
||||
self.interface = interfaceModule.Interface()
|
||||
_WriteHeadlessTrace("GameWindow.__init__ interface")
|
||||
self.interface.MakeInterface()
|
||||
_WriteHeadlessTrace("GameWindow.__init__ interface_made")
|
||||
self.interface.ShowDefaultWindows()
|
||||
_WriteHeadlessTrace("GameWindow.__init__ default_windows")
|
||||
|
||||
self.curtain = uiPhaseCurtain.PhaseCurtain()
|
||||
self.curtain.speed = 0.03
|
||||
@@ -112,6 +272,7 @@ class GameWindow(ui.ScriptWindow):
|
||||
|
||||
self.__ServerCommand_Build()
|
||||
self.__ProcessPreservedServerCommand()
|
||||
_WriteHeadlessTrace("GameWindow.__init__ done")
|
||||
|
||||
def __del__(self):
|
||||
player.SetGameWindow(0)
|
||||
@@ -133,6 +294,10 @@ class GameWindow(ui.ScriptWindow):
|
||||
self.enableXMasBoom = False
|
||||
self.startTimeXMasBoom = 0.0
|
||||
self.indexXMasBoom = 0
|
||||
currentMap = background.GetCurrentMapName()
|
||||
_WriteHeadlessTrace("GameWindow.Open current_map=%s" % currentMap)
|
||||
if self.headlessGmEnabled:
|
||||
self.__HeadlessGMOnOpen(currentMap)
|
||||
|
||||
global cameraDistance, cameraPitch, cameraRotation, cameraHeight
|
||||
|
||||
@@ -220,6 +385,7 @@ class GameWindow(ui.ScriptWindow):
|
||||
self.currentCubeNPC = 0
|
||||
|
||||
def Close(self):
|
||||
_WriteHeadlessTrace("GameWindow.Close begin current_map=%s" % background.GetCurrentMapName())
|
||||
self.Hide()
|
||||
|
||||
global cameraDistance, cameraPitch, cameraRotation, cameraHeight
|
||||
@@ -298,6 +464,7 @@ class GameWindow(ui.ScriptWindow):
|
||||
app.HideCursor()
|
||||
|
||||
print("---------------------------------------------------------------------------- CLOSE GAME WINDOW")
|
||||
_WriteHeadlessTrace("GameWindow.Close end current_map=%s" % background.GetCurrentMapName())
|
||||
|
||||
def __BuildKeyDict(self):
|
||||
onPressKeyDict = {}
|
||||
@@ -856,6 +1023,7 @@ class GameWindow(ui.ScriptWindow):
|
||||
|
||||
# SHOW_LOCAL_MAP_NAME
|
||||
def ShowMapName(self, mapName, x, y):
|
||||
_WriteHeadlessTrace("ShowMapName map=%s x=%d y=%d" % (mapName, x, y))
|
||||
|
||||
if self.mapNameShower:
|
||||
self.mapNameShower.ShowMapName(mapName, x, y)
|
||||
@@ -1465,8 +1633,104 @@ class GameWindow(ui.ScriptWindow):
|
||||
def OnMouseMiddleButtonUp(self):
|
||||
player.SetMouseMiddleButtonState(player.MBS_CLICK)
|
||||
|
||||
def __HeadlessGMOnOpen(self, currentMap):
|
||||
global HEADLESS_GM_STATE
|
||||
|
||||
state = HEADLESS_GM_STATE
|
||||
now = app.GetTime()
|
||||
|
||||
if not state["initialized"]:
|
||||
state["steps"] = _GetHeadlessWarpSteps()
|
||||
state["index"] = 0
|
||||
state["phase"] = "waiting_command"
|
||||
state["command_at"] = now + _HeadlessGMCommandDelay()
|
||||
state["deadline"] = 0.0
|
||||
state["quit_requested"] = False
|
||||
state["initialized"] = True
|
||||
_WriteHeadlessTrace("GM ready current_map=%s steps=%d" % (currentMap, len(state["steps"])))
|
||||
|
||||
if not state["steps"]:
|
||||
state["phase"] = "failed"
|
||||
_HeadlessGMRequestQuit("No warp steps configured")
|
||||
return
|
||||
|
||||
if state["phase"] != "waiting_open":
|
||||
return
|
||||
|
||||
if state["index"] >= len(state["steps"]):
|
||||
state["phase"] = "success"
|
||||
_HeadlessGMRequestQuit("Scenario success current_map=%s" % currentMap)
|
||||
return
|
||||
|
||||
expectedMap = state["steps"][state["index"]]["map_name"]
|
||||
if currentMap != expectedMap:
|
||||
state["phase"] = "failed"
|
||||
_HeadlessGMRequestQuit("Warp open mismatch index=%d expected=%s current_map=%s" % (state["index"], expectedMap, currentMap))
|
||||
return
|
||||
|
||||
_WriteHeadlessTrace("Warp arrived index=%d map=%s" % (state["index"], currentMap))
|
||||
state["index"] += 1
|
||||
|
||||
if state["index"] >= len(state["steps"]):
|
||||
state["phase"] = "success"
|
||||
_HeadlessGMRequestQuit("Scenario success current_map=%s" % currentMap)
|
||||
return
|
||||
|
||||
state["phase"] = "settling"
|
||||
state["command_at"] = now + _HeadlessGMSettleDelay()
|
||||
state["deadline"] = 0.0
|
||||
|
||||
def __HeadlessGMOnUpdate(self):
|
||||
global HEADLESS_GM_STATE
|
||||
|
||||
if not self.headlessGmEnabled:
|
||||
return
|
||||
|
||||
state = HEADLESS_GM_STATE
|
||||
if not state["initialized"] or state["quit_requested"]:
|
||||
return
|
||||
|
||||
now = app.GetTime()
|
||||
|
||||
if state["phase"] == "waiting_command":
|
||||
if state["index"] >= len(state["steps"]):
|
||||
state["phase"] = "success"
|
||||
_HeadlessGMRequestQuit("Scenario success current_map=%s" % background.GetCurrentMapName())
|
||||
return
|
||||
|
||||
if now < state["command_at"]:
|
||||
return
|
||||
|
||||
if 0 == player.GetMainCharacterIndex():
|
||||
return
|
||||
|
||||
step = state["steps"][state["index"]]
|
||||
meterX = int(step["global_x"] / 100)
|
||||
meterY = int(step["global_y"] / 100)
|
||||
command = "/warp %d %d" % (meterX, meterY)
|
||||
_WriteHeadlessTrace("Warp send index=%d map=%s meter_x=%d meter_y=%d current_map=%s" % (state["index"], step["map_name"], meterX, meterY, background.GetCurrentMapName()))
|
||||
net.SendChatPacket(command)
|
||||
state["phase"] = "waiting_open"
|
||||
state["deadline"] = now + _HeadlessGMWarpTimeout()
|
||||
return
|
||||
|
||||
if state["phase"] == "settling":
|
||||
if now >= state["command_at"]:
|
||||
state["phase"] = "waiting_command"
|
||||
return
|
||||
|
||||
if state["phase"] == "waiting_open" and now > state["deadline"]:
|
||||
if state["index"] < len(state["steps"]):
|
||||
expectedMap = state["steps"][state["index"]]["map_name"]
|
||||
else:
|
||||
expectedMap = ""
|
||||
state["phase"] = "failed"
|
||||
_HeadlessGMRequestQuit("Warp timeout index=%d expected=%s current_map=%s" % (state["index"], expectedMap, background.GetCurrentMapName()))
|
||||
return
|
||||
|
||||
def OnUpdate(self):
|
||||
app.UpdateGame()
|
||||
self.__HeadlessGMOnUpdate()
|
||||
|
||||
if self.mapNameShower.IsShow():
|
||||
self.mapNameShower.Update()
|
||||
@@ -2229,4 +2493,3 @@ class GameWindow(ui.ScriptWindow):
|
||||
|
||||
def SkillClearCoolTime(self, slotIndex):
|
||||
self.interface.SkillClearCoolTime(slotIndex)
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import uiSystem
|
||||
import uiRestart
|
||||
import uiToolTip
|
||||
import uiMiniMap
|
||||
import uiBiolog
|
||||
import uiParty
|
||||
import uiSafebox
|
||||
import uiGuild
|
||||
@@ -75,6 +76,7 @@ class Interface(object):
|
||||
self.wndChat = None
|
||||
self.wndMessenger = None
|
||||
self.wndMiniMap = None
|
||||
self.wndBiolog = None
|
||||
self.wndGuild = None
|
||||
self.wndGuildBuilding = None
|
||||
|
||||
@@ -180,6 +182,7 @@ class Interface(object):
|
||||
wndDragonSoulRefine = None
|
||||
|
||||
wndMiniMap = uiMiniMap.MiniMap()
|
||||
wndBiolog = uiBiolog.BiologWindow()
|
||||
wndSafebox = uiSafebox.SafeboxWindow()
|
||||
|
||||
# ITEM_MALL
|
||||
@@ -195,8 +198,10 @@ class Interface(object):
|
||||
self.wndDragonSoul = wndDragonSoul
|
||||
self.wndDragonSoulRefine = wndDragonSoulRefine
|
||||
self.wndMiniMap = wndMiniMap
|
||||
self.wndBiolog = wndBiolog
|
||||
self.wndSafebox = wndSafebox
|
||||
self.wndChatLog = wndChatLog
|
||||
self.wndMiniMap.SetBiologButtonEvent(ui.__mem_func__(self.ToggleBiologWindow))
|
||||
|
||||
if app.ENABLE_DRAGON_SOUL_SYSTEM:
|
||||
self.wndDragonSoul.SetDragonSoulRefineWindow(self.wndDragonSoulRefine)
|
||||
@@ -409,6 +414,9 @@ class Interface(object):
|
||||
if self.wndMiniMap:
|
||||
self.wndMiniMap.Destroy()
|
||||
|
||||
if self.wndBiolog:
|
||||
self.wndBiolog.Hide()
|
||||
|
||||
if self.wndSafebox:
|
||||
self.wndSafebox.Destroy()
|
||||
|
||||
@@ -499,6 +507,7 @@ class Interface(object):
|
||||
del self.tooltipItem
|
||||
del self.tooltipSkill
|
||||
del self.wndMiniMap
|
||||
del self.wndBiolog
|
||||
del self.wndSafebox
|
||||
del self.wndMall
|
||||
del self.wndParty
|
||||
@@ -858,6 +867,9 @@ class Interface(object):
|
||||
if self.wndMiniMap:
|
||||
self.wndMiniMap.Hide()
|
||||
|
||||
if self.wndBiolog:
|
||||
self.wndBiolog.Hide()
|
||||
|
||||
if self.wndMessenger:
|
||||
self.wndMessenger.Hide()
|
||||
|
||||
@@ -942,6 +954,15 @@ class Interface(object):
|
||||
def MiniMapScaleDown(self):
|
||||
self.wndMiniMap.ScaleDown()
|
||||
|
||||
def ToggleBiologWindow(self):
|
||||
if False == self.wndBiolog.IsShow():
|
||||
(miniMapX, miniMapY) = self.wndMiniMap.GetGlobalPosition()
|
||||
self.wndBiolog.SetPosition(max(10, miniMapX - self.wndBiolog.GetWidth() - 10), miniMapY + 8)
|
||||
self.wndBiolog.Show()
|
||||
self.wndBiolog.SetTop()
|
||||
else:
|
||||
self.wndBiolog.Hide()
|
||||
|
||||
def ToggleCharacterWindow(self, state):
|
||||
if False == player.IsObserverMode():
|
||||
if False == self.wndCharacter.IsShow():
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import os
|
||||
|
||||
import ui
|
||||
import uiScriptLocale
|
||||
import net
|
||||
@@ -35,6 +37,25 @@ import uiOption
|
||||
import uiRestart
|
||||
####################################
|
||||
|
||||
|
||||
def _GetHeadlessScenario():
|
||||
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower()
|
||||
|
||||
|
||||
def _WriteHeadlessTrace(message):
|
||||
scenario = _GetHeadlessScenario()
|
||||
if scenario == "map_load":
|
||||
tracePath = "log/headless_map_load_trace.txt"
|
||||
elif scenario == "gm_teleport":
|
||||
tracePath = "log/headless_gm_teleport_trace.txt"
|
||||
else:
|
||||
return
|
||||
|
||||
try:
|
||||
open(tracePath, "a").write("%s\n" % message)
|
||||
except:
|
||||
pass
|
||||
|
||||
class LoadingWindow(ui.ScriptWindow):
|
||||
def __init__(self, stream):
|
||||
print("NEW LOADING WINDOW -------------------------------------------------------------------------------")
|
||||
@@ -218,6 +239,7 @@ class LoadingWindow(ui.ScriptWindow):
|
||||
try:
|
||||
runFunc()
|
||||
except:
|
||||
_WriteHeadlessTrace("LoadData failure step=%d" % progress)
|
||||
self.errMsg.Show()
|
||||
self.loadStepList=[]
|
||||
|
||||
@@ -302,7 +324,9 @@ class LoadingWindow(ui.ScriptWindow):
|
||||
emotion.RegisterEmotionIcons()
|
||||
|
||||
def __LoadMap(self):
|
||||
_WriteHeadlessTrace("LoadMap begin global_x=%d global_y=%d" % (self.playerX, self.playerY))
|
||||
net.Warp(self.playerX, self.playerY)
|
||||
_WriteHeadlessTrace("LoadMap current_map=%s" % background.GetCurrentMapName())
|
||||
|
||||
def __LoadSound(self):
|
||||
playerSettingModule.LoadGameData("SOUND")
|
||||
@@ -337,6 +361,7 @@ class LoadingWindow(ui.ScriptWindow):
|
||||
# END_OF_GUILD_BUILDING
|
||||
|
||||
def __StartGame(self):
|
||||
_WriteHeadlessTrace("StartGame begin current_map=%s" % background.GetCurrentMapName())
|
||||
background.SetViewDistanceSet(background.DISTANCE0, 25600)
|
||||
"""
|
||||
background.SetViewDistanceSet(background.DISTANCE1, 19200)
|
||||
@@ -349,6 +374,7 @@ class LoadingWindow(ui.ScriptWindow):
|
||||
app.SetGlobalCenterPosition(self.playerX, self.playerY)
|
||||
|
||||
net.StartGame()
|
||||
_WriteHeadlessTrace("StartGame queued current_map=%s" % background.GetCurrentMapName())
|
||||
|
||||
def _ReloadTitleNames():
|
||||
for i in range(len(localeInfo.TITLE_NAME_LIST)):
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import dbg
|
||||
import app
|
||||
import net
|
||||
@@ -18,6 +19,10 @@ import ime
|
||||
import uiScriptLocale
|
||||
import debugInfo
|
||||
|
||||
|
||||
def _AllowHeadlessLoginInfo():
|
||||
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower() == "gm_teleport"
|
||||
|
||||
# Multi-language hot-reload system
|
||||
from uilocaleselector import LocaleSelector
|
||||
|
||||
@@ -715,7 +720,7 @@ class LoginWindow(ui.ScriptWindow):
|
||||
|
||||
def __LoadLoginInfo(self, loginInfoFileName):
|
||||
# This should not work in production
|
||||
if not debugInfo.IsDebugMode():
|
||||
if not debugInfo.IsDebugMode() and not _AllowHeadlessLoginInfo():
|
||||
app.loggined = FALSE
|
||||
else:
|
||||
try:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
###################################################################################################
|
||||
# Network
|
||||
|
||||
import os
|
||||
|
||||
import app
|
||||
import chr
|
||||
import dbg
|
||||
@@ -18,6 +20,25 @@ import uiPhaseCurtain
|
||||
|
||||
import localeInfo
|
||||
|
||||
|
||||
def _GetHeadlessScenario():
|
||||
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower()
|
||||
|
||||
|
||||
def _WriteHeadlessTrace(message):
|
||||
scenario = _GetHeadlessScenario()
|
||||
if scenario == "map_load":
|
||||
tracePath = "log/headless_map_load_trace.txt"
|
||||
elif scenario == "gm_teleport":
|
||||
tracePath = "log/headless_gm_teleport_trace.txt"
|
||||
else:
|
||||
return
|
||||
|
||||
try:
|
||||
open(tracePath, "a").write("%s\n" % message)
|
||||
except:
|
||||
pass
|
||||
|
||||
class PopupDialog(ui.ScriptWindow):
|
||||
# MR-15: Multiline dialog messages
|
||||
BASE_HEIGHT = 105
|
||||
@@ -167,6 +188,7 @@ class MainStream(object):
|
||||
|
||||
if newPhaseWindow:
|
||||
newPhaseWindow.Open()
|
||||
_WriteHeadlessTrace("MainStream.ChangePhase opened=%s" % newPhaseWindow.__class__.__name__)
|
||||
|
||||
self.curPhaseWindow=newPhaseWindow
|
||||
|
||||
@@ -237,7 +259,7 @@ class MainStream(object):
|
||||
try:
|
||||
import introLoading
|
||||
loadingPhaseWindow=introLoading.LoadingWindow(self)
|
||||
loadingPhaseWindow.LoadData(x, y)
|
||||
loadingPhaseWindow.DEBUG_LoadData(x, y)
|
||||
self.SetPhaseWindow(loadingPhaseWindow)
|
||||
except:
|
||||
import exception
|
||||
@@ -256,8 +278,10 @@ class MainStream(object):
|
||||
def SetGamePhase(self):
|
||||
try:
|
||||
import game
|
||||
_WriteHeadlessTrace("MainStream.SetGamePhase begin current_map=%s" % background.GetCurrentMapName())
|
||||
self.popupWindow.Close()
|
||||
self.SetPhaseWindow(game.GameWindow(self))
|
||||
_WriteHeadlessTrace("MainStream.SetGamePhase queued current_map=%s" % background.GetCurrentMapName())
|
||||
except:
|
||||
raise
|
||||
import exception
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import os
|
||||
|
||||
import dbg
|
||||
import app
|
||||
import localeInfo
|
||||
@@ -14,6 +16,66 @@ import stringCommander
|
||||
|
||||
#bind_me(locals().values())
|
||||
|
||||
|
||||
def _GetHeadlessScenario():
|
||||
return os.environ.get("M2_HEADLESS_SCENARIO", "").strip().lower()
|
||||
|
||||
|
||||
def _WriteHeadlessTrace(message):
|
||||
scenario = _GetHeadlessScenario()
|
||||
if scenario == "map_load":
|
||||
tracePath = "log/headless_map_load_trace.txt"
|
||||
elif scenario == "gm_teleport":
|
||||
tracePath = "log/headless_gm_teleport_trace.txt"
|
||||
else:
|
||||
return
|
||||
|
||||
try:
|
||||
open(tracePath, "a").write("%s\n" % message)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def _GetHeadlessInt(name, default):
|
||||
try:
|
||||
return int(os.environ.get(name, str(default)))
|
||||
except (TypeError, ValueError):
|
||||
return default
|
||||
|
||||
|
||||
def _ApplyRenderFPSOverride():
|
||||
rawValue = os.environ.get("M2_RENDER_FPS", "").strip()
|
||||
if not rawValue:
|
||||
return
|
||||
|
||||
try:
|
||||
fps = int(rawValue)
|
||||
except (TypeError, ValueError):
|
||||
_WriteHeadlessTrace("Invalid M2_RENDER_FPS=%s" % rawValue)
|
||||
return
|
||||
|
||||
app.SetFPS(fps)
|
||||
_WriteHeadlessTrace("Render FPS override=%d" % fps)
|
||||
|
||||
|
||||
def _SetInitialPhase(mainStream):
|
||||
scenario = _GetHeadlessScenario()
|
||||
if scenario == "map_load":
|
||||
mapName = os.environ.get("M2_HEADLESS_MAP_NAME", "").strip()
|
||||
globalX = _GetHeadlessInt("M2_HEADLESS_GLOBAL_X", 460800)
|
||||
globalY = _GetHeadlessInt("M2_HEADLESS_GLOBAL_Y", 960000)
|
||||
|
||||
_WriteHeadlessTrace("Scenario begin map=%s global_x=%d global_y=%d" % (mapName, globalX, globalY))
|
||||
mainStream.SetTestGamePhase(globalX, globalY)
|
||||
return
|
||||
|
||||
if scenario == "gm_teleport":
|
||||
_WriteHeadlessTrace("Scenario begin gm_teleport")
|
||||
mainStream.SetLoginPhase()
|
||||
return
|
||||
|
||||
mainStream.SetLoginPhase()
|
||||
|
||||
def RunApp():
|
||||
musicInfo.LoadLastPlayFieldMusic()
|
||||
|
||||
@@ -36,6 +98,7 @@ def RunApp():
|
||||
return
|
||||
|
||||
app.SetCamera(1500.0, 30.0, 0.0, 180.0)
|
||||
_ApplyRenderFPSOverride()
|
||||
|
||||
#Gets and sets the floating-point control word
|
||||
#app.SetControlFP()
|
||||
@@ -47,8 +110,7 @@ def RunApp():
|
||||
mainStream.Create()
|
||||
|
||||
#mainStream.SetLoadingPhase()
|
||||
|
||||
mainStream.SetLoginPhase()
|
||||
_SetInitialPhase(mainStream)
|
||||
#mainStream.SetSelectCharacterPhase()
|
||||
#mainStream.SetCreateCharacterPhase()
|
||||
#mainStream.SetSelectEmpirePhase()
|
||||
@@ -58,4 +120,3 @@ def RunApp():
|
||||
mainStream.Destroy()
|
||||
|
||||
RunApp()
|
||||
|
||||
|
||||
145
assets/root/uiBiolog.py
Normal file
145
assets/root/uiBiolog.py
Normal file
@@ -0,0 +1,145 @@
|
||||
import time
|
||||
|
||||
import net
|
||||
import player
|
||||
import quest
|
||||
import ui
|
||||
|
||||
|
||||
class BiologWindow(ui.BoardWithTitleBar):
|
||||
TITLE_PREFIX = "Biolog Stage "
|
||||
STAGE_TARGETS = {
|
||||
1 : 10,
|
||||
2 : 15,
|
||||
3 : 20,
|
||||
4 : 20,
|
||||
5 : 25,
|
||||
6 : 30,
|
||||
7 : 30,
|
||||
8 : 40,
|
||||
9 : 40,
|
||||
}
|
||||
|
||||
def __init__(self):
|
||||
ui.BoardWithTitleBar.__init__(self)
|
||||
|
||||
self.lastRefreshTime = 0.0
|
||||
|
||||
self.AddFlag("float")
|
||||
self.AddFlag("movable")
|
||||
self.SetSize(230, 165)
|
||||
self.SetTitleName("Biolog")
|
||||
self.SetCloseEvent(self.Hide)
|
||||
|
||||
self.__CreateChildren()
|
||||
self.Hide()
|
||||
|
||||
def __del__(self):
|
||||
ui.BoardWithTitleBar.__del__(self)
|
||||
|
||||
def __CreateChildren(self):
|
||||
self.statusLine = self.__CreateValueLine(15, 36)
|
||||
self.stageLine = self.__CreateValueLine(15, 58)
|
||||
self.itemLine = self.__CreateValueLine(15, 80)
|
||||
self.progressLine = self.__CreateValueLine(15, 102)
|
||||
self.cooldownLine = self.__CreateValueLine(15, 124)
|
||||
|
||||
submitButton = ui.Button()
|
||||
submitButton.SetParent(self)
|
||||
submitButton.SetPosition(134, 132)
|
||||
submitButton.SetUpVisual("d:/ymir work/ui/public/small_thin_button_01.sub")
|
||||
submitButton.SetOverVisual("d:/ymir work/ui/public/small_thin_button_02.sub")
|
||||
submitButton.SetDownVisual("d:/ymir work/ui/public/small_thin_button_03.sub")
|
||||
submitButton.SetText("Submit")
|
||||
submitButton.SetEvent(self.__OnSubmit)
|
||||
submitButton.Show()
|
||||
self.submitButton = submitButton
|
||||
|
||||
def __CreateValueLine(self, x, y):
|
||||
textLine = ui.TextLine()
|
||||
textLine.SetParent(self)
|
||||
textLine.SetPosition(x, y)
|
||||
textLine.SetOutline()
|
||||
textLine.Show()
|
||||
return textLine
|
||||
|
||||
def __GetBiologData(self):
|
||||
questCount = min(quest.GetQuestCount(), quest.QUEST_MAX_NUM)
|
||||
for questIndex in range(questCount):
|
||||
(questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(questIndex)
|
||||
if not questName.startswith(self.TITLE_PREFIX):
|
||||
continue
|
||||
|
||||
try:
|
||||
stageIndex = int(questName[len(self.TITLE_PREFIX):])
|
||||
except:
|
||||
continue
|
||||
|
||||
totalRequired = self.STAGE_TARGETS.get(stageIndex, questCounterValue)
|
||||
(clockName, clockValue) = quest.GetQuestLastTime(questIndex)
|
||||
return {
|
||||
"stage" : stageIndex,
|
||||
"itemName" : questCounterName,
|
||||
"remaining" : max(questCounterValue, 0),
|
||||
"required" : max(totalRequired, 0),
|
||||
"clockName" : clockName,
|
||||
"clockValue" : max(clockValue, 0),
|
||||
}
|
||||
|
||||
return None
|
||||
|
||||
def __FormatCooldown(self, seconds):
|
||||
hours = seconds // 3600
|
||||
minutes = (seconds // 60) % 60
|
||||
return "%02d:%02d:%02d" % (hours, minutes, seconds % 60)
|
||||
|
||||
def __RefreshLockedState(self):
|
||||
if player.GetStatus(player.LEVEL) < 30:
|
||||
self.statusLine.SetText("Status: Unlocks at level 30")
|
||||
else:
|
||||
self.statusLine.SetText("Status: No active biolog stage")
|
||||
|
||||
self.stageLine.SetText("Stage: -")
|
||||
self.itemLine.SetText("Item: -")
|
||||
self.progressLine.SetText("Progress: -")
|
||||
self.cooldownLine.SetText("Cooldown: -")
|
||||
self.submitButton.Hide()
|
||||
|
||||
def Refresh(self):
|
||||
biologData = self.__GetBiologData()
|
||||
if not biologData:
|
||||
self.__RefreshLockedState()
|
||||
return
|
||||
|
||||
submitted = max(biologData["required"] - biologData["remaining"], 0)
|
||||
self.statusLine.SetText("Status: %s" % ("Ready" if biologData["clockValue"] <= 0 else "Cooldown"))
|
||||
self.stageLine.SetText("Stage: %d / 9" % biologData["stage"])
|
||||
self.itemLine.SetText("Item: %s" % biologData["itemName"])
|
||||
self.progressLine.SetText("Progress: %d / %d" % (submitted, biologData["required"]))
|
||||
|
||||
if biologData["clockValue"] > 0 and len(biologData["clockName"]) > 0:
|
||||
self.cooldownLine.SetText("Cooldown: %s" % self.__FormatCooldown(biologData["clockValue"]))
|
||||
else:
|
||||
self.cooldownLine.SetText("Cooldown: Ready")
|
||||
|
||||
self.submitButton.Show()
|
||||
|
||||
def Show(self):
|
||||
self.Refresh()
|
||||
ui.BoardWithTitleBar.Show(self)
|
||||
|
||||
def OnUpdate(self):
|
||||
currentTime = time.time()
|
||||
if currentTime - self.lastRefreshTime < 0.2:
|
||||
return
|
||||
|
||||
self.lastRefreshTime = currentTime
|
||||
self.Refresh()
|
||||
|
||||
def __OnSubmit(self):
|
||||
try:
|
||||
net.SendBiologSubmit()
|
||||
except AttributeError:
|
||||
net.SendChatPacket("/biolog_submit", 0)
|
||||
self.lastRefreshTime = 0.0
|
||||
self.Refresh()
|
||||
@@ -222,6 +222,9 @@ class MiniMap(ui.ScriptWindow):
|
||||
self.tooltipAtlasOpen = MapTextToolTip()
|
||||
self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_SHOW_AREAMAP)
|
||||
self.tooltipAtlasOpen.Show()
|
||||
self.tooltipBiolog = MapTextToolTip()
|
||||
self.tooltipBiolog.SetText("Biolog")
|
||||
self.tooltipBiolog.Show()
|
||||
self.tooltipInfo = MapTextToolTip()
|
||||
self.tooltipInfo.Show()
|
||||
|
||||
@@ -259,12 +262,15 @@ class MiniMap(ui.ScriptWindow):
|
||||
self.MiniMapHideButton = 0
|
||||
self.MiniMapShowButton = 0
|
||||
self.AtlasShowButton = 0
|
||||
self.BiologButton = 0
|
||||
self.biologButtonEvent = None
|
||||
|
||||
self.tooltipMiniMapOpen = 0
|
||||
self.tooltipMiniMapClose = 0
|
||||
self.tooltipScaleUp = 0
|
||||
self.tooltipScaleDown = 0
|
||||
self.tooltipAtlasOpen = 0
|
||||
self.tooltipBiolog = 0
|
||||
self.tooltipInfo = None
|
||||
self.serverInfo = None
|
||||
|
||||
@@ -346,6 +352,17 @@ class MiniMap(ui.ScriptWindow):
|
||||
if miniMap.IsAtlas():
|
||||
self.AtlasShowButton.SetEvent(ui.__mem_func__(self.ShowAtlas))
|
||||
|
||||
self.BiologButton = ui.Button()
|
||||
self.BiologButton.SetParent(self.OpenWindow)
|
||||
self.BiologButton.SetPosition(9, 111)
|
||||
self.BiologButton.SetUpVisual("d:/ymir work/ui/public/small_thin_button_01.sub")
|
||||
self.BiologButton.SetOverVisual("d:/ymir work/ui/public/small_thin_button_02.sub")
|
||||
self.BiologButton.SetDownVisual("d:/ymir work/ui/public/small_thin_button_03.sub")
|
||||
self.BiologButton.SetText("Bio")
|
||||
if self.biologButtonEvent:
|
||||
self.BiologButton.SetEvent(self.biologButtonEvent)
|
||||
self.BiologButton.Show()
|
||||
|
||||
(ButtonPosX, ButtonPosY) = self.MiniMapShowButton.GetGlobalPosition()
|
||||
self.tooltipMiniMapOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)
|
||||
|
||||
@@ -361,6 +378,9 @@ class MiniMap(ui.ScriptWindow):
|
||||
(ButtonPosX, ButtonPosY) = self.AtlasShowButton.GetGlobalPosition()
|
||||
self.tooltipAtlasOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)
|
||||
|
||||
(ButtonPosX, ButtonPosY) = self.BiologButton.GetGlobalPosition()
|
||||
self.tooltipBiolog.SetTooltipPosition(ButtonPosX, ButtonPosY)
|
||||
|
||||
self.ShowMiniMap()
|
||||
|
||||
def Destroy(self):
|
||||
@@ -441,6 +461,11 @@ class MiniMap(ui.ScriptWindow):
|
||||
else:
|
||||
self.tooltipAtlasOpen.Hide()
|
||||
|
||||
if True == self.BiologButton.IsIn():
|
||||
self.tooltipBiolog.Show()
|
||||
else:
|
||||
self.tooltipBiolog.Hide()
|
||||
|
||||
def OnRender(self):
|
||||
(x, y) = self.GetGlobalPosition()
|
||||
fx = float(x)
|
||||
@@ -485,3 +510,8 @@ class MiniMap(ui.ScriptWindow):
|
||||
self.AtlasWindow.Hide()
|
||||
else:
|
||||
self.AtlasWindow.Show()
|
||||
|
||||
def SetBiologButtonEvent(self, event):
|
||||
self.biologButtonEvent = event
|
||||
if self.BiologButton:
|
||||
self.BiologButton.SetEvent(event)
|
||||
|
||||
@@ -22,7 +22,7 @@ class PlayerGauge(ui.Gauge):
|
||||
self.SetPosition(-100, -100)
|
||||
ui.Gauge.Hide(self)
|
||||
|
||||
def OnUpdate(self):
|
||||
def __UpdateScreenPosition(self):
|
||||
playerIndex = player.GetMainCharacterIndex()
|
||||
|
||||
(x, y, z)=textTail.GetPosition(playerIndex)
|
||||
@@ -30,6 +30,14 @@ class PlayerGauge(ui.Gauge):
|
||||
isChat = textTail.IsChat(playerIndex)
|
||||
ui.Gauge.SetPosition(self, int(x - self.GetWidth() // 2), int(y + 5) + isChat * 17)
|
||||
|
||||
def OnUpdate(self):
|
||||
self.__UpdateScreenPosition()
|
||||
|
||||
def OnRender(self):
|
||||
# Refresh the anchor every render so the gauge tracks interpolated
|
||||
# character/text-tail positions on high refresh displays.
|
||||
self.__UpdateScreenPosition()
|
||||
|
||||
def RefreshGauge(self):
|
||||
|
||||
self.curHP = player.GetStatus(player.HP)
|
||||
|
||||
@@ -94,24 +94,32 @@ class PrivateShopAdvertisementBoard(ui.ThinBoard):
|
||||
net.SendOnClickPacket(self.vid)
|
||||
|
||||
return True
|
||||
|
||||
def OnUpdate(self):
|
||||
|
||||
def __UpdateProjectedPosition(self):
|
||||
if not self.vid:
|
||||
return
|
||||
|
||||
projectVID = None
|
||||
if systemSetting.IsShowSalesText():
|
||||
self.Show()
|
||||
x, y = chr.GetProjectPosition(self.vid, 220)
|
||||
self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
|
||||
projectVID = self.vid
|
||||
elif player.GetMainCharacterIndex() == self.vid:
|
||||
projectVID = player.GetMainCharacterIndex()
|
||||
|
||||
if projectVID is None:
|
||||
self.Hide()
|
||||
return
|
||||
|
||||
self.Show()
|
||||
x, y = chr.GetProjectPosition(projectVID, 220)
|
||||
self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
|
||||
|
||||
else:
|
||||
for key in list(g_privateShopAdvertisementBoardDict.keys()):
|
||||
if player.GetMainCharacterIndex() == key: # When the private shop is visible and closed, the player's own shop ID changes.
|
||||
g_privateShopAdvertisementBoardDict[key].Show()
|
||||
x, y = chr.GetProjectPosition(player.GetMainCharacterIndex(), 220)
|
||||
g_privateShopAdvertisementBoardDict[key].SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
|
||||
else:
|
||||
g_privateShopAdvertisementBoardDict[key].Hide()
|
||||
def OnUpdate(self):
|
||||
self.__UpdateProjectedPosition()
|
||||
|
||||
def OnRender(self):
|
||||
# Keep the board anchored to the interpolated render position instead
|
||||
# of the legacy fixed update cadence.
|
||||
self.__UpdateProjectedPosition()
|
||||
|
||||
class PrivateShopBuilder(ui.ScriptWindow):
|
||||
|
||||
|
||||
@@ -41,6 +41,9 @@ class OptionDialog(ui.ScriptWindow):
|
||||
self.cameraModeButtonList = []
|
||||
self.fogModeButtonList = []
|
||||
self.tilingModeButtonList = []
|
||||
self.renderFPSButtonList = []
|
||||
self.renderFPSValues = [60, 120, 144, 240, 0]
|
||||
self.performanceHUDButtonList = []
|
||||
self.ctrlShadowQuality = 0
|
||||
|
||||
def Destroy(self):
|
||||
@@ -72,6 +75,13 @@ class OptionDialog(ui.ScriptWindow):
|
||||
self.fogModeButtonList.append(GetObject("fog_level2"))
|
||||
self.tilingModeButtonList.append(GetObject("tiling_cpu"))
|
||||
self.tilingModeButtonList.append(GetObject("tiling_gpu"))
|
||||
self.renderFPSButtonList.append(GetObject("render_fps_60"))
|
||||
self.renderFPSButtonList.append(GetObject("render_fps_120"))
|
||||
self.renderFPSButtonList.append(GetObject("render_fps_144"))
|
||||
self.renderFPSButtonList.append(GetObject("render_fps_240"))
|
||||
self.renderFPSButtonList.append(GetObject("render_fps_max"))
|
||||
self.performanceHUDButtonList.append(GetObject("performance_hud_off"))
|
||||
self.performanceHUDButtonList.append(GetObject("performance_hud_on"))
|
||||
self.tilingApplyButton=GetObject("tiling_apply")
|
||||
#self.ctrlShadowQuality = GetObject("shadow_bar")
|
||||
except:
|
||||
@@ -106,6 +116,13 @@ class OptionDialog(ui.ScriptWindow):
|
||||
|
||||
self.tilingModeButtonList[0].SAFE_SetEvent(self.__OnClickTilingModeCPUButton)
|
||||
self.tilingModeButtonList[1].SAFE_SetEvent(self.__OnClickTilingModeGPUButton)
|
||||
self.renderFPSButtonList[0].SAFE_SetEvent(self.__OnClickRenderFPS60Button)
|
||||
self.renderFPSButtonList[1].SAFE_SetEvent(self.__OnClickRenderFPS120Button)
|
||||
self.renderFPSButtonList[2].SAFE_SetEvent(self.__OnClickRenderFPS144Button)
|
||||
self.renderFPSButtonList[3].SAFE_SetEvent(self.__OnClickRenderFPS240Button)
|
||||
self.renderFPSButtonList[4].SAFE_SetEvent(self.__OnClickRenderFPSMaxButton)
|
||||
self.performanceHUDButtonList[0].SAFE_SetEvent(self.__OnClickPerformanceHUDOffButton)
|
||||
self.performanceHUDButtonList[1].SAFE_SetEvent(self.__OnClickPerformanceHUDOnButton)
|
||||
|
||||
self.tilingApplyButton.SAFE_SetEvent(self.__OnClickTilingApplyButton)
|
||||
|
||||
@@ -115,6 +132,7 @@ class OptionDialog(ui.ScriptWindow):
|
||||
self.__ClickRadioButton(self.fogModeButtonList, systemSetting.GetFogLevel())
|
||||
# MR-14: -- END OF -- Fog update by Alaric
|
||||
self.__ClickRadioButton(self.cameraModeButtonList, constInfo.GET_CAMERA_MAX_DISTANCE_INDEX())
|
||||
self.RefreshRenderSettings()
|
||||
|
||||
if musicInfo.fieldMusic==musicInfo.METIN2THEMA:
|
||||
self.selectMusicFile.SetText(uiSelectMusic.DEFAULT_THEMA)
|
||||
@@ -179,6 +197,41 @@ class OptionDialog(ui.ScriptWindow):
|
||||
|
||||
self.__ClickRadioButton(self.fogModeButtonList, index)
|
||||
|
||||
def __ApplyAndSaveConfig(self):
|
||||
systemSetting.ApplyConfig()
|
||||
systemSetting.SaveConfig()
|
||||
|
||||
def __GetRenderFPSButtonIndex(self):
|
||||
renderFPS = systemSetting.GetRenderFPS()
|
||||
if renderFPS <= 0:
|
||||
return len(self.renderFPSValues) - 1
|
||||
|
||||
try:
|
||||
return self.renderFPSValues.index(renderFPS)
|
||||
except ValueError:
|
||||
bestIndex = 0
|
||||
bestDistance = abs(self.renderFPSValues[0] - renderFPS)
|
||||
for index in xrange(len(self.renderFPSValues) - 1):
|
||||
distance = abs(self.renderFPSValues[index] - renderFPS)
|
||||
if distance < bestDistance:
|
||||
bestIndex = index
|
||||
bestDistance = distance
|
||||
return bestIndex
|
||||
|
||||
def RefreshRenderSettings(self):
|
||||
self.__ClickRadioButton(self.renderFPSButtonList, self.__GetRenderFPSButtonIndex())
|
||||
self.__ClickRadioButton(self.performanceHUDButtonList, 1 if systemSetting.IsShowPerformanceHUD() else 0)
|
||||
|
||||
def __SetRenderFPS(self, fps):
|
||||
systemSetting.SetRenderFPS(fps)
|
||||
self.__ApplyAndSaveConfig()
|
||||
self.RefreshRenderSettings()
|
||||
|
||||
def __SetPerformanceHUD(self, isVisible):
|
||||
systemSetting.SetShowPerformanceHUDFlag(1 if isVisible else 0)
|
||||
self.__ApplyAndSaveConfig()
|
||||
self.RefreshRenderSettings()
|
||||
|
||||
def __OnClickCameraModeShortButton(self):
|
||||
self.__SetCameraMode(0)
|
||||
|
||||
@@ -194,6 +247,27 @@ class OptionDialog(ui.ScriptWindow):
|
||||
def __OnClickFogModeLevel2Button(self):
|
||||
self.__SetFogLevel(2)
|
||||
|
||||
def __OnClickRenderFPS60Button(self):
|
||||
self.__SetRenderFPS(60)
|
||||
|
||||
def __OnClickRenderFPS120Button(self):
|
||||
self.__SetRenderFPS(120)
|
||||
|
||||
def __OnClickRenderFPS144Button(self):
|
||||
self.__SetRenderFPS(144)
|
||||
|
||||
def __OnClickRenderFPS240Button(self):
|
||||
self.__SetRenderFPS(240)
|
||||
|
||||
def __OnClickRenderFPSMaxButton(self):
|
||||
self.__SetRenderFPS(0)
|
||||
|
||||
def __OnClickPerformanceHUDOffButton(self):
|
||||
self.__SetPerformanceHUD(False)
|
||||
|
||||
def __OnClickPerformanceHUDOnButton(self):
|
||||
self.__SetPerformanceHUD(True)
|
||||
|
||||
def __OnChangeMusic(self, fileName):
|
||||
self.selectMusicFile.SetText(fileName[:MUSIC_FILENAME_MAX_LEN])
|
||||
|
||||
@@ -239,6 +313,8 @@ class OptionDialog(ui.ScriptWindow):
|
||||
return True
|
||||
|
||||
def Show(self):
|
||||
self.RefreshRenderSettings()
|
||||
self.__SetCurTilingMode()
|
||||
ui.ScriptWindow.Show(self)
|
||||
|
||||
def Close(self):
|
||||
|
||||
BIN
assets/sound2/sound/monster2/outlaw/fall.wav
Normal file
BIN
assets/sound2/sound/monster2/outlaw/fall.wav
Normal file
Binary file not shown.
BIN
assets/sound2/sound/pc2/assassin/bow/attack1.wav
Normal file
BIN
assets/sound2/sound/pc2/assassin/bow/attack1.wav
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
ScriptType CharacterSoundInformation
|
||||
|
||||
SoundDataCount 2
|
||||
SoundData00 0.066000 "sound/pc2/assassin/dualhand_sword/combo7.wav"
|
||||
SoundData01 0.033000 "sound/common/swing/w_1h_c_2.wav"
|
||||
SoundData00 0.231000 "sound/pc2/assassin/dualhand_sword/combo4.wav"
|
||||
SoundData01 0.198000 "sound/common/swing/a_dh_c_4.wav"
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import uiScriptLocale
|
||||
|
||||
ROOT_PATH = "d:/ymir work/ui/public/"
|
||||
OPTION_RENDER_FPS = getattr(uiScriptLocale, "OPTION_RENDER_FPS", "Render FPS")
|
||||
OPTION_RENDER_FPS_MAX = getattr(uiScriptLocale, "OPTION_RENDER_FPS_MAX", "MAX")
|
||||
OPTION_PERFORMANCE_HUD = getattr(uiScriptLocale, "OPTION_PERFORMANCE_HUD", "Perf HUD")
|
||||
OPTION_ON = getattr(uiScriptLocale, "OPTION_ON", "On")
|
||||
OPTION_OFF = getattr(uiScriptLocale, "OPTION_OFF", "Off")
|
||||
|
||||
TEMPORARY_X = +13
|
||||
TEXT_TEMPORARY_X = -10
|
||||
@@ -15,7 +20,7 @@ window = {
|
||||
"y" : 0,
|
||||
|
||||
"width" : 305,
|
||||
"height" : 255,
|
||||
"height" : 295,
|
||||
|
||||
"children" :
|
||||
(
|
||||
@@ -27,7 +32,7 @@ window = {
|
||||
"y" : 0,
|
||||
|
||||
"width" : 305,
|
||||
"height" : 255,
|
||||
"height" : 295,
|
||||
|
||||
"children" :
|
||||
(
|
||||
@@ -261,6 +266,124 @@ window = {
|
||||
"down_image" : ROOT_PATH + "middle_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_mode",
|
||||
"type" : "text",
|
||||
|
||||
"x" : 18,
|
||||
"y" : 210 + 2,
|
||||
|
||||
"text" : OPTION_RENDER_FPS,
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_60",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 82,
|
||||
"y" : 210,
|
||||
|
||||
"text" : "60",
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_120",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 124,
|
||||
"y" : 210,
|
||||
|
||||
"text" : "120",
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_144",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 166,
|
||||
"y" : 210,
|
||||
|
||||
"text" : "144",
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_240",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 208,
|
||||
"y" : 210,
|
||||
|
||||
"text" : "240",
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "render_fps_max",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 250,
|
||||
"y" : 210,
|
||||
|
||||
"text" : OPTION_RENDER_FPS_MAX,
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "performance_hud_mode",
|
||||
"type" : "text",
|
||||
|
||||
"x" : 18,
|
||||
"y" : 235 + 2,
|
||||
|
||||
"text" : OPTION_PERFORMANCE_HUD,
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "performance_hud_off",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 110,
|
||||
"y" : 235,
|
||||
|
||||
"text" : OPTION_OFF,
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "performance_hud_on",
|
||||
"type" : "radio_button",
|
||||
|
||||
"x" : 160,
|
||||
"y" : 235,
|
||||
|
||||
"text" : OPTION_ON,
|
||||
|
||||
"default_image" : ROOT_PATH + "small_Button_01.sub",
|
||||
"over_image" : ROOT_PATH + "small_Button_02.sub",
|
||||
"down_image" : ROOT_PATH + "small_Button_03.sub",
|
||||
},
|
||||
|
||||
|
||||
## 그림자
|
||||
# {
|
||||
|
||||
91
docs/linux-wine.md
Normal file
91
docs/linux-wine.md
Normal file
@@ -0,0 +1,91 @@
|
||||
# Running the client on Linux with Wine
|
||||
|
||||
This is an interim path for playing and testing on Linux while a native Linux port is a longer-term goal. Wine runs the unmodified Windows build of `Metin2.exe` / `Metin2_Debug.exe` directly. Verified to reach the character selection screen on Fedora 41 with Wine 10 Staging; other modern distros should work the same.
|
||||
|
||||
Use this when you want to:
|
||||
|
||||
- Smoke-test the Windows binary without rebooting into Windows
|
||||
- Develop server-side with a live client connected from the same machine
|
||||
- Run a dev loop without owning a Windows install
|
||||
|
||||
## Requirements
|
||||
|
||||
- A recent Wine (10.x Staging tested, 9.x stable should work). Older than 8 may be rough on D3D9.
|
||||
- `winetricks` for installing MSVC runtime, D3DX9 helper DLLs, core fonts, and Tahoma
|
||||
- A copy of the client deploy folder (the one containing `Metin2.exe`, `Metin2_Debug.exe`, `assets/`, `pack/`, `bgm/`, `config/`, `log/`). The whole folder is ~4.3 GB.
|
||||
- ~7 GB free disk for the writable client copy plus the Wine prefix
|
||||
|
||||
On Fedora:
|
||||
|
||||
```bash
|
||||
sudo dnf install -y wine winetricks
|
||||
```
|
||||
|
||||
On Debian/Ubuntu (use the WineHQ repo for a modern version):
|
||||
|
||||
```bash
|
||||
sudo apt install -y wine winetricks
|
||||
```
|
||||
|
||||
## One-shot setup
|
||||
|
||||
The easiest way is the helper script in this repo:
|
||||
|
||||
```bash
|
||||
./scripts/setup-wine-prefix.sh /path/to/windows/client ~/metin-wine
|
||||
```
|
||||
|
||||
This will:
|
||||
|
||||
1. Copy the client folder to `~/metin-wine/client` (needs to be on a writable filesystem, so an NTFS read-only mount won't do).
|
||||
2. Create a fresh Wine prefix at `~/metin-wine/prefix`.
|
||||
3. Install `vcrun2022`, `d3dx9`, `corefonts`, and `tahoma` via winetricks.
|
||||
4. Print the launch command.
|
||||
|
||||
See the script itself for exact steps if you prefer to run them manually.
|
||||
|
||||
## Why Tahoma is required
|
||||
|
||||
The client hard-codes Tahoma as its UI font. On Windows this is invisible because Tahoma ships with the OS; on a fresh Wine prefix it's missing, and the result is that the login screen renders layouts and backgrounds correctly but **all text is invisible**. You can reach the server picker and character selection, you just can't read anything. Installing Tahoma via `winetricks tahoma` fixes it in one shot.
|
||||
|
||||
If the login screen looks right but has no readable text, this is what you're seeing.
|
||||
|
||||
## Launching
|
||||
|
||||
After setup, the launch command is just:
|
||||
|
||||
```bash
|
||||
cd ~/metin-wine/client
|
||||
WINEPREFIX=~/metin-wine/prefix wine Metin2.exe
|
||||
```
|
||||
|
||||
Use `Metin2_Debug.exe` instead of `Metin2.exe` if you want more verbose client-side logging via `OutputDebugString`. Wine will echo those to stderr when `WINEDEBUG` includes `+seh` or you pass `+outputdebugstring`. For normal play use `-all,+err`.
|
||||
|
||||
## Logs and debug output
|
||||
|
||||
Useful `WINEDEBUG` settings:
|
||||
|
||||
- `WINEDEBUG=-all,+err` — quiet, only real errors. Use this for normal play.
|
||||
- `WINEDEBUG=-all,+loaddll,+module,+err` — shows which DLLs Wine loads, handy when the client crashes early with a missing DLL.
|
||||
- `WINEDEBUG=-all,+err,+seh` — captures the client's own `OutputDebugString` calls via SEH, which is how metin2's internal logging surfaces. Very noisy but useful when diagnosing client-side issues ("CResource::Load file not exist X", "CPythonNonPlayer::LoadNonPlayerData", etc.).
|
||||
|
||||
Redirect to a file and grep the signal out of the noise:
|
||||
|
||||
```bash
|
||||
WINEDEBUG=-all,+err,+seh wine Metin2_Debug.exe >wine-run.log 2>&1
|
||||
grep -E 'OutputDebugString[AW] "' wine-run.log | sed 's/.*OutputDebugString[AW] //' | sort -u
|
||||
```
|
||||
|
||||
The client also writes its own logs to `log/` inside the client folder. Those are plain text and more readable than the Wine SEH traces.
|
||||
|
||||
## Known quirks
|
||||
|
||||
- **Wayland:** works via XWayland, no special config. If the window opens minimized or off-screen, `Alt+Tab` to find it.
|
||||
- **Read-only NTFS mount:** don't try to launch from a read-only mount of your Windows partition. The client creates and writes `log/`, `config/`, and cache files; on a read-only FS the launch will be confusing. Always copy to a writable location first. `setup-wine-prefix.sh` does this for you.
|
||||
- **DXVK render state warnings:** lines like `D3D9DeviceEx::SetRenderState: Unhandled render state 163` in the log are harmless. DXVK doesn't implement every legacy D3D9 render state, but the ones metin2 cares about all work.
|
||||
- **SEH dispatch spam:** `dispatch_exception code=4001000a` / `4001000c` are how Windows signals `OutputDebugStringW` / `OutputDebugStringA`. They're soft exceptions, not errors. They only show up if you enable `+seh` in `WINEDEBUG`.
|
||||
- **First launch is slower:** DXVK compiles its shader pipelines on first run and writes a state cache. Subsequent launches are noticeably faster.
|
||||
|
||||
## When to stop using Wine
|
||||
|
||||
This guide is for the interim. The longer-term plan is a native Linux build of the client with a free-software replacement for Granny2 animation runtime. Until that lands, Wine is the way.
|
||||
97
scripts/setup-wine-prefix.sh
Executable file
97
scripts/setup-wine-prefix.sh
Executable file
@@ -0,0 +1,97 @@
|
||||
#!/usr/bin/env bash
|
||||
# Set up a Wine prefix for running the Metin2 client on Linux.
|
||||
# Idempotent: re-running on an existing prefix skips steps that are already done.
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/setup-wine-prefix.sh <source-client-dir> <target-dir>
|
||||
#
|
||||
# Example:
|
||||
# ./scripts/setup-wine-prefix.sh /mnt/windows_c/Users/me/metin/client ~/metin-wine
|
||||
#
|
||||
# Result layout:
|
||||
# <target-dir>/client/ — writable copy of the client deploy folder
|
||||
# <target-dir>/prefix/ — Wine prefix with required runtime deps installed
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [[ $# -lt 2 ]]; then
|
||||
echo "usage: $0 <source-client-dir> <target-dir>" >&2
|
||||
echo " source-client-dir: path containing Metin2.exe, assets/, pack/, etc." >&2
|
||||
echo " target-dir: directory to create (holds client/ and prefix/)" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
SRC=$1
|
||||
DEST=$2
|
||||
|
||||
if [[ ! -f "$SRC/Metin2.exe" && ! -f "$SRC/Metin2_Debug.exe" ]]; then
|
||||
echo "error: $SRC does not look like a client folder (no Metin2.exe or Metin2_Debug.exe)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for tool in wine winetricks; do
|
||||
if ! command -v "$tool" >/dev/null 2>&1; then
|
||||
echo "error: $tool not found in PATH. Install it via your package manager." >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
CLIENT_DIR=$DEST/client
|
||||
PREFIX_DIR=$DEST/prefix
|
||||
|
||||
mkdir -p "$DEST"
|
||||
|
||||
if [[ -d "$CLIENT_DIR" && -f "$CLIENT_DIR/Metin2.exe" ]] || [[ -d "$CLIENT_DIR" && -f "$CLIENT_DIR/Metin2_Debug.exe" ]]; then
|
||||
echo "[1/3] client already present at $CLIENT_DIR, skipping copy"
|
||||
else
|
||||
echo "[1/3] copying client from $SRC to $CLIENT_DIR (this can take a minute)"
|
||||
cp -a "$SRC" "$CLIENT_DIR"
|
||||
fi
|
||||
|
||||
export WINEPREFIX=$PREFIX_DIR
|
||||
export WINEARCH=win64
|
||||
|
||||
if [[ -f "$PREFIX_DIR/system.reg" ]]; then
|
||||
echo "[2/3] wine prefix already exists at $PREFIX_DIR, skipping wineboot"
|
||||
else
|
||||
echo "[2/3] creating wine prefix at $PREFIX_DIR"
|
||||
mkdir -p "$PREFIX_DIR"
|
||||
wineboot --init >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
# vcrun2022 — MSVC 2015-2022 runtime, required because the client is an MSVC build
|
||||
# d3dx9 — D3DX9 helper DLLs (Wine implements d3d9 but not the d3dx9 helpers)
|
||||
# corefonts — Arial/Courier/Times/etc., needed by some UI elements
|
||||
# tahoma — the client hard-codes Tahoma as the UI font; without it, all text renders invisibly
|
||||
VERBS=(vcrun2022 d3dx9 corefonts tahoma)
|
||||
TO_INSTALL=()
|
||||
for v in "${VERBS[@]}"; do
|
||||
case $v in
|
||||
vcrun2022)
|
||||
if [[ -f "$PREFIX_DIR/drive_c/windows/system32/msvcp140.dll" ]]; then continue; fi ;;
|
||||
d3dx9)
|
||||
if [[ -f "$PREFIX_DIR/drive_c/windows/system32/d3dx9_43.dll" ]]; then continue; fi ;;
|
||||
corefonts)
|
||||
if [[ -f "$PREFIX_DIR/drive_c/windows/Fonts/arial.ttf" ]]; then continue; fi ;;
|
||||
tahoma)
|
||||
if [[ -f "$PREFIX_DIR/drive_c/windows/Fonts/tahoma.ttf" ]]; then continue; fi ;;
|
||||
esac
|
||||
TO_INSTALL+=("$v")
|
||||
done
|
||||
|
||||
if [[ ${#TO_INSTALL[@]} -eq 0 ]]; then
|
||||
echo "[3/3] all winetricks verbs already installed"
|
||||
else
|
||||
echo "[3/3] installing winetricks verbs: ${TO_INSTALL[*]}"
|
||||
winetricks -q "${TO_INSTALL[@]}"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "done. to launch:"
|
||||
echo
|
||||
echo " cd $CLIENT_DIR"
|
||||
echo " WINEPREFIX=$PREFIX_DIR wine Metin2.exe"
|
||||
echo
|
||||
echo "or with verbose client logging:"
|
||||
echo
|
||||
echo " WINEPREFIX=$PREFIX_DIR WINEDEBUG=-all,+err,+seh wine Metin2_Debug.exe"
|
||||
Reference in New Issue
Block a user