GithubHelp home page GithubHelp logo

harleygilpin / drop-table-maker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.28 MB

Drop Table Maker is a Python application that allows you to create drop tables for game development in 2011Scape. It provides a user-friendly interface for defining item drops and their probabilities.

Home Page: https://2011Scape.com

Python 0.41% TeX 87.42% HTML 12.17%
kotlin python tkinter

drop-table-maker's Introduction

2011Scape Drop Table Maker

1687034282183

Drop Table Maker is a Python application that allows you to create drop tables for game development in 2011Scape. It provides a user-friendly interface for defining item drops and their probabilities.

Features

  • Add and remove items with customizable drop probabilities to the drop table.
  • Specify guaranteed drops for certain items.
  • Generate Kotlin script code based on the defined drop table.
  • Save the generated code to a file.

Installation

  1. Make sure you have Python 3 installed on your system.

  2. Clone this repository:

    git clone https://github.com/HarleyGilpin/drop-table-maker.git

Setting up the environment

To set up a Python virtual environment in VSCode on Windows, you can use the venv module that comes with Python. Here are the steps to follow:

  1. Open VSCode and create a new folder for your project.
  2. In the Explorer pane, right-click on the folder and select "Open in Terminal".
  3. In the terminal, navigate to the folder you created in step 1.
  4. Run the following command to create a new virtual environment:
python -m venv env

This will create a directory called myenv/bin that contains the scripts needed to activate and deactivate the virtual environment.

  1. To activate the virtual environment, run the following command:
.\env\Scripts\activate

This will set up the necessary environment variables and make the virtual environment active. You can verify that the virtual environment is active by checking the prompt, which should now include the name of the virtual environment.

  1. To deactivate the virtual environment, run the following command:
deactivate

This will restore the original environment and remove the virtual environment from the current terminal session.

Building the Executable

Follow these steps to build your Python application into an executable:

  1. Open a terminal or command prompt.

  2. Navigate to the directory containing your Python application files.

  3. Verify that the "Item_list.txt" file is present in the same directory as the "main.py" file. If the file is located elsewhere, adjust the file path accordingly in the command.

  4. Run the following command to build the executable: pyinstaller -w -F --add-data="Item_list.txt;." main.py

    This command uses PyInstaller to create a single executable file (-F) that is launched as a Windows application without a console window (-w). The --add-data option includes the "Item_list.txt" file by specifying its filename and destination directory (. represents the current directory).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.