Active features, diva defense, super basic pass on ravi npc + merc save, expanded earth value

This commit is contained in:
SirFist
2020-03-08 23:49:51 +00:00
parent 933ed7943d
commit e94fc6da20
12 changed files with 281 additions and 107 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ www/jp/
bin/*.bin bin/*.bin
bin/quests/*.bin bin/quests/*.bin
bin/questlists/*.bin
bin/scenarios/*.bin bin/scenarios/*.bin
bin/debug/*.bin bin/debug/*.bin
savedata/ savedata/

View File

@@ -9,5 +9,6 @@ ALTER TABLE characters
DROP COLUMN platedata, DROP COLUMN platedata,
DROP COLUMN platemyset, DROP COLUMN platemyset,
DROP COLUMN rengokudata; DROP COLUMN rengokudata;
DROP COLUMN savemercenary;
END; END;

View File

@@ -9,5 +9,6 @@ ALTER TABLE characters
ADD COLUMN platedata bytea, ADD COLUMN platedata bytea,
ADD COLUMN platemyset bytea, ADD COLUMN platemyset bytea,
ADD COLUMN rengokudata bytea; ADD COLUMN rengokudata bytea;
ADD COLUMN savemercenary bytea;
END; END;

View File

@@ -6,7 +6,11 @@ import (
) )
// MsgMhfAddUdTacticsPoint represents the MSG_MHF_ADD_UD_TACTICS_POINT // MsgMhfAddUdTacticsPoint represents the MSG_MHF_ADD_UD_TACTICS_POINT
type MsgMhfAddUdTacticsPoint struct{} type MsgMhfAddUdTacticsPoint struct{
AckHandle uint32
Unk0 uint16
Unk1 uint32
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgMhfAddUdTacticsPoint) Opcode() network.PacketID { func (m *MsgMhfAddUdTacticsPoint) Opcode() network.PacketID {
@@ -15,7 +19,10 @@ func (m *MsgMhfAddUdTacticsPoint) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error { func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint32()
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -8,7 +8,7 @@ import (
// MsgMhfEnumerateShop represents the MSG_MHF_ENUMERATE_SHOP // MsgMhfEnumerateShop represents the MSG_MHF_ENUMERATE_SHOP
type MsgMhfEnumerateShop struct { type MsgMhfEnumerateShop struct {
AckHandle uint32 AckHandle uint32
ShopType uint8 // 1 running gachas, 10 normal shop extensions ShopType uint8 // 1 running gachas, 10 normal shop extensions, 8 Diva Defense shop
ShopID uint32 ShopID uint32
Unk2 uint16 // 00 80 running gachas, 00 20 normal shop Unk2 uint16 // 00 80 running gachas, 00 20 normal shop
Unk3 uint8 Unk3 uint8

View File

@@ -10,7 +10,7 @@ type MsgMhfGetEarthValue struct {
AckHandle uint32 AckHandle uint32
Unk0 uint32 Unk0 uint32
Unk1 uint32 Unk1 uint32
Unk2 uint32 ReqType uint32
Unk3 uint32 Unk3 uint32
Unk4 uint32 Unk4 uint32
Unk5 uint32 Unk5 uint32
@@ -27,7 +27,7 @@ func (m *MsgMhfGetEarthValue) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32() m.Unk0 = bf.ReadUint32()
m.Unk1 = bf.ReadUint32() m.Unk1 = bf.ReadUint32()
m.Unk2 = bf.ReadUint32() m.ReqType = bf.ReadUint32()
m.Unk3 = bf.ReadUint32() m.Unk3 = bf.ReadUint32()
m.Unk4 = bf.ReadUint32() m.Unk4 = bf.ReadUint32()
m.Unk5 = bf.ReadUint32() m.Unk5 = bf.ReadUint32()

View File

@@ -6,7 +6,9 @@ import (
) )
// MsgMhfGetUdRanking represents the MSG_MHF_GET_UD_RANKING // MsgMhfGetUdRanking represents the MSG_MHF_GET_UD_RANKING
type MsgMhfGetUdRanking struct{} type MsgMhfGetUdRanking struct{
AckHandle uint32
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgMhfGetUdRanking) Opcode() network.PacketID { func (m *MsgMhfGetUdRanking) Opcode() network.PacketID {
@@ -15,7 +17,8 @@ func (m *MsgMhfGetUdRanking) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame) error { func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -6,7 +6,13 @@ import (
) )
// MsgMhfRegisterEvent represents the MSG_MHF_REGISTER_EVENT // MsgMhfRegisterEvent represents the MSG_MHF_REGISTER_EVENT
type MsgMhfRegisterEvent struct{} type MsgMhfRegisterEvent struct{
AckHandle uint32
Unk0 uint16
Unk1 uint16
Unk2 uint16
Unk3 uint16
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgMhfRegisterEvent) Opcode() network.PacketID { func (m *MsgMhfRegisterEvent) Opcode() network.PacketID {
@@ -15,7 +21,12 @@ func (m *MsgMhfRegisterEvent) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfRegisterEvent) Parse(bf *byteframe.ByteFrame) error { func (m *MsgMhfRegisterEvent) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadUint16()
m.Unk3 = bf.ReadUint16()
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -6,7 +6,11 @@ import (
) )
// MsgMhfSaveMercenary represents the MSG_MHF_SAVE_MERCENARY // MsgMhfSaveMercenary represents the MSG_MHF_SAVE_MERCENARY
type MsgMhfSaveMercenary struct{} type MsgMhfSaveMercenary struct{
AckHandle uint32
DataSize uint32
RawDataPayload []byte
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgMhfSaveMercenary) Opcode() network.PacketID { func (m *MsgMhfSaveMercenary) Opcode() network.PacketID {
@@ -15,7 +19,10 @@ func (m *MsgMhfSaveMercenary) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfSaveMercenary) Parse(bf *byteframe.ByteFrame) error { func (m *MsgMhfSaveMercenary) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
m.DataSize = bf.ReadUint32()
m.RawDataPayload = bf.ReadBytes(uint(m.DataSize))
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -6,7 +6,10 @@ import (
) )
// MsgSysCreateAcquireSemaphore represents the MSG_SYS_CREATE_ACQUIRE_SEMAPHORE // MsgSysCreateAcquireSemaphore represents the MSG_SYS_CREATE_ACQUIRE_SEMAPHORE
type MsgSysCreateAcquireSemaphore struct{} type MsgSysCreateAcquireSemaphore struct{
AckHandle uint32
Unk0 []byte
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgSysCreateAcquireSemaphore) Opcode() network.PacketID { func (m *MsgSysCreateAcquireSemaphore) Opcode() network.PacketID {
@@ -15,7 +18,9 @@ func (m *MsgSysCreateAcquireSemaphore) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgSysCreateAcquireSemaphore) Parse(bf *byteframe.ByteFrame) error { func (m *MsgSysCreateAcquireSemaphore) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadBytes(19)
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -6,7 +6,13 @@ import (
) )
// MsgSysLoadRegister represents the MSG_SYS_LOAD_REGISTER // MsgSysLoadRegister represents the MSG_SYS_LOAD_REGISTER
type MsgSysLoadRegister struct{} type MsgSysLoadRegister struct{
AckHandle uint32
Unk0 uint16
Unk1 uint16
Unk2 uint16
Unk3 uint16
}
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
func (m *MsgSysLoadRegister) Opcode() network.PacketID { func (m *MsgSysLoadRegister) Opcode() network.PacketID {
@@ -15,7 +21,12 @@ func (m *MsgSysLoadRegister) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgSysLoadRegister) Parse(bf *byteframe.ByteFrame) error { func (m *MsgSysLoadRegister) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented") m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadUint16()
m.Unk3 = bf.ReadUint16()
return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

File diff suppressed because one or more lines are too long