A silly question

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Charts
Newbie
Posts: 9
Joined: Sun Jan 01, 2017 10:37 pm
Contact:

A silly question

#1 Post by Charts » Thu Mar 15, 2018 2:28 am

Did anyone tries to make a co-op game, or multi-player game? What do we need for such thing?

I could only find examples in Unity...

Thx for any apply and sorry for disturbing

User avatar
CalixtheGreat
Regular
Posts: 47
Joined: Thu Jun 08, 2017 12:00 am
Projects: Mystique City: The Phoenix Tail
Location: Philippines
Contact:

Re: A silly question

#2 Post by CalixtheGreat » Tue Apr 10, 2018 7:09 pm

I think that's not yet possible in Ren'Py...
FB PAGE:
CALIX THE GREAT

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1410
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: A silly question

#3 Post by Imperf3kt » Tue Apr 10, 2018 8:03 pm

It is possible, but not in real-time.

A few such games already exist.
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1708
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: A silly question

#4 Post by Donmai » Tue Apr 10, 2018 10:45 pm

xavimat created a two-player game: viewtopic.php?f=11&t=41697
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

kivik
Veteran
Posts: 232
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: A silly question

#5 Post by kivik » Wed Apr 11, 2018 4:22 am

Yeah in Ren'py, if you don't already know how it'd theoretically work, then chances are slim that you'll be able to do it. I have very basically understanding of networking and I don't even know where I'd start!

One approach would require a server, you'll probably need to build an API for your client software to talk to, as well as the server side codes. Then you'll need to get your game to talk to your server - I'm not sure if Ren'py or pygame has the library to do this, but I think you'll need a websocket to enable server > client updates (don't quote me on this, my knowledge is iffy).

Another approach I guess would be peer to peer, and I don't know anything about that at all and I'd imagine it's much more complicated!

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1410
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: A silly question

#6 Post by Imperf3kt » Wed Apr 11, 2018 5:20 am

Neither Ren'Py nor PyGame has the required library. You'll need a Python Library but I can't remember exactly which one or how to set it up.

Check the forums and the linked game thread (Cops & Robbers was it?) for some more info.
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1180
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: A silly question

#7 Post by xavimat » Wed Apr 11, 2018 10:50 am

That's a great idea. It has been flying in my head for a year (I found some discussion here in the forums, MMOVN search.php?keywords=mmovn )
I tried something like that with Cops&Robbers (see my signature).
I'm currently developing another program with renpy (like a Duolingo for ancient Greek), and uses also this approach. Some explanations about how it works here: viewtopic.php?f=8&t=47568#p474591

Basically, renpy can use ullib2.urlopen to send/receive data from a mysql database via a php file in a server.
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Remix
Miko-Class Veteran
Posts: 661
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet
Projects: An un-named 3d anime based trainer game
Contact:

Re: A silly question

#8 Post by Remix » Wed Apr 11, 2018 12:13 pm

SSL and TLS support was added in 6.99.14... so the underlying ability is there, just not much in documentation as far as I can tell.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1180
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

Re: A silly question

#9 Post by xavimat » Wed Apr 11, 2018 1:04 pm

Remix wrote:
Wed Apr 11, 2018 12:13 pm
SSL and TLS support was added in 6.99.14... so the underlying ability is there, just not much in documentation as far as I can tell.
There is a patreon post by PyTom that explains how to do it, but it uses the requests and certify library, not present in python 2 (included in the example). https://www.patreon.com/posts/news-from-your-15636026
My example uses the older libraries included in pyhton 2.
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
unknown [Sci-Fi - mystery - computer]
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users