List of data.raw categories that contain entities?

Place to get help with not working mods / modding interface.
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1334
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

List of data.raw categories that contain entities?

Post by sparr »

I want to loop over every entity in data.raw in my data-updates.lua. Unfortunately they are categorized, and I can't find a way to tell entity categories from non-entity categories.

My immediate solution is to just copy this list: https://github.com/Suprcheese/Squeak-Th ... lua#L8-L32

I'd love to know if there's a more appropriate way to dynamically build this list.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: List of data.raw categories that contain entities?

Post by DaveMcW »

What property are you reading/changing from entities?

You could check to see if the property exists.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: List of data.raw categories that contain entities?

Post by bobingabout »

Unlike items where item subtypes are in the list, EG, data.raw.tool is a fairly common alternative to data.raw.item... I thought ALL entities were just under data.raw.entity.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: List of data.raw categories that contain entities?

Post by darkfrei »

I have used here this list of entities:
code
And yes, it's now impossible to get them with a one command or iterate them.

Post Reply

Return to “Modding help”