Search found 6 matches

by 1000101
Thu Sep 19, 2019 6:20 pm
Forum: Mods
Topic: [MOD 0.14] AAI Programmable Vehicles
Replies: 832
Views: 194108

Re: [MOD 0.14] AAI Programmable Vehicles

Is there a tutorial for this mod that is actually current and relevant? All the tutorials in the OP are completely irrelevant as the mod does not work for the most part as portrayed in the tutorials. Mainly what I am looking for is how to program the depot based on needs instead of having them use s...
by 1000101
Sat Aug 03, 2019 3:17 am
Forum: Modding help
Topic: [Solved] Help with entity.picture nil yet not nil
Replies: 7
Views: 150

Re: Help with entity.picture nil yet not nil

So I found the issue...and it is as I suspected in my original post...I'm stupid. While the wooden-chest was my go-to test, it (nor the iron/steel) wasn't the issue, but the logistics chests were. The structure of the picture data changed for the basic chests which is what I was basing my code chang...
by 1000101
Fri Aug 02, 2019 11:06 pm
Forum: Modding help
Topic: [Solved] Help with entity.picture nil yet not nil
Replies: 7
Views: 150

Re: Help with entity.picture nil yet not nil

Even more wth... This works without error (other than the explicit call to "error" showing the filenames AND that picLayer is assigned): function TestFunction( baseEntity ) local basePic = baseEntity.picture local picLayer = nil local s = "" for index, layer in pairs( basePic.layers ) do s = s .. "\...
by 1000101
Fri Aug 02, 2019 10:29 pm
Forum: Modding help
Topic: [Solved] Help with entity.picture nil yet not nil
Replies: 7
Views: 150

Re: Help with entity.picture nil yet not nil

After more experimentation, seems like lua doesn't like assigning unnamed table entries to variables. Using "local picWidth = baseEntity.picture.layers[ 1 ].width" worked (at very least it didn't throw a lua error). nvm, it didn't like it after all, instead I get the following error. local picWidth...
by 1000101
Fri Aug 02, 2019 10:02 pm
Forum: Modding help
Topic: [Solved] Help with entity.picture nil yet not nil
Replies: 7
Views: 150

Re: Help with entity.picture nil yet not nil

The for block that dumps the layer filename works fine, it's just there to (a) show that the picture is actually resolved and (b) for checking I am referencing the correct layer. It's the single line below where I grab the actual layer I want that fails with the nil error. Below is the full function...
by 1000101
Fri Aug 02, 2019 6:45 pm
Forum: Modding help
Topic: [Solved] Help with entity.picture nil yet not nil
Replies: 7
Views: 150

[Solved] Help with entity.picture nil yet not nil

So I am updating a personal mod from 0.15.x to 0.17.x and I am running into an issue where entity.picture is throwing a lua error. local basePic = baseEntity.picture -- This dump block works fine local s = "" for index = 1, #basePic.layers do s = s .. "\n" .. basePic.layers[ index ].filename end err...

Go to advanced search