Compiled this for a mod I'm working on (if you've seen my Style mod, you can probably guess what I'm going to attempt next) and just thought I'd post here in case it's of any use to anyone:
accumulator
achievement
active-defense-equipment
ambient-sound
ammo
ammo-category
ammo-turret
arithmetic-combinator
armor
arrow
assembling-machine
autoplace-control
battery-equipment
beacon
beam
blueprint
blueprint-book
boiler
build-entity-achievement
capsule
car
cargo-wagon
combat-robot
combat-robot-count
constant-combinator
construct-with-robots-achievement
construction-robot
container
corpse
curved-rail
custom-input
damage-type
decider-combinator
deconstruct-with-robots-achievement
deconstructible-tile-proxy
deconstruction-item
decorative
deliver-by-robots-achievement
dont-build-entity-achievement
dont-craft-manually-achievement
dont-use-entity-in-energy-production-achievement
electric-energy-interface
electric-pole
electric-turret
energy-shield-equipment
entity-ghost
equipment-category
equipment-grid
explosion
finish-the-game-achievement
fire
fish
fluid
fluid-turret
flying-text
font
furnace
gate
generator
generator-equipment
group-attack-achievement
gui-style
gun
inserter
item
item-entity
item-group
item-request-proxy
item-subgroup
item-with-entity-data
kill-achievement
lab
lamp
land-mine
leaf-particle
loader
locomotive
logistic-container
logistic-robot
map-settings
market
mining-drill
mining-tool
module
module-category
movement-bonus-equipment
night-vision-equipment
noise-layer
offshore-pump
particle
particle-source
pipe
pipe-to-ground
player
player-damaged-achievement
player-port
power-switch
produce-achievement
produce-per-hour-achievement
projectile
pump
radar
rail-category
rail-chain-signal
rail-planner
rail-remnants
rail-signal
recipe
recipe-category
repair-tool
research-achievement
resource
resource-category
roboport
roboport-equipment
rocket-defense
rocket-silo
rocket-silo-rocket
rocket-silo-rocket-shadow
selection-tool
simple-entity
smart-container
smoke
smoke-with-trigger
solar-panel
solar-panel-equipment
splitter
sticker
storage-tank
straight-rail
stream
technology
tile
tile-ghost
tool
train-path-achievement
train-stop
transport-belt
tree
turret
underground-belt
unit
unit-spawner
utility-sprites
virtual-signal
wall
It was created with this code in data-final-fixes.lua:
local list = {}
local num = 0
local info = data.raw -- you can use it
--local info = defines -- you can use it
for k in pairs( info ) do
local list2 = {}
local num2 = 0
num = #list + 1
list[num] = k
for l in pairs (info[k]) do
local list3 = {}
local num3 = 0
num2 = #list2 + 1
list2[num2] = l
if type(info[k][l]) == "table" then
for m in pairs (info[k][l]) do
num3 = #list3 + 1
list3[num3] = m
end
table.sort(list3)
log( "See: ".. k .. " - ".. l .. " myProp: " .. serpent.line(list3) )
end
end
table.sort(list2)
log("Num: ".. k .. " Subnum: " .. serpent.line(list2) )
end
table.sort(list)
log( serpent.line(list) )
local list = {}
local num = 0
local lvl = 1
local info = {data=data, defines=defines} -- you can use it
function self (infok, text, lvl)
local lvl = lvl
list2 = {}
if type(infok) == "table" then
for l in pairs (infok) do
--log( lvl .. " See: ".. text .. ".".. l .. " myProp1: " .. serpent.line(list3) )
self (infok[l], text .. "." .. l, lvl + 1)
end
else
if not ( type(infok) == "boolean" or type(infok) == "function") then
log( lvl .. " / ".. text .. " = " .. infok )
end
end
return list2
end
for k in pairs( info ) do
local list2 = {}
local num2 = 0
num = #list + 1
list[num] = k
local list2 = self(info[k], k, lvl)
table.sort(list2)
log(lvl .. " Num: ".. k .. " Subnum: " .. serpent.line(list2) )
end
table.sort(list)
log( serpent.line(list) )
The log file will be around 5 MB on Vanilla Version 0.14.21
The log file will be around 8 MB on Vanilla Version 0.15.23
Re: [List] All 146 prototype types in 0.14.13
Posted: Thu Feb 02, 2017 12:14 am
by aubergine18
You could also just log the whole data.raw in to text file and then use text editor to search. Example uploaded to github (code used in first lines of file):