Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Launcher AutoUpdate Pyke Lastest Version  (Visto 8810 veces)

0 Miembros and 2 Guests are viewing this topic.

Offline spider #20 Posteado: July 18, 2021, 10:00:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 353
  • Gracias recibida: 98
  • ae
play start button is not working


Offline reinerg53 #21 Posteado: July 19, 2021, 10:21:36 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 6
  • Gracias recibida: 0
  • co
buenas tardes este Launcher es funcional con Darksteam 97d+99i? gracias


Offline dario #22 Posteado: October 22, 2022, 08:26:24 PM | Modificado: October 24, 2022, 07:57:33 PM by dario

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 147
  • Gracias recibida: 199
  • ar
Como hacemos para cuando le damos "play" y abre el main el launcher siga abierto y no se cierre?

Alguien me puede hechar una mano?

Gracias


Offline dario #23 Posteado: October 24, 2022, 08:14:23 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 147
  • Gracias recibida: 199
  • ar
Como hacemos para cuando le damos "play" y abre el main el launcher siga abierto y no se cierre?

Alguien me puede hechar una mano?

Gracias

Up  please


Offline T-LEGENDARY #24 Posteado: October 26, 2022, 08:22:47 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 693
  • Gracias recibida: 8604
  • br
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper

Code: [Select]
void CProtect::CheckLauncher() // OK
{
if ((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");
CloseHandle(hMutex);

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe", 0);
ExitProcess(0);
}
}

Aun no fuerza el que abra el launcher cuando precionas el main :(

You set MainInfo.ini: LauncherType = 1

[MainInfo]
CustomerName = Erik
LauncherType = 1
LauncherName =
IpAddress = 192.168.1.7
IpAddressPort = 44405
ClientVersion = 1.04.05
ClientSerial = TbYehR2hFUPBKgZj

Bucle infinito que no abre el juego


funcionó ? Si funcionó, ¡cuéntanos cómo lo hiciste! , probé, tampoco funcionó, caigo en el loop launcher


Offline T-LEGENDARY #25 Posteado: October 26, 2022, 08:33:53 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 693
  • Gracias recibida: 8604
  • br

Online victhorinox #26 Posteado: November 15, 2022, 03:27:19 PM | Modificado: November 15, 2022, 03:52:05 PM by victhorinox

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 264
  • Gracias recibida: 1286
  • ve

Gracias:


Offline T-LEGENDARY #27 Posteado: November 15, 2022, 03:44:27 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 693
  • Gracias recibida: 8604
  • br
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?


Online victhorinox #28 Posteado: November 15, 2022, 03:49:17 PM | Modificado: November 15, 2022, 03:50:50 PM by victhorinox

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 264
  • Gracias recibida: 1286
  • ve
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?

Depende de que files estes usando bro, si estas usando por ejemplo la base de Takumi
Solo vas a definir TMemory en Main.cpp

y agregar el codigo en



y con eso ya esta porque en dichos source ya esta agregado el void CommandLineToArg.


Offline T-LEGENDARY #29 Posteado: November 15, 2022, 03:54:07 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 693
  • Gracias recibida: 8604
  • br
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?

Depende de que files estes usando bro, si estas usando por ejemplo la base de Takumi
Solo vas a definir TMemory en Main.cpp

y agregar el codigo en
 
y con eso ya esta porque en dichos source ya esta agregado el void CommandLineToArg.


funcionou correcto gracias hermano <3


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
5000 Views
Last post December 23, 2016, 12:29:43 PM
by chikitoxd
1 Replies
2331 Views
Last post September 03, 2020, 11:30:35 PM
by JYachelini
3 Replies
1023 Views
Last post October 14, 2019, 08:17:22 AM
by fantoma
0 Replies
549 Views
Last post May 14, 2020, 10:17:15 AM
by Valkyria
1 Replies
563 Views
Last post October 15, 2020, 02:59:38 PM
by clairtoncb