#Scripts made past a point are non-functional
90 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
everything made yesterday is working but now all the new ones arent
Send your logs
this one?
Paste version of server.log from @unkempt tangle
not sure if thats the right one
@cold remnant
Looks fine to me
Which type of scripts aren't exactly working?
server, client, startup?
Paste version of extracreateremoval_-_array.js, fluid_tank.js from @unkempt tangle
So anything you do now on server scripts stopped working?
yeah
but everything that was already there is functioning
Yeah just shove them together
something like that?
Paste version of extracreateremoval_-_array_-_splice.js from @unkempt tangle
It reloads with no error?
Paste version of server.log from @unkempt tangle
that's odd
if i were you i'd try removing file by file to find at which point it stopped
although i don't think there's a file to blame
this first one
try renaming the first one to extracreateremoval_array.js
i'm just taking blind shots btw
kind of smart
didnt even think about the name potentially fucking with it
nope 🥺
did you try restarting your game maybe?
many times
yk how the first file you sent has a for loop
try adding a console.log("hello" to it
see if it logs on the log
let removeRecipesByOutput = [
'create:nozzle',
'create:mechanical_pump',
'create:fluid_valve',
'create:steam_whistle',
'create:linked_controller'
]
ServerEvents.recipes(event => {
removeRecipesByOutput.forEach( itemid => {
event.remove({ output: `${itemid}` })
console.log(itemid)
})
})
Paste version of server.log from @unkempt tangle
that is not
the items listed there are not the code
thats the items for the one I copied
do I have like a ghost script here
I think you might have given a pretty good indication on the problem
@cold remnant how do you make a new JS file
ive just been copy pasting the files
Click your RMB, click new and choose text file
then rename the text file from .txt to .js
and add your desired name
yeah it logged items that weren't included on the script
yeah it logged the items that was in the script I copied
its like its pretending its the same script and everything I changed just didnt exist
this is a huge step forward thank you
You're using Ctrl + S to save the scripts before reloading right?
im just gonna make a blank one and handwrite it out to make sure theres no, like. carryover
thats just the hotkey for save isnt it?
Yes
I have made sure to actually save it yes
presuming you're using a code editor
im using notepad
restarting notepad maybe? It may not be saving the files
ill try rewriting the thing first
ok
okay im so confused
Paste version of server.log from @unkempt tangle