@info-creaticode also I have found data saving blocks output error 500 in the console when I try to use them
Tyller_
@Tyller_
I am a young person who likes to code. I can understand code really well and prefer block based over typing because I can see everything available to me, it's faster to make, and seeing what stuff like if statements hold's is more clear in block based. I used to code on code.org but when I found CreatiCode I switched because it has much more stuff, doesn't run on an outdated version of js, and allows me to not have to process everything in a single line where nothing can run at the same time.
Best posts made by Tyller_
-
RE: Cloud Blocks dont work
-
RE: Cloud Blocks dont work
@info-creaticode when I made the new project it worked at first, but after about 3 or 4 times it just froze, even past refreshes, this is the same with my main project, and it never has let me make another world even after days https://play.creaticode.com/projects/66c4b48b244aac89fd7cabbb
-
Cloud Blocks dont work
I have noticed my project that uses Cloud blocks no longer works, I prefer using them, but I will migrate it all to the Multiplayer blocks if Cloud blocks are going to be removed
-
ChatGPT responds in chinese
ChatGPT is responding in Chinese, I have tested this in multiple projects https://play.creaticode.com/projects/66c8d5b9fc1061dacb9fafbe
-
Fast Sync Variables Lib
I have made a project that uses the multiplayer blocks to sync any amount of (positive whole) numbers tied to labels pretty fast.
It’s like a library (coding libraries are files that you import into a project containing pre-programmed general purpose functions to make coding easier), you drag two custom blocks that don’t take up too much space into any sprite where you need to use it.
You can add any number of labels that will be across all clients in the sprite you backpack.
Everything you need to touch is in the upper left corner of the workspace.I plan on making more projects that act as libraries, provide any feedback in replies! (if somebody wants to understand what it doing I can add comments to the project and explain in replies, but you would only need them if you want to understand how it works, you don’t need comments if you just wanna use it)
https://play.creaticode.com/projects/67320febbf68856fe984969b
“Did you mean for it to say “Lib”?” - Catty
”Yes, lib is the standard abbreviation for library across all programming languages” - Tyller -
RE: Halo ODST
@011830-0a42ef84 the tutorials already available should be able to help you enough, they should be easy to find
-
Typing in editor is slow on iPad/mobile
I will have to wait until I can use my phone to show proof, but when typing anywhere on the main CreatiCode website (play.creaticode.com) it is laggy, in that it is slow to type and when I type it delays, like I type an entire sentence into instructions or notes & credits (or typing in a note/block) it takes a long time to type, and it shows the keys I press being pressed over time, I can show a video but when I actually press the key and when it types has a delay, and the faster I type the longer the offset is
TLDR: typing on an iPad on main website has a lag with even the keyboard and it isn’t here on the forums
I have two videos, one of in the editor and another of on the forums to show that it isn’t just me being very slow at typing, it’s quite annoying as I can type “Hello this is a test” in ~4 seconds at most but with the lag it takes ~15-20 seconds to type it all
I am unable to upload the videos right now due to when I try to upload a video to forums it says I do not have enough privilege for this action, I will attempt to upload to YouTube soon and reply/edit to add the links
-
RE: How do I convert a string to a list
@jeffreyrb03-gmail there’s a set list to split of text with splitter block, it’s right above the reporter blocks in the list section
-
Current error with accessing the website
Currently you are inable to access the website, the developer console shows a bunch of error code 500s
-
RE: Importing glitch
@s9205307-810c679a I’ve seen that, for some reason they still function as whatever they were but they show as that
Latest posts made by Tyller_
-
Something in this script is crashing
I have the script and SOMETHING in the for loop is crashing, I tested wtih just dragging out the for loop and it doesnt crash, the error it logs is
scratch-gui.4249d868093d19d7e7b7.js:1750 Uncaught TypeError: o.toLowerCase is not a function at Scratch3OperatorsBlocks.value (scratch-gui.4249d868093d19d7e7b7.js:1750:2355893) at scratch-gui.4249d868093d19d7e7b7.js:1728:78991 at e.value (scratch-gui.4249d868093d19d7e7b7.js:1750:673208) at e.value (scratch-gui.4249d868093d19d7e7b7.js:1750:668735) at m.value (scratch-gui.4249d868093d19d7e7b7.js:1430:182027) at scratch-gui.4249d868093d19d7e7b7.js:1430:191377 at o (scratch-gui.4249d868093d19d7e7b7.js:1430:190732)
Edit: I realized I did have lowercase blocks in there, which I have removed and it did work (still dont know hwo they caused it, I removed htem becuase I realized I was broadcsating the world name which when I set the world name the first time I have it lowercased) but now the isuse is it seems to just not fetch from the sheets doc? error is now
scratch-playground.050a4bba48f4da8d0101.js:55 GET https://web-agw.creaticode.com/api/block/v1/speech/google/sheet?spreadsheetId=1nzHTgYnCk9AkKvOJFAnnWzQgcFl2-zg4aMq2G6cdIk0&sheet=Messages&range=A1:Z100 500 (Internal Server Error)
|Edit 2: Okay I have acutally checked the list and that error seems not to mean anything, but I have now found it fills in blank columns and rows, so I can’t just be lazy and say from column A to Z and down a bunch of rows (instead I gotta do column A to whatever and a bunch of rows, it used to just limit filling the table to wherevever there was data and not fill past that I’m pretty sure)
-
RE: WARNING ABOUT STORING SENSITIVE DATA IN PROJECTS
@jeffreyrb03-gmail sure, though I can mainly help with debugging as I know general node js, I mainly know how to make discord bots but have dabbled in the sheets api, you need to make a google project (I don’t remember the url) and to get a service worker to interact, though I’d assume if they have a sheets thing it would be in the extensions add on section
-
RE: WARNING ABOUT STORING SENSITIVE DATA IN PROJECTS
@jeffreyrb03-gmail I’d assume the rate limit would be per client, and when creaticode gets popular there would likely be some people using a forever loop read from a google sheet in regular projects, and to brute force you’d have to do that (since the delay on sending and stuff would most likely be on the server side) even if somebody dove into the scripts to reverse engineer it. PLus my reason for making it in creaticode is because its meant to be for everyone here to have a chatroom instead of having to use forums, and I don’t want to just make a standard chatroom app (plus then I would have to do stuff like make sign in logic or use google oauth, and it would be hosted behind my ngrok url). I very much plan on eventually sharing the project so other people can (attempt) to learn from it or use it, though I want to make some improvements before making a version where I remove any references to the sheets url
-
RE: WARNING ABOUT STORING SENSITIVE DATA IN PROJECTS
@jeffreyrb03-gmail good point, but if I use apps scripts then I can write javascript for whenever a cell is edited, then just parse that data as a packet and show a response for ~2 seconds (so the service bot can get it and I can have a wait block to allow the apps script to register the data) and then the client deletes the response to show it received it (I can even add logs to try and watch for abuse) this method with even just 10 sheets (if google sheets doesn’t lag from too many sheets I could use 30 or 50) would make it so it’s hard to try and mass scr\ape [I couldn’t post because it thought I had a bad word in my post and I had to use the find tool to find it’s flagging the middle of this word] it through the bot (especially because there’s a rate limit, I did a brute force test of the rate limit and it seems every about maybe 20 calls of a read/write sheet it locks you out for about 5 seconds, something around that) so it would be near impossible
-
RE: WARNING ABOUT STORING SENSITIVE DATA IN PROJECTS
@jeffreyrb03-gmail I have considered this and ngl all you’ve said is right. I have thought about how since the blocks are just xml and stuff and still the client needs access. I have considered making stuff more secure and the issue is indeed that hypothetically, if somebody really REALLY REALLY wanted to they could find out. Personally I haven’t checked inspect element yet but it defo is possible. Though I have some ideas for a secure way, but they require you to have a 24/7 server to do stuff (I do have this with my laptop that I use as a server which I may try implementing into my chat rooms).
(btw if you’re reading this and want to know my method, it’d basically be I only give the service worker account that creaticode uses for interacting with sheets access, this would be so that the only way to check for new data in the sheet is using the read sheet block. Then I’d have my laptop constantly scan that sheet for changes and any changes would get a response in like 1-3 seconds and then wipe the response to finish, this would allow the client to send a message and see that it’s been uploaded, or request the message history for a world and the server sends, any messages sent while the person is in the server would use my current cloud block packet system. edit/ps: Ik this technically wouldn’t be secure cus somebody could hypothetically scan all the various sheets, I’d have a bunch of sheets to receive data in so you can’t read one sheet a bunch and have to read ~10 every second to intercept data Edit 2: I have found I can use apps scripts in the google sheet to do this, and it may be the only way I can actually since there seems to be nothing in the external api to run stuff exactly when a sheet updates)
-
Sheets API Not Working
I have changed to hte sheets api for my chat rooms project, and it seems that I am unable to read or write to the sheet, I have verified the user and sheet names and it seems it was working but has stopped working for reading at all, it just immediately skips (though now that I Think about it it may be the cloud blocks because the create random world i have to fix a minor bug, is just immediately skipped)
After further testing i have found that intially they work, but after they reach it seems that it reaches this and freeezes, then it goes on and after this block runs then the above bug (null returning) happens, but before it runs it will return the proper output for the referenced cell
TLDR: It seems that either just reading, attempting to read a lot of data, or reading a lot of data (the actual table currently has 3 columns by 16 rows so I very much hope it isn’t reading too much data) cuauses cloud blocks to lock out
-
RE: Chat Rooms Project
@tyller_ This has been updated to use the google sheets blocks! This means it will have no limit to how many worlds/messages/users there can be (each user is logged to show usernames when loading a world and to allow banning)
The sheets url is not shared (I can make a separate project without the url referenced for sharing) so all messages/worlds are secure, I will attempt to reimplement moderation commands shortly after I send this post
I can add “themes” (other styles of the chat screen) if requested, these would be stuff like text box based messages (all messages are shown in a large text box and you have a text bar to type). The purpose of these would be if enough people don’t like the default CreatiCode chat style
-
RE: How do I make a 2d game that's multiplayer?
@jd131111 This one is when you add a clone to the game with the add sprite to game as shape block, it will run the “when added to game” hat block as that clone which is then spawned on all clients, also it makes it so whenever a new player connects to the game, it will spawn that clone for them and run the “when added to game” on that client example below
(In this example assume that you set in the prepare for green flag hat block to create/join the same world, so everybody is connected to the same world)On green flag click /
Create clone of myself with id (username)When I start as clone /
Add this sprite to game as [rectangle]When added to game /
log to console (clone id)when the first player (lets say their username is “playerone”) joins, it will log on their client “playerone”
When the second player joins (lets call them “playertwo”) it will log in their console (playertwo’s console) the message “playerone” because the clone that the first player added to the game gets spawned on this players client and runs the when added to game block,the then both clients (playerone and playertwo) will log “playertwo” because playertwo’s clone is now added to the game (edit: and spawned on the other players client), I can make a demo project if this is too confusing (edit: you repeat this logic for all players, and a side note, the clones positions are synced when they spawn in, but to keep their positions in sync you have to use the method shown in the 2 player space shooter example by CreatiCode, where you rely on the sync set speed to move them) -
RE: typo
@jeffreyrb03-gmail Something to add on since I don’t want to make a new post to mention this, there’s also a type in the synchronously set direction multiplayer block
-
RE: How do I make a 2d game that's multiplayer?
@jd131111 https://play.creaticode.com/projects/6613fb5b564fc287b0e8cfc2
is the link, I have a project if you want variables synced across all clients (my project is formatted like an api where you just use custom blocks that you drag into any sprite in your project, and those are just used to send formatted broadcasts to interact with it)