Skip to content

Commit 00cd5e6

Browse files
authored
improve: https/http login (#647)
1 parent d46fdf5 commit 00cd5e6

24 files changed

+928
-579
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
55

6-
## Behaviour
6+
## Behavior
7+
78
### **Actual**
89

910
Do this and that doesn't happens

.github/workflows/build-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
name: otclient-${{ matrix.buildtype }}-${{ github.sha }}
6969
path: |
7070
${{ github.workspace }}/otclient.exe
71-
71+
7272
- name: Create and Upload Artifact (dlls)
7373
uses: actions/upload-artifact@main
7474
with:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
55

66
RUN apt-get update && apt-get install -y --no-install-recommends \
77
git cmake curl zip unzip tar automake ca-certificates build-essential \
8-
libglew-dev libx11-dev autoconf libtool pkg-config tzdata \
8+
libglew-dev libx11-dev autoconf libtool pkg-config tzdata libssl3 \
99
&& dpkg-reconfigure --frontend noninteractive tzdata \
1010
&& apt-get clean && apt-get autoclean
1111

cmake/FindOpenSSL.cmake

-21
This file was deleted.

cmake/FindZLIB.cmake

-16
This file was deleted.

data/locales/pt.lua

+20-8
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ locale = {
99

1010
-- As traduções devem vir sempre em ordem alfabética.
1111
translation = {
12+
["(ERROR %d)"] = "(ERRO %d)",
1213
["%d of experience per hour"] = "%d de experiência por hora",
1314
["%s has finished the request"] = "%s finalizou o pedido",
1415
["%s has logged in."] = "%s entrou.",
1516
["%s has logged out."] = "%s saiu.",
1617
["%s of experience left"] = "%s de experiência faltando",
18+
["%s of experience per hour"] = "%s experiência por hora",
1719
["%s: (use object on target)"] = "%s: (usar objeto no alvo)",
1820
["%s: (use object on yourself)"] = "%s: (usar objeto em si)",
1921
["%s: (use object with crosshair)"] = "%s: (usar objeto com mira)",
2022
["%s: (use object)"] = "%s: (usar objeto)",
21-
["(ERROR %d)"] = "(ERRO %d)",
2223
["1a) Offensive Name"] = "1a) Nome ofensivo",
2324
["1b) Invalid Name Format"] = "1b) Nome com formato inválido",
2425
["1c) Unsuitable Name"] = "1c) Nome não adequado",
@@ -94,6 +95,7 @@ locale = {
9495
["Channel appended to %s"] = "Canais acrescentados a %s",
9596
["Channels"] = "Canais",
9697
["Character List"] = "Lista de personagens",
98+
["Character"] = "Personagem",
9799
["Classic control"] = "Controle clássico",
98100
["Clear current message window"] = "Apagar mensagens",
99101
["Clear Messages"] = "Limpar mensagens",
@@ -107,6 +109,7 @@ locale = {
107109
["Comment"] = "Comentário",
108110
["Connecting to game server..."] = "Conectando no servidor do jogo...",
109111
["Connecting to login server..."] = "Conectando no servidor de autenticação...",
112+
["Connecting to login server...\nServer: [%s]"] = "Conectando no servidor de autenticação...\nServidor: [%s]",
110113
["Connection Error"] = "Erro de Conexão",
111114
["Connection failed the server address does not exist."] = "Conexão falhou, servidor não existe.",
112115
["Connection failed, the server address does not exist."] = false,
@@ -139,7 +142,6 @@ locale = {
139142
["Details"] = "Detalhes",
140143
["Disable chat mode allow to walk using WASD"] = "Desativar modo de chat permite andar usando WASD",
141144
["Disable chat mode, allow to walk using WASD"] = false,
142-
["Disable chat mode, allow to walk using WASD"] = false,
143145
["Disable Shared Experience"] = "Desativar experiência compartilhada",
144146
["Dismount"] = "Desmontar",
145147
["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)",
@@ -154,14 +156,15 @@ locale = {
154156
["Draw Viewport Edge"] = "Desenhar borda da janela de visualização",
155157
["Druid"] = "Druid",
156158
["Edit %s"] = "Editar %s",
157-
["Edit hotkey text"] = false,
158159
["Edit hotkey text:"] = "Editar texto do atalho",
160+
["Edit hotkey text"] = false,
159161
["Edit List"] = "Editar lista",
160162
["Edit Text"] = "Editar Texto",
161163
["Edit VIP list entry"] = false,
162164
["Enable audio"] = "Ativar áudio",
163165
["Enable chat mode"] = false,
164166
["Enable dash walking"] = "Ativar andar rápido",
167+
["Enable HTTP login"] = "Ativar login HTTP",
165168
["Enable lights"] = "Ativar luzes",
166169
["Enable music sound"] = "Ativar música",
167170
["Enable music"] = "Ativar musica",
@@ -218,6 +221,7 @@ locale = {
218221
["Hotkey delay: %dms"] = false,
219222
["Hotkey delay: %sms"] = false,
220223
["Hotkeys"] = "Atalhos",
224+
["If login fails using HTTPS (encrypted) try with HTTP (unencrypted)"] = "Se o login falhar utilizando HTTPS(criptografado) tente com HTTP(sem criptografia)",
221225
["If you shut down the program, your character might stay in the game.\nClick on 'Logout' to ensure that you character leaves the game properly.\nClick on 'Exit' if you want to exit the program without logging out your character."] = "Se você desligar o programa o seu personagem pode continuar no jogo.\nClique em 'Sair' para assegurar que seu personagem saia do jogo adequadamente.\nClique em 'Forçar Saida' para fechar o programa sem desconectar seu personagem.",
222226
["Ignore capacity"] = "Ignorar capacidade",
223227
["Ignore equipped"] = "Ignorar equipado",
@@ -226,8 +230,8 @@ locale = {
226230
["Ignore Private Messages"] = "Ignorar mensagens privadas",
227231
["Ignore Yelling"] = "Ignorar gritos",
228232
["Ignore"] = "Ignorar",
229-
["Ignored Players"] = false,
230233
["Ignored players:"] = "Joadores ignorados:",
234+
["Ignored Players"] = false,
231235
["Interface framerate limit: %s"] = "Limite da taxa de quadros da interface: %s",
232236
["Invalid authentification token."] = false,
233237
["Inventory"] = "Inventário",
@@ -287,15 +291,16 @@ locale = {
287291
["No"] = "Não",
288292
["Notation"] = "Notação",
289293
["Notify-Login"] = false,
294+
["Now you will gain 50%% more experience"] = "Agora você ganhará 50%% mais experiência",
290295
["NPC Trade"] = "Troca com NPC",
291296
["Offer History"] = "Histórico de ofertas",
292297
["Offer Type"] = "Tipo de oferta",
293298
["Offers"] = "Ofertas",
294299
["Offline Training"] = "Treino Offline",
295300
["Ok"] = "Ok",
296301
["on %s.\n"] = "em %s.\n",
297-
["Open a private message channel"] = false,
298302
["Open a private message channel:"] = "Abrir um canal privado:",
303+
["Open a private message channel"] = false,
299304
["Open charlist automatically when starting client"] = "Abrir lista de personagens ao iniciar o cliente",
300305
["Open in new window"] = "Abrir em nova janela",
301306
["Open new channel"] = "Abrir novo canal",
@@ -317,8 +322,8 @@ locale = {
317322
["Please wait"] = "Por favor, espere",
318323
["Please, press the key you wish to add onto your hotkeys manager"] = "Por favor, pressione a tecla que você deseja\nadicionar no gerenciador de atalhos",
319324
["Port"] = "Porta",
320-
["Position"] = "Posição",
321325
["Position: %i %i %i"] = "Posição: %i %i %i",
326+
["Position"] = "Posição",
322327
["Premium Account (%s) days left"] = "Conta Premium (%s) dias faltando",
323328
["Premium"] = "Premium",
324329
["Price"] = "Preço",
@@ -358,6 +363,7 @@ locale = {
358363
["Search"] = "Procurar",
359364
["Secondary"] = "Secundário",
360365
["Select all"] = false,
366+
["Select monster"] = "Selecione o monstro",
361367
["Select object"] = "Selecionar objeto",
362368
["Select Outfit"] = "Selecionar Roupa",
363369
["Select your language"] = "Selecione sua língua",
@@ -370,9 +376,10 @@ locale = {
370376
["Send automatically"] = "Enviar automaticamente",
371377
["Send Message"] = "Enviar Mensagem",
372378
["Send"] = "Enviar",
373-
["Server List"] = "Lista de Servidores",
374379
["Server list"] = "Lista de servidores",
380+
["Server List"] = "Lista de Servidores",
375381
["Server Log"] = "Registro do servidor",
382+
["Server: %s"] = "Servidor: %s",
376383
["Server"] = "Servidor",
377384
["Set Outfit"] = "Escolher Roupa",
378385
["Shielding"] = "Defesa",
@@ -410,6 +417,7 @@ locale = {
410417
["Statement Report"] = "Afirmar Relato",
411418
["Statement"] = "Afirmação",
412419
["Statistics"] = "Estatísticas",
420+
["Status"] = "Condição",
413421
["Stay logged during session"] = false,
414422
["Stop Attack"] = "Parar de Atacar",
415423
["Stop Follow"] = "Parar de Seguir",
@@ -451,13 +459,14 @@ locale = {
451459
["Will boost your walk on high speed characters"] = "Irá melhorar o andar de persnagens rápidos",
452460
["Will detect when to use diagonal step based on the\nkeys you are pressing"] = "Detectar quando usar o passo diagonal\nbaseado nas teclas pressionadas",
453461
["With crosshair"] = "Com mira",
462+
["World"] = "Mundo",
454463
["Yes"] = "Sim",
455464
["You are bleeding"] = "Você está sangrando",
456465
["You are burning"] = "Você está queimando",
457466
["You are cursed"] = "Você está amaldiçoado",
458467
["You are dazzled"] = "Você está deslumbrado",
459-
["You are dead"] = "Você está morto",
460468
["You are dead."] = "Você está morto.",
469+
["You are dead"] = "Você está morto",
461470
["You are drowning"] = "Você está se afogando",
462471
["You are drunk"] = "Você está bêbado",
463472
["You are electrified"] = "Você está eletrificado",
@@ -470,7 +479,9 @@ locale = {
470479
["You are strengthened"] = "Você está reforçado",
471480
["You are within a protection zone"] = "Você está dentro de uma zona de proteção",
472481
["You can enter new text."] = "Você pode entrar com um novo texto.",
482+
["You don't may receive experience and loot from monsters"] = "Você talvez não possa receber experiencia e loot dos monstros",
473483
["You have %d%% to advance to level %d."] = "Você tem %d%% para avançar para o nível %d.",
484+
["You have %s hours and %s minutes left"] = "Você tem %s horas e %s minutos restando",
474485
["You have %s percent to go"] = "Você tem %s porcento para avançar",
475486
["You have %s percent"] = "Você tem %s porcento",
476487
["You may not logout during a fight"] = "Você não pode sair durante um combate",
@@ -482,6 +493,7 @@ locale = {
482493
["You must select an action."] = false,
483494
["You read the following, written by \n%s\n"] = "Você lê o seguinte, escrito por \n%s\n",
484495
["You read the following, written on \n%s.\n"] = "Você lê o seguinte, escrito em \n%s.\n",
496+
["You will not gain 50%% more experience because you aren't premium player, now you receive only 1x experience points"] = "Você não ganhará 50%% mais experiencia pois você não é premium, agora você receberá apenas 1x pontos de experiência",
485497
["Your Capacity"] = "Sua capacidade",
486498
["Your character health is %d out of %d."] = "A vida do seu personagem é %d de %d.",
487499
["Your character mana is %d out of %d."] = "A mana do seu personagem é %d de %d.",

modules/client_entergame/characterlist.otui

+11-10
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ CharacterWidget < UIWidget
9696
color: #bbbbbb
9797
anchors.top: parent.top
9898
anchors.left: parent.left
99-
margin-left: 300
99+
margin-left: 350
100100
font: verdana-11px-monochrome
101101
text-auto-resize: true
102102
background-color: alpha
@@ -114,7 +114,7 @@ CharacterWidget < UIWidget
114114
color: #bbbbbb
115115
anchors.top: parent.top
116116
anchors.left: parent.left
117-
margin-left: 350
117+
margin-left: 410
118118
font: verdana-11px-monochrome
119119
text-auto-resize: true
120120
background-color: alpha
@@ -199,7 +199,7 @@ MainWindow
199199
end
200200

201201
FlatLabel
202-
width: 50
202+
width: 100
203203
anchors.left: parent.left
204204
anchors.top: characters.top
205205
margin-left: 250
@@ -210,10 +210,10 @@ MainWindow
210210
end
211211

212212
FlatLabel
213-
width: 50
213+
width: 60
214214
anchors.left: parent.left
215215
anchors.top: characters.top
216-
margin-left: 300
216+
margin-left: 350
217217
!text: tr('Level') .. ''
218218
@onSetup: |
219219
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
@@ -224,17 +224,18 @@ MainWindow
224224
width: 150
225225
anchors.left: parent.left
226226
anchors.top: characters.top
227-
margin-left: 350
227+
margin-left: 410
228228
!text: tr('Vocation') .. ''
229229
@onSetup: |
230230
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
231231
self:hide()
232232
end
233233

234234
FlatLabel
235-
width: 201
235+
width: 200
236236
anchors.right: characters.right
237237
anchors.top: characters.top
238+
margin-left: 550
238239
!text: tr('World') .. ''
239240
@onSetup: |
240241
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
@@ -264,7 +265,7 @@ MainWindow
264265
anchors.left: parent.left
265266
anchors.top: parent.top
266267
anchors.bottom: prev.bottom
267-
margin-left: 299
268+
margin-left: 349
268269
@onSetup: |
269270
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
270271
self:hide()
@@ -274,7 +275,7 @@ MainWindow
274275
anchors.left: parent.left
275276
anchors.top: parent.top
276277
anchors.bottom: prev.bottom
277-
margin-left: 349
278+
margin-left: 409
278279
@onSetup: |
279280
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
280281
self:hide()
@@ -284,7 +285,7 @@ MainWindow
284285
anchors.left: parent.left
285286
anchors.top: parent.top
286287
anchors.bottom: prev.bottom
287-
margin-left: 499
288+
margin-left: 500
288289
@onSetup: |
289290
if not(g_game.getFeature(GameEnterGameShowAppearance)) then
290291
self:hide()

0 commit comments

Comments
 (0)