4x11 / build69

64 stars 66 forks source link

Inject libsamp.so #4

Closed KamikZMenu closed 5 years ago

KamikZMenu commented 5 years ago

I was able to generate the libsamp.so file and thought it would just unpack the .apk and put it in and then use the ZipSigner to sign the .apk.. I did it this way but it did not work out because whenever I click on Multiplayer the game closes

What is the right way to inject?

soly-olf commented 5 years ago

if u see "Multiplayer" button - u success inject lib

KamikZMenu commented 5 years ago

if u see "Multiplayer" button - u success inject lib

I used the Axwell test server client folder. Is that the problem? and I just set the host = ... and port = ...

KamikZMenu commented 5 years ago

samp_log.txt

log.. help me fix the crash Soly

soly-olf commented 5 years ago

that problem on code

KamikZMenu commented 5 years ago

that problem on code

Can you identify where?

I just downloaded the github files and compiled it with build-ndk, the process worked out and I did not make any changes to the code before compiling

KamikZMenu commented 5 years ago

Please soly :/

KamikZMenu commented 5 years ago

I have the SaPatcher and I know to use the command to change the ip and port of libsamp.so but when I start the multiplayer continues the previous server ..

SteelSa commented 5 years ago

У меня есть SaPatcher, и я знаю, чтобы использовать команду для изменения IP-адреса и порта libsamp.so, но при запуске мультиплеера продолжает предыдущий сервер .. можно с вами связатся где-то кроме github?

KamikZMenu commented 5 years ago

https://vk.com/onlyamember

У меня есть SaPatcher, и я знаю, чтобы использовать команду для изменения IP-адреса и порта libsamp.so, но при запуске мультиплеера продолжает предыдущий сервер .. можно с вами связатся где-то кроме github?

qqwrv-f10eq commented 5 years ago

I'm too, server crash or maybe join previous server.

SteelSa commented 5 years ago

Please tell me what to do with SaPatcher

qqwrv-f10eq commented 5 years ago

I think change server ip:port from libsamp.so then inject apk later..

qqwrv-f10eq commented 5 years ago

static_assert(sizeof(cryptor::string_encryptor) == 37);

static assertion failed

SteelSa commented 5 years ago

but how to embed it correctly in libsamp

SteelSa commented 5 years ago

Tell me, please

zCrystal94 commented 5 years ago

samp_log.txt

log.. help me fix the crash Soly

I have same problem after compiled and injected it doesn't work crashes with same error on samp_log.txt

qqwrv-f10eq commented 5 years ago

Log("Add Q"); key.pos = curPos; Log("Add Q 1"); key.symPos = ImVec2(curPos.x + defWidth 0.4, curPos.y + m_fKeySizeY 0.2); Log("Add Q 2"); key.width = defWidth; Log("Add Q 3"); key.code[LOWER_CASE] = 'q'; Log("Add Q 4"); key.code[UPPER_CASE] = 'Q'; Log("Add Q 5"); cp1251_to_utf8(key.name[LOWER_CASE], "q"); Log("Add Q 6"); cp1251_to_utf8(key.name[UPPER_CASE], "Q"); Log("Add Q 7"); key.id++; Log("Add Q 8"); row->push_back(key); Log("Add Q 9"); curPos.x += key.width;

samp_log.txt stop at Add Q 8 on last line.

qqwrv-f10eq commented 5 years ago

Image

I got Connecting to: 0, Haha !!

zCrystal94 commented 5 years ago

I see it crashes on keyboard.cpp on row->push_back(key); but debugging it. I got connected but Server closed connection.

qqwrv-f10eq commented 5 years ago

How do you ?, 4x11 left us in the black hole.

zCrystal94 commented 5 years ago

You should edit main.cpp pNetGame = new CNetGame( "IP", 7777, "nick", "");

qqwrv-f10eq commented 5 years ago

Yay, It work fine, The next issue is about our language for display.

zCrystal94 commented 5 years ago

How did you fixed keyboard issues? on keyboard.cpp

qqwrv-f10eq commented 5 years ago

I just comment wait for 4x11 fix this issue !

qqwrv-f10eq commented 5 years ago

@4x11 help me !! iso_8859_11 to utf-8

https://en.wikipedia.org/wiki/Windows-1251 to https://en.wikipedia.org/wiki/ISO/IEC_8859-11

zCrystal94 commented 5 years ago

@aktah did you fixed row->push_back(key); issues?

qqwrv-f10eq commented 5 years ago

https://uppic.cc/d/KFEj

I can't change language. sad !

