Scrap Mechanic

Scrap Mechanic

ScrapComputers
178 Comments
VeraDev  [author] 18 Jul @ 7:02am 
@кириешко For ID changing when the target loses blocks, well that makes sense as internally the target's creation gets destroyed into 2 creations. I am pretty sure they have different id's when they break meaning you will have to manage that yourself.

Radar's are not great for small targets and that's intentional to balance things out

For radars being unusable in supersonic speeds, technically a bug but i will call this a feature for balancing reasons.

We want things to be balanced and somewhat realistic. There was supposed to be a inertia drive which basically converted your creation to a spacecraft but that was too overpowered hence why the gravity controller exists meaning in order to make a flyer with ScrapComputers, you will have to do the math with math.pid and use thrusters.

TLDR: Balancing reasons and ID's change due to how the game handles destruction of creations.
кириешко 18 Jul @ 3:41am 
also radar cant see supersonic speed targets, is it fixable or engine limitations?
кириешко 18 Jul @ 3:17am 
and another question, is there any way to make radar detect small targets, like rockets. Even small degree radar cant see it on large distance
кириешко 18 Jul @ 3:14am 
@VeraDev actually ID is changing with mass change, when target loss some blocks it changing its ID
VeraDev  [author] 8 Jul @ 4:32am 
@Maggz Not really without reimplementing the Radar yourself with Unsafe Env making it more optimized.

But that probably will make it slower as all of the Radar code would get ran in the LuaVM which would make it slower than native code.
Maggz 6 Jul @ 5:36am 
Is there a way around this? Without compromising function
VeraDev  [author] 6 Jul @ 1:01am 
@Maggz This is probably because when you get all targets, it scans through all bodies, units and players. In ur case theres probably a lot of bodies and the radar does a bit of expensive stuff.

That's probably why its lagging.
Maggz 5 Jul @ 9:02am 
However it does lagg when fired in a world with a lot of creations welded to the ground. Is there a way around this lagg?
Maggz 5 Jul @ 4:51am 
@VeraDev Yea I figured, I ended up using mass and surface area tho Thx anyways
VeraDev  [author] 5 Jul @ 4:46am 
@Maggz You can track targets based on the target's id. These don't change at all, even if the target gets undetected and then gets redetected
VeraDev  [author] 5 Jul @ 4:44am 
@MAFIALI This is getting removed later, Our reason why it exists is to prevent mallicious mods but since it basicly never got used. It wasen't worth keeping it.
Maggz 25 Jun @ 10:39am 
I was wondering if there is a way to make a radar "LOCK" One target and not being able to switch to a closer target. Reason being is that the radar missile I made goes after flares instead of the target it initially locked because the creation is updated and there is a closer target
MAFIALI 24 Jun @ 3:43am 
RUS: я тут полазил в коде мода и нашёл файл "BanSystem.lua", мне стало интересно зачем вам четыре уровня бана и вообще зачем нужен бан?
ENG: I was poking around in the mod code and found the "BanSystem.lua" file, I was wondering why you need four levels of ban and why do you need a ban at all?
JeS'apelleUnePersonne 7 Jun @ 3:33am 
this mod is better
VeraDev  [author] 3 Jun @ 10:14am 
@Error404NotFound ..You do realise that SComputers's owner has done unspeakable things to our mod? Just so you know, he redirected our traffic to his docs for a hour months ago.

Also SComputers sucks more than ScrapComputers in many factors in basically everything. The only downside with our mod really is safety but we don't want to enforce as little as possible of that to allow anyone to do whatever.

Also the interface being similar? Yeah so SComputer's interface is actually a rip-off of ours on some parts.

I'm still wondering whether you'l post the code where it caused those bugs. Else we can't fix those bugs.
Error404NotFound 3 Jun @ 9:36am 
@VeraDev

I'll try, but I found a slightly different mod about computers (SComputers), and it has almost the same interface, but more convenient. It's more difficult to figure out, but I didn't notice any problems with the camera there, no matter how hard I tried to break it.
VeraDev  [author] 3 Jun @ 9:02am 
@Error404NotFound Can you send the code to us (via pastebin or any other text sharing site) so i can go and push a bugfix for it.

The camera shouldn't be very laggy, it is only laggy when it renders a frame but that's a game problem (raycasts are too slow) and we can't do anything about that really.

The other issues do not make any sense in my perspective
Error404NotFound 3 Jun @ 7:04am 
@VeraDev

I literally decided to use the camera for my construction and it was very laggy and broke from the slightest changes in the code (a lot of black lines and bugs with distance). It got to the point where I had to remove and install a new computer to get the code working again
VeraDev  [author] 3 Jun @ 6:55am 
@Error404NotFound @D.A.R.P

I'm not sure why you find the mod buggy, shit or being unusuable? Don't need to be rude but i don't think you even used the mod and just threw unreasonable hate at it.

And if the mod was horrible, then the subscriber count on the mod wouldn't make any sense cause then it would be like less than 50 or something.

