Skip to content

Dropping upload issue #7042

Description

@Svist666s

Load prototype is dropping if it is full valid, All proto that not type: entity and refers to other proto, that loading in one file will catch an error. For example, this will catch an error:

- type: entity
  id: VeryGoodTestThing
  name: good test thing
  description: It's cool
  parent: ClothingHeadHatCentcom

- type: latheRecipe
  id: VeryGoodTestRecipe
  result: VeryGoodTestThing
  completetime: 2
  applyMaterialDiscount: false
  materials:
    Steel: 100

Error text:

[ERRO] adminbus: Failed to load prototype data. Dropping upload.
Robust.Shared.Prototypes.PrototypeLoadException: Validation failed for Content.Shared.Research.Prototypes.LatheRecipePrototype(VeryGoodTestRecipe)
No EntityPrototype found with id VeryGoodTestThing
   at Robust.Shared.Prototypes.PrototypeManager.ValidatePrototype(Type kind, String id, MappingDataNode mapping, YamlValidationContext context) in C:\Users\Svist\Folder\serverSS14Official\space-station-14\RobustToolbox\Robust.Shared\Prototypes\PrototypeManager.cs:line 525
   at Robust.Shared.Prototypes.PrototypeManager.ReloadPrototypes(Dictionary`2 modified, Dictionary`2 removed, Boolean throwOnFailure) in C:\Users\Svist\Folder\serverSS14Official\space-station-14\RobustToolbox\Robust.Shared\Prototypes\PrototypeManager.cs:line 466
   at Robust.Shared.Prototypes.PrototypeManager.Robust.Shared.Prototypes.IPrototypeManagerInternal.ReloadPrototypesOrThrow(Dictionary`2 modified, Dictionary`2 removed) in C:\Users\Svist\Folder\serverSS14Official\space-station-14\RobustToolbox\Robust.Shared\Prototypes\PrototypeManager.cs:line 359
   at Robust.Shared.Upload.SharedPrototypeLoadManager.LoadPrototypeData(String data) in C:\Users\Svist\Folder\serverSS14Official\space-station-14\RobustToolbox\Robust.Shared\Upload\SharedPrototypeLoadManager.cs:line 67
   at Robust.Shared.Upload.SharedPrototypeLoadManager.TryLoadPrototypeData(String data) in C:\Users\Svist\Folder\serverSS14Official\space-station-14\RobustToolbox\Robust.Shared\Upload\SharedPrototypeLoadManager.cs:line 46

Some proto that loaded without any changes, except id field and will cause an error:

- type: entity
  parent: [ ClothingHeadHardsuitBase, ClothingHeadSuitWithLightBase ]
  id: ClothingHeadHelmetHardsuitSpatioTEST
  name: spationaut hardsuit helmet
  description: A sturdy helmet designed for complex industrial operations in space.
  components:
  - type: Sprite
    sprite: Clothing/Head/Hardsuits/spatiohelm.rsi
  - type: HandheldLight
    addPrefix: false
  - type: PointLight
    radius: 6
  - type: PressureProtection
    highPressureMultiplier: 0.72
    lowPressureMultiplier: 1000
  - type: Tag
    tags:
    - WhitelistChameleon

Dropping upload appeared in #6548 and if you locally revert this all will be fine,
Now only way to load big proto is to separate it in 3 or 4 files. It's horrible.

And I want to note that this problem was noticed on the fork and checked on Wizden repo.
We (fork admems) would be very happy if #6548 will be reverted for the rework )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions