- Joined
- Aug 7, 2010
- Messages
- 29
- Reaction score
- 5
I love this project!
I hope it is soon done!
I hope it is soon done!
public static _stuffTypeSelectionEnabled:Boolean;
public static _furniLimit:int;
public static _Triggerable:Array;
public static _id:int;
public static _stringParam:String;
public static _intParams:Array;
public static _stuffTypeId:int;
public static _stuffTypeSelectionCode:int;
@Override
public final void toggle(RoomUser user, int instruction)
{
if(user != null && user.hasRoomOwner)
{
user.getSession().send(this.serializeDialog());
}
}
protected abstract ServerMessage serializeDialog();
@Override
public ServerMessage serializeDialog()
{
// Aggregrate lists
List<Item> selected = this.getSelectedItems();
List<WiredItem> conflicts = this.getIncompatibleTriggers();
// Serialize info
ServerMessage msg = new ServerMessage(EServerMessage.WIRED_FURNI_ACTION);
msg.appendBool(false); // Disable advanced selection options
msg.appendInt(5);
msg.appendInt(selected.size());
for(Item item : selected)
{
msg.appendInt(item.id);
}
msg.appendInt(this.definition.displayId);
msg.appendInt(this.id);
msg.appendStr(this.getText());
msg.appendInt(this.getParams().length);
for(int param : this.getParams())
{
msg.appendInt(param);
}
msg.appendInt(this.getSelectionType());
msg.appendInt(this.getInterface());
msg.appendInt(this.getDelay());
msg.appendInt(conflicts.size());
for(WiredItem item : conflicts)
{
msg.appendInt(item.definition.displayId);
}
}
public abstract class WiredTrigger extends WiredItem
{
protected abstract boolean suppliesUser();
public final void execute(RoomUser user)
{
// Fire!
this.flash();
// Get all items in the stack
List<Item> items = this.getStackedItems();
// Search for Addons + Conditions
for(Item item : items)
{
// Is this a Condition?
if(item instanceof WiredCondition)
{
// Evaluate the Condition
WiredCondition condition = (WiredCondition)item;
if(condition.evaluate(user) == true)
{
condition.flash();
}
else
{
return;
}
}
}
// Search for Actions
for(Item item : items)
{
// Is this an Action?
if(item instanceof WiredAction)
{
WiredAction action = (WiredAction)item;
if(user != null || !action.requiresUser())
{
action.flash();
if(action.getDelay() == 0)
{
action.execute(user);
}
else
{
action.execute(user, action.getDelay());
}
}
}
}
}
public class WiredItemsMatchCondition extends WiredCondition
{
private final static int PARAM_MINMATCH = 0;
private final static int PARAM_FORMATION = 1;
@Override
protected int getInterface()
{
return 9;
}
@Override
protected int getAmountOfParams()
{
return 2;
}
@Override
public boolean evaluate(RoomUser user)
{
int count = 0;
int formation = this.getParam(PARAM_FORMATION);
// Match states and formation of selected items
List<Item> selected = this.getSelectedItems();
for(Item item : selected)
{
for(Item someItem : selected)
{
if(someItem != item)
{
if(someItem.state.equals(item.state))
{
if((formation == 0 && someItem.y == item.y) || (formation == 1 && someItem.x == item.x))
{
count++;
break;
}
}
}
}
}
return (count >= this.getParam(PARAM_MINMATCH));
}
}
Glad that you've gone about wired properly and not with random integers. I'm impressed you got it right actually, without being able to decompile the client to plaintext; didn't expect you to packet log everything you needed (though.. you probably had some help, right?)
We've used Netty since we started programming Lemon, it's very fast and very easy to implement. We've not encountered any error with it at all, and about them using binary protocol now; that's not what you should be worried about. We've advised them to force encryption (which they have) upon client boot. I'd be more worried about thinking of ways to overcome that!
Yeah, port 30000 has appeared again. Though i'm not entirely sure what purpose it's going to serve, i doubt it's purely for the policy. Has to be another reason for it.
Again, in regards to the modular approach. I guess it's personal preference, problems arise when you allow other programmers to have the ability to create their own packages for your software. I'm not a fan of letting users have that option, they'll mail you to hell with errors wondering why things wont work.
I haven't used MSN for ages now you're right, haha. Kinda phased out of it, using Twitter more than ever, and i'm on facebook too! I might pop on msn for a chat some time. Sounds like we might be able to have a fun conversation!
Glad that you've gone about wired properly and not with random integers. I'm impressed you got it right actually, without being able to decompile the client to plaintext; didn't expect you to packet log everything you needed (though.. you probably had some help, right?)
We've used Netty since we started programming Lemon, it's very fast and very easy to implement. We've not encountered any error with it at all, and about them using binary protocol now; that's not what you should be worried about. We've advised them to force encryption (which they have) upon client boot. I'd be more worried about thinking of ways to overcome that!
Yeah, port 30000 has appeared again. Though i'm not entirely sure what purpose it's going to serve, i doubt it's purely for the policy. Has to be another reason for it.
Again, in regards to the modular approach. I guess it's personal preference, problems arise when you allow other programmers to have the ability to create their own packages for your software. I'm not a fan of letting users have that option, they'll mail you to hell with errors wondering why things wont work.
I haven't used MSN for ages now you're right, haha. Kinda phased out of it, using Twitter more than ever, and i'm on facebook too! I might pop on msn for a chat some time. Sounds like we might be able to have a fun conversation!
why you care about the possible force rc4 encryption?? is easy to implement, (and more for mike and you) only need based on your lemon packetlogger ..
Glad that you've gone about wired properly and not with random integers. I'm impressed you got it right actually, without being able to decompile the client to plaintext; didn't expect you to packet log everything you needed (though.. you probably had some help, right?)
We've used Netty since we started programming Lemon, it's very fast and very easy to implement. We've not encountered any error with it at all, and about them using binary protocol now; that's not what you should be worried about. We've advised them to force encryption (which they have) upon client boot. I'd be more worried about thinking of ways to overcome that!
Yeah, port 30000 has appeared again. Though i'm not entirely sure what purpose it's going to serve, i doubt it's purely for the policy. Has to be another reason for it.
Again, in regards to the modular approach. I guess it's personal preference, problems arise when you allow other programmers to have the ability to create their own packages for your software. I'm not a fan of letting users have that option, they'll mail you to hell with errors wondering why things wont work.
I haven't used MSN for ages now you're right, haha. Kinda phased out of it, using Twitter more than ever, and i'm on facebook too! I might pop on msn for a chat some time. Sounds like we might be able to have a fun conversation!
Glad that you've gone about wired properly and not with random integers. I'm impressed you got it right actually, without being able to decompile the client to plaintext; didn't expect you to packet log everything you needed (though.. you probably had some help, right?)
We've used Netty since we started programming Lemon, it's very fast and very easy to implement. We've not encountered any error with it at all, and about them using binary protocol now; that's not what you should be worried about. We've advised them to force encryption (which they have) upon client boot. I'd be more worried about thinking of ways to overcome that!
Yeah, port 30000 has appeared again. Though i'm not entirely sure what purpose it's going to serve, i doubt it's purely for the policy. Has to be another reason for it.
Again, in regards to the modular approach. I guess it's personal preference, problems arise when you allow other programmers to have the ability to create their own packages for your software. I'm not a fan of letting users have that option, they'll mail you to hell with errors wondering why things wont work.
I haven't used MSN for ages now you're right, haha. Kinda phased out of it, using Twitter more than ever, and i'm on facebook too! I might pop on msn for a chat some time. Sounds like we might be able to have a fun conversation!
public void Handler3056() //op
{
List<Wired> Wireds = Environment.Game.Furni.GetRoomWired(mRoomInstance.RoomInfo.RoomID);
fuseResponse = new serverMessage("JJ");
fuseResponse.appendWiredVL64(Wireds.Count);
foreach (Wired wired in Wireds)
{
fuseResponse.appendWiredVL64(wired.Slot);
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(wired.Triggers.Count);
foreach (Wired.WiredTrigger Trigger in wired.Triggers)
{
fuseResponse.appendWiredVL64(Trigger.Item);
fuseResponse.Append(Trigger.FurniData);
fuseResponse.appendChar(2);
fuseResponse.Append(Trigger.ExtraData);
fuseResponse.appendChar(2);
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(Trigger.Type);
}
fuseResponse.appendWiredVL64(wired.Actions.Count);
foreach (Wired.WiredAction Action in wired.Actions)
{
fuseResponse.appendWiredVL64(Action.Item);
fuseResponse.Append(Action.FurniData);
fuseResponse.appendChar(2);
fuseResponse.Append(Action.ExtraData);
fuseResponse.appendChar(2);
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(Action.Type);
}
}
SendMessage(fuseResponse);
}
public void Handler473() //GY
{
List<CatalogueItem> Wraps = Environment.Game.Catalogue.Wraps();
fuseResponse = new serverMessage("Il");
fuseResponse.appendWiredVL64(1); //TODO: Find what this means
fuseResponse.appendWiredVL64(1); //TODO: Find what this means
fuseResponse.appendWiredVL64(Wraps.Count);
foreach (CatalogueItem Wrap in Wraps)
{
fuseResponse.appendWiredVL64(Wrap.SpriteID);
}
//TODO: Maybe add present gen
fuseResponse.appendWiredVL64(7);
for (int i = 0; i < 7; i++)
{
fuseResponse.appendWiredVL64(i);
}
//TODO: Find what this stuff below means
fuseResponse.appendWiredVL64(11);
for (int i = 0; i < 11; i++)
{
fuseResponse.appendWiredVL64(i);
}
SendMessage(fuseResponse);
}
There are many coders here. I've never said otherwise. Their ability however ranges. Vastly.Man, you still think there are no proper "coders" in this Habbo section...
with the correct structures
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(wired.Triggers.Count);
....
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
fuseResponse.appendWiredVL64(0); //TODO: Find what this means
....
fuseResponse = new serverMessage("Il");
fuseResponse.appendWiredVL64(1); //TODO: Find what this means
fuseResponse.appendWiredVL64(1); //TODO: Find what this means
Your English isn't the best, but i'll try and honour you with a response. The use of "" around a word in English suggests that you doubt my ability to actually be able to do that, even though it's been proven I can through the release of Lemon.Your problem is that you think to be best in this section just because you can "crack" an encryption or can share knowledge with Sulake's staff, so you preserve, for example, the right to snob other people who maybe would like to improve their knowledge and ask you to help them... You can't really claim yours as a "work for the community"...
There are many coders here. I've never said otherwise. Their ability however ranges. Vastly.
PHP:fuseResponse.appendWiredVL64(0); //TODO: Find what this means fuseResponse.appendWiredVL64(wired.Triggers.Count); .... fuseResponse.appendWiredVL64(0); //TODO: Find what this means fuseResponse.appendWiredVL64(0); //TODO: Find what this means .... fuseResponse = new serverMessage("Il"); fuseResponse.appendWiredVL64(1); //TODO: Find what this means fuseResponse.appendWiredVL64(1); //TODO: Find what this means![]()
Your English isn't the best, but i'll try and honour you with a response. The use of "" around a word in English suggests that you doubt my ability to actually be able to do that, even though it's been proven I can through the release of Lemon.
As for the second part of your query, I help anyone that asks me. People who seek out help are the people who'll go far; as oppose to people who believe without anything, they'll be able to conquer the world.
@Nillus
In Regards to your statement about the Flash using the Vl64 Encoding, if you remember at the date of it's release users could use either Shockwave of Flash clients, meaning they had to keep the message structure the same; it also mean that the encryption had to remain relatively unchanged in order for the server to be able to properly interact with both clients!
Nah, any Habbo dev I do these days is my own work, I originally got Scott on the project too, but it never hit off and now plans are changed. I started working on wired on the 28th and started with (incomplete) snippets found here on RZ. I would actually prefer the real packetlogs but even if I got people to give me furniture on .com, I was too late anyway, haha. (protocol changed) Well, those snippets put me on track and from then on it was simply investigating what data was supposed to be in those messages, and a bit of trial and error of what went where. Cost me about an hour for all incoming/outgoing messages structures + saving new settings.
About the modules: I originally planned ION to be this way too, and then having an online plugincenter available via some sort of housekeeping tool, allowing users to download/manage plugins for their server and load them without restart etc. Fuaark, that was early 2009, time's fun when you're having flies. Anyway, letting users install new software modules indeed opens the possibility for instability and security issues. Because of that, any plugins/modules submitted to the plugincenter would have their sourcecode reviewed for every update, to make a best effort to get no junk in there. Any homebrew plugins would be the user's own responsibility. But yeah, plans changed and obviously there's no plugincenter coming anymore. The module system remained and at some times I dislike it because of complex situations, eg, teleporters, for playing a role in room entering which is core logic. But overall, it has proven to be a good way to extend the server while leaving source code clean of bloat (I noticed Meth0d is hardcoding furniture types in his new project, eww), and still making it relatively client-version independant.
I'm also interested in the changes Sulake is currently performing to their server/protocol. Let me guess, for performance's sake they made their protocol binary, and for security reasons (and you guys pushing it) they implemented a new crypto? I have always expected them to do this way earlier, seeing that now they're on Flash, there's no reason to still use that overhead'ish protocol anymore as (opposed to Shockwave) you can use raw socket streams now. So, now one 32 bit integer fits in 4 bytes, rather than needing (2 * amount of characters) bytes for their wired codec, that also eats up more CPU cycles as well! I actually lol'd at people here thinking their new protocol is an encryption or new inhouse-codec, haha!
And alright, I'll pop on MSN tomorrow evening or something then, so we can exchange Facebook handles and what not. Cheers.
the new packet system..
To view the content, you need to sign in or register
Nice work capostriker but with all do respect we can't still use it because nobody made a process yet for cracking the swf maybe they did but it's not release yet![]()
Thanks! The server wont be going public, and will forever stay closed source. We have no intentions of releasing it any point!i've got some questions they i might ask you now,
So, first i have to say, nice progress with the Lemon Emulator, i heard from a good friend that the server is almost "done", so, cool.
So to the questions, will the Server get public, im meaning will you release the .exe btw the source? as i know the source will never get public, but the .exe? I hope not.. You should let the Server private, and give it just to the persons who bought it.
I don't currently use MSN, but you can contact me via twitterI hope you will answere my questions, might you add me on msn also? My msn address is: [email protected]
Hope to hear soon from you
Greetz from Germany, good luck with the server, its amazing *-*
Didn't see this before, have a think about what you're saying. We're helping them and passing ideas to help secure the client, therefore we know what's being implemented!!!1Ah poor guy, you helping sulake with obfuscating the packets, and you're developing a fucking server.
So let me get this straight.Thanks! The server wont be going public, and will forever stay closed source. We have no intentions of releasing it any point!