#(ikuria) 1.21 world events have problems with IF inside

1 messages · Page 1 of 1 (latest)

oak edge
#

here one example, but i got the same problem with other scripts...
this is working (from world event, running script) https://paste.denizenscript.com/View/126886
this is not working on the "if" part: https://paste.denizenscript.com/View/126887

tepid portalBOT
#

(ikuria) 1.21 world events have problems with IF inside

tepid portalBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

long gulch
#

Can you provide a debug of it not working?

#

!debug

viral pebbleBOT
# long gulch !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

maiden pendant
#

@oak edge

oak edge
#

no, but i changed nothing, only way to fix it is to change it into a task

viral pebbleBOT
# maiden pendant !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

maiden pendant
#

Something is wrong if a world event isn't firing.

#

Please provide a log.

oak edge
#

the world event is firing

#

but i got an error on the position where every if is in

maiden pendant
#

We asked to provide a debug.

oak edge
#

okay, give me some seconds, i revert my editing...

#

oO strange, at the moment i cant reproduce it - i would close this thread, if i get it back i will post logs etc., sry for disturbing

ancient veldtBOT
#
Resolved

Thread closed as resolved.

oak edge
#
on system time secondly every:3 chance:100:
        - define location <location[-12,76,-57,world]>
        # - announce to_ops <[location].material.name>
        - if !<[location].chunk.is_loaded>:
            # - announce to_ops "script stops cause wrong block on location"
            - stop
        - if <[location].material.name> != black_concrete:
            - stop
ancient veldtBOT
#
Thread Reopened

Thread was manually reopened by @oak edge.

oak edge
#

the thing is, there never is a black_concrete block at this position

#

but the script running through

foggy sail
#

Also - define location <location[-12,76,-57,world]> should be a note

oak edge
#

performance-wise? or why to have that location with coords in script?

#

so I'll try it with google translator now 😄
after the material check there is more code, in the world event it goes through the chunk check and also the material check, although black_concrete was never there.
so something is wrong there, the script always worked with 1.20.x.

#

but as I said, we have had general difficulties with IFs in world events since the update

foggy sail
#

!guide don't script raw locations

foggy sail
#

it's hard to identify the issue

oak edge
#

there is no error message, so how to show you the problem?

#

maybe there is a diffrence between the priority in world events?

#

diffrence between the old version

#

but its only with the IFs, sometimes they didnt work

shut warren
# oak edge but the script running through

the script is doing what you asked it to do

11:38:51 Filled tag <[location].material.name> with 'air'. 
11:38:51 Comparing if air not EQUALS black_concrete ... true 
11:38:51 If command passed, running block. 
11:38:51 +- Queue 'EASTER_SHOVEL_STORAGE_55132514_ValidLarge' Executing: (line 37) stop ---------+ 
11:38:51 +> Executing 'STOP':  
oak edge
#

yep, i must check why this is not working everytime

shut warren
maiden pendant
viral pebbleBOT
# maiden pendant !logcheck https://paste.denizenscript.com/View/126909
Server Version

Paper version 1.21.1-103-dd6d184 (MC: 1.21.1)

Plugin Version(s)

Citizens: 2.0.35-SNAPSHOT (build 3571) -- (Outdated build, behind by 5)
Denizen: 1.3.1-SNAPSHOT (build 7067-DEV) -- (Current build :white_check_mark:)
Depenizen: 2.1.1 (build 864) -- (Current build :white_check_mark:)
dDiscordBot: 0.7 (build 303) -- (Current build :white_check_mark:)

Checked For

@maiden pendant

UUID Version

0 (:triangular_flag_on_post: Hacked or Invalid ID)

Java Version

21.0.3 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard: 7.0.11-beta1+a801a9d, ProtocolLib: 5.3.0-SNAPSHOT-726

Possibly Relevant Plugin(s)

ViaVersion: 5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.
HeadDatabase: 4.20.2 - HeadDatabase has been known to cause issues with skins.
CMI: 9.7.6.1 - CMI tends to mess with a large variety of server features and often gets in the way of issue debugging.
Multiverse-Core: 4.3.12 - Multi-world configuration plugins may affect NPCs in unexpected ways.
FastAsyncWorldEdit: 2.11.2-SNAPSHOT-879;d1e2511 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.

austere timber
# shut warren do you mean it doesnt fire everytime or?

we had an World event on player joins flagged:exmaple:
after that we tried to get the if statement

  • if <location[example].contains[<player.uuid]>:
    The statement should have an output of false cause the uuid wasnt in there, but if statement went true and said its in there
    which it wasn't