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 »

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: 72
Joined: Thu Jun 08, 2017 12:00 am
Projects: Zephyr Breeze Investigations
itch: calixthegreat
Location: Philippines
Contact:

Re: A silly question

#2 Post by CalixtheGreat »

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

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

Re: A silly question

#3 Post by Imperf3kt »

It is possible, but not in real-time.

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

Current project: GGD Mentor

Twitter

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
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, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: A silly question

#4 Post by Donmai »

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
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: A silly question

#5 Post by kivik »

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
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: A silly question

#6 Post by Imperf3kt »

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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
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: pilgrimcreations
Location: Spain
Contact:

Re: A silly question

#7 Post by xavimat »

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.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: A silly question

#8 Post by Remix »

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.
Frameworks & Scriptlets:

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
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: pilgrimcreations
Location: Spain
Contact:

Re: A silly question

#9 Post by xavimat »

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.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: jeffster