soly-olf commented 5 years ago

https://uppic.cc/d/KFEj

I can't change language. sad !

what lang?

qqwrv-f10eq commented 5 years ago

Thai, It should be "ฟหก", Also on SA-MP Server.

If setting like this: https://uppic.cc/d/KFEF, all be work fine

This issues come from Android ?

Here: https://uppic.cc/d/KFEp

  1. SA-MP PC with window setting (I need display this on android)
  2. SA-MP Android
  3. SA-MP PC without setting
zCrystal94 commented 5 years ago

I can't initialize keyboard it crashes as i write before... can someone help me?

SteelSa commented 5 years ago

I can't initialize keyboard it crashes as i write before... can someone help me?

can i contact you except github?

qqwrv-f10eq commented 5 years ago

Nice work on english: https://uppic.cc/d/KFTn

SteelSa commented 5 years ago

aktah

Nice work on english: https://uppic.cc/d/KFTn

Please describe all your actions that you did to create an apk file and change the ip

zCrystal94 commented 5 years ago

I can't initialize keyboard it crashes as i write before... can someone help me?

can i contact you except github?

Where?

zCrystal94 commented 5 years ago

Nice work on english: https://uppic.cc/d/KFTn

How did you fixed keyboard?

SteelSa commented 5 years ago

Я не могу инициализировать клавиатуру, она вылетает, когда я пишу раньше ... кто-нибудь может мне помочь?

Могу ли я связаться с вами, кроме GitHub?

Куда?

Do you have any social networks?

zCrystal94 commented 5 years ago

I have facebook, skype, whatsapp, instagram, tumblr

SteelSa commented 5 years ago

У меня есть Facebook, Skype, WhatsApp, Instagram, Tumblr

You figured out how to fix the keyboard?

zCrystal94 commented 5 years ago

У меня есть Facebook, Skype, WhatsApp, Instagram, Tumblr

You figured out how to fix the keyboard?

No, i tried, can you help me? It compile but when i put libsamp.so to apk client and i try to open multiplayer it crashes.

SteelSa commented 5 years ago

У меня есть Facebook, Skype, WhatsApp, Instagram, Tumblr

You figured out how to fix the keyboard?

No, i tried, can you help me? It compile but when i put libsamp.so to apk client and i try to open multiplayer it crashes.

I am also looking for a solution to this problem, but not who does not want to help

zCrystal94 commented 5 years ago

The only solution for bypass this problem is adding //pKeyBoard = new CKeyBoard(); but keyboard doesn't work anymore...

SteelSa commented 5 years ago

The only solution for bypass this problem is adding //pKeyBoard = new CKeyBoard(); but keyboard doesn't work anymore...

But where did you enter it?

zCrystal94 commented 5 years ago

on main.cpp line 82

SteelSa commented 5 years ago

on main.cpp line 82

you figured out with SaPatcher?

zCrystal94 commented 5 years ago

on main.cpp line 82

you figured out with SaPatcher?

Sapatcher doesn't work for me. But you can set your ip and your nick on main.cpp editing this

You should edit main.cpp pNetGame = new CNetGame( "IP", 7777, "nick", "");

SteelSa commented 5 years ago

this line? pNetGame = new CNetGame( encryptedAddress.decrypt(), port, pSettings->Get().szNickName, pSettings->Get().szPassword);

zCrystal94 commented 5 years ago

this line? pNetGame = new CNetGame( encryptedAddress.decrypt(), port, pSettings->Get().szNickName, pSettings->Get().szPassword);

yes

soly-olf commented 5 years ago

on main.cpp line 82

you figured out with SaPatcher?

Sapatcher doesn't work for me. But you can set your ip and your nick on main.cpp editing this

You should edit main.cpp pNetGame = new CNetGame( "IP", 7777, "nick", "");

what? saPatcher working

SteelSa commented 5 years ago

on main.cpp line 82

you figured out with SaPatcher?

Sapatcher doesn't work for me. But you can set your ip and your nick on main.cpp editing this

You should edit main.cpp pNetGame = new CNetGame( "IP", 7777, "nick", "");

what? saPatcher working

and how to install it or fill it in gta sa, please explain

zCrystal94 commented 5 years ago

on main.cpp line 82

you figured out with SaPatcher?

Sapatcher doesn't work for me. But you can set your ip and your nick on main.cpp editing this

You should edit main.cpp pNetGame = new CNetGame( "IP", 7777, "nick", "");

what? saPatcher working

Not for me. But how can i fix this keyboard problem? Do you know? how?