Giter VIP home page Giter VIP logo

Comments (3)

Rice1367 avatar Rice1367 commented on September 16, 2024 1

Well, to end this on a happy ending, I had a silly idea.
Instead of making a new camera (just because I'm bad at hscript), I'll just move all the characters and stage to camStageUnderlay (dumb idea, but at least it worked)
It didn't solve my doubt but it did solve my problem

from fnf-troll-engine.

riconuts avatar riconuts commented on September 16, 2024

Ok, just so you know, Psych Lua scripts aren't really supported (you're meant to use hscript) and it's just a thing we left on the engine out of generosity, so anything that uses psych's functions that were added past v0.5.2h will fail, that includes shaders, similar thing with the hscript implementation, this engine has it's own so the setVar function here isn't defined and will cause the script to stop.
(The equivalent of 'setVar()' here would be 'script.set()' so make sure to replace that function like this)

script.set('camBehind', camBehind);

Besides that I can't help you much!!! I don't any knowledge or access to the shader code or your any script of your mod!!!
If what you sent here is the full script then the only other issue I see is that 'redHole' (on the onCreate function) isn't defined anywhere which would also causes an error. if you have a shader called redHole on your mod folder then you would have to change it that line to

game.camBehind.setFilter([new ShaderFilter(newShader('redHole'))]);

Oh and the stage underlay camera is used for the stage darkness option, it has it's own camera so that you don't accidentally add anything on top of it.

from fnf-troll-engine.

Rice1367 avatar Rice1367 commented on September 16, 2024

Oh, thanks so much for the clarification and I'm sorry if I sounded a little stupid. I tried to recreate the script in a somewhat simpler and faster way but I forgot to add the definition of redHole that I had in the original. But other than that, that's all I used, just a few more shaders (the reason I wanted to simplify it), but the same problem occurs even without them. Thanks again for the clarifications and help, although unfortunately I couldn't solve it, but I'll see if I can solve it by learning something more about hscript, I don't want to be so annoying by asking about it a lot
In any case, I thank you for your attention and I wish you luck in this and other projects, good day or night

from fnf-troll-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.