Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C# Launcher & Updater

#1
Credit for base: Matt


CUPLA - Game Updater & Launcher


Features:
  • Updates Game
  • Launches Game
  • Show Server Status
  • Background Music
  • Shows Client Version
  • Website button - Launches Game Website
  • Editable Layout
Screenshots
HOW TO USE:
Download
OLD POST CONTENT

NEW Versoin 4.0: CUPLA4.0
Reply

#2
I like the look of it Smile but it's confusing to me that there's a Play and Update button, does Play get disabled if there are updates and re-enabled after the updates?
Baannounik shall control all!

Eclipse Engines

Misc.
Reply

#3
Thanks glad you like it

Currently the two button are independent of each other , so if you click the play button it will load the game even if its not updated, but i guess i make the the updater check to see if there is an update and have the button reflect that , and then i will change the second button to be a link to the game website
Reply

#4
I'm glad you found the base-project useful! But I don't really like how you're taking something open source, plopping a simple UI on it, and asking people to pay you to change a few images just because they don't have access to the source. You're more than free to do it though. Also, +1 for copy and pasting my repo's README.
Reply

#5
I'd also like to chip in, That Matt's updater/launcher is well worth working with as I use a custom version from Matt myself for my project. I'd also like to suggest open sourcing it as an expansion on Matt's.

Quote:i will also be willing to customize the layout to fit peoples games
for those that cant for a low price of $10

Can't really customize something when it's compiled :p.

I'd choose Matt's over any open source one either way Smile.
Reply

#6
(12-12-2015, 10:39 PM)BeNjO Wrote: I'd also like to chip in, That Matt's updater/launcher is well worth working with as I use a custom version from Matt myself for my project. I'd also like to suggest open sourcing it as an expansion on Matt's.

Quote:i will also be willing to customize the layout to fit peoples games
for those that cant for a low price of $10

Can't really customize something when it's compiled :p.

I'd choose Matt's over any open source one either way Smile.

Yea i am going to branch matt github repo, i never use it so i will post the link once i set it up Big Grin

for the customize , i will be editing the source for people who don't want to do it or cant 
Reply

#7
how do i customize the look of it?

(12-27-2015, 02:22 AM)Orake the GM Wrote: how do i customize the look of it? NVM*******
Reply

#8
(12-27-2015, 02:22 AM)Orake the GM Wrote: how do i customize the look of it?

(12-27-2015, 02:22 AM)Orake the GM Wrote: how do i customize the look of it? NVM*******

the version that is customizable has not been uploaded , i will upload within a few minutes it be called CUPLA V3 EDITABLE

The File been updated check first post
Reply

#9
all i see is old download link
Reply

#10
i love this lancher thank you so much
Reply

#11
(12-28-2015, 06:14 AM)Orake the GM Wrote: i love this lancher thank you so much

Great that you like it Big Grin 

I want to make this user friendly , so any suggestion are welcome.

Also i clean up the first post
Reply

#12
I click update and it says Done instantly, no files have gone into my folder though.
Reply

#13
What is the dbz game that it's setup with?
Reply

#14
I fixed my error - However when I hit update I get this error.

http://prntscr.com/9jodpg
Reply

#15
(12-29-2015, 12:56 AM)Essence Wrote: I fixed my error - However when I hit update I get this error.

http://prntscr.com/9jodpg

ok when you get the error click on details and copy it and paste here so i can see whats wrong 

(12-29-2015, 12:50 AM)whitespirits Wrote: What is the dbz game that it's setup with?

it's a game i am working on
Reply

#16
A shame you didn't release the source code...would've made things a bit easier.

Oh well, I can have it decompiled fairly accurately. In order of what I encountered:

[*]Please don't parse the GUI file like that...you can natively serialise/deserialise XML with .NET
[*]Use WebClient.DownloadFile(Async) to handle downloading your files instead of titting around with Streams and DataBuffer.
[*]Don't use TcpClient to simulate a connection test. .NET has the Ping class (http://stackoverflow.com/questions/11800958/using-ping-in-c-sharp)
[*]If you're in need of async functionality, look up TaskFactory (Looks like you're using .NET 4.5, so Task.Run())
[*]Music is silly. It's an updater.
[*]Storing a separate integrity file for folders and files is silly. Just store files and create directories based on the files going in, if it already exists, it'll carry on as normal.
[*]More DataBuffer ickiness. Have your file list serialised to XML! Makes things much easier.
[*]Thread.Sleep(). *grates teeth*. If you need form elements updated and displayed while doing work, you invoke them in a separate thread. Making my CPU spin needlessly for an updater is not exactly...great.
[*]Actually, this whole downloading routine entirely. Use DownloadFileAsync and use the progress changing and completing events to progress things. Makes keeping your form responsive much more easier.

EDIT: As far as the error goes, it looks like you're using a character that the Windows filesystem does not allow.
Reply

#17
Xam do u have Skype bro? I can really help with dbz game Smile
Reply

#18
(12-30-2015, 02:18 AM)Xam Wrote:
(12-29-2015, 12:56 AM)Essence Wrote: I fixed my error - However when I hit update I get this error.

http://prntscr.com/9jodpg

ok when you get the error click on details and copy it and paste here so i can see whats wrong 

See the end of this message for details on invoking 

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at System.IO.Directory.CreateDirectory(String path)
   at ODBS_Updater.Form1.up_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.100.0 built by: NETFXREL2STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ODBS Updater
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Bradley/Desktop/New%20folder%20(6)/Game%20Launcher/updater.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.91.0 built by: NETFXREL2STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.81.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:


    <system.windows.forms jitDebugging="true" />


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Reply

#19
Sorry for late replay , i am on vacation Big Grin
so this happens when you click on the update button correct ?

if so make sure your url has / at the end like so ex (http://domain.com/update/)

now if that's not the problem if its the music button , then check that its a wav file and you put the right name on editor ,

also if you open the setting.txt and paste it here so i can check it out
Reply

#20
I'm still unsure how to use this?
Is there anyway you can contact me?
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  C# Updater - SHA256 based Joyce 23 4,036 12-20-2016, 01:08 PM
Last Post: PhenomenalDev
  C# Updater Joyce 10 2,421 08-25-2015, 04:24 PM
Last Post: joaovitor1819
  C# File Updater Matt 9 1,721 08-21-2015, 10:36 PM
Last Post: Matt
  LTGUpdater ~ MD5 MMO Auto Updater [console based] lexkymbeth 3 1,627 11-22-2013, 01:06 PM
Last Post: lexkymbeth
  CRC32 Updater abhi2011 14 1,869 08-02-2013, 12:44 PM
Last Post: Kajamaz

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB 1.8.4 Theme © iAndrew 2016