Market deprecated

by OwnlyMe

Mods like this have been deprecated by rseding.. show your anger here: https://forums.factorio.com/viewtopic.php?f=28&t=85372&p=497019 https://forums.factorio.com/viewtopic.php?f=28&t=84880&p=496029

4 years ago
0.17 - 0.18
22

i Money signal

4 years ago

Hello,
Would it be possible to somehow show the amount of money the player currently has as a signal? :)

4 years ago

all scripted signals have terrible performance, so probably not...
what do you even need that for?

4 years ago

To turn off selling electricity when I've reached a set amount of $

4 years ago
(updated 4 years ago)

you could use a lua combinator and do money = remote.call("own-market", "getmoney", force_name)
you can see all the interfaces in api.lua

4 years ago

hmm I tried but I get this error then: https://imgur.com/a/4570tM7

4 years ago

force_name is a variable, it will probably be the string "player" in your case

4 years ago

code could look like this:
on_nth_tick[15] = function()
output["signal-A"] = remote.call("own-market","getmoney", combinator.force.name)
end

4 years ago
(updated 4 years ago)

i ran into a similar issue when i tried to only sell surplus energy and made 2 blueprints for that
Build this one at midnight and sacrifice a goat:
(combinator has to be built after there was an accumulator built nearby)
0eNqtndFuG7kOht/F18mCpChS6qscFIWTencNJE7hOMUpirz74SRFhj1Wx/JQF4tFd9OvGon8RerXTH9u7h5edt+O+8Np8+nnZn//dHjefPrPz83z/p/D9mH6b6cf33abT5v9afe4udkcto/Tr7bPz7vHu4f94Z/bx+39v/vD7pY2rzeb/eHr7r+bT/h6cxHx/PSwPd5+2x52D+530uvnm83ucNqf9rv3kbz94seXw8vj3e5o6CbgZvPt6dl+z9Nh+vOMc0tys/lh/0Z4nQbzfxTqpaQlSuqlwBKFOymoS5TcS+ElivRScIminZSyBCmdkLwEqb0rtARB6KMszgl2Bu7i8mBn3C5GCnaGLS5GLXaGLS5mEHaGLS5mM3aGLdZFSmfY0nKwdMYtLcYtzoG7vb9/eXx52J6ejq1EpL9+gfSv3FQ66CXBJRJ2ksolEHWC5BIodYL4Eog7QRdnO3eCLk629IHwEkf7OOkSp/Rx8iVOZ2DrBU7qDOt6idMZ1HhpolNnUOOlmU6dQY2Xpjp1BjVenOvOoMaLky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LEeSRF+YoYlWf35gj0KEv5sW86rM386COvDRHkZeiz2/NUcStPr82RyG3egqU367REKZo/iP4uePYzRet/r1GHOlGEMpQmo5sDilgVp83hxR5N/q8OaTIy9HnzSERjmwOKfR69FlzSBS73mfCzuJxsRtNk8eUnNZR6O0HyiZH1e0TJAOtTSIdaW1S3LIW/6iRXaKKAKNzwCjymrQlf7ay0NMwaIAj+v06xTYJxJzdkTpFLGsfH4lfPze/yjh/YOrv7fPpdn943h1Pu+PChxntATdf98fd/fv/lBYVr6amDir1U6V/rO47gS93z6ft2482kB/fe4P2Z5+Yr31o6BhdvnomsYMq185kz1DnL1Yt8XI3r1y93D2PXvuWGy6sdoYuzvzVsT9x5lQ5br9uj3/8wlf7c6i0/K3axqf93j/fmZq0dC0NywLt6nzoWL6crx5iXhji1XnQM0S9eoi0MMRyLa0uwOq1MPkzTOBaWFqA4ZUwWGBdmxRL47o2JZYmjK9kLaykXJsHSzEmci1sIafk2vBf0hC5NvqX5E1qp9Q2f7deHe70/pHj5gcVFVcKd5tGK4W7TUsrNbZN45Vy2KbldXLYhsk6OWzDdJ0ctmFllRy2WXWVHDZZBVbJYZuFq+SwzaJ1ctiGpXVy2IbxOjlsw/I6OWzDZKWg1SZNVwpam1ZWClqbVlcKWpNWYaWgtWm4TtDaMFonaG1YWidobRivErQ2K68StDZLVglam6WrBK3NKusErQ2r6wSttv+aCFinaH+g4TpJM9rnm/e/a+WT+9tdbjbfd8fnt59WTVALcGZ+ff0fcFERiA==

when it prints "Accumulator benchmark finished" 2 days later at noon, you can destroy it again.
Then you can use this as power switch:
0eNqtW9FuG0cM/Jd7toMluVxy/VCgzWcUhSErSnKALRuylDQw/O/lKYGOTpym1VweDNvRjXeXHHJI7j0NN7eHzcNu3O6Hq6dhXN9vH4erP5+Gx/HDdnU7/W7/5WEzXA3jfnM3XAzb1d3008344XJzu1nvd+P68uH+djM8Xwzj9t3m7+GKni9++fxqvT7cHW5X+/tdepKf/7oYNtv9uB83X5dx/OHL9f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4RWxCptVT1olonPv1jkzpqjTrPVnCedGkA8yrp4ueXPKlbPK6ZBh2JEeEHq75kiwhI+tX0M4nREqq7q+/VtryK5yX6/u7m3E7vQwqP395c3qH9fia8VV6q/li+LTZPR4/bCalexRDUe89/wP5cuzF

4 years ago

Omg nice solution but it works :) and also the snippet you wrote earlier! I guess I'm really not into lua language haha :D
Thanks for the fast help! :)

4 years ago

some stuff can be super advance but are simple to write and others can be very basic but require the utmost skill to implement

4 years ago

besides, I would have gone with an abundance of power sell and buy when low but I am not gonna even attempt right now cause I don't need a headache whilst sick

4 years ago
(updated 4 years ago)

same power switch but inverted, with https://mods.factorio.com/mod/Transformers ... it works like a pump for electricity

4 years ago

shameless self-advertising aside I know how transformers work and all that with the power grid but thank god that factorio doesn't have accurate electromechanical failures that can happen IRL [ie over current draw]

New response