Starbound

Starbound

Repeater (Wiring)
Not Mr Flıbble  [developer] 5 Aug, 2016 @ 11:17am
Considering splitting the repeater into two devices (logic, power)
This would mean that the basic repeater would be back to being as simple as it originally was, and would reduce load (less code to run) where power usage isn't needed.

I may split it into two mods at the same time…
< >
Showing 1-1 of 1 comments
bk3000 15 Aug, 2016 @ 10:17am 
I haven't looked at your code but consider this option.
Don't do this
function someFunction()
local stuff = otherstuff[1]
return stuff
end
just declare it and later assign it like this
someFunction = function()
local stuff = otherstuff[1]
return stuff
end

Point being you define the function depending on what it needs to do. If it is getting complex and maybe too big, you might consider making an external package containing tables of code. Then you reference like
if someCondition then
someFunction = codeblocks.powerTransmit[1]
end
Last edited by bk3000; 15 Aug, 2016 @ 10:18am
< >
Showing 1-1 of 1 comments
Per page: 1530 50