Type for robot capsules is wrong

Anything related to the content on our wiki (https://wiki.factorio.com/)

Moderator: Bilka

Post Reply
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 489
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Type for robot capsules is wrong

Post 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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Type for robot capsules is wrong

Post 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).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 489
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Type for robot capsules is wrong

Post 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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Type for robot capsules is wrong

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Wiki Talk”