铁锤守卫英雄传

铁锤守卫英雄传

查看统计:
XANi 2018 年 7 月 11 日 下午 5:37
Language file nor language fallback file was found!
all of text or tooltips in game start with ERROR:

in game's output I see
[NFO] [02:29:24] Steam detected default language: "english" ... [ERR] [02:29:24] Language file nor language fallback file was found!

strace shows:
sendto(8, "\1 \1\0\0\0004\20\0\0\0U\n\0\0\0\0\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=8, events=POLLIN}], 1, 180000) = 1 ([{fd=8, revents=POLLIN}]) recvfrom(8, "\n\0\0\0\1", 5, 0, NULL, NULL) = 5 recvfrom(8, "\0\0\0\0\1\0\0\0\0", 9, 0, NULL, NULL) = 9 openat(AT_FDCWD, "res/language", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 35 fstat(35, {st_mode=S_IFDIR|0755, st_size=25, ...}) = 0 getdents(35, /* 3 entries */, 32768) = 80 getdents(35, /* 0 entries */, 32768) = 0 close(35) = 0 sendto(8, "\34\0\0\0", 4, MSG_NOSIGNAL, NULL, 0) = 4 sendto(8, "\1\21\1\0\0\0\261\7\0\0\0U\n\0\tlanguage\0 \0\0\0", 28, MSG_NOSIGNAL, NULL, 0) = 28 poll([{fd=8, events=POLLIN}], 1, 180000) = 1 ([{fd=8, revents=POLLIN}]) recvfrom(8, "\22\0\0\0\1", 5, 0, NULL, NULL) = 5 recvfrom(8, "\10\0\0\0english\0\1\0\0\0\0", 17, 0, NULL, NULL) = 17 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0 write(3, "[NFO] [02:32:50] Steam detected "..., 60) = 60 openat(AT_FDCWD, "saves/slot_0.hws", O_RDONLY) = 35

note that in getdents manual
Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) have full support for returning the file type in d_type. All applications must properly handle a return of DT_UNKNOWN.
I saw a similar problem when one other game (bioshock infinite) was using same call and xfs did not had that implemented

xfs didn't had it (it was added some time ago) so some older file systems were not formatted with it https://docs.oracle.com/cd/E52668_01/E88149/html/ol7-features-xfschange.html
引用自 XANi:
Had a chance to verify it on partition with ftype=0 and it seems to work fine, thanks ;)
< >
正在显示第 1 - 5 条,共 5 条留言
Melissa  [开发者] 2018 年 7 月 12 日 上午 2:02 
Wow, thank you for the hot tip. I'll look into this some more. Are you using xfs?

Also, in our code, we treat anything that's not of type DT_DIR as a file, so technically a result of DT_UNKNOWN should work just fine as a found file.
Melissa  [开发者] 2018 年 7 月 13 日 上午 3:59 
I've implemented a fix for this now. Thanks so much for the XFS tip, probably would've never figured that one out!
Melissa  [开发者] 2018 年 7 月 13 日 上午 7:12 
The patch is live now. Let me know how this works! :D:
此应用的一名开发者已表示此帖子解答了原先的主题。
XANi 2018 年 7 月 22 日 下午 12:32 
Had a chance to verify it on partition with ftype=0 and it seems to work fine, thanks ;)
Melissa  [开发者] 2018 年 7 月 23 日 上午 4:27 
Great!! Thanks! :D:
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50