Jump to content
ZLOFENIX Games

[OpenSource] zloLauncherCLI by Despo


Recommended Posts

zloLauncherCLI v1.2.3

 

A very small (~50KiB without icon) command line interface (CLI) launcher for both BF3 and BF4. Uses the most recent version of the zloAPI (BF3 v7.0.4, BF4 v2.0.1).

This project's main propose is to serve as an alway-up-to-date minimal Client- and Server-Launcher and as a startingpoint for everybody who want's to code their own launcher.

Fully opensource (C#): https://bitbucket.org/_despo/zlolaunchercli

Everyone can contribute to the project. Code is rather messy, if you want to clean it up or add functions I would be glad to add them into master.


015zsg5.png

Features

  • Load API (BF3 & BF4)
  • Login (BF3 & BF4)
  • List all servers (BF3 & BF4)
  • Select server (BF3 & BF4)
  • Basic server info (BF3 & BF4)
  • Singleplayer (BF3 & BF4)
  • Ping server (BF3 & BF4)
  • Basic player stats (BF3 & BF4)
  • Connect to server (BF3 & BF4)
  • ServerLauncher with automatic refresh and reconnect and ErrorLogger (BF3)
  • DLL-Updater/Downloader with automatic restart (BF3 & BF4)

Usage

There are 15 commands of which you can pass 5 via command line (see below). Enter help to get a list.

select, ping, info and connect can either be used with the server ID you want to target or without an argument in which case the previously selected ID will be used (if any).

  1. Load a dll: bf3 / bf4
  2. Login with mail-address and password from zloemu
  3. List servers: servers or play singleplayer: single
  4. (optional) Select a server: select X
  5. (optional) Print info: info / info X
  6. (optional) Ping the server: ping / ping X
  7. Connect to the server: connect / connect X

 

Calling launcher from command line

You can pass 6 commands: -bf3 or -bf4 -login mailaddress password -connect serverID or -single -autoclose

Login,  connect and autoclose are optional. This will not work if your password starts with -, contains whitespaces or regular expressions like \r or \n

 

ServerLauncher

Either do it manually by loading a DLL with bf3 / bf4 and starting ServerMode with server, or call it from commandline/batch. For example: copy DLL and launcher into your server-directory and insert following line at the beginning of your _StartServer.bat:

start zloLauncherCLI.exe -bf3 -server

The status of your server(s) will auto-update. If you get disconnected from master-server launcher will automatically try to reconnect your server after 15seconds. Be aware that even if the server connects back immediately, it will still take some time (1-3 minutes) till you get back IN_GAME. Exit ServerMode by pressing [CTRL] + [E] on your keyboard.

 

Future

  • ServerLauncher for BF4
  • autorestart server if server crashes/hangs
  • Cleanup

 

 
 

 

Download v1.2.3:

https://bitbucket.org/_despo/zlolaunchercli/downloads/zloLauncherCLI_v1.2.3.0.exe

Edited by Despo
updated to 1.2.3
Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

updated to v1.2.1

fixed a gamemode-related error

added a "autoclose"-function which closes the launcher if game crashes/exits (on request from Cepora)

 

This command for make launcher ?? What program which u use sir ? 

sorry I don't really understand what you are asking.

Link to post
Share on other sites

updated to v1.2.1

fixed a gamemode-related error

added a "autoclose"-function which closes the launcher if game crashes/exits (on request from Cepora)

 Thanks Despo =) and how using thats command?

Edited by Cepora
Link to post
Share on other sites

Sorry sir if my question make u confuse :D , i just ask for u ,what the function of zloAPI , ? this code for making launcher or something sir ?

Its already a launcher, just command line based... You can find his source on his site. Technically you could use the code and build your own launcher on it... Program of your choice

https://bitbucket.org/_despo/zlolaunchercli/src

^

Edited by thetruestarr
Link to post
Share on other sites

updated to v1.2.2:

  • fixed autoclose once again
  • added singleplayer
  • changed minimum required .NET framework to 3.5

"C:\OrignGames\Battlefield 4\zloLauncherCLI_v1.2.1.0.exe" -bf4 -login xxx yyy -connect 1 -autoclose

 

dont work =(

version 1.2.2 works now from commandline too

Link to post
Share on other sites
  • 1 month later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...