Files
90CNServer/server/cmd/scratch/pvfpoolresolve/main.go
T
hanfuit 645b64fe21 DNF90 服务端与启动器完整源码(含 GM 工具功能增强)
服务端(Go):
- GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面
- GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新
- 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新)
- 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍
- 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0)
- 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算

启动器(Python/JS):
- 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭
- GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐)
- 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
2026-11-04 14:31:55 +08:00

81 lines
2.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// pvfpoolresolve 用归档 API 把池偏移解析成真实字符串,
// 确认 origin_cinematic_10..13 在池里的内容与文件名一致。
package main
import (
"flag"
"fmt"
platformpvf "longheng.io/server/internal/platform/pvf"
)
func main() {
input := flag.String("pvf", "", "input PVF")
flag.Parse()
archive, err := platformpvf.Open(*input)
if err != nil {
panic(err)
}
fmt.Println("=== 已知引用(来自 scene.etc 影片块)对照 ===")
known := []struct {
ref int
name string
}{
{0x02513B14, "origin_cinematic_01"},
{0x02513BAC, "origin_cinematic_02"},
{0x02513C4E, "origin_cinematic_03"},
{0x02513CE8, "origin_cinematic_04"},
{0x02513D84, "origin_cinematic_05"},
{0x02513EC8, "origin_cinematic_06"},
{0x02513F60, "origin_cinematic_09"},
{0x025140F8, "cinematic_06"},
{0x0251417C, "cinematic_07"},
{0x0251420C, "origin_cinematic_07"},
{0x0251429E, "cinematic_09"},
{0x0251436A, "origin_cinematic_08"},
{0x025143FA, "cinematic_11"},
}
for _, k := range known {
s := archive.ResolveString(k.ref)
mark := "OK"
if s != "Video/movie/"+k.name+".avi" {
mark = "**不一致**"
}
fmt.Printf(" 0x%08X %-22s → %q %s\n", k.ref, k.name, s, mark)
}
fmt.Println("\n=== 候选引用(origin_cinematic_10..13,来自 townmovielist.etc)===")
cands := []struct {
ref int
want string
}{
{0x0349D3BA, "origin_cinematic_10"},
{0x0349D402, "origin_cinematic_11"},
{0x0349D44A, "origin_cinematic_12"},
{0x0349D492, "origin_cinematic_13"},
}
for _, c := range cands {
s := archive.ResolveString(c.ref)
mark := "OK"
if s != "Video/movie/"+c.want+".avi" {
mark = "**不一致**"
}
fmt.Printf(" 0x%08X %-22s → %q %s\n", c.ref, c.want, s, mark)
}
fmt.Println("\n=== 用 FindStringMagicOffsets 反查(更可靠)===")
wants := []string{}
for i := 1; i <= 13; i++ {
wants = append(wants, fmt.Sprintf("Video/movie/origin_cinematic_%02d.avi", i))
}
got := archive.FindStringMagicOffsets(wants)
for _, w := range wants {
if off, ok := got[w]; ok {
fmt.Printf(" %-40s 0x%08X\n", w, off)
} else {
fmt.Printf(" %-40s ❌ 不在池中\n", w)
}
}
}