Claude/ora explora system design 011 c ug zen w4 wg1 a tcbs4 mt zd#15
Open
bowenzhengzbw wants to merge 4 commits intoKsanaDock:mainfrom
Open
Conversation
添加ORA-ExplORA系统开发路线图文档,包含: - 7个开发阶段的详细规划 - 五维属性系统设计方案 - API接口设计 - LLM决策机制设计 - 提示词系统设计 - 成就和排行榜系统设计 - 关键里程碑和风险评估 预计总开发周期:16-17周
完成ORA-ExplORA系统的完整设计文档,包括: 1. ORA项目全景设计 (ORA_Project_Overview.md) - O2O自我提升社交平台愿景 - 线下空间 + 线上APP + ExplORA虚拟世界三位一体架构 - 核心功能模块设计 - 商业模式和目标用户 2. 五维属性系统详细设计 (Five_Dimensions_Attribute_System.md) - 新的五维定义:Cognition, Sociability, Charisma, Vitality, Reflection - 取值范围:0-1000 - 详细的行为→属性映射规则和增加值 - 衰减机制、防作弊机制 - 数据库设计和API接口 3. 成就系统设计 (Achievement_System_Design.md) - 6大类成就:五维属性、综合成长、社交互动、线下空间、ExplORA、特殊成就 - 200+成就设计 - ORA Coin (OC)奖励体系 - 线下权益设计(咖啡券、会员天数、虚拟货币) 4. LLM决策机制设计 (LLM_Decision_Mechanism_Design.md) - 五维属性→性格特质映射 - 属性对AI行为和对话的影响逻辑 - 决策Prompt构建策略 - 代码实现示例 关键创新: - 线下行为实时影响虚拟世界AI性格 - 提示词系统(100字限制,5小时有效期) - 完整的O2O生态系统设计
…tegration 实现 ExplORA 阶段1-2:五维属性系统集成到AI决策和对话 ## 新增文件 ### 核心管理器 - script/attribute/AttributeManager.gd (500+ lines) * 管理五维属性数据 (Cognition, Sociability, Charisma, Vitality, Reflection) * 生成详细的属性描述文本(用于LLM Prompt注入) * 取值范围 0-1000,默认值 500 * 支持属性查询、修改、等级计算 - script/prompt/PromptManager.gd (250+ lines) * 管理用户输入的提示词 * 支持一次性和持续影响两种类型 * 字数限制 100字,有效期 5小时 * 自动过期检测和清理 ### 文档 - docs/ExplORA_Development_Plan.md * 详细的开发实施计划(5个阶段) * 开发顺序和时间表 * 成功指标和注意事项 - docs/ExplORA_Testing_Guide.md * 完整的测试指南 * 功能验证方法 * 故障排除指南 * 常见问题 FAQ ## 修改文件 ### 项目配置 - project.godot * 添加 AttributeManager 到 autoload * 添加 PromptManager 到 autoload ### AI 集成 - script/ai/AIAgent.gd * 在 make_decision() 函数中注入五维属性描述 * 在决策 Prompt 中注入用户提示词 * AI 决策现在受五维属性影响 - script/ai/ConversationManager.gd * 在 build_dialog_prompt() 函数中注入五维属性描述 * 在对话 Prompt 中注入用户提示词 * AI 对话现在受五维属性影响 ## 功能特性 ✅ **五维属性系统** - Cognition(认知)← 学习/工作时长 - Sociability(社交)← 加好友/互动 - Charisma(魅力)← 他人点赞 - Vitality(活力)← 签到/运动/睡眠 - Reflection(自省)← 心情/日记打卡 ✅ **属性 → LLM Prompt 映射** - 根据属性值生成详细的性格描述 - 6个等级划分(传奇、大师、专家、熟练、进阶、初学) - 属性值影响AI行为倾向和对话风格 ✅ **提示词系统** - 用户可输入提示词影响游戏世界 - 一次性提示词:触发一次后失效 - 持续影响提示词:5小时内持续生效 - 自动过期管理 ## 测试方法 1. 在 Godot 4.x 中打开项目 2. 查看 Output 面板确认初始化信息 3. 运行游戏,观察 AI 行为 4. 临时修改 AttributeManager 的默认值测试效果 5. 详见 docs/ExplORA_Testing_Guide.md ## 下一步计划 - 阶段3:创建属性调试 UI(实时调整属性) - 阶段4:创建提示词输入 UI - 阶段5:测试和优化 ## 技术细节 - 使用 GDScript 编写,兼容 Godot 4.x - 全局单例模式(autoload) - 信号机制用于属性变化通知 - 模块化设计,易于扩展 --- 基于设计文档: - ORA_Project_Overview.md - Five_Dimensions_Attribute_System.md - LLM_Decision_Mechanism_Design.md
修复Godot版本兼容性问题,将project.godot中的版本号从4.4更新到4.5, 解决使用Godot 4.5导入项目时的崩溃问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First edit