intfiction.org

The Interactive Fiction Community Forum
It is currently Sat May 26, 2018 4:01 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed May 09, 2018 8:57 pm 
Offline

Joined: Wed May 09, 2018 8:43 pm
Posts: 5
So I've been working on a modified version of SugarCube 2 and some server software that will allow for true multiplayer Twine stories. You can check out the demo / proof of concept here: https://twinemulti.herokuapp.com/ . It's just a simple story where you can wave to other people, but they're real humans on the other side who can wave back :). The format is designed to get around most of the issues a multiplayer game would face with Twine, but I haven't fully developed the scripting language component yet, and am looking to link up with some creators who would be interested in working with the format so that I can get some feedback + suggestions on what functionality they would like to have available. Thanks!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 10:04 pm 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 168
Location: Michigan
Hmm... looks interesting. Fails completely in Firefox (59.0.2 64 bit Linux). Works in Chrome.

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 10:25 pm 
Offline

Joined: Wed May 09, 2018 8:43 pm
Posts: 5
howtophil wrote:
Hmm... looks interesting. Fails completely in Firefox (59.0.2 64 bit Linux). Works in Chrome.


Thanks for the heads up. I haven't done much in the way of bulletproofing at this point, just trying to get it working in any form. Mostly tested in chrome and FF on my sytem (windows). Part of continuing to work on the format will of course be getting it working in all modern browsers.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 10:30 pm 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 168
Location: Michigan
In that case, let me give you some screen shots and error messages :)

Code:
Apologies! An error has occurred. You may be able to continue, but some parts may not work properly.

Error: TypeError: SugarCube.Story is undefined.

Stack Trace:
@https://twinemulti.herokuapp.com/:124:1
[12]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:1647:7
[4]</Socket.prototype.onevent@https://twinemulti.herokuapp.com/socket.io/socket.io.js:943:5
[4]</Socket.prototype.onpacket@https://twinemulti.herokuapp.com/socket.io/socket.io.js:901:7
[11]</module.exports/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:1512:12
[12]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:1647:7
[2]</Manager.prototype.ondecoded@https://twinemulti.herokuapp.com/socket.io/socket.io.js:428:3
[11]</module.exports/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:1512:12
[26]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:4389:7
[40]</Decoder.prototype.add@https://twinemulti.herokuapp.com/socket.io/socket.io.js:6740:7
[2]</Manager.prototype.ondata@https://twinemulti.herokuapp.com/socket.io/socket.io.js:418:3
[11]</module.exports/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:1512:12
[26]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:4389:7
[18]</</Socket.prototype.onPacket@https://twinemulti.herokuapp.com/socket.io/socket.io.js:2514:9
[18]</</Socket.prototype.setTransport/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:2331:5
[26]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:4389:7
[19]</Transport.prototype.onPacket@https://twinemulti.herokuapp.com/socket.io/socket.io.js:2947:3
callback@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3821:5
[27]</</exports.decodePayloadAsBinary/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:5014:5
[27]</</exports.decodePayloadAsBinary@https://twinemulti.herokuapp.com/socket.io/socket.io.js:5013:3
[27]</</exports.decodePayload@https://twinemulti.herokuapp.com/socket.io/socket.io.js:4781:12
[23]</Polling.prototype.onData@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3825:3
[22]</</XHR.prototype.doPoll/<@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3385:5
[26]</Emitter.prototype.emit@https://twinemulti.herokuapp.com/socket.io/socket.io.js:4389:7
[22]</</Request.prototype.onData@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3546:3
[22]</</Request.prototype.onLoad@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3627:5
[22]</</Request.prototype.create/xhr.onreadystatechange@https://twinemulti.herokuapp.com/socket.io/socket.io.js:3499:11


Attachments:
Selection_025.png
Selection_025.png [ 4.61 KiB | Viewed 286 times ]
Selection_024.png
Selection_024.png [ 120.96 KiB | Viewed 286 times ]

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords
Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 10:40 pm 
Offline

Joined: Wed May 09, 2018 8:43 pm
Posts: 5
howtophil wrote:
In that case, let me give you some screen shots and error messages :)


Thanks! I'll work on getting that issue fixed. Any thoughts on the idea of multiplayer Twine games in general and implementation specifically?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 10:49 pm 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 168
Location: Michigan
I think for design/implementation, maybe look at some of the old MUDs. https://en.wikipedia.org/wiki/MUD

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed May 09, 2018 11:05 pm 
Offline

Joined: Wed May 09, 2018 8:43 pm
Posts: 5
Yeah I think the similarity is definitely strong. The reason I decided to work on this project was because of how accessible twine is to both make and play. I wanted to bring that to a multiplayer environment. And having seen some really complex twine games got me excited for the potential multiplayer could have there, too. Also I originally saw it come up on here a while back :)

Edit - the reason I mention this is that typically MUDs require digging into code to do, but the simplicity of the Twine editor is pretty unparalleled, so the prospects of doing a multiplayer CYOA / manager type of thing is pretty exciting to me.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu May 10, 2018 10:02 am 
Offline

Joined: Wed May 09, 2018 8:43 pm
Posts: 5
howtophil wrote:
In that case, let me give you some screen shots and error messages :)

I've had quite a hard time trying to reproduce this, but I believe it's ultimately coming down to a race condition on the initial connection. If so, I've added some code that should fix that issue for you. Thanks again for reporting it!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu May 10, 2018 6:30 pm 
Offline
User avatar

Joined: Sun May 21, 2017 4:59 pm
Posts: 168
Location: Michigan
Seems to be connecting now. :)

_________________
~~~
My ebooks on Amazon
My ebooks on Smashwords


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group