Scrap Mechanic

Scrap Mechanic

ScrapComputers
190 kommentarer
Kototop_CMB For 21 timer siden 
as i know you cant install mods in survival worlds, you need custom game, like modded craftbot recipes
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2816900681&searchtext=modded+craftbot+recipes
dunawayc For 21 timer siden 
Is there a guide for installing v3 into an existing Survival world? I tried copying the files from the mod into the Scrap Mechanic Survival folder but when I start the game, my craftbot shows no icons, although the world seemed to load. Any ideas?
VeraDev  [ophavsmand] 10. dec. kl. 9:50 
@MAFIALI The sleep function freezing ur game is intentional. All lua scripts in the game (excluding terrain ones) run in a singular thread with the main. We basicly run a while loop inside the sleep function meaning when you call sleep, it sleeps for X amount of seconds for basicly the entire game.

Theres really no other way to do this without majour overhauls.
MAFIALI 10. dec. kl. 3:55 
can you tell me what method can be used to freeze the code, but not the entire game?
MAFIALI 10. dec. kl. 3:34 
hey, I ran into a problem that sleep(time) doesn't work in my code, the game freezes when running the code, I think the method doesn't work.
Kototop_CMB 22. sep. kl. 11:31 
i asked for offset function, it wont be added
but if you can use unsafe env, you can replace laser by raycast function
Maggz 22. sep. kl. 2:43 
For the laser module, is it possible to make it ignore the entire creation its placed on or make it offset somehow? I want to place the laser on the inside of a creation but on a seperate body so it can spin without the outside of the creation blocking the laser
VeraDev  [ophavsmand] 22. aug. kl. 19:44 
@Kop4eny I am pretty sure we wont be adding that as our new ui theme wont work with it. Also that we've entirely reworked the computer for the upcoming V3 update and that we kinda dont wanna touch it (due to its complexity)
#2d2d19Kop4eny 18. aug. kl. 6:19 
I have a slightly unusual request — could you please make the HUD in "computer" transparent, or add an option to disable it?
VeraDev  [ophavsmand] 30. juli kl. 15:30 
I've looked at the pull request, will fix later. I am way too lazy right now.

https://github.com/ScrapComputers/ScrapComputers/pull/7#issuecomment-3138011029
Drukqs 26. juli kl. 5:34 
I'm working through trying to fixing it. I'll make a pull in a bit.
Drukqs 26. juli kl. 5:25 
I can't use `display.drawText()` on a multidisplay.

ERROR: [LuaVM]:8: attempt to index global 'sm_scrapcomputers' (a nil value)
----- Lua Error Traceback -----
[LuaVM]:8:
...06ae4dc6/Scripts/Modules/VirtualDisplay.lua:313:
VeraDev  [ophavsmand] 18. juli kl. 7:02 
@кириешко 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. juli kl. 3:41 
also radar cant see supersonic speed targets, is it fixable or engine limitations?
куштумский флюс 18. juli kl. 3:17 
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. juli kl. 3:14 
@VeraDev actually ID is changing with mass change, when target loss some blocks it changing its ID
VeraDev  [ophavsmand] 8. juli kl. 4:32 
@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. juli kl. 5:36 
Is there a way around this? Without compromising function
VeraDev  [ophavsmand] 6. juli kl. 1:01 
@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. juli kl. 9:02 
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. juli kl. 4:51 
@VeraDev Yea I figured, I ended up using mass and surface area tho Thx anyways
VeraDev  [ophavsmand] 5. juli kl. 4:46 
@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  [ophavsmand] 5. juli kl. 4:44 
@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. juni kl. 10:39 
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. juni kl. 3:43 
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. juni kl. 3:33 
this mod is better
VeraDev  [ophavsmand] 3. juni kl. 10:14 
@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. juni kl. 9:36 
@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  [ophavsmand] 3. juni kl. 9:02 
@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. juni kl. 7:04 
@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  [ophavsmand] 3. juni kl. 6:55 
@Error404NotFound @D.A.R.P

I'm not sure why you find the mod buggy, ♥♥♥♥ 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
luminatro_inc 2. juni kl. 9:37 
The mod is ♥♥♥♥ :steamthumbsdown: :steamthumbsdown:
Error404NotFound 2. juni kl. 9:30 
The mod is very crooked and buggy, I can't use it
VeraDev  [ophavsmand] 28. maj kl. 5:07 
@Nobody You can use a motor to read and write bearing angles, In theory you can make a gearbox with that
Nobody 16. maj kl. 13:20 
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  [ophavsmand] 12. apr. kl. 1:09 
Unfortantly, Scrap Mechanic doesn't provide us any monospace fonts so we can't switch to a monospace one.
Silverado Legion 8. apr. kl. 12:53 
Will the editor be switched to a monospaced font at some time?
VeraDev  [ophavsmand] 27. mar. kl. 3:50 
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. kl. 13:16 
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  [ophavsmand] 22. feb. kl. 15:14 
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. kl. 10:43 
is there any sort of addon that adds craftable recipe's for survival? (using modded crafting recipes)
Ben Bingo  [ophavsmand] 28. dec. 2024 kl. 14:34 
@Vetimar thanks for reporting, we are looking into a fix
Vetmitar 27. dec. 2024 kl. 0:38 
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  [ophavsmand] 10. dec. 2024 kl. 8:28 
@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 kl. 5:24 
war
LIMEON.pl 9. dec. 2024 kl. 3:38 
What relation does this mod have to "ScriptableComputer" mod?
Ben Bingo  [ophavsmand] 3. dec. 2024 kl. 12:14 
@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 kl. 23:35 
Thank you, now it works, i see now it more optimized?
Drukqs 2. dec. 2024 kl. 14:02 
alr pookie bear
VeraDev  [ophavsmand] 2. dec. 2024 kl. 2:41 
@ShpieGheL I've just released a new update, Displays SHOULD be fixed now.