Search found 2 matches

by ethical_apple
Sat Feb 09, 2019 2:51 am
Forum: Modding help
Topic: [Solved] Modifying underground belts
Replies: 3
Views: 1111

Re: Modifying underground belts


Square brackets are the default way to access table elements by key. The dot syntax only works if the key is string consisting only of alphanumeric characters and underscores. The first character has to be a letter or underscore, not a number. The same is true for variable names.

local t = {}
t ...
by ethical_apple
Mon Feb 04, 2019 1:08 am
Forum: Modding help
Topic: [Solved] Modifying underground belts
Replies: 3
Views: 1111

[Solved] Modifying underground belts

Hello, I'm trying to create a mod that has a higher maximum length for new underground belts. However, I'm encountering an issue with the internal and prototype name of "underground-belt" which is not recognized properly due to having the hyphen.

A makeshift solution was:
data.raw["underground ...

Go to advanced search