Global script to change cursor and fade effect

  • #10, by afrlmeSunday, 24. May 2020, 04:25 4 years ago
    The lowercase was done on purpose, so that regardless of what the case the objects used, lower, UPPER, or MiXeD, it would still work because I was converting the name of the current object to lowercase with string.lower() function.

    For the scene change what you could do is create a value inside of the objects on each scene & inside of the string store the name of the scene you want to change to. Make sure that the value is named the same for each of the objects, then you can query the name of that value & change to that scene on mouse over.

    What wasn't working with the script? Did you check the log? Do you have log level set to "info"?

    Quick note: remove the "etc..." line from the table part of the script. also each table entry you create needs to have a comma , after it to separate them - except for the final entry.

    Imperator

    7278 Posts


  • #11, by PaupasiaSunday, 24. May 2020, 22:48 4 years ago
    I deleted etc in the first attempt with .upper, now with .lower the game takes into account the delay but the transition is not applied, just 1000 ms waiting and then the new scene appears.

    The log say:

    22:38:32.555:Failed to run string in Lua:
    22:38:32.555:String content: --[VISMODULE,id,version,chksum]

    then write all the shader script ..
    and at the end of  the shader script ..

    22:38:35.689:'Load/Save autosave' action part of action 'At beginning of scene' (data id: 1508) was not executed because scene is currently faded. 

    I think the last string is related to the fact that it overlaps the starting autosave with the script.
    I think I'll use the values, it looks better suited to a Lua noob like me grin

    Thank you so much Lee for your effort, you're always kind.

    P.S. Well I'd have another crazy idea, but it includes Lua too. grin

    Forum Fan

    165 Posts

  • #12, by afrlmeMonday, 25. May 2020, 11:43 4 years ago
    I think some of the fade effects don't work properly?

    Is the shader toolkit script up to date?

    Imperator

    7278 Posts

  • #13, by PaupasiaMonday, 25. May 2020, 14:26 4 years ago
    Yeah, I think the same. 
    Transitions are unpredictable, perhaps conflicting with the actions inserted into the various scenes. smile
    Forgot to mention,  I put the script for transitions before the shader toolkit, maybe that's the problem. 

    However, the script is version 0.95 downloaded from the Wiki. I think it's the latest version.

    Forum Fan

    165 Posts

  • #14, by afrlmeMonday, 25. May 2020, 14:40 4 years ago
    Wiki is most likely not the latest version. Latest version can be found here.

    Imperator

    7278 Posts

  • #15, by PaupasiaMonday, 25. May 2020, 14:52 4 years ago
    I've seen right now, version 0.96. 

    Thanks Lee, even if it has nothing to do with transitions it's still important for shaders.
    I'm going to use lot of shaders eh eh... 

    Forum Fan

    165 Posts