Programming For Classic

Programming For Classic

Postby Leeizazombie » 05 Apr 2014, 01:14

I'm making a program for my community and I just tought I'd see how everyone would react to it :)
Co developer is _Retaliate_
Here's a screenshot of it's best feature:

Image
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: Programming For Classic

Postby dzienny » 05 Apr 2014, 18:32

It looks very promising. I got a technical question about CC. Does it include CC, or does it get it each time from the website? I ask about it because in the first case some unique extensions could be added and that would be cool.

Also, I have one suggestion. You could get a player's achievement list, and display the unlocked awards with some suitable icons.
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: Programming For Classic

Postby Leeizazombie » 05 Apr 2014, 19:31

It was embedded from the website like ?embed=true. a custom server list was made and we had to import a lot of files frm the %APPDATA% directory, the whole structure of that client was made by _Retaliate_ and I was thinking how I could get information off a single server like my own, would that be done by making a custom heartbeat?
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: Programming For Classic

Postby dzienny » 05 Apr 2014, 20:05

You could use HTTP protocol for that. Set up an HTTP listener with HttpListener class and handle the incoming queries. There are some nice articles about how to set up a simple HTTP server, for example: http://www.codeproject.com/Articles/137 ... erver-in-C

The client would then just make an HTTP GET request, example:
Code: Select all
http://[server-ip]:[port]/achievements?user=[user-name]

And the server would return the suitable data in JSON, XML or CSV format, example:
Code: Select all
{
"user" : "LeeIzaZombie",
"awards" : [
{ "firstWin" : 1 },
{ "tenBrains" : 0 }
]
}

The client would then parse the data and display it to the user.

You can do it as a custom command, or using the Plugin API (if you want to create a GUI for it).
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: Programming For Classic

Postby Conor » 05 Apr 2014, 20:55

This looks very cool.

It's great to see how far people go in the community. You used to regularly suggest very basic commands and ask for help with them. And now you are offering other people help and creating your own software. I used to help you a time ago and now it would be the other way round.

It's so awesome to see people as crazy interested in the coding as I used to be. Good job with this, it looks awesome <ok>

Spoiler:
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Programming For Classic

Postby Leeizazombie » 05 Apr 2014, 21:17

Thanks Dzienny, I'll try something :)
Well Connor, you know what they say; the best techniques come from the veterans.
What I mean is that I learnt from the pro's, thanks :)
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: Programming For Classic

Postby joppiesaus » 07 Apr 2014, 19:21

Wow, that looks awesome! <ok>
Is it Java or C#? How did you implement the Classicube client in it?

Well anyways you are a GREAT person to this community! I'll definetly use it! <ok>
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: Programming For Classic

Postby Leeizazombie » 07 Apr 2014, 23:34

joppiesaus wrote:Wow, that looks awesome! <ok>
Is it Java or C#? How did you implement the Classicube client in it?

Well anyways you are a GREAT person to this community! I'll definetly use it! <ok>


It is in pure C#, well first it starts with a custom made server list (ClassiCube servers) and when you join it will see if you're logged in, if not then be sent to the login page, then it continues with the URL of the server you tried to join, it's all website based, but still in full screen, it has to import ClassiCube files also.

Oh if you want to try it then go to my website: http://leeizazombie.cba.pl/viewtopic.php?f=68&t=152 might not be the latest version but the updater will make sure! :lol:
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: Programming For Classic

Postby joppiesaus » 08 Apr 2014, 18:11

I looked into your client and... It's awesome! It's really a "community" client. I also like the built-in gadget thinggys, so you can download your own skin for example. <ok>
Also a really smart way to do classicube from the web, instead of implementing CCC...
I also noticed a funny error, which I am able to fix just to goto the Java properties screen. I had set the security from high to medium. :P
funny error.PNG
funny error.PNG (21.93 KiB) Viewed 1051 times
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: Programming For Classic

Postby Leeizazombie » 08 Apr 2014, 21:13

I'm glad you like it! That error is because ClassiCube still don't have it signed on the website so changing security settings is all you can do for now lol
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Next

Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest

cron