#[HELP] Script Troubleshooting

1 messages · Page 1 of 1 (latest)

fossil vortex
#

so im trying to run my first project/script and iv been stuck on why there not printing messaging in the console log ? all of them have been complied with no errors but when im trying to test them out in the world editor nothing is happening

#

also @wheat warren since you told me to ping you in here

#

this is the file path way iv made along with the scripts

wheat warren
#

filepath looks ok. send me the script you are using where you are expecting the print

fossil vortex
#

here or privately ?

wheat warren
#

here

fossil vortex
#

i was using a temp test.c script to call on each script ingame via a entity and then attaching for example "OnActivation" etc etc and i have print fuctions to put into console to make sure everything is working

wheat warren
#

so i suppose you are expecting this in your logs right?

#

did you attach that component to your gamemode in the world?

fossil vortex
#

to be fair, i haven't tried that. I'm new to scripting so i wouldn't really know how to do that

#

so im currently using an empty world to test everything in rn

#

i guess i should be using one of these ?

wheat warren
#

you have one in the world, click it and attach your component

fossil vortex
#

what component should i be adding ?

wheat warren
#

no as component not as entity script

#

big button bottom left

fossil vortex
#

okay wow so its now printing info in the console log

#

so i guess since everything is now working and all functions are working, is it now possible to attach said script to a prefab like the one in the image ?

#

also i know its a very noob question but is there an offical doc that i can read and understand how scripting works as a whole

wheat warren
#

you can make a general purpose script component and attach it to the prefab yes. it would not be gamemode component, those only go onto the gamemode entity

#

but yes please for the general basics have a look at existing documentation and examples in the vanilla game scripts. if you have a specific question feel free to ask, but i can not teach you all the basics here