Please actually try the mod instead of just hating on it for no reason
D.A.R.P. 2 Jun @ 9:37am 
The mod is shit :steamthumbsdown: :steamthumbsdown:
Error404NotFound 2 Jun @ 9:30am 
The mod is very crooked and buggy, I can't use it
VeraDev  [author] 28 May @ 5:07am 
@Nobody You can use a motor to read and write bearing angles, In theory you can make a gearbox with that
Nobody 16 May @ 1:20pm 
was looking at using this mod to code a gearbox for a vehicle (inputting numbers 1-10 going to 10 different outputs to control different parts) is there an easy way to code this? (newish to lua)
VeraDev  [author] 12 Apr @ 1:09am 
Unfortantly, Scrap Mechanic doesn't provide us any monospace fonts so we can't switch to a monospace one.
Silverado Legion 8 Apr @ 12:53pm 
Will the editor be switched to a monospaced font at some time?
VeraDev  [author] 27 Mar @ 3:50am 
Theres no such thing as frequency for antenna's in ScrapComputers. The closest thing for that are names. Maybe set antenna names to numbers like frequencies?
TheGamingCow 25 Mar @ 1:16pm 
Is there any way to change the frequency of an antenna with a computer or something? I like making flying ships that have wireless communications with this mod (I play solo, I just like making this stuff), but I like having them be able to easily switch between channels during flight
VeraDev  [author] 22 Feb @ 3:14pm 
We are planning to add that in the next few updates but right now there's no add-on adding support for it
Mac and Cheese 15 Feb @ 10:43am 
is there any sort of addon that adds craftable recipe's for survival? (using modded crafting recipes)
Ben Bingo  [author] 28 Dec, 2024 @ 2:34pm 
@Vetimar thanks for reporting, we are looking into a fix
Vetmitar 27 Dec, 2024 @ 12:38am 
Possible bug, When I load my mech I have to retype my parameters sent to the output registers for them to actually be sent, the code is there but I have to retype them once for them to take effect. Don't know if it's a bug, hope im not missing something about it.
Ben Bingo  [author] 10 Dec, 2024 @ 8:28am 
@LIMEON.pl ScriptableComputer pioneered the space for computing mods in scrap mechanic, this mod is completely separate from that project, but designed to be similar to allow users to migrate easily as ScriptableComputer is no longer maintained. This mod is also much more based on performance and functionality.
Kototop_CMB 9 Dec, 2024 @ 5:24am 
war
LIMEON.pl 9 Dec, 2024 @ 3:38am 
What relation does this mod have to "ScriptableComputer" mod?
Ben Bingo  [author] 3 Dec, 2024 @ 12:14pm 
@ShpieGheL Yes! I've been working quite hard to remove as much lag as possible from the displays as they currently are the most laggy component in the mod
ShpieGheL 2 Dec, 2024 @ 11:35pm 
Thank you, now it works, i see now it more optimized?
Evil bird fuc​ker 2 Dec, 2024 @ 2:02pm 
alr pookie bear
VeraDev  [author] 2 Dec, 2024 @ 2:41am 
@ShpieGheL I've just released a new update, Displays SHOULD be fixed now.
VeraDev  [author] 2 Dec, 2024 @ 2:40am 
@silk moth If you mean the ones in the benefits, They are actually all valid. For dyslexic documentation as a example, one of the people in the discord server looked to SComputer's doc site and called it anti-dyslexic. And so we used that.

And also, SComputers has bribed our domain host before, tried review bombing this mod, spreads propoganda and so much i can mention. The owner of SComputers is the exact same guy as the person who made the harmful worm (Logic).

We really don't like SComputer's and it's owner and so that's why it says all of the sarcastic stuff.

If you still don't believe it, try finding in SComputer's mod, over stuff that ScrapComputers had. (Aka, What ideas SComputers has stolen from us for months)
TheGamingCow 2 Dec, 2024 @ 12:21am 
Tf u on about? It's a documentation site
Evil bird fuc​ker 1 Dec, 2024 @ 9:40pm 
your website is so needlessly toxic, its a free workshop mod why are you so fired up over nothing
ShpieGheL 1 Dec, 2024 @ 7:32am 
Awesome mode, but new update broked displays
Ben Bingo  [author] 3 Nov, 2024 @ 2:11pm 
@Ilax666 Thanks! :steamhappy:
Ben Bingo  [author] 3 Nov, 2024 @ 2:10pm 
@TheGamingCow The radar has a limit on what it can detect based on its scan angles, the smaller the scan angles are, the radar will be able to detect smaller objects at a further distance away, and vice versa when the scan angles are large, also make sure the radar is facing the correct direction, you can see this with the arrow.
Ilax666 3 Nov, 2024 @ 8:34am 
I love this mod :steamhappy:
TheGamingCow 2 Nov, 2024 @ 2:42pm 
Also I did turn it on, forgot to mention that
TheGamingCow 2 Nov, 2024 @ 2:38pm 
Am I just being stupid, or is the radar not working? I loaded the radar example in a computer, attached a radar to it, but it's not detecting anything
VeraDev  [author] 29 Oct, 2024 @ 5:18am 
There is no maximun size for fonts. It can be any size you want. If isn't loading. Check game console for any errors or else check if it is in THIS table: sm.scrapcomputers.fontManager.fonts

if they both are fine and your font cannot load, then its probably something wrong with the font you made.
JeS'apelleUnePersonne 28 Oct, 2024 @ 5:35pm 
What is the maximum size for fonts? I've made one and it doesnt load. I think it's because it's too large.
Ben Bingo  [author] 26 Oct, 2024 @ 7:56am 
@JeS'apelleUnePersonne I have found the bug, pushing an update as we speak