-
[R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
IThis is my own emulator for Habbo, coded from scratch!
As you can see in the title, it's made for r14 and is coded in C#.
It also uses MySQL for data storaging and supports both client login and SSO.
You can download the last version of the emulator which is OPEN SOURCE, all releases after that is CLOSED SOURCE. (I'm not going to obfuscate the code)
Features: (could be some missing)
- SSO & client login
- Purse
- Console (need to fix, buggy)
- Navigator (not complete)
- Public rooms
- Private rooms
- CFH (bugged)
+ Stable Battleball!
If you want to help me, I need some things:
- A VPS/Dedicated server for test hotel (performace testing + bug reporting)
- A CMS for the emulator
- Download link to complete r14 DCR
Picture(s):
http://oi52.tinypic.com/2h6yhdt.jpg
Source downloads: (All previous releases + last)
Free File Hosting Made Simple - MediaFire
REMEMBER TO DOWNLOAD http://forum.ragezone.com/attachment...hop-chopdb.txt FOR LAST SOURCE!
Binary:
- (none yet)
-
Re: [V14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [V14]
Approved, Remember to Edit and add more info :P
-
Re: [V14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [V14]
I might be up to coding a CMS for the server and all.
-
Re: [V14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [V14]
Will the last release be Open Source?
Good luck with the project anyways! I really hope you finish this!
-
Re: [V14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [V14]
all hes releases are open-source?
-
Re: [V14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [V14]
Quote:
Originally Posted by
Žak™
all hes releases are open-source?
Nope, not any more.. How come you arnn't keeping it open-source :( - I used your software as a base to learn C# and the habbo protocol :(
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I agree with Pure, just keep it open-source :o
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
If you need any help with this, i'll help
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
He probs dont want ripping then.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I would help but honestly I dislike the server rofl I look at it and it pisses me off, but anyway, you should also probably make the 'session' field "unique" so that no matter what CMS people use they can't have a duplicated SSO ticket ;)
Also, for badges you should just do a field for the current badge in the users table, instead of an extra field in badges that isn't needed.
Also same thing about vouchers, 'only for web' is kind of stupid since technically in v13... Vouchers were opened via purse still, plus you don't REALLY need the extra field ;)
I would comment on the server's code but I honestly can't be bothered going through it at the moment, so I figured a DB critique would suffice for now.
I'm not 'flaming' just in case any n00bs decide to talk shit, I'm criticizing as a developer to another developer so he may attempt to improve his project based on my suggestions and constructive criticism.
Thanks,
Moogly
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I don't have much spare time considering I am working on my own project. But I could provide you a dedicated server and probably code a CMS with some of my spare time.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I am up for coding a CMS to it aswell. PM me. <3
---------- Post added at 12:44 AM ---------- Previous post was at 12:39 AM ----------
Matter of fact, I have already started.
-
Quote:
Originally Posted by
PEjump2
I agree with Pure, just keep it open-source :o
On every thread where i see you, you ask for the source? -,-
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
rajito
On every thread where i see you, you ask for the source? -,-
Uhm, nope? This is actually the first time i'm asking that.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Could anybody host r14 DCR for me?
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Quote:
Originally Posted by
Someuser
Uhm, nope? This is actually the first time i'm asking that.
I was saying that to PEjump. :p
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
EDIT: I tested, woking fine ;)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
rajito
I was saying that to PEjump. :p
I'm PEjump, infraction banned ya'now.
-
Quote:
Originally Posted by
Someuser
I'm PEjump, infraction banned ya'now.
-.- What did you did now? :p
and it is not the first time you ask.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
What else do you get infraction banned for? Use your brain for once.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
Bjork
Don't work :(
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
AWA if you can't even setup your own R14 DCR's then you shouldn't even try to make a Emulator..
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
SomeHump, shut up. He probally can't be arsed to host them as hes to busy. Anyway I doubt you can code an emulator from scratch.
/sigh
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
Don't work :(
Should work now! if that's not working and if you have windows, try a cmd > ipconfig /flushdns
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Now it don't work anymore, worked a few times
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
PEJump stop joking around :/ he just cant be arsed to host em
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Zak add me on msn i got an error on my hotel r63 - habbostaff__ca@hotmail.com
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I am working on the CMS nao.
And Powah, he can code, he is working on a v21 emulator atm.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
So how far have you gotten with the CMS?
Basic catalogue is done, making basic hand too.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Nice job Awa :) i hope you can open a test hotel sometimes looking great;)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I havent started on the actual CMS, but on the class that makes the CMS work, and its gotten pretty far.
---------- Post added at 04:25 PM ---------- Previous post was at 04:09 PM ----------
Code camera for this so I can script hotels using it to make the pictures show porn :)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I think camera use some kind of encryption, I've tried to do it before. I know it is sent via MUS.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Oh, okay...
Well, if you are taking requests, please dont code the hand to be like:
Instead, make a table with each item for every user.
Just an idea.
Tell me the requirements for a SSO ticket to be valid in the server.
---------- Post added at 05:53 PM ---------- Previous post was at 05:32 PM ----------
The current SSO function looks like this;
PHP Code:
Function CMS_Ticket()
{
Return "ST-".rand(0, 1000)."-".rand(0, 60000)."-CHOP-".rand(0, 2000)."-".rand(0, 1500);
}
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
Oh, okay...
Well, if you are taking requests, please dont code the hand to be like:
Instead, make a table with each item for every user.
Just an idea.
Tell me the requirements for a SSO ticket to be valid in the server.
---------- Post added at 05:53 PM ---------- Previous post was at 05:32 PM ----------
The current SSO function looks like this;
PHP Code:
Function CMS_Ticket()
{
Return "ST-".rand(0, 1000)."-".rand(0, 60000)."-CHOP-".rand(0, 2000)."-".rand(0, 1500);
}
Didn't quite understand that first part, but with the SSO: As long as the string the client sends is the same as in the database, it's valid.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
The hand items should be in tables instead of in a row for each user.
---------- Post added at 11:10 PM ---------- Previous post was at 11:07 PM ----------
Oh, right, I am taking requests for the CMS.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
please someone help me, I've been trying to run chop v2 for several days but I get mysql error and I have firmly planted data connect mysql What is needed?
please answer me
Mysql need to chop v2
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
You need the ODBC from MySQL's website, go google!
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
Oh, okay...
Well, if you are taking requests, please dont code the hand to be like:
Instead, make a table with each item for every user.
Just an idea.
Tell me the requirements for a SSO ticket to be valid in the server.
---------- Post added at 05:53 PM ---------- Previous post was at 05:32 PM ----------
The current SSO function looks like this;
PHP Code:
Function CMS_Ticket()
{
Return "ST-".rand(0, 1000)."-".rand(0, 60000)."-CHOP-".rand(0, 2000)."-".rand(0, 1500);
}
I was thinking instead of using a row per item you could do this.
|---------------------
| userId | roomId | userItems |
| 1 | 1 | seializeArray( userItem ); |
|--------------------|
I'm not sure if c# has the same function as PHP (see php.net/serialize) but that would save alot of rows of data..
:)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I didnt understand any of that but eh.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
I didnt understand any of that but eh.
Hmm, kinda hard to explain - but I'll try my best.
Right, the old fashion way is that that you would have two rows of data
userId - roomId - furniId - so on and so forth
In this you would wrap all that roomId - furniId into something called a "serialized" array. Which basicly turns it into a string like this.. (which you can put into a database)
Code:
a:2:{i:0;s:4:"pleh";i:1;a:2:{i:0;s:4:"pleh";i:1;R:3;}
(btw its not ment to be read like writing - its computer language so php can read it)
Which then can unserialize and then it would be an array again, then you can do what you will for's, foreach etc. :)
I'll do some research into this for c# :)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I am so gonna start using that method.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
I am so gonna start using that method.
Lemme guess, you didn't understand anything of what he said?
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
You need the ODBC from MySQL's website, go google!
you need mysql version ?
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I sure didnt. :P
Ivan, just take one, it doesnt matter!
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
I sure didnt. :P
Ivan, just take one, it doesnt matter!
GOD DAM IT, I'll put it into coding terms for you.
PHP Code:
<?php
$userArray = array ( roomId => array( 1, array( '1;2;3;4;5', 'soo on' ) ) );
mysql_query( 'UPDATE user_rooms SET userData = "'.serialize( $userArray ).'";' );
$fetch = mysql_fetch_array( mysql_query ( "SELECT userData from user_rooms ORDER BY id DESC LIMIT 1;" ) );
$userArray = unserailize( $fetch[ 0 ] );
?>
Lawd.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
So you're putting all columns in one coulmn?
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Yeh, then when you need it, it's all in an array which you can access via
furniItem['furniId']['colour_x']
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Now that coding part I understood. Its smart actually.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Why do that when you could use columns?
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
Why do that when you could use columns?
Because you would save loads of rows of data.. because you could have all of there room items in one column..
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Well, I cant find a suiting layout for the CMS... ;(
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I found a suiting layout, now I have another request, store room owners by ID so I can make a change name function is Housekeeping.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I do not see the reason why you make this project open source and don't release the source for the compleeted server. You can just deobfuscate the code lol.
- Martin
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Maritnmine, let him do it his way, its his project.
Oh well, I have gotten far on the CMS, I got a screen of the design as it is for now.
http://v.yey.nu/1ee/e5672.PNG
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
X1m! it looks nice try adding images or somthing to it because it looks kinda plain
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Yeah, its far from complete..
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Looks good, Hope to see it round in the near future.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I'm ok vacation il Brasil atm.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
And I am busy with school, so the CMS dev is paused.
EDIT: I wont be making the CMS.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Looking good :D
I don't wanna download it, but I can tell from the pics, it's going to be good!
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I hope you will continue working on it when your back from vacation!
It's going amazing!
Edit: Entering private rooms dc's me
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
How very kind of you to provide us with a free picture. Top of the day to ya sir.
Keep up the good work with battle ball, this server wreaks of greatness. ha.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Amazing ;D Keep up the amazing work!
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Would speed up the work if anybody has battleball or game lobby packet logs.
(DOn't tell me to look in holo, the packets are different)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Holo is v26, thats the version where packets changed, so maybe that emulator for v20 with bb and ss csn help ya.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
X1M!
Holo is v26, thats the version where packets changed, so maybe that emulator for v20 with bb and ss csn help ya.
Holograph v23 has them, but not sure if they would be correct for v14 as that's the earliest I could name <3.
Some spanish dude may of released a server.. you know the spanish! xD
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Probably no coding today. (going snowboarding)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I believe Holograph VB.NET might have some usefull packets for you, its the v21 Holograph version and it contains battleball ( not fully, but its working :] )
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
The packets for bb are the same....
Posted via Mobile Device
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
Donkjam
The packets for bb are the same....
Posted via Mobile Device
No, not from r14 to r21, or then Nillus coded it horribly wrong atleast.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
No, not from r14 to r21, or then Nillus coded it horribly wrong atleast.
Nillus coded it wrong but you're also correct.
If you need a 24-7 host for a testserver I have a dedi with 12GB of RAM.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
Jontycat
Nillus coded it wrong but you're also correct.
If you need a 24-7 host for a testserver I have a dedi with 12GB of RAM.
yes please, and if I use the packets from holograph, it won't work, already tested.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I just had a look at your code and I would like to give you some tips regarding coding structure.
- NEVER use public unless its in a DLL file or like Dispose() using IDisposable
- Having one space between each method makes it easier to read
- Left click in code -> Organize usings -> Remove and sort
- Using a Dictionary instead of an array saves you A LOT of ram
- And looking at your catch statement in the socket, why not call
Core.ClientManager.RemoveClient(this);
instead of
Core.ClientManager.RemoveClient(mID);
? Its waste of time getting the instance to the object when the method is called from the object you are reffering to.
- Use structs instead of classes while storing data
- If built on annother system, try and keep the same coding layout
Annyways, good luck Audun ;)
- Martin
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Thanks Martin, I'm still a beginner in coding :)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
Thanks Martin, I'm still a beginner in coding :)
Yes, and so am I. I don't have any education in coding, I also haven't read any books regarding coding.
- Martin
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
how did i know you were gonna talk about ram
you can be my ram bitch ^^
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Here is my battleball progress:
List games - 100%
Create games - 75% (no powerups)
View game info - 99%-100% (some unknown part of packet)
Join game - 100%
Switch team - 100%
Leave game - 100%
Kick player - 100%
Start game - 5%
I'm recoding big parts of the bb code because it got too messy.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Are you going to make it so we can use the other maps or are you just doing the orginal map? :-) aLso great progress are you just guessing the packet structure or using holo :-)
Posted via Mobile Device
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I'm gonna add all maps, and I use most packets fro Holograph, someone are different.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
No, not from r14 to r21, or then Nillus coded it horribly wrong atleast.
Seams to be working fine for me. (one of my many unreleased stuffs)
http://img.sharefast.net/1299604677647160871836.jpg
http://img.sharefast.net/1299604700105326923328.jpg
Quote:
Originally Posted by
AWA
Here is my battleball progress:
List games - 100%
Create games - 75% (no powerups)
View game info - 99%-100% (some unknown part of packet)
Join game - 100%
Switch team - 100%
Leave game - 100%
Kick player - 100%
Start game - 5%
I'm recoding big parts of the bb code because it got too messy.
Nice Progress so far
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
Donkjam
Had boobs in the first pic :thumbsup:
This progress of the server is great, keep it up AWA.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
Donkjam
My listing code:
PHP Code:
private void HANDLER159() // "B_" - Get game list
{
mResponse.Init(232); // "Ch"
// open games
List<VirtualGame> games = mRoom.mLobby.GetGames(VirtualGameState.Open);
mResponse.AppendWired(games.Count);
foreach(VirtualGame game in games)
{
mResponse.Append(game.ToFuseString());
}
// running games
games = mRoom.mLobby.GetGames(VirtualGameState.Running);
mResponse.AppendWired(games.Count);
foreach (VirtualGame game in games)
{
mResponse.Append(game.ToFuseString());
}
// ended games
games = mRoom.mLobby.GetGames(VirtualGameState.Closed);
mResponse.AppendWired(games.Count);
foreach (VirtualGame game in games)
{
mResponse.Append(game.ToFuseString());
}
SendResponse();
}
PHP Code:
public string ToFuseString()
{
Response r = new Response();
r.AppendWired(mID);
r.AppendString(mName);
r.AppendString(mOwner.mHabbo.mName);
r.AppendWired(mMapID);
return r.ToString();
}
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
AWA, also will this be textfiles based? Hopefully is because im coding CMS for it.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
It's MySQL, no text database.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
AWA - If you want I'll PM you my MSN if you want.. and I'll make a really simple CMS for your system. :-)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
I've got the flu or whatever, so cba coding
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
AWA
I've got the flu or whatever, so cba coding
Ow that suxs:(:
I hope you will be better soon:wink:
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
The server doesn't connect with my mysql (using xampp)
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
Quote:
Originally Posted by
johwie
The server doesn't connect with my mysql (using xampp)
If you can't even setup a proper database connection you shouldn't make a retro at all.
-
Re: [R14] [C#] [FROM SCRATCH] Project Chop V2 [FROM SCRATCH] [C#] [R14]
When are you going to complete the navigator and catalogue?