Page 1 of 2

NXE Avatars

Posted: Thu Nov 20, 2008 1:24 pm
by DrXThirst
I got bored, so I made this little app. It's UI isn't that great, and there's a total of like 50 lines of code. However, it works and that's all that counts.

So, here's a quick description, a preview image, and a download link.

Description:

Update: Type someone's GamerTag into the textbox, and click "Get Avatar!" You will then have the option to save the image to your desktop and the URL will also appear in the textbox below so that there's no need to re-upload the images.

Update 2: New UI version up. It will look like this no matter what OS you're using, unless you have visual effects turned off. I'm leaving both downloads up for people to choose from.

Preview Picture:
Image

Download Link: (Old) Click Here To Download

Preview Picture: (New)
Image

Download Link: (New) Click Here To Download

Source Download Link: Click Here To Download

Posted: Thu Nov 20, 2008 1:32 pm
by Tural
Now what will I post here?

Posted: Thu Nov 20, 2008 1:33 pm
by DrXThirst
Nothing. Your posting ability in this thread has been reduced to 0. :P

Posted: Thu Nov 20, 2008 2:59 pm
by -DeToX-
Cool.
Image

Posted: Thu Nov 20, 2008 3:06 pm
by Aumaan Anubis
Image

Doesn't get much more blatantly attractive and cool as that.

Sweet app, by the way.

Posted: Thu Nov 20, 2008 3:10 pm
by Tural
The program should include a direct link to the image already online, rather than requiring people to re-upload them.

Posted: Thu Nov 20, 2008 3:31 pm
by DrXThirst
Done.

Posted: Thu Nov 20, 2008 3:56 pm
by FleetAdmiralBacon
For someone with an Ubuntu signature and avatar, I'd think you'd make, at least, a more Wine or Mono-happy application. Crashes gdiplus in Wine, fails on the text encoding for a resource in Mono.

Posted: Thu Nov 20, 2008 4:36 pm
by DrXThirst
I don't use 'Wine' or anything like that. I only use what's supplied with Ubuntu. I wish they'd release a C# for Ubuntu, though.

Posted: Thu Nov 20, 2008 4:55 pm
by OwnZ joO
Mono allows you to use C# with linux and other OS's.

Posted: Thu Nov 20, 2008 5:06 pm
by DrXThirst
I'll have to look into that. :)

Posted: Thu Nov 20, 2008 5:12 pm
by FleetAdmiralBacon
DrXThirst wrote:I'll have to look into that. :)
If your an .NET-anything programmer and you're moving to Linux, you will love Mono (Mono itself comes with Ubuntu - it's what powers applications like F-Spot and Tomboy, and the amazing Banshee media player [in the repos]). It's more than just C#, it's a complete* open-source implementation of .NET with compilers for a number of other languages (VB, F#, etc.).

*though it would seem that the text encoding you're using for something isn't in there. I'll run it through the debugger...

Code: Select all

Unhandled Exception: System.TypeLoadException: Could not load type 'System.Text.SBCSCodePageEncoding, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
  at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00011] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System/Type.cs:457 
  at System.Resources.ResourceReader.ReadValueVer2 (Int32 type_index) [0x001f9] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceReader.cs:310 
  at System.Resources.ResourceReader.ResourceValue (Int32 index) [0x00092] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceReader.cs:394 
  at System.Resources.ResourceReader+ResourceEnumerator.get_Value () [0x00032] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceReader.cs:603 
  at System.Resources.ResourceSet.ReadResources () [0x00043] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceSet.cs:208 
  at System.Resources.ResourceSet.GetObject (System.String name, Boolean ignoreCase) [0x00032] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceSet.cs:163 
  at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00038] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceManager.cs:186 
  at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] in /build/buildd/mono-1.9.1+dfsg/mcs/class/corlib/System.Resources/ResourceManager.cs:170 
  at NXE_Avatars.Form1.InitializeComponent () [0x00000] 
  at NXE_Avatars.Form1..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) NXE_Avatars.Form1:.ctor ()
  at NXE_Avatars.Program.Main () [0x00000] 
Hmm... Further research indicates that it may be an extended ASCII format for another locale which you probably shouldn't be using. If you can find what's using it, you can try and dump it. Based on a decomp with a binary resource file, you may have included pointless foreign characters in a resource string.

Posted: Thu Nov 20, 2008 5:15 pm
by bcnipod
I see the root of the problem!

http://skitch.com/dirkgently/henb/nxe-a ... pplication

Not to worry the Mono team will soon have this application working :P

Posted: Thu Nov 20, 2008 5:18 pm
by OwnZ joO
It does support other languages too, but C# has the most comprehensive support, and most of the stuff was written in C# I believe.

Posted: Thu Nov 20, 2008 5:21 pm
by DrXThirst
Ok, well I trust Halomods, so I'm going to upload the source for you guys to take a look at.

EDIT: Source is up.

Posted: Thu Nov 20, 2008 5:40 pm
by FleetAdmiralBacon
Thanks, I got it working. Had to kill off the encoded/encrypted resource elements for the WebClient, and remove a lot of initialization calls for the WebClient, but it works.
e: And everything appears to work fine.

Posted: Thu Nov 20, 2008 5:44 pm
by DrXThirst
Sweet! Mind uploading that version, and a link to Mono? :D

Posted: Thu Nov 20, 2008 5:54 pm
by FleetAdmiralBacon
DrXThirst wrote:Sweet! Mind uploading that version, and a link to Mono? :D
You already have Mono.
`sudo apt-get install monodevelop` for the IDE. While MonoDevelop 1.0 isn't any where near Visual Studio, it does get the job done. Regardless, your Visual Studio-built binaries should work anyway, barring any conversion problems (like the ones we saw here). 2.0 is great, but it's not finished yet. I'm using an old alpha, they may even have a beta out for all I know...

Attached is the Mono-friendly version, which should still run on Windows (and even Mac).

Download here

e: Moved it to my site.

Posted: Thu Nov 20, 2008 5:57 pm
by Eaton
Updated your UI. :P

Image

Posted: Thu Nov 20, 2008 6:05 pm
by Ragdoll
Nice app Dr.

Image