All right, it works fine as :

  _chdir(hlpath); // to get -game albator working
  strcat(hlpath, "\\hl.exe");

  FILE* pFileTmp = 0;
  if ( !(pFileTmp = fopen(hlpath, "r")) )
  {
   cout << "Please place this exe in the ...\\Half-Life\\Albator\\
directory.\n";
   return 0;
  }

  fclose(pFileTmp); // fichier existe, mais le ferme

  _execl(hlpath, hlpath, "-console", "-game Albator", "-fullscreen", 0);

Thx to all how helped me :)

     - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
     - email : [EMAIL PROTECTED]  &  ICQ : 71548738


----- Original Message -----
From: "Marcelo de Paula Bezerra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 7:26 AM
Subject: Re: [hlcoders] hl.exe bug report ?


| separate -game and albator as 2 arguments.
|
| On Mon, 2002-06-10 at 09:57, Cortex wrote:
| > Well, but how can I get the execl function working with hl.exe -game
albator
| > ??
| >
| >      - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
| >      - email : [EMAIL PROTECTED]  &  ICQ : 71548738
| >
| > ----- Original Message -----
| > From: "Cortex" <[EMAIL PROTECTED]>
| > To: <[EMAIL PROTECTED]>
| > Sent: Sunday, June 09, 2002 9:32 PM
| > Subject: Re: [hlcoders] hl.exe bug report ?
| >
| >
| > | wow... thx :) I understand now the "Change directory" command of
| > | Worldcraft/Hammer.
| > |
| > | All works fine now :) It was "quite easy" :)
| > |
| > |      - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
| > |      - email : [EMAIL PROTECTED]  &  ICQ : 71548738
| > |
| > | ----- Original Message -----
| > | From: "Kuja" <[EMAIL PROTECTED]>
| > | To: <[EMAIL PROTECTED]>
| > | Sent: Sunday, June 09, 2002 9:20 AM
| > | Subject: RE: [hlcoders] hl.exe bug report ?
| > |
| > |
| > | | Yeah, the shortcut has to "start in" the hl directory, or it doesnt
know
| > | how
| > | | to find your mods.
| > | |
| > | | -----Original Message-----
| > | | From: [EMAIL PROTECTED]
| > | | [mailto:[EMAIL PROTECTED]]On Behalf Of Cortex
| > | | Sent: Sunday, June 09, 2002 2:02 AM
| > | | To: [EMAIL PROTECTED]
| > | | Subject: [hlcoders] hl.exe bug report ?
| > | |
| > | |
| > | | Hi,
| > | |
| > | | a month ago, I distributed the first private release of my mod to a
few
| > | | players, to get them test it. In the install procedure, a link is
added
| > to
| > | | the start menu, with arguments : -game albator. When the testers
have
| > ran
| > | | the mod by this link, in the "LAN/Create game" menu, the maps of HL
| > | Classic,
| > | | instead of mines, were displayed. Really annoying... I really don't
know
| > | | what happen, since when I use "Start menu/Run... -> ...\hl.exe -game
| > | | albator", all works fine...
| > | |
| > | | Recently, for the need of my mod, I made a little DOS app which use
| > execl
| > | to
| > | | launch hl.exe. Here is the line which launches HL :
| > | |
| > | | _execl(hlpath, hlpath, "-console", "-game Albator", "-dev", 0);
| > | |
| > | | The bug which was reported by the beta-testers happens when I use
the
| > DOS
| > | | app... So, it's very weird, because all "my" new game (btns_main,
| > etc...)
| > | | interface is loaded !
| > | |
| > | | The other thing which amazes me is that FLF, FA, CS (etc...) uses
simple
| > | | links like the one I use. They work fine for them... So, it'd be a
| > single
| > | | problem with MY mod or something else has already ran into this ???
| > | |
| > | | Thx in advance for any answer...
| > | |
| > | |      - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
| > | |      - email : [EMAIL PROTECTED]  &  ICQ : 71548738
| > | |
| > | |
| > | | _______________________________________________
| > | | To unsubscribe, edit your list preferences, or view the list
archives,
| > | | please visit:
| > | | http://list.valvesoftware.com/mailman/listinfo/hlcoders
| > | |
| > | | _______________________________________________
| > | | To unsubscribe, edit your list preferences, or view the list
archives,
| > | please visit:
| > | | http://list.valvesoftware.com/mailman/listinfo/hlcoders
| > | |
| > | |
| > |
| > |
| > |
| > | _______________________________________________
| > | To unsubscribe, edit your list preferences, or view the list archives,
| > please visit:
| > | http://list.valvesoftware.com/mailman/listinfo/hlcoders
| > |
| > |
| >
| >
| > _______________________________________________
| > To unsubscribe, edit your list preferences, or view the list archives,
please visit:
| > http://list.valvesoftware.com/mailman/listinfo/hlcoders
| >
|
|
| _______________________________________________
| To unsubscribe, edit your list preferences, or view the list archives,
please visit:
| http://list.valvesoftware.com/mailman/listinfo/hlcoders
|
|


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to