pvz2吧 关注:104,834贴子:2,504,369
  • 8回复贴,共1

自制关卡代码出错

只看楼主收藏回复

自己改了Egypt1
进入游戏闪退了
8u们看看有没有错误?
{
"#comment": "Egypt 1",
"objects": [
{
"objclass": "LevelDefinition",
"objdata": {
"Description": "Fuck you bitch! made by XTxt2333",
"FirstIntroNarrative": "EGYPT_INTRO_FIRSTLEVEL",
"FirstRewardType": "mapgadget",
"GameFeaturesToUnlock": [
"feature_worldmap",
"feature_plantfood"
],
"LevelNumber": 1,
"ForceToWorldMap": true,
"Loot": "RTID(DefaultLoot@LevelModules)",
"Modules": [
"RTID(StandardIntro@LevelModules)",
"RTID(DefaultSunDropper@LevelModules)",
"RTID(ZombiesDeadWinCon@LevelModules)",
"RTID(TutorialPeashooterDeath@LevelModules)",
"RTID(EgyptMowers@LevelModules)",
"RTID(SeedBank@CurrentLevel)",
"RTID(DefaultZombieWinCondition@LevelModules)",
"RTID(NewWaves@CurrentLevel)"
],
"Name": "Mummy Zombie",
"NormalPresentTable": "egypt_normal_01",
"RepeatPlayForceToWorldMap": false,
"ShinyPresentTable": "egypt_shiny_01",
"StageModule": "RTID(EgyptStage@LevelModules)",
"SuppressDynamicTutorial": true
}
},
{
"aliases": [
"SeedBank"
],
"objclass": "SeedBankProperties",
"objdata": {
"PlantBlackList": [],
"SelectionMethod": "chooser"
}
},
{
"aliases": [
"NewWaves"
],
"objclass": "WaveManagerModuleProperties",
"objdata": {
"WaveManagerProps": "RTID(WaveManagerProps@CurrentLevel)"
}
},
{
"aliases": [
"WaveManagerProps"
],
"objclass": "WaveManagerProperties",
"objdata": {
"FlagWaveInterval": 2,
"WaveCount": 2,
"WaveSpendingPointIncrement": 30,
"WaveSpendingPoints": 100,
"Waves": [
[
"RTID(Wave1@CurrentLevel)"
],
[
"RTID(Wave2@CurrentLevel)"
]
]
}
},
{
"aliases": [
"Wave1"
],
"objclass": "SpawnZombiesJitteredWaveActionProps",
"objdata": {
"Zombies": [
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
}
]
}
},
{
"aliases": [
"Wave2"
],
"objclass": "SpawnZombiesJitteredWaveActionProps",
"objdata": {
"AddToZombiePool": [
{
"Row": "3",
"Type": "RTID(ra@ZombieTypes)"
}
],
"Zombies": [
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
},
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
},
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
},
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
},
{
"Row": "3",
"Type": "RTID(mummy@ZombieTypes)"
}
]
}
},
"version": 1
}


IP属地:江苏1楼2022-10-07 18:33回复
    自己修改的关要检查逗号,括号,多加少加都会造成闪退


    IP属地:云南来自Android客户端2楼2022-10-07 19:30
    回复
      在自制关卡时,所有的逗号,括号,都要是英文


      IP属地:安徽来自Android客户端3楼2022-10-07 21:41
      回复
        具体没人会细心看


        IP属地:安徽来自Android客户端4楼2022-10-07 21:41
        回复
          还真是 没人会仔细看的 毕竟太累了


          IP属地:云南来自Android客户端5楼2022-10-07 22:50
          回复
            建议改一点就保存进游戏看 这样方便检查


            IP属地:云南来自Android客户端6楼2022-10-07 22:50
            回复
              Add那一串去掉看行不


              IP属地:甘肃来自Android客户端7楼2022-10-07 23:14
              回复
                了解了,谢谢大佬们的提议!


                IP属地:江苏来自iPhone客户端8楼2022-10-08 21:45
                回复
                  少一对括号


                  IP属地:湖南来自Android客户端9楼2022-11-17 14:35
                  回复