1 Attachment(s)
[C#] Free open source game loader/patcher
Custom Game Loader is a program designed to make game loader/patching easy for both the admins and clients.
In short, it's a program designed for MMOs such as World of Warcraft, Lineage 2, Ragnarok Online 2 and etc. Think of Prana Updater, but better.
http://ultraedge.net:88/graphics/cglload.jpg
http://ultraedge.net:88/graphics/cglwindow.jpg
ZIPs are a bit buggy. A useless error message appears, but it still unzips.
FEATURES
Streamlined and easy to use GUI
Resumable Downloads
RAR and ZIP Support
Game directory auto find. Automatically finds the game directory so you don't have to
Open source! Uses fully documented code so that anyone can customize the program
FREE as in beer and freedom!
Supports multiple MMOs! More MMO support on the way!
Uses the registry to keep file clutter to a minimal
Uses customizable INI files for easy customization (supports older Prana Updater config files!!)
Easy portability. CGL can be placed anywhere on the HDD. No need to stick the exe in the game directory.
HOW TO USE:
Using CGL is easy. For the client, all they need to do is run the program. It'll automatically download the updates, install them and then allow for the user to run the game. There's nothing to set up or configure. Everything is automatic.
CGL searches the registry for the MMO specified by the admin. If it finds it, it can retrieve the game directory and the exe to run. If it doesn't find it, it'll perform a quick hard drive search for the game. For the advanced users, there's a manual find as well.
For the admins, all that needs to be is the updater.cfg and updates.list file needs to be in the same directory as your update files on a website that's accessible through HTTP. I haven't given the program FTP support yet.
Here are those files.
updater.cfg
Quote:
[Config]
# The Config Links go Here!
# This is the location of where your configuration files should be located
Config_Link=https://ultraedge.net/Archive/cgl
# Obviously, your Homepage address goes here
Homepage=https://ultraedge.net
# Edit this field for files used to redirect your clients to your private server.
# For example. If you're running World of Warcraft, you may want to change this to
# realmlist.wtf. For Lineage II, this value is automatically changed to the host file.
# So, for those running L2, skip this
ClientInfo=mclientinfo.xml
# Custom Game Loader automatically sets this.
AppName=102.0
# Place the name of the exe CGL will need to run to start the game
ClientName=wow.exe
# CGL automatically sets this.
FileName=uroLoader
# Put in your server's domain name or IP address. This is used to determine if your server
# is offline or online
IpResolve=ultraedge.shacknet.nu
CGLIpResolve=ultraedge.shacknet.nu
[ClientInfo]
Playlist=track04.mp3
# The Account and Inter are the ports of the login and game servers. Account = Login server. And Inter = Game Server.
Account=3724
Inter=8085
# This is the name of the game. CGL uses this to determine what game it should look for on the client's machine.
# Here is what is supported:
# World of Warcraft
# Lineage II
# Ragnarok Online
# The casing doesn't matter. Just the name of the game will due with no spaces.
Display=World of Warcraft
updates.list
Quote:
#------------------------------------------------------
# This area tells Custom Game Loader which files to download to the client's computer
# The default area is the main game directory.
#------------------------------------------------------
[Updates]
Update_1=https://ultraedge.net/Archive/cgl/music4.rar
Update_2=https://ultraedge.net/Archive/cgl/hosts.rar
#-------------------------------------------------------
# This section tells Custom Game Loader where the updates should be downloaded to on the
# client's computer.
#
# Default -- Main Custom Game Loader Directory
# Hosts -- In the host directory (C:\Windows\System32\drivers\etc)
# Game -- The Main game directory
#--------------------------------------------------------
[Custom]
Readme.rar=Default
music2.rar=Default
music3.rar=Default
notice2.rar=Default
hosts.rar=Hosts
#--------------------------------------------------------
# This area tells custom game loader to run files after it downloads them.
# You have to have the file compressed in a rar or zip file.
# bar.rar=script.exe -- This tells CGL to uncompress bar.rar and execute script.exe
#--------------------------------------------------------
[Execute]
#-----------------------------------------------------
# This will allow Custom Game Loader to display a message after extracting a file.
# bar.rar=This file is a rar file -- This allows a message to appear whenever you
# specify text to a particular file. Very useful if you want to warn users about certain
# files to run or not run.
#-----------------------------------------------------
[Message]
Now, there's one more thing needed to get your clients connected to you. Be sure to give them the main executable. The one provided has the exe and the system.ini file. The system.ini file contains the location to where to download the config files shown above. Once it downloads that, it'll immediately delete the system.ini file and work from the registry.
It's pretty self explanatory.
The software is still in beta stage as there are some bugs I'd need to fix and stuff like that. If you have any questions, please reply to this thread and I'll see if I can respond as quickly as possible.
------------------------------------------------------------------------------------------
The source code appears to be too large for this forum. So, check out the mirror here:
http://ultraedge.net:88/forums/viewtopic.php?f=15&t=5
Re: [C#] Free open source game loader/patcher
Very nice! +Karma for you! This is a very good application, I might use it for my server ;)
Re: [C#] Free open source game loader/patcher
Re: [C#] Free open source game loader/patcher
very nice thanks for releasing this =D
Re: [C#] Free open source game loader/patcher
I get this error when running the patcher, and as for the error it cant connect to 127.0.0.1:81 where do I change this? so it connects to my website and not localhost?
Quote:
[Error Count]
Tally=1
[Error Messages]
Error 1=System.Net.WebException: Kan geen verbinding met de externe server maken ---> System.Net.Sockets.SocketException: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd 127.0.0.1:81
bij System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bij System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
bij System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- Einde van intern uitzonderingsstackpad ---
bij System.Net.WebClient.DownloadFile(Uri address, String fileName)
bij System.Net.WebClient.DownloadFile(String address, String fileName)
bij cgl.frmInitialize.dataImport(String location)
Also made support for Anarchy Online, my launcher looks like this, just gotta find out how to change the 127.0.0.1:81 then its done lol
http://playao.no-ip.biz/Launcher.jpg
Re: [C#] Free open source game loader/patcher
Very nice share.Whatever you need...post here and don't forget to keep updated the Topic.
Really nice thanks!
-Blane
Re: [C#] Free open source game loader/patcher
Quote:
Originally Posted by
Eponyx
I get this error when running the patcher, and as for the error it cant connect to 127.0.0.1:81 where do I change this? so it connects to my website and not localhost?
Also made support for Anarchy Online, my launcher looks like this, just gotta find out how to change the 127.0.0.1:81 then its done lol
http://playao.no-ip.biz/Launcher.jpg
lol! The error is in another language!! I suppose you must not be using the English version of Windows.
As far as it connecting to 127.0.0.1, it shouldn't be. What does your updater.cfg file look like?
Re: [C#] Free open source game loader/patcher
I'm not hehe, it's dutch.. heres my cfg file:
Quote:
[Config]
Config_Link=http://playao.no-ip.biz/dimensions.txt
Homepage=http://playao.no-ip.biz
ClientInfo=cd_image\data\launcher\dimensions.txt
AppName=102.0
ClientName=anarchy.exe
FileName=PlayAO Patcher
IpResolve=playao.no-ip.biz
CGLIpResolve=playao.no-ip.biz
[ClientInfo]
Playlist=track04.mp3
Account=7501
Inter=7500
Display=AnarchyOnline
edit; ok fixed the 127.0.0.1 part, i was using a proxy on IE and that was no good :P but now it gives the same error but for the IP: 192.168.0.9:80
Re: [C#] Free open source game loader/patcher
Quote:
Originally Posted by
Eponyx
I'm not hehe, it's dutch.. heres my cfg file:
edit; ok fixed the 127.0.0.1 part, i was using a proxy on IE and that was no good :P but now it gives the same error but for the IP: 192.168.0.9:80
The config link shouldn't point to a file. It should point to a directory.
So....
BEFORE: Config_Link=http://playao.no-ip.biz/dimensions.txt
AFTER : Config_Link=http://playao.no-ip.biz/
As for it connecting to 192.168.0.9:80, be sure to check your hosts file. Make sure it isn't redirecting anything. Also, double check the proxy settings in IE. If you observe the code, you'll know that CGL only loads up the web location of whatever you stick in the updater.cfg file. It doesn't make up its own web address.
If you can, I'd be interested if you could translate that dutch error message to English for me. That way I can help you better.
Re: [C#] Free open source game loader/patcher
Thanks alot, that worked... the AFTER: part resolved the connection issue aswell.
Re: [C#] Free open source game loader/patcher
Quote:
Originally Posted by
Eponyx
Thanks alot, that worked... the AFTER: part resolved the connection issue aswell.
I'd be highly interested in the code you used to get CGL to support Anarchy Online. That way, I can add it to the official build.
Re: [C#] Free open source game loader/patcher
Re: [C#] Free open source game loader/patcher
When click the image links it comes up this ^^
There is a problem with this website's security certificate
The security certificate presented by this website was not issued by a trusted certificate authority.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.
Click here to close this webpage.
?????
Re: [C#] Free open source game loader/patcher
Quote:
Originally Posted by
Extreme,
When click the image links it comes up this ^^
There is a problem with this website's security certificate
The security certificate presented by this website was not issued by a trusted certificate authority.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.
Click here to close this webpage.
?????
Depends on the browser you use. Some will give you the ability to proceed and others will require to do extra. The SSL was made to protect you and what you may get from the site. If you're still having issues, you can go here:
http://ultraedge.net:88
Re: [C#] Free open source game loader/patcher
Quote:
Originally Posted by
Qchan
I'd be highly interested in the code you used to get CGL to support Anarchy Online. That way, I can add it to the official build.
I never finished the code, I just used some basic coding to support it but as I no longer dev. AO I kinda quit coding the launcher for it too, source for AO Support was passed over to the left over emu devs and thats all. :P