Comments (13)
Linux is not supported yet. I will adapt it soon.
from pytibia.
I can maybe help you port to Linux, if needed.
I still can't even get it running because of tkinter.
No matter what I do, it always says tkinter is not install.
Any insights would be greaty appreciated.
from pytibia.
Fonts are different. I noticed about it 2/3 days ago. So, I have issues detecting battle list monsters. Do you have another solution?
from pytibia.
same on mac. maybe we can have the characters of each OS and make the images of names of the monsters the first time the program run
from pytibia.
So tkinter is being used to detect the fonts of the client?
Since I can't get it to install correctly on Linux, I'm kind of lost on its use.
I tried every tutorial I could find on installing tkinter on Linux, none seemed to work.
from pytibia.
same on mac. maybe we can have the characters of each OS and make the images of names of the monsters the first time the program run
PyTibia is little different since a pre-compute everything to reach incredible performance. Example:
I already have all monsters pre-computed in an object in hash/name style like this
monsters = { hashit(loadImage('larva.png')): 'Larva', hashit(loadImage('troll.png')): 'Troll' }
When I compute monsters from battleList, I clean the "gray" from behind, slice the part of the name, make a hash to get it frommonsters
variable. This is how I get "microseconds" performance and made this bot a very fast bot.
I didnt know about different fonts in OS/Linux. Im a noob player and I always played on Windows.
from pytibia.
same on mac. maybe we can have the characters of each OS and make the images of names of the monsters the first time the program run
PyTibia is little different since a pre-compute everything to reach incredible performance. Example:
I already have all monsters pre-computed in an object in hash/name style like this
monsters = { hashit(loadImage('larva.png')): 'Larva', hashit(loadImage('troll.png')): 'Troll' }
When I compute monsters from battleList, I clean the "gray" from behind, slice the part of the name, make a hash to get it from
monsters
variable. This is how I get "microseconds" performance and made this bot a very fast bot.I didnt know about different fonts in OS/Linux. Im a noob player and I always played on Windows.
Yeah. I read almost all the code. what I say is to not have the monster names folder in the repository and generate them from the characters depending on the OS. so as not to have two folders with the same for each os since there are many monsters. I don't know if I expressed my idea well
from pytibia.
same on mac. maybe we can have the characters of each OS and make the images of names of the monsters the first time the program run
PyTibia is little different since a pre-compute everything to reach incredible performance. Example:
I already have all monsters pre-computed in an object in hash/name style like this
monsters = { hashit(loadImage('larva.png')): 'Larva', hashit(loadImage('troll.png')): 'Troll' }
When I compute monsters from battleList, I clean the "gray" from behind, slice the part of the name, make a hash to get it from
monsters
variable. This is how I get "microseconds" performance and made this bot a very fast bot.I didnt know about different fonts in OS/Linux. Im a noob player and I always played on Windows.
I always play on Windows too.
But for this project I installed Linux on a VM and was able to get BattlEye working for it, so it doesn't know I'm on a VM. (BattlEye doesn't allow Tibia to be played in VMs, and I couldn't get Tibia to work on a Windows VM)
So can you enlighten me on what exactly is tkinter being used for? This way maybe we can move away from this library on Linux, if needed. (since I can't get this damn thing installed)
from pytibia.
Yeah. I read almost all the code. what I say is to not have the monster names folder in the repository and generate them from the characters depending on the OS. so as not to have two folders with the same for each os since there are many monsters. I don't know if I expressed my idea well
So what you are saying is to instead of having the images already on the folder, the code compiles a list of images based on the monsters names using the OS font?
If I understood this correctly, we would still have the folder with the images, but those images would be compiled based on the OS, rather than using a pre-compiled list of images for Windows.
from pytibia.
same on mac. maybe we can have the characters of each OS and make the images of names of the monsters the first time the program run
PyTibia is little different since a pre-compute everything to reach incredible performance. Example:
https://github.com/lucasmonstrox/PyTibia/blob/main/src/repositories/battleList/images/monsters/Aggressive%20Lava.png
I already have all monsters pre-computed in an object in hash/name style like this
monsters = { hashit(loadImage('larva.png')): 'Larva', hashit(loadImage('troll.png')): 'Troll' }
When I compute monsters from battleList, I clean the "gray" from behind, slice the part of the name, make a hash to get it frommonsters
variable. This is how I get "microseconds" performance and made this bot a very fast bot.
I didnt know about different fonts in OS/Linux. Im a noob player and I always played on Windows.I always play on Windows too. But for this project I installed Linux on a VM and was able to get BattlEye working for it, so it doesn't know I'm on a VM. (BattlEye doesn't allow Tibia to be played in VMs, and I couldn't get Tibia to work on a Windows VM)
So can you enlighten me on what exactly is tkinter being used for? This way maybe we can move away from this library on Linux, if needed. (since I can't get this damn thing installed)
Tkinter is only used for UI configuration.
from pytibia.
Yeah. I read almost all the code. what I say is to not have the monster names folder in the repository and generate them from the characters depending on the OS. so as not to have two folders with the same for each os since there are many monsters. I don't know if I expressed my idea well
So what you are saying is to instead of having the images already on the folder, the code compiles a list of images based on the monsters names using the OS font? If I understood this correctly, we would still have the folder with the images, but those images would be compiled based on the OS, rather than using a pre-compiled list of images for Windows.
Yes it possible :) but the ideal is to do a check and it can be time consuming since there are 1000+ monsters.
from pytibia.
Yes it possible :) but the ideal is to do a check and it can be time consuming since there are 1000+ monsters.
I might be something to do on a first run, then it takes longer the first time, but creates the images and stores them. After that it should just load the images to the hash.
from pytibia.
Yo, is there a plan to adapt this for MacOS?
from pytibia.
Related Issues (20)
- [BUG] - Fail to start app HOT 5
- [BUG] - Cannot get target creature when it is in black life HOT 1
- [BUG] - Following creature is weird HOT 3
- [BUG] - Error getting speed breakpoint HOT 4
- [FEATURE] - Back to loot tab HOT 3
- [FEATURE] - Add support to "exeta amp res"
- [FEATURE] - Add "exori min" to target HOT 1
- [BUG] - ABRIR O BOT HOT 1
- Bordas do mapa HOT 1
- [BUG] - HOT 3
- [BUG] - error while starting application. any ideas? HOT 3
- [BUG] - Diretório com caracteres especiais HOT 6
- [BUG] - Bot doesn't work when "XP Boost" button is not present in Skills section HOT 3
- [BUG] - win32gui error HOT 1
- [BUG] - HOT 2
- [BUG] - Problema com a leitura de imagens na tela do OBS Studio para Tibia Global HOT 2
- [BUG] - Positions are None HOT 8
- [BUG] - Minimap HOT 7
- [FEATURE] - Configurable hotkeys(other vocations support) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytibia.