- Jul 1, 2018
- 31
- 24
Hi ! So here's my situation : In my game, I have a large function designed for each of the girls I create, which, depending on the hour and day, affects their "where" value at the declared situation. I have no issue with that, but because it's a mess, and also because I wanted to improve my way of creating games efficiently, I decided to learn XML to transfer data files from Excel into my game, to have a better view of the schedules of all my girls, and also to make it less a mess in my code.
So I've spent the day learning all the stuff I needed, how to create a xml from excel, how to make it functionnal, how to import it to python, and finally how to store the required values anytime I need them. Everything on PyCharm (Python IDE) works perfectly fine, but when I install my code into my .rpy files, it doesn't work. And the issue is simple :
So I've spent the day learning all the stuff I needed, how to create a xml from excel, how to make it functionnal, how to import it to python, and finally how to store the required values anytime I need them. Everything on PyCharm (Python IDE) works perfectly fine, but when I install my code into my .rpy files, it doesn't work. And the issue is simple :
I've tried putting it into "init python", without, into a .py file and then importing it with and w/out "init python", and nothing does it. The only Ren'Py page I've found about XML is outdated and did not resolve my problem.I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 2, in script
init python:
File "game/script.rpy", line 3, in <module>
import xml.dom.minidom
ImportError: No module named dom.minidom