骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 小黑盒加速器
查看: 3583|回复: 8

[求助] 编译已解决重新问个问题 未定义名称nameerror(已解决)

[复制链接]

3

主题

7

回帖

3

积分

平民

Rank: 1

UID
3264559
第纳尔
67
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2021-8-20
鲜花(0) 鸡蛋(0)
发表于 2021-8-28 00:00:07 | 显示全部楼层 |阅读模式
本帖最后由 KamikawaA 于 2021-8-28 14:47 编辑

编译问题解决了想问个新问题 不想重新发帖 所以在这里重新编辑想问一下明明明明设置了物品为什么还是无法读取
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_party_tmps.py", line 2, in <module>
    from module_party_templates import *
  File "D:\uuuu\1\Module_system 1.171\module_party_templates.py", line 48, in <module>
    ("rhine_patrol", "Rhine Patrol", icon_flagbearer_a|pf_show_faction|pf_dont_attack_civilians|carries_goods(4), 0, fac_kingdom_7, aggressiveness_8|aggressiveness_0|courage_9, [(trp_a_footman, 15, 95, 0)]),
NameError: name 'trp_a_footman' is not defined
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "D:\uuuu\1\Module_system 1.171\process_operations.py", line 14, in <module>
    from module_troops import *
  File "D:\uuuu\1\Module_system 1.171\module_troops.py", line 651, in <module>
    [itm_norman_shield_8_New, itm_pike_New, itm_sword_medieval_c_small_New,
NameError: name 'itm_norman_shield_8_New' is not defined
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. .

%PEYSKJ~~)9~_ZHDP@5I(VI.png %NGPS)I]YDIW{XRD{`5){LA.png

求大佬解惑 万分感谢!



55

主题

2759

回帖

1769

积分

子爵[版主]

吟游诗人

Rank: 7Rank: 7Rank: 7

UID
3054380
第纳尔
23809
精华
2
互助
57
荣誉
44
贡献
916
魅力
1418
注册时间
2019-1-18

骑砍中文站APP会员勋章原版正版勋章战团正版勋章火与剑正版勋章拿破仑正版勋章维京征服正版勋章霸主正版勋章剧本设计大奖赛骑友真人秀Ⅷ勋章骑友真人秀Ⅶ勋章骑友真人秀Ⅸ勋章

QQ
鲜花(512) 鸡蛋(2)
发表于 2021-8-28 00:05:43 | 显示全部楼层
反编译是用来看的,不是用来用的
珍惜 奉献 不负韶华

3

主题

7

回帖

3

积分

平民

Rank: 1

UID
3264559
第纳尔
67
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2021-8-20
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2021-8-28 00:19:10 | 显示全部楼层
幼稚园殺手 发表于 2021-8-28 00:05
反编译是用来看的,不是用来用的

我原来的py都已经删掉了....现在又要从头开始吗?还是只有troops这个是不能直接套用的

24

主题

349

回帖

152

积分

子爵[版主]

Rank: 7Rank: 7Rank: 7

UID
75439
第纳尔
6907
精华
0
互助
6
荣誉
1
贡献
190
魅力
32
注册时间
2008-5-3
鲜花(8) 鸡蛋(0)
发表于 2021-8-28 04:32:18 来自手机 | 显示全部楼层
先编译trp,然后才能调用,pt同理。

3

主题

7

回帖

3

积分

平民

Rank: 1

UID
3264559
第纳尔
67
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2021-8-20
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2021-8-28 05:08:31 | 显示全部楼层
easewater 发表于 2021-8-28 04:32
先编译trp,然后才能调用,pt同理。

trp已经编好了 但是现在这个怎么办啊 明明有这个物品它还说物品未定义

3

主题

7

回帖

3

积分

平民

Rank: 1

UID
3264559
第纳尔
67
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2021-8-20
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2021-8-28 05:17:00 | 显示全部楼层
easewater 发表于 2021-8-28 04:32
先编译trp,然后才能调用,pt同理。

我已经编译了troops了啊

48

主题

395

回帖

293

积分

见习骑士

Rank: 3

UID
1941209
第纳尔
2850
精华
0
互助
26
荣誉
3
贡献
0
魅力
38
注册时间
2014-5-5

战团正版勋章维京征服正版勋章

鲜花(130) 鸡蛋(0)
发表于 2021-8-28 09:23:14 来自手机 | 显示全部楼层
在你的物品id中,带“_New”的重新命名,不要带这个字符串就行了,比如将_New改为数字1 2 3 。

鲜花鸡蛋

stevenxxy007  在2021-8-31 09:15  送朵鲜花  并说:我非常同意你的观点,送朵鲜花鼓励一下
KamikawaA  在2021-8-28 14:47  送朵鲜花  并说:我非常同意你的观点,送朵鲜花鼓励一下

3

主题

7

回帖

3

积分

平民

Rank: 1

UID
3264559
第纳尔
67
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2021-8-20
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2021-8-28 14:47:40 | 显示全部楼层
nimoadna 发表于 2021-8-28 09:23
在你的物品id中,带“_New”的重新命名,不要带这个字符串就行了,比如将_New改为数字1 2 3 。

谢谢大佬 可以了

7

主题

25

回帖

10

积分

随仆

Rank: 1

UID
3494715
第纳尔
140
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2023-3-16
鲜花(0) 鸡蛋(0)
发表于 2023-4-1 07:28:32 来自手机 | 显示全部楼层
上面一大段代码什么意思,我也遇到了这些来自: Android客户端
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2024-11-19 12:22 , Processed in 0.146589 second(s), 27 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表