Can Ren'py instantiate and use a DLL from another programming language?

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
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Can Ren'py instantiate and use a DLL from another programming language?

#1 Post by henvu50 »

Let's say I create a DLL using C# in .NET. Can I use that DLL in Ren'py somehow?

Can Ren'py instantiate and use DLL's compiled from other programming languages?

User avatar
felix
Regular
Posts: 56
Joined: Sat Feb 11, 2006 1:50 am
Completed: Before the Faire
Organization: No Time To Play
Tumblr: no-time-to-play
Github: notimetoplay
itch: notimetoplay
Contact:

Re: Can Ren'py instantiate and use a DLL from another programming language?

#2 Post by felix »

Yes, it can, with the ctypes module from the standard library.

henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Re: Can Ren'py instantiate and use a DLL from another programming language?

#3 Post by henvu50 »

Thanks. This got my foot in the door to where I need to be!

Looks like there are ways to create a C# made DLL that's compatible with ctypes, very cool: https://stackoverflow.com/questions/441 ... rom-python

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot]