Feature request: eval-like block
-
@jeffreyrb03-gmail can I see your code that should be working perfectly fine?
@tyller_ It’s in YOUniverse3D, in the sprite “Your avatar handler”. After extensive testing, trying to get a straw hat and glasses for some reason onto the character just wont work.

I skip the first item because I have already added it (the add avatar as player), and then I will obtain information from a table about each avatar item, and then use that information to put that item onto the player, like making the hat stay on his head but it will add, just not stay.Also, btw, I changed the \n thingie in my parser (in the Your player sprite) to just # because it’s easier

so instead I turned blackwalterwhite#straw-hat#star-glasses into a list with # being the splitter.right now, they just fell below the world and I have no idea why.

-
@jeffreyrb03-gmail can I see your code that should be working perfectly fine?
@tyller_ but I know for a fact hats work! When I click this code directly:

I get this:

I’m not worried about its positioning -
@jeffreyrb03-gmail can I see your code that should be working perfectly fine?
@tyller_ Is it possibly that two items are not allowed to be attached to the Head of an avatar character simultaneously, so they just clash and don’t work?
-
@tyller_ Is it possibly that two items are not allowed to be attached to the Head of an avatar character simultaneously, so they just clash and don’t work?
@jeffreyrb03-gmail I also need to get all of this avatar stuff figured out before I can even start to implement multiplayer
-
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

-
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

@tyller_ WHAT?!!! So instead of putting Head I had to put head!!!
-
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

@tyller_ That is really clever! Thanks bro! I would’ve never thought to inspect the XML that makes up the blocks
-
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

@tyller_ So when u move around with WASD and jump and stuff, the hat stays on his head?
-
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

@tyller_ I’ve replaced all the Heads with head

time to see if it works! -
@jeffreyrb03-gmail found it, I checked by copying the block and pasting it into notepad (right click then copy, it copies as text) and when I looked at the field for the body part (the block is
<block xmlns="http://www.w3.org/1999/xhtml" type="d3action_d3_attachtobone" colour="#4CAD95ff" id="G=I2:6{4uCuFh~]/t$g}" x="-149.22222222222223" y="658"><value name="BODYPART"><shadow type="d3action_menu_BODYPARTLIST" colour="#4CAD95ff" id="6wbYqs?LX.e:G;C}ph{$"><field name="BODYPARTLIST">neck</field></shadow></value><value name="PARENTNAME"><shadow type="text" colour="#FFFFFFff" id="rFcqk_%u)R%d*H^j#=O*"><field name="TEXT">player</field></shadow></value><value name="SPRITE"><shadow type="d3action_menu_ALLSPRITES" colour="#4CAD95ff" id="h.#6ycyU-?,K_5[P(v1|"><field name="ALLSPRITES">Your player</field></shadow></value><value name="HEIGHT"><shadow type="text" colour="#FFFFFFff" id="eK(osw5sKBwE7skBGH%}"><field name="TEXT">70</field></shadow><block type="data_variable" colour="#FF8C1Aff" id="9-n@%;O|N~@fIc0T%SYU"><field name="VARIABLE" id="YefJTEi/TZB[O43Serh)" variabletype="">CURRENT: TargetHeight</field></block></value></block>
is labeled as neck with lowercase when I tried switching it to neck, I set the variable to “head” and it worked, you have to use lowercase for the bodypart

@tyller_ All I need to do is rotate and resize the glasses, and it’s perfect!

Thank you so much -
It feels like this will not be used by many people. How about we wait until we get at least 10 upvotes for this feature before adding it?
@info-creaticode Nevermind, you’re right we don’t need the block anymore, I fixed the issue that caused me to want to suggest this
-
@jeffreyrb03-gmail well the block would still be useful, only issue is making the text actually work
-
@jeffreyrb03-gmail well the block would still be useful, only issue is making the text actually work
@tyller_ oh yeah true mb
-
@jeffreyrb03-gmail well the block would still be useful, only issue is making the text actually work
@tyller_ but if the eval block were introduced, wouldn’t that make your CreatiScript project unnessescary? Because the purpose of your project I think is to run CreatiCode blocks from text, which is exactly what I’m suggesting, since someone could just make a question (in sensing) and then run blocks from text (answer), or make it better with widgets
-
@jeffreyrb03-gmail well the block would still be useful, only issue is making the text actually work
-
@jeffreyrb03-gmail well the block would still be useful, only issue is making the text actually work
@tyller_ , to add onto my previous comment, that’s sorta like if Scratch introduced a text engine in 4.0, that’d make it so all the hard work people (including me) put into making detailed text engines, like with the 100+ costumes where you just store every single letter in lowercase and capital and numbers and symbols.
You are right, but CreatiCode should probably just not add this block because if too many blocks that make CreatiCode too convienient are added, although making complicated things will be easier, it will take a bit of the fun and creativity and effort away from making simpler things and solving problems. Now I’m not saying they should just not add new things to make it easier and faster to use, but this sorta thing might render all your hard work useless, and will take the fun out of solving hard problems like this one where I had no idea why my code wouldn’t work (lol that was hillarious “head” is case-sensitive).
-
@tyller_
Hey Tyler. Off topic, but does your chat room have a reporting system, or do we need to moderate at all times?@catty I have a thing where there’s moderation commands, I’m going to add a report system where you can report a user and it has all ppl with moderation perms get a notification pop up on their screen whenever they open the project, currently I just have commands where moderators (I gotta set mods based off whatever username block has their name as) can flag all messages with a keyword in it, then view all flagged messages, and delete either all flagged or a certain one, I am actively working on moderation related stuff with it, but all messages are logged in a database for loading them and for moderation
-
@catty I have a thing where there’s moderation commands, I’m going to add a report system where you can report a user and it has all ppl with moderation perms get a notification pop up on their screen whenever they open the project, currently I just have commands where moderators (I gotta set mods based off whatever username block has their name as) can flag all messages with a keyword in it, then view all flagged messages, and delete either all flagged or a certain one, I am actively working on moderation related stuff with it, but all messages are logged in a database for loading them and for moderation
@tyller_ Can you make the source code shared to friends? After you’re done I wanna make some modifications for you to add
-
@catty I have a thing where there’s moderation commands, I’m going to add a report system where you can report a user and it has all ppl with moderation perms get a notification pop up on their screen whenever they open the project, currently I just have commands where moderators (I gotta set mods based off whatever username block has their name as) can flag all messages with a keyword in it, then view all flagged messages, and delete either all flagged or a certain one, I am actively working on moderation related stuff with it, but all messages are logged in a database for loading them and for moderation
@tyller_ Also I have an idea for a better notification system, prolly using email blocks (don’t work right now tho) or sending it to an API that will give me a phone notification
-
@tyller_ Also I have an idea for a better notification system, prolly using email blocks (don’t work right now tho) or sending it to an API that will give me a phone notification
@jeffreyrb03-gmail
oh god pls no. biiig spam issue.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login