[Only registered and activated users can see links. ]
instead of doing it manually, i think you can get away with it using c#'s built in events and delegates [Only registered and activated users can see links. ]
Code:
context.Channel.WriteAndFlushAsync(Preconditions.Check.NotNull(message, "Channel message is null."));
and isn't it possible to just call WriteAndFlushAsync directly from IChannelHandlerContext? as is demonstrated here
[Only registered and activated users can see links. ]
yeah but i didn't want to use Preconditions in every single listener class that will be available. thought it better to just have it in the parent class
Spoiler for signature:
When your vision is crystal clear, they say it's razor-sharp
A focused mind is said to be like a knife, but the scalpel is wisdom
All one can do is accept that life is a double-edged sword Stay on the edge
-
don't give a fuck about rep
the project is only for the developer and idiots that want to waste their time but if you want to learn well fuck
and the only reasons it's funny is because he's benchmarking the performance lol
seems like everyone bitched about runescape doing the same shit and saying blaming java is dumb so whatever lol
you guys are fucking stupid and getting any backlash on this is worth it
i do not help for rep lol i'll just make a new account if i ever care
biggest retard and dumbest post i've read this year so far gj
yeah but i didn't want to use Preconditions in every single listener class that will be available. thought it better to just have it in the parent class
I say get rid of the precondition. Its not preventing a bottleneck in your application and it only stops you from writing proper c#. DotNetty should tell you anyway if a message or channel is null
"It's all a matter of perspective. There is no single path in life that is right and fair and does no harm."
don't give a fuck about rep
the project is only for the developer and idiots that want to waste their time but if you want to learn well fuck
and the only reasons it's funny is because he's benchmarking the performance lol
seems like everyone bitched about runescape doing the same shit and saying blaming java is dumb so whatever lol
you guys are fucking stupid and getting any backlash on this is worth it
i do not help for rep lol i'll just make a new account if i ever care
This project isn't about usefulness whatsoever, it's about someone trying to learn. If you can't support that then leave the community lol.
Finished the login for the server and started on the packets to get the world to send. I'm using the some of the packet stuff from Apollo which can be found [Only registered and activated users can see links. ] converted to c# obv.
the [Only registered and activated users can see links. ] is the updated version of the build featuring the current updates.
here is an example of a packet used in DotNetwork
Code:
namespace DotNetwork.Oldscape.Network.Protocol.Packet.Encoder.Impl
{
/// <summary>
/// The root interface packet encoder.
/// </summary>
sealed class RootInterfaceEncoder : PacketEncoder<RootInterfaceContext>
{
/// <summary>
/// Constructs a new object.
/// </summary>
public RootInterfaceEncoder() : base(208, PacketType.FIXED) { }
/// <summary>
/// Encodes the packet.
/// </summary>
/// <param name="player"></param>
/// <param name="context"></param>
public override void Encode(Player player, RootInterfaceContext context)
{
builder.Put(DataType.SHORT, DataOrder.LITTLE, context.GetId());
}
}
}
Spoiler for signature:
When your vision is crystal clear, they say it's razor-sharp
A focused mind is said to be like a knife, but the scalpel is wisdom
All one can do is accept that life is a double-edged sword Stay on the edge
-
don't give a fuck about rep
the project is only for the developer and idiots that want to waste their time but if you want to learn well fuck
and the only reasons it's funny is because he's benchmarking the performance lol
seems like everyone bitched about runescape doing the same shit and saying blaming java is dumb so whatever lol
you guys are fucking stupid and getting any backlash on this is worth it
i do not help for rep lol i'll just make a new account if i ever care
just made ur redbar increase by 4 cubes, thank me later.
I say get rid of the precondition. Its not preventing a bottleneck in your application and it only stops you from writing proper c#. DotNetty should tell you anyway if a message or channel is null
made some changes
Originally Posted by Genesis
Exactly my thought. Good luck with this jordan, you're doing a great job
thanks for the support
Spoiler for signature:
When your vision is crystal clear, they say it's razor-sharp
A focused mind is said to be like a knife, but the scalpel is wisdom
All one can do is accept that life is a double-edged sword Stay on the edge
-
1. your opinion is that this will waste peoples times but i think they can decide for themselves. if someone decides to tag along in this, then it's not a waste of THEIR time.
2. whats so funny comparing two languages and noticing the difference in memory consumption between the two? im confused.
3. im not putting java down? idk why you even made that comment as its off topic a bit. btw runescape did c++ not c#.
4. pls explain why anyone here is fucking stupid when they replied to your ignorance explaining why maybe they think this project isnt worthless but somehow you think what you believe overpowers everyone else???
No it's not and if it's for knowledge then sure
Because it's not the languages fault
good don't put it down & ik
Idk why you're making a custom framework instead of using apollo
just seems a bit too much but whatever
Originally Posted by Velocity
biggest retard and dumbest post i've read this year so far gj
put it in your sig nazi
@Everyone
My bad for attacking the thread. I know it's against the rules just wanted to state my opinion. Didn't think the rep hungry kids would go full white knight lol
gl and don't reply cause idc
Originally Posted by Cjay0091
This project isn't about usefulness whatsoever, it's about someone trying to learn. If you can't support that then leave the community lol.
No it's not and if it's for knowledge then sure
Because it's not the languages fault
good don't put it down & ik
Idk why you're making a custom framework instead of using apollo
just seems a bit too much but whatever
put it in your sig nazi
@Everyone
My bad for attacking the thread. I know it's against the rules just wanted to state my opinion. Didn't think the rep hungry kids would go full white knight lol
gl and don't reply cause idc
yea ik
lol np mate looks like the community brought ur rep down to ur IQ