|
You last visited: Today at 05:15
Advertisement
Programming For Idiots (Tutorial) - In C#
Discussion on Programming For Idiots (Tutorial) - In C# within the CO2 Programming forum part of the Conquer Online 2 category.
08/08/2008, 07:05
|
#106
|
elite*gold: 0
Join Date: May 2007
Posts: 223
Received Thanks: 10
|
it's funny dat u said in lesson 2 "dont do drugs, stay in skl!" but i smoke weed at break and lunch time in skl lofl.
|
|
|
08/09/2008, 20:19
|
#107
|
elite*gold: 0
Join Date: Aug 2008
Posts: 4
Received Thanks: 0
|
I need mirrors to part 8 and part 9 1 and 2
|
|
|
08/10/2008, 23:20
|
#108
|
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
|
I need help with my monster hunter thingy... I got it working but it only works if the monster is white or black to you and if you dont use a skill.. How would you make it so if you killed a monster with a skill, it would add to the questko?
And how do you heal the pole :/
I got the guild fund deduction working but i don't know how to add hp onto it
|
|
|
08/11/2008, 23:18
|
#109
|
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
|
yo dude add that ip ban bypass i got banned in real co for no reason i would like to use him again just to make tq ****** hahaha i would give ya big thanks man
|
|
|
08/11/2008, 23:46
|
#110
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Quote:
Originally Posted by Zanzibar
I need help with my monster hunter thingy... I got it working but it only works if the monster is white or black to you and if you dont use a skill.. How would you make it so if you killed a monster with a skill, it would add to the questko?
|
You have to add the code to add QuestKO in 2 places =O (The places look similar, but are in different files)
|
|
|
08/12/2008, 00:10
|
#111
|
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
|
Quote:
Originally Posted by kinshi88
You have to add the code to add QuestKO in 2 places =O (The places look similar, but are in different files)
|
Lol gimme a hint on the file.. What letter does it start with
|
|
|
08/12/2008, 00:19
|
#112
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
if (MobTarget.GetDamage((uint)AttackDMG))
in Character.cs, thats the one you have right?
Now, the other is in World.cs.
if (Mob.GetDamage(Damage))
|
|
|
08/12/2008, 00:30
|
#113
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Kinshi,you got that help from me:P When I showed you that,you said wtf,you dont need at 2 places :P
Ah well, I could help anyone that having trouble,just ask at my msn :
|
|
|
08/12/2008, 04:54
|
#114
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Quote:
Originally Posted by emildayan1
Kinshi,you got that help from me:P When I showed you that,you said wtf,you dont need at 2 places :P
Ah well, I could help anyone that having trouble,just ask at my msn : 
|
No I didn't lol, and you never even told me 2 places at first.
|
|
|
08/30/2008, 09:28
|
#115
|
elite*gold: 0
Join Date: Jun 2005
Posts: 6
Received Thanks: 0
|
Hey there Master!
Nice set of tutorials for "Idiots". I believe myself to be an utter idiot and moron and watched all your videos!
So, me being an Idiot and all that, I do have some interesting questions and was wondering if your royal uberness can answer them for me? Ready? Ok, here we go...
What is boxing and unboxing? I always wanted to kind of know that. How boxing and unboxing affects performance? You being very good in .NET I thought I ought to ask you to explain this concept for me.
What is difference between Mutex, Semaphore, Lock, etc? Why should I use one over the other? Or better yet, what are they used for anyway? What is deadlock and what is spin-lock? What is race condition? I am really eager to know this...
Are collections thread-safe? If so, in what manner? What is fastest collection class? Why generics are important and why should I use generics over non-generics? Can I use generics for programmable polymorphism? Can I use C# generics for template metaprogramming much like C++? How about loop unrolling?
What is Marshalling?
Now to get to a little bit lower level of things, what are some advantages of using raw Winsock2 vs. Socket and Net namespace? What are benefits of doing raw Winsock2 handling? Do you prefer blocking or non-blocking operations? If you prefer non-blocking operations, what are some methods you use to implement non-blocking calls to Winsock2 API?
Do you use Overlapped I/O? Do you know much about Overlapped I/O? What about I/O Completion Port a.k.a IOCP? Can I build IOCP in C#? Does Microsoft implementation of Socket perhaps use IOCP for Begin___ operations? Why is Microsoft implementation slow?
What are co-routines, protothreads, microthreads, and fibers? Can I use or implement those in C#? How can I implement them? If not, what prevents me from doing it? Does threading in .NET happen at user level or does it reach kernel level?
What is the context overhead for task switch? Why is context switching costly operation?
What is co-operative multitasking in comparison to pre-emptive multitasking? How can a program benefit from one or the other?
Lastly, if I have more questions, I would love to come to you, if you can please answer these for me.
Please answer me, Master Genius Programmer/Developer, I want to implement kick ass server, I just need few *pointers(pun intended) in the right(->) direction...
Sincerely,
-spark
|
|
|
08/31/2008, 00:15
|
#116
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
|
Quote:
Originally Posted by sparkvolt
Hey there Master!
Nice set of tutorials for "Idiots". I believe myself to be an utter idiot and moron and watched all your videos!
So, me being an Idiot and all that, I do have some interesting questions and was wondering if your royal uberness can answer them for me? Ready? Ok, here we go... Hoorah?
What is boxing and unboxing? I always wanted to kind of know that. How boxing and unboxing affects performance? You being very good in .NET I thought I ought to ask you to explain this concept for me.
Boxing moves something from the stack (value-type) to the heap (reference) as an object, unboxing moves something from the heap to the stack as a valuetype
What is difference between Mutex, Semaphore, Lock, etc? Why should I use one over the other? Or better yet, what are they used for anyway? What is deadlock and what is spin-lock? What is race condition? I am really eager to know this...
You should use lock, because if anything unexpected happens your object is still unlocked. They're using for thread synchronization, for instance, if you need to make sure your operation is completed before another one takes place (i.e. you can't having adding and removing taking place in a collection at the same time, so when adding you must lock the collection so that removing can take place only after the add is complete, or vice-versa) dead-lock is when a thread tries to access an object thats been locked by another thread permently thus causing a thread-block and a critical error in your application, I'm not sure what spin-lock is.
Are collections thread-safe? Not all. If so, in what manner? What is fastest collection class? Depends what kind of collection you want Why generics are important Microsofts poor attempt to make a simple version of C++s Template and why should I use generics over non-generics? If you can use a non-generic, then do so. Can I use generics for programmable polymorphism? Yes. Can I use C# generics for template metaprogramming much like C++? Possibly, depends how your using it.How about loop unrolling? Not sure what that means
What is Marshalling? The best way I can explain this is converting on object to another (for instance C# marshals the string class to the C++ char* or w_chart* for certain pinvokes)
Now to get to a little bit lower level of things, what are some advantages of using raw Winsock2 vs. Socket and Net namespace? .NET preforms a bunch of gay checks when calling their methods, if you know how to winsock you'll probably beable to make a better wrapper to suit your purposes What are benefits of doing raw Winsock2 handling? Do you prefer blocking or non-blocking operations? non-blocking If you prefer non-blocking operations, what are some methods you use to implement non-blocking calls to Winsock2 API? Run your method in the new thread, or if you need to check if a socket has data call 'select'
Do you use Overlapped I/O? Do you know much about Overlapped I/O? What about I/O Completion Port a.k.a IOCP? Can I build IOCP in C#? Does Microsoft implementation of Socket perhaps use IOCP for Begin___ operations? Why is Microsoft implementation slow? I'm not sure about any of this
What are co-routines, protothreads, microthreads, and fibers? Can I use or implement those in C#? How can I implement them? If not, what prevents me from doing it? Does threading in .NET happen at user level or does it reach kernel level? Not sure what you mean, never delt with this
What is the context overhead for task switch? Why is context switching costly operation? Dunno what your talking about
What is co-operative multitasking in comparison to pre-emptive multitasking? How can a program benefit from one or the other?
Lastly, if I have more questions, I would love to come to you, if you can please answer these for me.
Please answer me, Master Genius Programmer/Developer, I want to implement kick ass server, I just need few *pointers(pun intended) in the right(->) direction... Haha
Sincerely,
-spark
|
Peek -a - boo!
|
|
|
09/02/2008, 14:00
|
#117
|
elite*gold: 0
Join Date: Jan 2008
Posts: 303
Received Thanks: 156
|
Quote:
Originally Posted by InfamousNoone
Peek -a - boo!
|
Am I the only one to not believe that sparkvolt is a noob  Just an observation but 3/4s of those questions are Intermediate/Advanced, and he already knows EXACTLY what responce you where gonna give ;p or asks a question wayyyy outa infamous leage
Watch-
What are benefits of doing raw Winsock2 handling? Do you prefer blocking or non-blocking operations?
If you prefer non-blocking operations, what are some methods you use to implement non-blocking calls to Winsock2 API
See he knew he was gonna say blocking ;p
and again he shows he's more advanced than Infamous:
Do you use Overlapped I/O? Do you know much about Overlapped I/O? What about I/O Completion Port a.k.a IOCP? Can I build IOCP in C#? Does Microsoft implementation of Socket perhaps use IOCP for Begin___ operations? Why is Microsoft implementation slow?
 I R know who u are sparks
Teh-Most-Infamous
Queen-Of-Evil
|
|
|
09/02/2008, 17:27
|
#118
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
Great guide duude
|
|
|
09/02/2008, 17:35
|
#119
|
elite*gold: 0
Join Date: Oct 2006
Posts: 800
Received Thanks: 89
|
Quote:
Originally Posted by NovaCygni
Am I the only one to not believe that sparkvolt is a noob  Just an observation but 3/4s of those questions are Intermediate/Advanced, and he already knows EXACTLY what responce you where gonna give ;p or asks a question wayyyy outa infamous leage
Watch-
What are benefits of doing raw Winsock2 handling? Do you prefer blocking or non-blocking operations?
If you prefer non-blocking operations, what are some methods you use to implement non-blocking calls to Winsock2 API
See he knew he was gonna say blocking ;p
and again he shows he's more advanced than Infamous:
Do you use Overlapped I/O? Do you know much about Overlapped I/O? What about I/O Completion Port a.k.a IOCP? Can I build IOCP in C#? Does Microsoft implementation of Socket perhaps use IOCP for Begin___ operations? Why is Microsoft implementation slow?
 I R know who u are sparks
Teh-Most-Infamous
Queen-Of-Evil
|
You don't have to be smart to ask complicated questions though 
I find him answering most of them far more impressive.
|
|
|
09/02/2008, 19:24
|
#120
|
elite*gold: 0
Join Date: Jan 2008
Posts: 303
Received Thanks: 156
|
Quote:
Originally Posted by MushyPeas
You don't have to be smart to ask complicated questions though 
I find him answering most of them far more impressive.
|
 It was meant as a compliment, I rarely see the other person posting here ^^ Its quite a compliment for the threadstarter to see be graced imo  Also, for whats labelled for Idiots, he's coverered the basics pretty well and also again tbh it has to be said, there better than the MSDN intro vids
Welldone infamous  Nice to see people happy to teach others...
*Edit, oh and thanks for the "GanjaSmoker" song  Love it!!!  See watched 2 of them  nice work again
|
|
|
Similar Threads
|
Programming for Idiots (Tutorial) C++
06/11/2012 - CO2 Programming - 20 Replies
Yeah, so in my relation to my C# one (http://www.elitepvpers.com/forum/co2-guides-templa tes/148675-programming-idiots-tutorial-c.html), which wasn't the best I felt I'll *try* make for it with this one. I've also got some spare time in between school, from when exams start, and a new Warlords server comes out... so yeah.
Right, so before I post any links to the videos I'd like to point out, so I don't get bitched at by people saying, "this isn't real C++", most of the things I do will be...
|
[RE-OPENING]"Programming For Idiots (Tutorial) - In C#"
09/17/2009 - CO2 Programming - 20 Replies
At start i want to say THIS IS NOT MY GUIDE , GUIDE WAS MADE BY INFAMOUSNONE!!
|
All times are GMT +1. The time now is 05:16.
|
|