#(Tema159) Invalid event

88 messages · Page 1 of 1 (latest)

lime arch
#

Denizen writes to the console that the "special_data:[hit].block_material>" event is invalid. What then is not invalid?

blissful zealotBOT
#

(Tema159) Invalid event

blissful zealotBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

rough snow
#

Paste your entire script

#

!paste

median pagodaBOT
ashen stirrup
#

yes, post full script. i'll also add that event lines do NOT accept tags in them, in case that's what you're trying to do

carmine marten
#

will reiterate also;

#

special_data:[hit].block_material> will never be valid

#

of course as mentioned, paste the script and debug where possible

lime arch
#

The problem with this script has already been created, and I would like to bring this script back to normal. This script allows you to add a full-fledged ball to the game.

median pagodaBOT
lime arch
lime arch
#

help?

midnight walrus
#

Well first of all

#

!g dont type raw objects

median pagodaBOT
#
Possible Confusion

Did you mean to search for common mistakes - don't type raw object notation?

midnight walrus
#

You've got some weird spacing going on, not sure how denizen will like that. Example being line 148.

#

I'm not sure how valid Line 6 is, I'd have to wait for a helper to give input.

lime arch
midnight walrus
#

Then who's script is it?

lime arch
# midnight walrus Then who's script is it?

Generally, it is a script of one server. Here is their video: https://www.youtube.com/shorts/LRnzuep6qhI
But someone somehow managed to take this script, only with errors. The script with this problem has already been left, only the problem was not analyzed due to the fact that the creator of the ticket had a hacked client. For the sake of this ball, I began to be interested in the mechanics of this plugin in order to fix all the shortcomings of the script. By writing the query "ball" in the search - you can find this ticket (there is also a video attached there)

DMC

Ссылка на сервер - https://taplink.cc/denophine.jar

  • Этим видео мы не хотели никого обидеть или оскорбить
▶ Play video
carmine marten
#

oh wow

#

this script actually uses decent looking physics?

lime arch
#

The original developer would have simply ignored me because this is a script they wrote exclusively for their server.

carmine marten
#

how did you obtain it otherwise?

#

or were they willing to share it without support?

lime arch
#

The script was attached to the ticket of a person with the nickname "UkraineDream". To be honest, I don't know where the person got this script.

carmine marten
#

ctrl+f these lines i suggest and replace them with the suggestions i make:

odd summitBOT
carmine marten
#

thanks levelsbot

#

replace: - if <player.item_in_hand.material> == m@feather:
with: - if <player.item_in_hand> matches feather:

#

repalce: - if <player.has_flag[balled].not> && <context.entity.location.below[0.05].material> != m@air && <server.has_flag[oneplayer].not>: - flag <player> balled
with: - if !<player.has_flag[balled]> && <context.entity.location.below[0.05]> !matches air && !<server.has_flag[oneplayer]>: - flag <player> balled

#

all of these prefixed with m@:, just remove m@

lime arch
#

Oh, thanks a lot for your help. The plugin sends errors about the wrong position of the object

carmine marten
#

in a metaphorical example, it's like you spilled salt in your pile of pepper, and separating the salt and pepper is a difficult and meaningless task

#

replace if <[ball].location.above[0.1].material> == m@air
with: if <[ball].location.above[0.1]> !matches air

#

its also strange you have tags like armor_pose_map with so many other weird errors, that's not exactly old i dont think

pseudo lava
carmine marten
#

heck, you're right on that one, my bad

#

replace if <[ball].location.above[0.1].material> == m@air
with: if <[ball].location.above[0.1]> matches air

#

im hoping i can find time to debug this script later tonight, because it looks really cool and id like to see it work well

#

ill have more modifications for you later if i find time

carmine marten
#

!debug

median pagodaBOT
# carmine marten !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!

lime arch
cloud leaf
#

We are not here to write scripts for you; that's on you.
As others have mentioned already, we can help you with specific questions, but you are going to have to make an effort in to learning Denizen. A good place to start would be the Denizen guide.

#

!guide

median pagodaBOT
lime arch
# cloud leaf We are not here to write scripts for you; that's on you. As others have mentione...
[10:21:58 INFO]:  ERROR in script 'updateball' in queue 'UPDATEBALL_92_StartedPatrick' while executing command 'PLAYEFFECT' in file '\scripts\ball.dsc' on line '379'!
                 Error Message: Tag <[hit].block_material> is invalid! ... Enable debug on the script for more information.
[10:21:58 INFO]: Additional Error Info: Unfilled or unrecognized sub-tag(s) 'block_material' for tag <[hit].block_material>!
[10:21:58 INFO]: Additional Error Info: The returned value from initial tag fragment '[hit]' was: 'l@3422,162,-732,-90,0,XmineRP'.
[10:21:58 INFO]: Additional Error Info: Woah! An exception has been called with this command!
[10:21:58 INFO]: Additional Error Info: Internal exception was thrown!```
How to fix this event?
cloud leaf
#

Posting console snipping is not helpful. If you want help us help you, then post a debug, or your latest.log file.

#

!help debug logs

median pagodaBOT
# cloud leaf !help debug logs
Bot Command Help
**Available Informational Commands:**

help shows help output
hello shows a source code link
update [project ...] shows an update link for the named project(s)
github [project ...] shows a GitHub link for the named project(s)
issues [project ...] shows an issue posting link for the named project(s)
info <name ...> shows a prewritten informational notice reply
rule [rule ...] shows the identified rule
quote [quote] shows a random quote that matches the search (if any)

**Available Utility Commands:**

logcheck <link> gathers information from a server log paste
versioncheck <version text> checks whether a project version is current
script <link> checks a linked script for basic syntax validity

**Available Meta Docs Commands:**

command [name] [usage/tags] to search commands
mechanism [name] to search mechanisms
tag [name] to search tags
objecttype [name] to search object types
event [name] to search world script events
action [name] to search NPC assignment actions
language [name] to search language docs
guide [name] to search the beginner's guide pages
search [keyword] to search all meta docs

cloud leaf
#

!debug

median pagodaBOT
# cloud leaf !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!

cloud leaf
#

!logs

median pagodaBOT
# cloud leaf !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.

glacial oar
lime arch
cloud leaf
#

It does not matter if there is 1, or 1000 error messages in there; we ask you to provide a debug so we have a better understanding of your server, your console output, which has been color coded making it easier to read.

#

@lime arch

#

Having said that, as others and myself have pointed out, you'll be asked to learn the basics of Denizen, so you can learn to code, and debug these errors yourself.

You can always make a thread if you are stuck on something, and need help/assistance; we are happy to help you, but do understand that we are in a helping capacity, and that if you'd rather outsource your troubleshooting because you'd rather not learn Denizen, you could consider hiring someone via #1023545298640982056

rough snow
median pagodaBOT
pseudo lava
#

@hot moss cracked 693170449689083955

hot mossBOT
crude grottoBOT
#
Marked Invalid

Thread closed as invalid.

crude grottoBOT
#
Thread Reopened

Thread was manually reopened by @turbid jungle.

rough snow
#

@ashen stirrup ?

ashen stirrup
rough snow
#

Alright

#

@carmine marten closa dis!