|
Software Software created for enhancing HeroScape |
|
Thread Tools | Search this Thread | Display Modes |
#49
|
||||
|
||||
Re: HexScape
My Google-fu wasn't up to finding such an algorithm. Where did you ever find it? Anyway, yes I came up with that exact method except:
The main advantage of this second method is that peers only have to only report once, not twice for every die roll, since they only have to commit to a secret value once per GAME, not once every ROLL. This speed increase wouldn't be very noticeable unless there was a large network latency between peers. The big disadvantage of this alternative is that shenanigans couldn't be discovered until the end of the game. A middle ground would be to require all peers to reveal every 5 minutes or so and reseed. I also created a 3rd method using the same sort of "commit then reveal" pattern. This method is computationally super-fast and doesn't require any hashes, but would require a bit more work on the implementor's part (since he/she couldn't just call the ready-made cryptographic hash function.) It would also require a bit more work to explain here, but the math really isn't all that difficult. If generating a general purpose library for others to use, it's what I'd implement, but given how fast computers are, just reporting a hash output is plenty fast enough for a one-off project! There is nothing more dangerous than sincere ignorance and conscientious stupidity. --MLK Last edited by Xorlof; June 2nd, 2014 at 11:53 PM. |
#50
|
||||
|
||||
Re: HexScape
At least, after gruesome amount of changes to the code, HexScape is working again, but this time with a new super flexible architecture, and quite more ready for multiplayer !
Back to working on the network code, it is ! With this new architecture, I'm confident I can have something up and runing in 2-3 weeks ! There probably still will be some bugs, but I'm sure a lot of people will be happy to test it ! (And now that I anounced that, I have no choice but to work hard, right ? ) @Xorlof I typed "peer to peer dice roll" on google then followed some links to find http://gamedev.stackexchange.com/que...ted-3rd-party/ This links contains quite some ideas on the subject. Google-fu is one of my forte ! as you said, I didn't searched for best efficienty, the computer now a day being what they are, but I'm impressed to see how far you thought about it. I find your second solution to be worse than the first, except perhaps in extreme cases where network resource (or lack of) is the main problem, because you would have to adress a lot new problems (amongst them the player that suddently lost its connection before sending its seed for confirmation, or just manage the resending every 5 minutes for instance...), for little gain. It depends of course how many time per minutes the game need to roll dice. I would like to read your third solution, if you have the time to write it down (perhaps by pm, I don't know it that stuff interest others 'scapers), just by plain curiosity ^_^ I like your idea to use XOR instead of ordering the seeds ! So simple and effective ! : |
#52
|
||||
|
||||
Re: HexScape
Those not interested in the techie stuff Lyrgard and I have been discussing, skip the spoiler. Really. It's something we could do via PM, but doing it in public lets others point out anything we've missed.
Spoiler Alert!
There is nothing more dangerous than sincere ignorance and conscientious stupidity. --MLK |
#53
|
||||
|
||||
Re: HexScape
I would've preferred somebody take it web-based, but I will accept any work done in this space as a triumph. My Maps: Classic; Marvel My Customs: Dr Who | Terrain | Star Wars Card Template | Repaint & Mods | Playing Card sized Cards Helmaverse | Helmaverse League International C3G Links: C3G Super Hero Draft cards | TableTop Simulator C3G Map additions | Heroscape Dice Roller |
#54
|
||||
|
||||
Re: HexScape
@Xorlof : thanks for the details on your third solution. I especially like the reusing of a packet to send the next commitement !
@A3n : halas, webGL is not mature enough for now, I think, to start a web based 3D game. Sure there are impressive demo out there, but it is not widely enough supported the same way on every browser. @All : I was quiet those last few days, but don't worry, HexScape is still under developement. I have stabilized the architecture, and coded the connection to the server, joining the main room, chating there and disconnection detection. I'm currently coding the creation of a multiplayer game. |
#55
|
||||
|
||||
Re: HexScape
HexScape is still alive !
Some news : Player are now able to create game in a room, and it update the list of game that all player in the roo see. Another player can join a game, and the game can be started (the map is sent over the network, so only the creator of the game need to have the VirtualScape file). Once in the game, players can chat and roll dice (rolled on the server). I basically need to add the sharing of army and markers on cards when one player load his/her army / put markers, and the synchronisation of figure's moves on the map, and it should be usable. I also have some refining to do for border cases, like leaving a game, or when a player disconnect. I also need to make sure that the connection stay alive, even if player take time thinking. On the 3d figure models, I made some progress by making a custom light tent. some photos : It is basicaly a cardboard box that I cuted. 3 sides are covered by white cloth. Even with a small lamp, the result is great ! Here are some photo of Concan and Drake, out of the light tent, with my small lamp: The sames figures, the same lamp, just in the light tent this time : To have better results, I should use two lamps, one on each side, but the result is already vastly better ! (also, the light tent is not finished yet, I still need the white background sheet) |
#57
|
||||
|
||||
Re: HexScape
Pretty awesome stuff, Lyrgard. Can't wait until it's progressed enough that we can replace the current system with it.
|
#58
|
||||
|
||||
Re: HexScape
Wow this looks cool. Any idea what will be needed to run the program? Nice progress Lyrgard.
|
#59
|
||||
|
||||
Re: HexScape
Nice to see you still plodding along.
My Maps: Classic; Marvel My Customs: Dr Who | Terrain | Star Wars Card Template | Repaint & Mods | Playing Card sized Cards Helmaverse | Helmaverse League International C3G Links: C3G Super Hero Draft cards | TableTop Simulator C3G Map additions | Heroscape Dice Roller |
#60
|
||||
|
||||
Re: HexScape
Quote:
Quote:
Today, I was able to have two client running. One created the game, the other joined it, and the game was started. Each player could then load his army, and each was displayed on both side. Players was able to place figure on the board, and the figure are displayed on both side. Now to add moving/removing figure over network support, and the markers, and it'll be very close to enter test phase. Lastly, I'll probably need some help with the design, to help me make HexScape nicer to the eyes. For instance, the home screen player see when the launch HexScape is that for now : As you see, it's pretty bare... I would love a HexScape logo and icon, and for the home screen, I would gladly replace the button with two big clickable images, one representing solo mode, the other multiplayer. So if you want to have your art in HexScape, feels free to give it a go ! Just one important point : for copyright reason, I made HexScape as a way to play generic hex-based board game, so no references to Heroscape should be on the art. The use of Hex shapes on the other hand is of course no problem. |
|
Thread Tools | Search this Thread |
Display Modes | |
|