Page 1 of 1

Type for robot capsules is wrong

Posted: Sat Jun 12, 2021 6:41 pm
by Silari
All three of the robot capsules pages have "Prototype type projectile", which isn't right. The other capsules (grenades/slowdown/poison) are set the same, but they actually spawn a projectile, but the robot capsules spawn a combat-robot and should link to https://wiki.factorio.com/Prototype/CombatRobot instead.

Re: Type for robot capsules is wrong

Posted: Sat Jun 12, 2021 7:05 pm
by Bilka
The combat robot capsules spawn projectiles (e.g. https://github.com/wube/factorio-data/b ... .lua#L1078) which then spawn the robots (e.g. https://github.com/wube/factorio-data/b ... s.lua#L179).

Re: Type for robot capsules is wrong

Posted: Sat Jun 12, 2021 7:32 pm
by Silari
Yes but the projectile isn't the point of the capsule - the robot that's spawned is. The prototype types aren't any use to anyone but modders, and how many times is someone going to look at that page because they want the projectile prototype info?

Of the three prototypes involved here, capsule->projectile->combatrobot, it seems really weird to use the middle one and not the first or last.

Re: Type for robot capsules is wrong

Posted: Fri Jul 23, 2021 7:39 pm
by Bilka
The middle one is used because its prototype name matches the prototype name of the item. I would argue that using the robot directly would be confusing, because it uses a different prototype name and even in-game name. E.g. the capsule is named "Distractor capsule", the spawned robot is named "Distractor". However, the wiki pages are named after the item and the recipe, and describe them from that perspective (-> "Distractor capsule"). And from that perspective, the priority of listing prototypes with matching names in the infobox is entity > item > recipe, same as all other pages.