- 好友
 - 3
  
- 在线时间
 - 5 小时
  
- 最后登录
 - 2022-6-30
  
 
 
 
 
扈从 
   
 
- UID
 - 3067732
  
- 第纳尔
 - 127 
  
- 精华
 - 0
  
- 互助
 - 5 
  
- 荣誉
 - 0 
  
- 贡献
 - 0 
  
- 魅力
 - 5 
  
- 注册时间
 - 2019-4-11
  
 
  鲜花( 10)   鸡蛋( 0)  
 | 
 
Windows 10,Python2.7,环境变量已设置好。Python无问题。 
macOS Mojave,python3.7.2,环境变量已设置好。Python无问题;(由于读不出.bat,且这是有用的)把bat改写成command、将其改写成sh都试了。 
都不行。 
教程看了,操作基本一样。 
 
运行两个操作系统都时出现如下代码: 
Initializing... 
variables.txt not found. Creating new variables.txt file 
Compiling all global variables... 
variables.txt not found. Creating new variables.txt file 
variable_uses.txt not found. Creating new variable_uses.txt file 
Traceback (most recent call last): 
  File "process_global_variables.py", line 106, in <module> 
    save_variables(export_dir, variables,variable_uses) 
  File "D:\mb_warband_module_system_1171\Module_system 1.171\process_operations.py", line 171, in save_variables 
    file = open(export_dir + "variables.txt","w") 
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/Native/variables.txt' 
Exporting strings... 
Traceback (most recent call last): 
  File "process_strings.py", line 26, in <module> 
    save_strings(strings) 
  File "process_strings.py", line 9, in save_strings 
    ofile = open(export_dir + "strings.txt","w") 
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mount&Blade Warband/Modules/Native/strings.txt' 
……(底下除了导出内容不同其他相同) 
…… 
______________________________ 
 
Script processing has ended. 
Press any key to exit. . . 
 
说是缺失变量文件(variables.txt),检查了下没缺失,且似乎每次导出都会创建一次。 
 
请诸位大神看看是甚么问题。谢谢。 
 
 |   
 
 
 
 |