#(mura5072) how do I get something from the json list?
35 messages · Page 1 of 1 (latest)
(mura5072) how do I get something from the json list?
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.
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!
there's a link
I'm using an engine to create weapon reloading animations that converts this to json.
Content of JSON Paste #129240: guntest.json... pasted 2024/12/22 10:28:23 UTC-08:00, Paste length: 24233 characters across 1179 lines, Content: { "project_settings": {
Much thank, can you provide the debug with reading the file and narrating just <[datafile]>
that's not even the point, I tried to create a test json with simple data, as a result, even there it can't take information.
You tried to read that json and you said it does not return anything
So please provide a debug so I can check what's happening
Because reading the data should work
this one?:
- define datafile <util.parse_yaml[<entry[filedata].data>]>
- narrate <[datafile].get[guns].get[guntest].get[name]>
This script with narrating <[datafile]>
- define file data/guns/test.json
- ~fileread path:<[file]> save:filedata
- define datafile <util.parse_yaml[<entry[filedata].data>]>
!disablereplies
+++ Info disablereplies: Please disable reply-pings when responding to helpers. This relates to Rule #3: https://denizenscript.com/discord_rules#rule3
https://denizenscript.com/discimg/disable_replies.png
!debug @weary cloud
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!
type: command
name: mount_entity
description: Загружает сущность из JSON из файла и ставит её пассажиром на голову игрока.
usage: /mount_entity
script:
- define file data/guns/test.json
- ~fileread path:<[file]> save:filedata
- define datafile <util.parse_yaml[<entry[filedata].data>]>
- narrate <[datafile].get[guns].get[guntest].get[name]>```
Please run that
[00:37:03 INFO]: ERROR in script 'entity_mount_from_file' in queue 'ENTITY_MOUNT_FROM_FILE_210955_ExecutiveMap' while executing command 'NARRATE' in file '\scripts\boost.dsc' on line '10' with player 'Murgalag'!
Error Message: Tag <[datafile].get[guns].get[guntest].get[name]> is invalid! ... Enable debug on the script for more information.
[00:37:03 INFO]: Additional Error Info: Unfilled or unrecognized sub-tag(s) 'get[guns].get[guntest].get[name]' for tag <[datafile].get[guns].get[guntest].get[name]>!
[00:37:03 INFO]: Additional Error Info: The returned value from initial tag fragment '[datafile]' was: 'map@[null = binary@7b 0d 0a 20 20 20 20 22 67 75 6e 73 22 3a 20 7b 0d 0a 20 20 20 20 20 20 22 67 75 6e 74 65 73 74 22 3a 20 7b 0d 0a 20 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 20 22 54 65 73 74 20 47 75 6e 22
2c 0d 0a 20 20 20 20 20 20 20 20 22 64 61 6d 61 67 65 22 3a 20 35 30 2c 0d 0a 20 20 20 20 20 20 20 20 22 72 61 6e 67 65 22 3a 20 31 30 2c 0d 0a 20 20 20 20 20 20 20 20 22 61 6d 6d 6f 5f 74 79 70 65 22 3a 20 22 62 75 6c 6c 65 74 73 22 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 20 20 7d
0d 0a 20 20 ]'.
[00:37:03 INFO]: Additional Error Info: Almost matched but failed (possibly bad input?): get```
Role applied.
Thread created: #1320460925022765197
whatd bro do im dumb
!cracks
Cracked users or servers will not receive support on this Discord.
"Cracked" means any server that is in 'offline' mode (ie, no login authentication) (for Bungee networks, this is whether the proxy is offline, not the Spigot sub-servers).
A server that does not authenticate logins through Mojang is a server that actively supports piracy. Software piracy is illegal, as is supporting other people involved in software piracy.
In addition to the legal concerns, there are fundamental issues with how cracked servers work internally that lead to significant security risks and as well issues that in particular affect the functioning of Citizens.
Due to these problems, we cannot and will not provide support to cracked servers or those involved in software piracy - except for support with switching to a legitimate server.
Refer to https://wiki.citizensnpcs.co/Cracks for more detailed information.
If you server is configured as cracked by mistake, or you did not realize the significance of that choice and would like to switch to a legitimate & legal server, contact a helper in #dns-role-lifting and we can restore your supportable status.
@violet forge cracked @pulsar violet running a minecraft server for cracked players 'plateousmp'
Role applied.
Thread created: #1320490185313615958