Giter Club home page Giter Club logo

dieloli's Introduction

DieLoli

死亡萝莉

介绍

这是一个 ERALIKE游戏
在游戏中,你将与多达2800位,由算法模拟整个人生成长过程,随机生成的游戏角色一起,在校园里生活
你将在游戏中体验不一样的人生,这里有魔法少女,有触手怪,有吸血鬼,也有巫女,妖怪,幽灵,和帅气的魔法师
当然,这些都需要你自己去进行探索,至少,你也可以将它当成一个普通的校园恋爱模拟游戏玩
游戏中基于元胞算法进行即时演算,所有事件的脉络和走向都不是预设好的
每个角色都有各自的经历和成长,不断的学习和生活
在这里,没有人是特殊的,也没有人可以掌控世界,玩家也不行

初次启动

游戏初次启动时需要对数据进行预热处理(大约一分钟,请耐心等待)

操作攻略

游戏中所有的按钮都分为被编号的数字按钮和未编号的文字按钮两种,它们都可以用鼠标点击,或直接在输入栏输入编号或文本进行交用
大部分文本交互会等待玩家进行输入,此时点击鼠标左键或者键盘任意键即可
所有的等待用户交互的文本,都可以通过鼠标右键一次性跳过
可通过光标键盘上下键回溯之前的输入内容(上限20条)

BUG反馈

当遇到游戏闪退,可检查 error.log 文件,并将 error.log 文件中内容贴至 issues 中进行反馈

更新日志

更新日志详见 update.log 文件

著作权信息

此项目基于Python独立进行开发
早期版本曾使用 pyera 进行构架,现已全部废弃
基于 cc by nc sa 协议,开发者允许任何人基于此项目做除商业行为外的任何事,同时允许任何人对本项目进行除协议外的任何改动,仅需注明原作者,以及以相同方式进行传播(指同样使用cc by-nc-sa协议)
请勿将其用作商业用途
想要参与开发请与开发者联系,联系方式在本md底部

Repo说明

日常开发备份在instability分支中进行,pr也请提交至此分支
master分支在开发完成前作为设计展示分支使用
代码风格化通常使用black自动完成,行宽为108

请求

帮助**的可怜萝莉控!

下载 & 游玩

windows & macos系统: 下载本地址对应系统最新的压缩文件, 解压后运行game.exe即可
linux系统: 下载源码, 并通过pip等工具安装requirements.txt中的依赖, 运行game.py即可, 初次运行需要较长时间预热数据

字体

本游戏界面设计依赖 Sarasa Mono SC 字体,若系统未安装此字体将会 fallback 到系统默认字体,不能保证能否达到设计效果
字体相关配置可以通过 data/FontConfig.json 更改
本游戏不提供Sarasa Mono SC相关字体文件
请自行下载并安装:Sarasa Mono SC
可通过修改 config.ini 中的 font 项自行更改字体

Localization

If you want to help with localization, please contact me by email, and I will invite you to join my smartcat

警告

在游戏设计中,有一定的色情,暴力,宗教,等内容,在进行游戏前请确认自己的三观足够健全到不会随意被动摇和影响

联系方式

e-mail:[email protected]
企鹅裙:950487389

请我喝奶茶QwQ

请前往:爱发电

dieloli's People

Contributors

arthurming123 avatar byayoi avatar deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar ktachibanam avatar miswanting avatar pethame avatar pokemonchw avatar vzikl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dieloli's Issues

2021.3.17更新

更新内容
1.修正性爱相关结算
2.修正场景ui
3.新增好感按时间流逝而流逝
4.更改交互好感为双向增加
5.更改社交关系好感要求
6.修正部分口上人称
7.修正排课算法
8.新增课程表相关ui
9.修复食物商店面板ui
计划更新
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市

2021.3.10更新

更新内容
1.修正性行为结算
2.新增收藏模式
3.修正npc身体成长变化模型
4.修正死亡交互
5.修正食品商店吃饭
5.新增性别提示
6.修复收藏角色快捷移动
计划更新
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市

2021.6.25更新

