#Chess (multiplayer)
1 messages · Page 1 of 1 (latest)
we still need a game menu, and other stuff like local customization
Gonna have different style sets?
yes
I love it
Can't wait lol
WOAH. How did you manage to play the move instantly without a slight flickering? I’ve already made a few chess computers for MCPE, but I’ve never seen that happen before in any of my experiments.
You won’t believe what he did it’s actually genius
It’s not that tho, that would still have the flicker
bruh
I see this flickering
look on phone buttons on top to pause chat emote
he could use e.g. form values and then use them in HUD
Action forms I presume?
i used actionforms and moved everything to jsonUI
It is multiple forms right?
yeah 3, black side, white side and spectator
So all the logic for moving the pieces is in the JSON UI?
the entire chess logic and movements come from the ScriptAPI, and the rendering is done using JSONUI
All the pieces are buttons, and places to move to are form buttons right?
all the pieces are just HUD images, but the places to move and movements are form.buttons
So are you adding/removing buttons? If yes then how are you opening a new form each time?
it will first render the board and both players will see the piece when moved
then when interacting with it will first update the form then make the move
So it is opening a new form each time an interaction happens?
yeah
And you removed the animations and stuff with JSON UI so it looks instant?
since i also added "suggested moves"
yeah
So it uses modifications?
these server_forms use bindings
So if I had a different form where the UI relied on the name being "Stats", both addons could work fine?
yes
Ah cool
same things for the actionform
Amazing
i still didn't get it how are you able to change the view after second player plays? Are you closing a form in some kind of interval to refresh UI?
^^^^^^^^^
the entire GUI is in jsonUI so anything you see on the screen has nothing to do with Script API other than what it sends to update the HUD
ya, but how do you update that GUI stuff? let say you send a actionform, than other players playes his move how do you update that move to show for the first player?
oh, so you are using HUD to update a board?
yes
thank you
so somehting like title or what?
exactly
i actually lost hair in rl bc of the stress JsonUI caused me
I have learned like just 5% of it and i am done
💀
at least some kind of conditional rendering i know
you are the true hero here lol
no but like how do you trigger json ui to change the board
when the other player moves their piece
does that close the previous form?
cuz it didnt do that when i tried from what i remember
had to interact with it to close it and open a new one
it doesnt close the form made with scriptapi
then how do you update the form
?
wdym
do you like send a title or a chat message or something and use that to conditionally render a different image or something
orrr what
im confused
yeah
he is using title to update a HUD overlay and buts are just a action forms
its really coool
yea i get it now
thought it was something like this but hoped they found a different way
it took me 5 sleepless nights so now my brain is not capable of handling a normal conversation
same
ya lol
I think it’s worth designing the Minecraft chess style. You can make not just pixel figures, you can make them in the form of mobs, for example, black: king - evoker, rook - vindicator, horse - rаvager, bishop - pillager. But still, what you did is truly brilliant, it especially seems impossible for those who do not understand scripts (like me)
this is still a work in progress
but i would prefer replicating the original game so that people who dont play minecraft dont get confused
looks beatiful!
Now, A.I implementation was made possible thanks to @silk pelican , who generously contributed to the project out of love for it
I'll probably post it tomorrow since i havent fully converted to his Chess engine
Technically not a live form
oh interesting
thx for tryn to explain it
