olijeffers0n / rustplus

Rust+ API Wrapper Written in Python for the Game: Rust
https://rplus.ollieee.xyz/
MIT License
98 stars 28 forks source link

Camera System #68

Open KCLucas opened 3 months ago

KCLucas commented 3 months ago

Error at the Camera manager

2024-05-19 15:58:11 INFO discord.voice_client Connecting to voice... 2024-05-19 15:58:11 INFO discord.voice_client Starting voice handshake... (connection attempt 1) 2024-05-19 15:58:11 INFO discord.voice_client Voice handshake complete. Endpoint found frankfurt10156.discord.media No frame received, retrying... Error getting frame: 'ImageDraw' object has no attribute 'textsize' Error getting frame: 'ImageDraw' object has no attribute 'textsize' Error getting frame: 'ImageDraw' object has no attribute 'textsize' Error getting frame: 'ImageDraw' object has no attribute 'textsize'

Shurik244 commented 3 months ago

Hi, can you provide the code you are using? Don't forget to delete important data before sending the code

KCLucas commented 3 months ago

https://paste.ollieee.xyz/ujekifelaq.py

Here i dont got the error cuz of using

image = await camera_manager.get_frame(render_entities=False)

but if we do

image = await camera_manager.get_frame()

we get the error

olijeffers0n commented 3 months ago

https://github.com/olijeffers0n/rustplus/blob/master/rustplus/api/remote/camera/camera_parser.py#L396

This line causes the error. The attribute was removed. Just needs updating