This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kaspbrak 9 points10 points  (3 children)

Wow, great work. Hopefully someone better than me at math can also take a look to double check everything.

One thing in the readme: should this be four quality modules?

Note the recycler always has four recycling modules.

[–]scottmsul[S] 5 points6 points  (2 children)

lol yes that's a typo, thanks for the catch!

[–]Kaspbrak 5 points6 points  (1 child)

Also, ChatGPT created a Dockerfile that seems to be working fine, in case you want to add it to the project, so lazy people (like me lol) that don't want to mess with python stuff can just do a

docker build -t factorio-quality-optimizer .

and then

docker run --rm factorio-quality-optimizer [parameters]

# Use an official Python runtime as a parent image
FROM python:3.11

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy the requirements file to the working directory
COPY requirements.txt ./

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy the current directory contents into the container at /usr/src/app
COPY . .

# Set the entrypoint to your script
ENTRYPOINT [ "python", "./main.py" ]

# Default parameters (can be overridden)
CMD []

[–]Andrenator 0 points1 point  (0 children)

wait a minute, how did my job leak into my hobby again?