SIM Freeze on activation of PBAOE weapon

Discussion in 'Mod Support' started by stuart98, April 27, 2015.

  1. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    So recently I did this to the wall in a mod of mine and I'm getting a SIM freeze. I probably am doing something wrong but whatever I'm doing wrong, it shouldn't be freezing the sim.

    I'm using the old wall papas, which is why some fields are outdated.

    Code:
    {
      "TEMP_texelinfo": 7.58193,
      "area_build_separation": 0.5,
      "atrophy_cool_down": 1.0,
      "atrophy_rate": 3000.0,
      "base_spec": "/pa/units/land/base_structure/base_structure.json",
      "build_metal_cost": 25,
      "death": {
      "decals": [
      ""
      ]
      },
      "description": "Analysis: Barrier: High health. Impedes units.",
      "display_group": 20,
      "display_index": 30,
      "display_name": "Wall",
      "events": {
      "build_complete": {
      "audio_cue": "/SE/Build_Complete/barrier"
      },
      "died": {
      "audio_cue": "",
      "effect_scale": 0.4,
      "effect_spec": ""
      }
      },
      "max_health": 5000,
      "mesh_bounds": [
      5,
      5,
      10
      ],
      "model": [
      {
      "filename": "/pa/units/land/land_barrier/land_wall.papa",
      "layer": "WL_LandHorizontal"
      },
      {
      "filename": "/pa/units/sea/sea_barrier/sea_wall.papa",
      "layer": "WL_WaterSurface"
      }
      ],
      "physics": {
      "air_friction": 1.0,
      "allow_pushing": false,
      "allow_underground": false,
      "collision_layers": "WL_AnyHorizontalGroundOrWaterSurface",
      "ignore_collisions": false,
      "push_class": 255,
      "push_sideways": false,
      "radius": 1,
      "shape": "Box",
      "type": "Structure"
      },
      "placement_size": [
      4,
      4
      ],
      "recon": {
      "observer": {
      "items": [
      {
      "channel": "sight",
      "layer": "surface_and_air",
      "radius": 1,
      "shape": "capsule"
      }
      ]
      }
      },
      "spawn_layers": "WL_AnyHorizontalGroundOrWaterSurface",
      "tools": [
      {
      "aim_bone": "bone_root",
      "muzzle_bone": "bone_root",
      "spec_id": "/pa/units/land/land_barrier/land_barrier_tool_weapon.json"
      }
      ],
      "unit_types": [
      "UNITTYPE_Structure",
      "UNITTYPE_Basic",
      "UNITTYPE_Wall",
      "UNITTYPE_FabBuild",
      "UNITTYPE_FabAdvBuild",
      "UNITTYPE_CmdBuild",
      "UNITTYPE_CombatFabBuild",
      "UNITTYPE_CombatFabAdvBuild",
      "UNITTYPE_Custom1"
      ]
    }
    Code:
    {
      "ammo_id": "/pa/units/land/land_barrier/land_barrier_ammo.json",
      "auto_attack": true,
      "firing_arc_pitch": 360,
      "firing_arc_yaw": 360,
      "idle_aim_delay": 0,
      "max_range": 9999999999999999999999,
      "pitch_range": 0,
      "pitch_rate": 0,
      "rate_of_fire": 5,
      "self_destruct": true,
      "target_layers": [
      "WL_LandHorizontal",
      "WL_WaterSurface",
      "WL_Air",
      "WL_Orbital"
      ],
      "tool_type": "TOOL_Weapon",
      "yaw_range": 0,
      "yaw_rate": 0
    }
    Code:
    {
      "ammo_type": "PBAOE",
      "sim_fire_effect": "",
      "splash_damage": 0,
      "splash_damages_allies": false,
      "splash_radius": 0
    }
    Whenever the PBAOE weapon activates, the SIM freezes permanently.
  2. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Add "damage_volume":{"initial_radius":0} .
  3. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Didn't fix it... :(
  4. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Found the problem. Decals aren't accepting a blank field. @bgolus
  5. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Well, I guess you can don't use base_structure.json as base spec.
  6. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
  7. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Have you tried removing the field instead of leaving it blank?
  8. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Then I get decals. :(
  9. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    That would be because it inherits them from somewhere else?
  10. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    remove it from base_structure too

    edit:ninja
    dom314 likes this.

Share This Page