opentibiabr / otcv8

OTCv8 for OpenTibia Community.
Other
11 stars 20 forks source link

feat: optimize connection with proxy #16

Closed odisk777 closed 3 weeks ago

odisk777 commented 1 month ago

Description

I want to add this proxy function to optimize the client to server connection.

What is the use of this? this helps players who have a bad connection or who are far away from the area where they want to connect. or also when you are far away from the server. there are 5 proxy options, the client will look for the best connection you have and will balance with the others to deliver the best data packet to the user.

it is advisable to have several proxies from different places not all from one place because it would be in vain to put 5 ip from the same location.

if you want to disable the option just put “ --” in the proxy box to disable it.

checkbox

5 different connections different latencies.

optimize connection

Behaviour

Actual

Do this and that doesn't happens

Expected

Do this and that happens

Fixes

# (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Checklist

majestyotbr commented 3 weeks ago

You made changes that affects the default configs, can you change the file only with the proxy settings? Thanks.

majestyotbr commented 3 weeks ago

Incomplete pull request, not working.

odisk777 commented 3 weeks ago

You made changes that affects the default configs, can you change the file only with the proxy settings? Thanks.

the file can work with proxy or without proxy just by setting --local proxyList = { you can disable the proxy on the client. if you have any problem you can report it to me to know what are the causes.

majestyotbr commented 3 weeks ago

You made changes that affects the default configs, can you change the file only with the proxy settings? Thanks.

the file can work with proxy or without proxy just by setting --local proxyList = { you can disable the proxy on the client. if you have any problem you can report it to me to know what are the causes.

Check the lua and otui files you edited for proxy settings, make it compatible with the default settings of the client of the repository.

odisk777 commented 3 weeks ago

You made changes that affects the default configs, can you change the file only with the proxy settings? Thanks.

the file can work with proxy or without proxy just by setting --local proxyList = { you can disable the proxy on the client. if you have any problem you can report it to me to know what are the causes.

Check the lua and otui files you edited for proxy settings, make it compatible with the default settings of the client of the repository.

here i sent a new repository made from 0 with the fixes i was testing and i didn't have any problem. if you don't have proxies and want to see if it works you can put your same ip with a wrong port and in the resource monitor. selecting otclient you will see many failed connection attempts to your ip.

majestyotbr commented 3 weeks ago

You made changes that affects the default configs, can you change the file only with the proxy settings? Thanks.

the file can work with proxy or without proxy just by setting --local proxyList = { you can disable the proxy on the client. if you have any problem you can report it to me to know what are the causes.

Check the lua and otui files you edited for proxy settings, make it compatible with the default settings of the client of the repository.

here i sent a new repository made from 0 with the fixes i was testing and i didn't have any problem. if you don't have proxies and want to see if it works you can put your same ip with a wrong port and in the resource monitor. selecting otclient you will see many failed connection attempts to your ip.

First you need to learn how to do a pull request and send the changes with only one branch.

odisk777 commented 3 weeks ago

First you need to learn how to do a pull request and send the changes with only one branch.

when I did it only via web on desktop you just select it and it is done.

majestyotbr commented 3 weeks ago

First you need to learn how to do a pull request and send the changes with only one branch.

when I did it only via web on desktop you just select it and it is done.

I'm not going to find your changes. If you want to contribute, you should do it correctly.

odisk777 commented 3 weeks ago

First you need to learn how to do a pull request and send the changes with only one branch.

when I did it only via web on desktop you just select it and it is done.

I'm not going to find your changes. If you want to contribute, you should do it correctly.

What is the problem with the contribution if everything is ok? if you don't open the push request I can't detect what is the problem with a new repository.

majestyotbr commented 2 weeks ago

First you need to learn how to do a pull request and send the changes with only one branch.

when I did it only via web on desktop you just select it and it is done.

I'm not going to find your changes. If you want to contribute, you should do it correctly.

What is the problem with the contribution if everything is ok? if you don't open the push request I can't detect what is the problem with a new repository.

Everything is not ok, you didn't commited all the files to the same branch of the pull request. I already answered for you to check the lua and otui files.

odisk777 commented 2 weeks ago

First you need to learn how to do a pull request and send the changes with only one branch.

when I did it only via web on desktop you just select it and it is done.

I'm not going to find your changes. If you want to contribute, you should do it correctly.

What is the problem with the contribution if everything is ok? if you don't open the push request I can't detect what is the problem with a new repository.

Everything is not ok, you didn't commited all the files to the same branch of the pull request. I already answered for you to check the lua and otui files.

I will delete this branch and when I have time I will upload this push request.