#lua cutscenes thingy

45 messages · Page 1 of 1 (latest)

karmic kestrel
#

Hi, uh there's this problem I have with Lua Cutscenes where only one cutscene (.lua) file can work, and it has to be named cutscene.lua.

Although one cutscene is enough for an average custom celeste map, I want multiple cutscenes, and unless I figure out how to reuse a single cutscene.lua file and make it do something different with arguments, I kind of need to have multiple .lua files. ples help :))

latent seal
#

what are you using to activate the lua cutscene

#

anything you use should have a Filename field where you can input the name of the lua file (without the file extension)

#

could you share what you have in the Filename field and what your folder structure looks like where the lua files are stored in your mod

karmic kestrel
#

the cutscene.lua file is beside the everest.yaml file

#

and im using Lua Cutscene [LuaCutscenes] to activate it

kind zephyr
#

i advise not putting stuff directly in the root and rather putting the cutscene in Assets/eprimee184/YourMod/cutscene.lua

#

this is to prevent asset conflicts

#

send the cutscene file

karmic kestrel
#

a simple choice dialog

karmic kestrel
latent seal
#

you'll need to change the Filename field in the trigger to reflect the new location

#

if your folder structure looks like:
Assets/eprimee184/mod/cutscene.lua
Then the Filename field would read:
Assets/eprimee184/mod/cutscene

karmic kestrel
latent seal
#

correct

#

the root of your mod folder

#

you also don't need to call it cutscene.lua, as long as you change the name in the Filename field. this is how you can have multiple lua files, since each trigger will call a different file

karmic kestrel
#

so something like this?
Assets/eprimee184workspace/NotSoForsakenAnymore/cutscene

(NotSoForsakenAnymore is the name of the mod, eprimee184workspace is my other name)

wanton cloak
#

You’ll also need to restart your game

karmic kestrel
#

sorry if I'm being demanding here, but can you guys send like a video of just showcasing how to use lua cutscenes with proper folder structuring and location? I already know a fair bit of the syntax (I got 1 cutscene to work, which was the one directly from the root next to everest.yaml), I just don't know what I'm doing wrong with the file locations and filename field

#

I'll come back to this tomorrow, I have to go (good night guys!)

wanton cloak
#

The best I can give you is that I've got the lua file at
.../Mods/NoRestForTheWicked/Assets/AnEnormousSmileyFace/NoRestForTheWicked/intro_approach.lua

My Filename field looks like
Assets/AnEnormousSmileyFace/NoRestForTheWicked/intro_approach

karmic kestrel
#

hmmm now the filepath Assets/eprimee184workspace/NotSoForsakenAnymore/cutscene works, but I still cant make multiple as they just wont work, I tried the same filepath with just the different file (.../NotSoForsakenAnymore/cutscene1) but no luck. (cutscene1 has the same script as the original cutscene, so I'm sure it just doesn't work somehow.)

kind zephyr
#

what if you restart chapter

karmic kestrel
kind zephyr
#

so you have cutscene.lua and cutscene1.lua?

karmic kestrel
karmic kestrel
#

it seems to only work for cutscene.lua and not any other names (even if I rename the original file to something different)

kind zephyr
#

i meant to say restart the game

#

i didn't even realize

#

@karmic kestrel

latent seal
#

can you send a screenshot of both triggers (the one that works and the one that doesn't)

kind zephyr
#

it may just be live update

karmic kestrel
#

cutscene works, but cutscene1 doesnt

#

first one works (cutscene) but second doesn't (cutscene1)

kind zephyr
#

did you restart the game like i mentioned

karmic kestrel
kind zephyr
#

live update moment

karmic kestrel
#

thanks for the help

#
  • guys
#

guess I'll close this now