1.新增菜谱
2.更改角色社交上限
3.修正跨时区兼容
4.修复穿脱衣服
5.修正部分缩略按钮
6.调整状态结算ui
7.优化ai

闪退

Traceback (most recent call last):
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Core\game_init.py", line 49, in init
run_main_flow()
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Core\game_init.py", line 41, in run_main_flow
main_flow()
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\UI\Flow\in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\UI\Panel\in_scene_panel.py", line 273, in draw
flow_handle.askfor_all(ask_list)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Core\flow_handle.py", line 278, in askfor_all
_cmd_deal(order)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Core\flow_handle.py", line 198, in _cmd_deal
cmd_maporder_number
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Core\flow_handle.py", line 121, in run_func
cmd_func(*arg, **kw)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\UI\Panel\in_scene_panel.py", line 398, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_instruct.py", line 48, in handle_instruct
constant.handle_instruct_datainstruct
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_instruct.py", line 64, in return_wrapper
return func(*args, **kwargs)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_instruct.py", line 493, in handle_play_guitar
update.game_update_flow(10)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\update.py", line 13, in game_update_flow
character_behavior.init_character_behavior()
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\character_behavior.py", line 46, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\character_behavior.py", line 82, in character_behavior
character_target_judge(character_id, now_time)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\character_behavior.py", line 100, in character_target_judge
target, _, judge = search_target(
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\character_behavior.py", line 252, in search_target
premise_judge = handle_premise.handle_premise(premise, character_id)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_premise.py", line 45, in handle_premise
return constant.handle_premise_datapremise
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\handle_premise.py", line 2146, in handle_in_class_time
judge,_unused,_unused,_unused,_unused = character.judge_character_in_class_time(character_id)
File "C:\Users\weish\Documents\dieloli-master\dieloli-master\Script\Design\character.py", line 192, in judge_character_in_class_time
return 1, school_id, now_week, timetable.class_times, timetable.course
UnboundLocalError: local variable 'school_id' referenced before assignment

2021.4.7更新

1.优化角色ai
2.新增角色互动
3.新增口上
4.优化体力消耗
5.优化好感增加
6.优化windows下自动存档
7.修复部分ui错误
计划更新
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市

闪退

Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 115, in handle_see_attr
now_draw.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/see_character_info_panel.py", line 1236, in draw
self.handle_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/see_character_info_panel.py", line 1089, in draw
yrn = flow_handle.askfor_all(self.return_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/see_character_info_panel.py", line 1199, in next_character
now_index = self.character_list.index(self.character_id)
ValueError: 1028 is not in list
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/title_flow.py", line 52, in title_panel
elif now_key == now_list[3]:
IndexError: list index out of range
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 136, in handle_chat
update.game_update_flow(10)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 13, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 81, in character_behavior
character_target_judge(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 99, in character_target_judge
target, _, judge = search_target(
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 234, in search_target
premise_judge = handle_premise.handle_premise(premise, character_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 45, in handle_premise
return constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 13
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 187, in handle_touch_head
update.game_update_flow(2)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 11, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 85, in character_behavior
status_judge = judge_character_status(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 179, in judge_character_status
talk.handle_talk(character_id)
File "/home/endless/game/dieloli-master/Script/Design/talk.py", line 43, in handle_talk
now_add_weight = constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 14
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 316, in handle_touch_chest
update.game_update_flow(10)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 11, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 85, in character_behavior
status_judge = judge_character_status(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 179, in judge_character_status
talk.handle_talk(character_id)
File "/home/endless/game/dieloli-master/Script/Design/talk.py", line 43, in handle_talk
now_add_weight = constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 14
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/see_map_flow.py", line 14, in see_map_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/see_map_panel.py", line 168, in draw
yrn = flow_handle.askfor_all(return_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/see_map_panel.py", line 334, in move_now
character_move.own_charcter_move(scene_path)
File "/home/endless/game/dieloli-master/Script/Design/character_move.py", line 29, in own_charcter_move
update.game_update_flow(now_need_time)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 11, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 85, in character_behavior
status_judge = judge_character_status(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 179, in judge_character_status
talk.handle_talk(character_id)
File "/home/endless/game/dieloli-master/Script/Design/talk.py", line 43, in handle_talk
now_add_weight = constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 14
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 136, in handle_chat
update.game_update_flow(10)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 13, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 81, in character_behavior
character_target_judge(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 99, in character_target_judge
target, _, judge = search_target(
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 234, in search_target
premise_judge = handle_premise.handle_premise(premise, character_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 45, in handle_premise
return constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 2
Traceback (most recent call last):
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/home/endless/game/dieloli-master/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/home/endless/game/dieloli-master/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/home/endless/game/dieloli-master/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 265, in draw
flow_handle.askfor_all(ask_list)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 274, in askfor_all
_cmd_deal(order)
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 191, in _cmd_deal
cmd_maporder_number
File "/home/endless/game/dieloli-master/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/home/endless/game/dieloli-master/Script/UI/Panel/in_scene_panel.py", line 388, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 47, in handle_instruct
constant.handle_instruct_datainstruct
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 63, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_instruct.py", line 83, in handle_rest
update.game_update_flow(10)
File "/home/endless/game/dieloli-master/Script/Design/update.py", line 13, in game_update_flow
character_behavior.init_character_behavior()
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 45, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 81, in character_behavior
character_target_judge(character_id, now_time)
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 99, in character_target_judge
target, _, judge = search_target(
File "/home/endless/game/dieloli-master/Script/Design/character_behavior.py", line 234, in search_target
premise_judge = handle_premise.handle_premise(premise, character_id)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 45, in handle_premise
return constant.handle_premise_datapremise
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 27, in return_wrapper
return func(*args, **kwargs)
File "/home/endless/game/dieloli-master/Script/Design/handle_premise.py", line 96, in handle_in_breakfast_time
now_time = game_time.get_sun_time(character_data.behavior.start_time)
File "/home/endless/game/dieloli-master/Script/Design/game_time.py", line 329, in get_sun_time
return cache.sun_phase[now_date_str][now_time.hour][now_time.minute]
KeyError: 2

一天结束时发生ui界面闪退

Traceback (most recent call last):
File "Script\Core\game_init.py", line 50, in init
File "Script\Core\game_init.py", line 42, in run_main_flow
File "Script\Design\start_flow.py", line 16, in start_frame
File "Script\Design\handle_panel.py", line 18, in return_wrapper
File "Script\UI\Flow\in_scene_flow.py", line 15, in in_scene_flow
File "Script\UI\Panel\in_scene_panel.py", line 76, in draw
File "Script\UI\Panel\game_info_panel.py", line 49, in init
File "Script\Design\game_time.py", line 299, in get_sun_time
KeyError: 16

2021年更新计划

今日是2021年2月24日
历经三年,dieloli终于发布了第一个版本
沿用过去的习惯,使用Past作为起始(来源是某次背错了单词"Part")
在未来的三个月里,游戏会保持每周三发布一个release的的速度进行更新~
感谢所有人的等待和陪伴,爱大家~

新游戏开档闪退

开新档才会闪退,两个窗口正常出现。
加载存档因为把老存档也删了所以不清楚会不会出问题。
错误文件附下
error.log

系统是win10,游戏是最新的版本。

IndexError: list index out of range

在购买食品时,若物品只剩一个,则买完后再购买其他食品会触发如下报错

Exception in thread flowthread:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/dieloli/Script/Core/game_init.py", line 57, in _init
    init(main_func)
  File "/tmp/dieloli/Script/Core/game_init.py", line 46, in init
    run_main_flow()
  File "/tmp/dieloli/Script/Core/game_init.py", line 39, in run_main_flow
    main_flow()
  File "/tmp/dieloli/Script/Design/start_flow.py", line 16, in start_frame
    constant.panel_data[cache.now_panel_id]()
  File "/tmp/dieloli/Script/Design/handle_panel.py", line 18, in return_wrapper
    return func(*args, **kwargs)
  File "/tmp/dieloli/Script/UI/Flow/food_shop_flow.py", line 15, in food_shop_flow
    now_panel.draw()
  File "/tmp/dieloli/Script/UI/Panel/food_shop_panel.py", line 44, in draw
    food_name_list = list(cooking.get_restaurant_food_type_list_buy_food_type(self.now_panel).items())
  File "/tmp/dieloli/Script/Design/cooking.py", line 361, in get_restaurant_food_type_list_buy_food_type
    now_food_uid = list(cache.restaurant_data[food_id].keys())[0]
IndexError: list index out of range

Localization

Is there a way to play in English yet, or are we still waiting for a translation?

2021.3.24更新

更新内容
1.修复创建角色时存在的可能导致游戏卡死的bug
2.更改排课算法
3.优化ai效率
4.优化课程表ui
5.修复大食堂地图
6.修正npc闲聊权重
7.调整收藏移动ui
8.解决npc不吃饭饿死的bug
9.完善吃饭相关ai和口上
10.优化场景ui
11.修正windows下鼠标指针问题
12.改用打包日期做版本号
13.自动化windows打包
14.新增自定义字体支持
15.取消启动时python版本验证限制
16.新增错误日志记录
17.自适应dpi
18.实装上学系统和相关ai
计划更新
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市

6.25更新Mac下闪退问题

Traceback (most recent call last):
File "Script/Core/game_init.py", line 49, in init
File "Script/Core/game_init.py", line 41, in run_main_flow
File "Script/Design/start_flow.py", line 16, in start_frame
File "Script/Design/handle_panel.py", line 18, in return_wrapper
File "Script/UI/Flow/in_scene_flow.py", line 15, in in_scene_flow
File "Script/UI/Panel/in_scene_panel.py", line 265, in draw
File "Script/Core/flow_handle.py", line 278, in askfor_all
File "Script/Core/flow_handle.py", line 198, in _cmd_deal
File "Script/Core/flow_handle.py", line 121, in run_func
File "Script/UI/Panel/in_scene_panel.py", line 389, in handle_instruct
File "Script/Design/handle_instruct.py", line 48, in handle_instruct
File "Script/Design/handle_instruct.py", line 64, in return_wrapper
File "Script/Design/handle_instruct.py", line 137, in handle_chat
File "Script/Design/update.py", line 13, in game_update_flow
File "Script/Design/character_behavior.py", line 46, in init_character_behavior
File "Script/Design/character_behavior.py", line 86, in character_behavior
File "Script/Design/character_behavior.py", line 190, in judge_character_status
File "Script/Design/settle_behavior.py", line 30, in handle_settle_behavior
File "Script/Design/settle_behavior.py", line 153, in return_wrapper
File "Script/Settle/default.py", line 1085, in handle_interrupt_target_activity
AttributeError: 'NoneType' object has no attribute 'draw'

测试系统:Catalina 10.15.7

2021.3.31更新

1.更新角色口上
2.自动存档
3.修复部分好感结算错误
4.调整上课权重
5.调整睡眠ai
6.修正色欲计算公式
7.修正就餐位置
8.修正npc上课结算
9.按屏幕分辨率自动调整窗体和字体大小
10.修正身高生成
11.调整休息恢复体力
计划更新
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市

python 无法打开, 找不到numpy

Traceback (most recent call last):
File "C:\Users\weish\Documents\Eragames\dieloli-master\game.py", line 13, in
from Script.Config import game_config, name_config
File "C:\Users\weish\Documents\Eragames\dieloli-master\Script\Config\name_config.py", line 3, in
from Script.Core import json_handle, value_handle, cache_control, game_type, constant
File "C:\Users\weish\Documents\Eragames\dieloli-master\Script\Core\value_handle.py", line 5, in
import numpy
ModuleNotFoundError: No module named 'numpy'

闪退

Traceback (most recent call last):
File "Script\Core\game_init.py", line 49, in init
run_main_flow()
File "Script\Core\game_init.py", line 41, in run_main_flow
main_flow()
File "Script\Design\start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "Script\Design\handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "Script\UI\Flow\in_scene_flow.py", line 15, in in_scene_flow
now_panel.draw()
File "Script\UI\Panel\in_scene_panel.py", line 273, in draw
flow_handle.askfor_all(ask_list)
File "Script\Core\flow_handle.py", line 278, in askfor_all
_cmd_deal(order)
File "Script\Core\flow_handle.py", line 198, in _cmd_deal
cmd_maporder_number
File "Script\Core\flow_handle.py", line 121, in run_func
cmd_func(*arg, **kw)
File "Script\UI\Panel\in_scene_panel.py", line 398, in handle_instruct
handle_instruct.handle_instruct(instruct_id)
File "Script\Design\handle_instruct.py", line 48, in handle_instruct
constant.handle_instruct_datainstruct
File "Script\Design\handle_instruct.py", line 64, in return_wrapper
return func(*args, **kwargs)
File "Script\Design\handle_instruct.py", line 84, in handle_rest
update.game_update_flow(10)
File "Script\Design\update.py", line 13, in game_update_flow
character_behavior.init_character_behavior()
File "Script\Design\character_behavior.py", line 46, in init_character_behavior
character_behavior(character_id, cache.game_time)
File "Script\Design\character_behavior.py", line 86, in character_behavior
status_judge = judge_character_status(character_id, now_time)
File "Script\Design\character_behavior.py", line 190, in judge_character_status
settle_draw = settle_behavior.handle_settle_behavior(character_id, end_time)
File "Script\Design\settle_behavior.py", line 30, in handle_settle_behavior
constant.settle_behavior_effect_data[effect_id](
File "Script\Design\settle_behavior.py", line 157, in return_wrapper
return func(*args, **kwargs)
File "Script\Settle\default.py", line 1185, in handle_target_add_favorability_for_eloquence
character_handle.add_favorability(
File "Script\Design\character_handle.py", line 374, in add_favorability
target_data.social_contact[now_social].remove(now_key)
KeyError: 0

2021.5.31更新

1.修复特定情况下npc上课造成游戏崩溃
2.修复npc姓名性别
3.优化游戏性能
4.优化场景角色列表
5.新增学生会功能
6.编码兼容

No module named 'freetype'

Here is the console screenshot of this problem
图片
Here is my environment
OS 版本: 10.0.18362 暂缺 Build 18362
Intel64 Family 6 Model 158 Stepping 10 GenuineIntel ~2201 Mhz
python --version Python 3.8.3
pip --version pip 20.1.1 from c:\program files (x86)\python\lib\site-packages\pip (python 3.8)

喝饮料崩溃?

在超市里买了牛奶,进食,吃面包零食没问题。点击饮品(还没有显示的时候)就崩溃了。

以下是error.log

Traceback (most recent call last):
File "/mnt/data/Fun/dieloli/Script/Core/game_init.py", line 50, in init
run_main_flow()
File "/mnt/data/Fun/dieloli/Script/Core/game_init.py", line 42, in run_main_flow
main_flow()
File "/mnt/data/Fun/dieloli/Script/Design/start_flow.py", line 16, in start_frame
constant.panel_datacache.now_panel_id
File "/mnt/data/Fun/dieloli/Script/Design/handle_panel.py", line 18, in return_wrapper
return func(*args, **kwargs)
File "/mnt/data/Fun/dieloli/Script/UI/Flow/food_bag_flow.py", line 14, in food_bag_flow
now_panel.draw()
File "/mnt/data/Fun/dieloli/Script/UI/Panel/food_bag_panel.py", line 78, in draw
yrn = flow_handle.askfor_all(return_list)
File "/mnt/data/Fun/dieloli/Script/Core/flow_handle.py", line 253, in askfor_all
_cmd_deal(order)
File "/mnt/data/Fun/dieloli/Script/Core/flow_handle.py", line 170, in _cmd_deal
cmd_maporder_number
File "/mnt/data/Fun/dieloli/Script/Core/flow_handle.py", line 118, in run_func
cmd_func(*arg, **kw)
File "/mnt/data/Fun/dieloli/Script/UI/Panel/food_bag_panel.py", line 91, in change_panel
cooking.get_character_food_bag_type_list_buy_food_type(0, self.now_panel).items()
File "/mnt/data/Fun/dieloli/Script/Design/cooking.py", line 315, in get_character_food_bag_type_list_buy_food_type
and not food_config.fruit
UnboundLocalError: local variable 'food_config' referenced before assignment

闪退

Traceback (most recent call last):
File "Script\Core\game_init.py", line 49, in init
File "Script\Core\game_init.py", line 41, in run_main_flow
File "Script\Design\start_flow.py", line 17, in start_frame
File "Script\Design\handle_panel.py", line 18, in return_wrapper
File "Script\UI\Flow\in_scene_flow.py", line 14, in in_scene_flow
File "Script\UI\Panel\in_scene_panel.py", line 279, in draw
File "Script\Core\flow_handle.py", line 279, in askfor_all
File "Script\Core\flow_handle.py", line 199, in _cmd_deal
File "Script\Core\flow_handle.py", line 122, in run_func
File "Script\UI\Panel\in_scene_panel.py", line 405, in handle_instruct
File "Script\Design\handle_instruct.py", line 48, in handle_instruct
File "Script\Design\handle_instruct.py", line 64, in return_wrapper
File "Script\Design\instruct\obscenity.py", line 92, in handle_target_undress
File "Script\Design\update.py", line 16, in game_update_flow
File "Script\Design\character_behavior.py", line 51, in init_character_behavior
File "Script\Design\character_behavior.py", line 91, in character_behavior
File "Script\Design\character_behavior.py", line 204, in judge_character_status
File "Script\Design\settle_behavior.py", line 35, in handle_settle_behavior
KeyError: 'undress_target_coat'
Traceback (most recent call last):
File "Script\Core\game_init.py", line 49, in init
File "Script\Core\game_init.py", line 41, in run_main_flow
File "Script\Design\start_flow.py", line 17, in start_frame
File "Script\Design\handle_panel.py", line 18, in return_wrapper
File "Script\UI\Flow\in_scene_flow.py", line 14, in in_scene_flow
File "Script\UI\Panel\in_scene_panel.py", line 279, in draw
File "Script\Core\flow_handle.py", line 279, in askfor_all
File "Script\Core\flow_handle.py", line 199, in _cmd_deal
File "Script\Core\flow_handle.py", line 122, in run_func
File "Script\UI\Panel\in_scene_panel.py", line 405, in handle_instruct
File "Script\Design\handle_instruct.py", line 48, in handle_instruct
File "Script\Design\handle_instruct.py", line 64, in return_wrapper
File "Script\Design\instruct\obscenity.py", line 92, in handle_target_undress
File "Script\Design\update.py", line 16, in game_update_flow
File "Script\Design\character_behavior.py", line 51, in init_character_behavior
File "Script\Design\character_behavior.py", line 91, in character_behavior
File "Script\Design\character_behavior.py", line 204, in judge_character_status
File "Script\Design\settle_behavior.py", line 35, in handle_settle_behavior
KeyError: 'undress_target_coat'
Traceback (most recent call last):
File "Script\Core\game_init.py", line 49, in init
File "Script\Core\game_init.py", line 41, in run_main_flow
File "Script\Design\start_flow.py", line 17, in start_frame
File "Script\Design\handle_panel.py", line 18, in return_wrapper
File "Script\UI\Flow\in_scene_flow.py", line 14, in in_scene_flow
File "Script\UI\Panel\in_scene_panel.py", line 279, in draw
File "Script\Core\flow_handle.py", line 279, in askfor_all
File "Script\Core\flow_handle.py", line 199, in _cmd_deal
File "Script\Core\flow_handle.py", line 122, in run_func
File "Script\UI\Panel\in_scene_panel.py", line 405, in handle_instruct
File "Script\Design\handle_instruct.py", line 48, in handle_instruct
File "Script\Design\handle_instruct.py", line 64, in return_wrapper
File "Script\Design\instruct\obscenity.py", line 92, in handle_target_undress
File "Script\Design\update.py", line 16, in game_update_flow
File "Script\Design\character_behavior.py", line 51, in init_character_behavior
File "Script\Design\character_behavior.py", line 91, in character_behavior
File "Script\Design\character_behavior.py", line 204, in judge_character_status
File "Script\Design\settle_behavior.py", line 35, in handle_settle_behavior
KeyError: 'undress_target_coat'

创建角色完成时闪退

Bug描述:
创建角色阶段,在回答完所有问题后窗口直接闪退消失。

发生条件:
无论角色名中英文,或者直接随机属性都会发生此bug。

os:
Ubuntu 18.04.5 LTS
python 3.7.10, miniconda 4.10.1

命令:
在conda的虚拟环境下:
$ python -m pip install -r requirements.txt
$ python game.py

WIN10 闪退

Traceback (most recent call last):
File "Script\Core\game_init.py", line 49, in init
File "Script\Core\game_init.py", line 41, in run_main_flow
File "Script\Design\start_flow.py", line 16, in start_frame
File "Script\Design\handle_panel.py", line 18, in return_wrapper
File "Script\UI\Flow\in_scene_flow.py", line 15, in in_scene_flow
File "Script\UI\Panel\in_scene_panel.py", line 273, in draw
File "Script\Core\flow_handle.py", line 278, in askfor_all
File "Script\Core\flow_handle.py", line 198, in _cmd_deal
File "Script\Core\flow_handle.py", line 121, in run_func
File "Script\UI\Panel\in_scene_panel.py", line 398, in handle_instruct
File "Script\Design\handle_instruct.py", line 48, in handle_instruct
File "Script\Design\handle_instruct.py", line 64, in return_wrapper
File "Script\Design\handle_instruct.py", line 439, in handle_attend_class
File "Script\Design\update.py", line 13, in game_update_flow
File "Script\Design\character_behavior.py", line 46, in init_character_behavior
File "Script\Design\character_behavior.py", line 82, in character_behavior
File "Script\Design\character_behavior.py", line 100, in character_target_judge
File "Script\Design\character_behavior.py", line 252, in search_target
File "Script\Design\handle_premise.py", line 45, in handle_premise
File "Script\Design\handle_premise.py", line 27, in return_wrapper
File "Script\Design\handle_premise.py", line 2146, in handle_in_class_time
File "Script\Design\character.py", line 192, in judge_character_in_class_time
UnboundLocalError: local variable 'school_id' referenced before assignment

期待已久啦

从一开始知道制作者的时候就一直在期待这个游戏了,终于等到打包了,期待ING,不知道什么时候能够打包结束呢

事件编辑器

目前事件编辑器的相关问题

  1. 编辑器窗口全屏,对于正在进行多项任务的用户很不友好
  2. UI文字过大
  3. 对事件的“前提”“结算”进行“清除”后,“前提”栏和“结算”栏不会自动刷新
  4. 一些前提和结算选项缺失(重要),比如要使用“角色体型胖于平均体型”,结果前提池中只有“角色体型瘦于平均体型”和“交互对象体型胖于平均体型”

对于选项缺失问题,我的建议是参考Gamemaker的DnD系统的“动作”,让用户自行选择、调整参数,而不是把每种情况单独列出,导致实际使用时缺东少西。比如(A)体型(B)于平均体型,A处给个下拉栏“角色,交互对象”,B处给个下拉栏“胖,瘦,等于,近似”,这样就可以解决绝大多数问题。

另外,不考虑推出自定义前提和结算选项的功能吗?

list index out of range

在购买食品时,若物品只剩一个,则买完后再购买其他食品会触发如下报错

Exception in thread flowthread:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/dieloli/Script/Core/game_init.py", line 57, in _init
    init(main_func)
  File "/tmp/dieloli/Script/Core/game_init.py", line 46, in init
    run_main_flow()
  File "/tmp/dieloli/Script/Core/game_init.py", line 39, in run_main_flow
    main_flow()
  File "/tmp/dieloli/Script/Design/start_flow.py", line 16, in start_frame
    constant.panel_data[cache.now_panel_id]()
  File "/tmp/dieloli/Script/Design/handle_panel.py", line 18, in return_wrapper
    return func(*args, **kwargs)
  File "/tmp/dieloli/Script/UI/Flow/food_shop_flow.py", line 15, in food_shop_flow
    now_panel.draw()
  File "/tmp/dieloli/Script/UI/Panel/food_shop_panel.py", line 44, in draw
    food_name_list = list(cooking.get_restaurant_food_type_list_buy_food_type(self.now_panel).items())
  File "/tmp/dieloli/Script/Design/cooking.py", line 361, in get_restaurant_food_type_list_buy_food_type
    now_food_uid = list(cache.restaurant_data[food_id].keys())[0]
IndexError: list index out of range

希望能用PyInstaller打包成exe

用Windows和Ubuntu的机器都在pip安装包的时候就报错了,Google找了半天也没有解决方法,毕竟3.9实在太新了。
顺便问一下有没有讨论群。

Windows 上的问题是ephem最多只能装到3.7.6

PS D:\Downloads\pyephem-3.7.7.1> python -X utf8 -m pip install --upgrade ephem Requirement already satisfied: ephem in c:\users\moyuge\appdata\local\programs\python\python39\lib\site-packages (3.7.6.0) Collecting ephem Using cached ephem-3.7.7.1.tar.gz (745 kB) ERROR: Command errored out with exit status 1: command: 'C:\Users\moyuge\AppData\Local\Programs\Python\Python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\moyuge\AppData\Local\Temp\pip-install-vvdqk4j_\ephem_399ca4c300cd4d8597700670ecf044c1\setup.py'"'"'; file='"'"'C:\Users\moyuge\AppData\Local\Temp\pip-install-vvdqk4j_\ephem_399ca4c300cd4d8597700670ecf044c1\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\moyuge\AppData\Local\Temp\pip-pip-egg-info-4dw29tw4' cwd: C:\Users\moyuge\AppData\Local\Temp\pip-install-vvdqk4j_\ephem_399ca4c300cd4d8597700670ecf044c1\ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\moyuge\AppData\Local\Temp\pip-install-vvdqk4j_\ephem_399ca4c300cd4d8597700670ecf044c1\setup.py", line 40, in long_description = read('README.rst'), File "C:\Users\moyuge\AppData\Local\Temp\pip-install-vvdqk4j_\ephem_399ca4c300cd4d8597700670ecf044c1\setup.py", line 27, in read return open(os.path.join(os.path.dirname(file), *filenames)).read() UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 4723: illegal multibyte sequence ----------------------------------------

Ubuntu上根本没有原装python3.9,装了之后强行python3.9 -m pip install -r requirements.txt就报错一大堆

2021.3.3更新

本次更新内容:
1.修复了npc数量自由调整
2.修改了移动和睡眠时的输出模式
3.调整了npc饥饿、疲惫等数据的权重
4.调整了休息、睡眠等行为恢复的体力
5.调整了食物的属性
6.调整了存档结构
7.增加了缓存区域内容上限
8.修改了结算机制,解决部分闪退问题
9.移除了开发环境预热的数据
备注:这几天在忙着加州某公司的面试,更新内容不多,主要修复了反馈比较强烈的几个bug,晚一点我会去打一个包
下期更新计划:
1.为爱鼓掌
2.召唤触手怪
3.烹饪
4.服装超市
5.时间富裕的话按兴趣自由增加

和Mac似乎不兼容

尝试做了Mac build:https://github.com/pethame/dieloli/blob/Past.2021.6.22.13/.github/workflows/python-app.yml

Build结果:https://github.com/pethame/dieloli/releases/tag/Past.2021.6.22.13

解决了Catalina系统下Python 3.7+一个由于从dist directory copy到dieloli directory造成的codesign问题。相关issue:pyinstaller/pyinstaller#5062

但是最后build的成果还是有以下问题:

···
Traceback (most recent call last):
File "game.py", line 9, in
File "Script/Config/normal_config.py", line 16, in init_normal_config
File "configparser.py", line 960, in getitem
KeyError: 'game'
[876] Failed to execute script game
···

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.