Search found 4 matches

by danaka1234
Sat Jul 10, 2021 9:14 am
Forum: Technical Help
Topic: Can I take data like recipes from python, lupa?
Replies: 6
Views: 2062

Re: Can I take data like recipes from python, lupa?

Thank you for answer.
It works perfectly fine through that command.
I'll add a link to my script and delete it after loading lua.
Administrator privileges are required, and if there is a way to bypass it, I will add it to this article.


Now I remember, I had the same problem and fixed it by ...
by danaka1234
Sat Jul 10, 2021 8:01 am
Forum: Technical Help
Topic: Can I take data like recipes from python, lupa?
Replies: 6
Views: 2062

Re: Can I take data like recipes from python, lupa?

Thank you for answer.
As a result of running the link and code in the answer as is, the error below appears.
I guess the problem is because the data directory does not exist.

error 1
Traceback (most recent call last):
File ".\test.py", line 32, in <module>
lua.require('data.core.data')
File ...
by danaka1234
Sat Jul 10, 2021 3:33 am
Forum: Technical Help
Topic: Can I take data like recipes from python, lupa?
Replies: 6
Views: 2062

Re: Can I take data like recipes from python, lupa?


Here are the imports I use:

#load core
lua.require('dataloader')
lua.require('defines')
lua.require('core.data')
lua.require('base.data')


Thanks for your reply.
Sorry. There was a typo in the text.
I used the same code as you pointed out, but the code has errors
The code in the body is ...
by danaka1234
Fri Jul 09, 2021 2:17 pm
Forum: Technical Help
Topic: Can I take data like recipes from python, lupa?
Replies: 6
Views: 2062

Can I take data like recipes from python, lupa?

Sorry for my poor english.

I want to make tool like factorio-calculator by python 3(using pyqt5).
So I use this code for taking factorio data (like data.raw).

import os
import lupa

path_factorio = 'E:\\[Working]\\FactorioCalculator\\facback_1.1.26'

list_func = [\
'function math.pow(num1, num2 ...

Go to advanced search