#Scripts made past a point are non-functional

90 messages · Page 1 of 1 (latest)

unkempt tangle
#

all scripts load correctly, there is no pointed errors ingame, everything is functionally the same, except every single script I make now simply doesnt do anything ingame for seemingly no reason

hallow foxBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

unkempt tangle
#

everything made yesterday is working but now all the new ones arent

cold remnant
#

Send your logs

unkempt tangle
warm yewBOT
#

Paste version of server.log from @unkempt tangle

unkempt tangle
#

not sure if thats the right one

unkempt tangle
#

@cold remnant

cold remnant
#

Which type of scripts aren't exactly working?

#

server, client, startup?

unkempt tangle
#

thats the problem 🥺

#

server

warm yewBOT
#

Paste version of extracreateremoval_-_array.js, fluid_tank.js from @unkempt tangle

cold remnant
#

So anything you do now on server scripts stopped working?

unkempt tangle
#

but everything that was already there is functioning

cold remnant
#

Try making a single file with both scripts

#

just for testing

unkempt tangle
#

do I just shove them together?

#

im not very good at this

cold remnant
#

Yeah just shove them together

unkempt tangle
warm yewBOT
#

Paste version of extracreateremoval_-_array_-_splice.js from @unkempt tangle

cold remnant
#

yeah

#

try that

unkempt tangle
#

lets see

#

@cold remnant yeah nope didnt do anything

cold remnant
#

It reloads with no error?

unkempt tangle
warm yewBOT
#

Paste version of server.log from @unkempt tangle

cold remnant
#

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

unkempt tangle
#

wrong one

unkempt tangle
cold remnant
#

try renaming the first one to extracreateremoval_array.js

#

i'm just taking blind shots btw

unkempt tangle
#

kind of smart

#

didnt even think about the name potentially fucking with it

#

nope 🥺

cold remnant
#

did you try restarting your game maybe?

unkempt tangle
#

many times

cold remnant
#

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

unkempt tangle
#

where do I put that one

#

like where in the script

cold remnant
#
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)
    }) 

})
unkempt tangle
warm yewBOT
#

Paste version of server.log from @unkempt tangle

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

cold remnant
#

Click your RMB, click new and choose text file

#

then rename the text file from .txt to .js

#

and add your desired name

cold remnant
unkempt tangle
#

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

cold remnant
#

You're using Ctrl + S to save the scripts before reloading right?

unkempt tangle
#

im just gonna make a blank one and handwrite it out to make sure theres no, like. carryover

unkempt tangle
cold remnant
#

Yes

unkempt tangle
#

I have made sure to actually save it yes

cold remnant
#

presuming you're using a code editor

unkempt tangle
#

im using notepad

cold remnant
#

restarting notepad maybe? It may not be saving the files

unkempt tangle
#

ill try rewriting the thing first

cold remnant
#

ok

unkempt tangle
warm yewBOT
#

Paste version of server.log from @unkempt tangle

unkempt tangle
#

@cold remnant its now listing the same items on the new file,

#

no idea how

cold remnant
#

Copy the contents of the file

#

erase both

#

reload

#

add a new file and copy the contents

unkempt tangle
#

so delete both files and then make a new one?

#

yippee that seems to have worked

#

at least one of them

#

ok scratch that the second one wasnt working cause I put the wrong item in the output field

#

@cold remnant thank you very much