Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Rember that old sticky with video's on how to make an everybody edits bot? Well that's where I learned to make them.
Since they have been taken down, I have made some new ones.
Video's
Connecting the bot
A simple command and the github
A simple snake
How to make a banlist
Planned video's: (in order) (motivation.exe not found)
How to use processors initparsing
How to make rain
How to make !wins
How to store player stats (deaths etc)
How to use EEPhysics
I am open for requests.
This tutorial serie will not explain everthing in detail. I expect somewhat C# experience (or any other language)
Q and A
If you find anything that I am doing wrong, make sure to point it out. I'm far away from being a pro coder
Same for the video it self.
Ingame: marten22 My steam: MartenM
Offline
How to make !wins
Im going to wait for this.
Nice tutorials too.
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
can we use visual c# 2010 express for your tutorial ?
Uhm, it's almost the same O.o
And why 2010? I am trying to keep this tutorial a bit up-to-date.
Ingame: marten22 My steam: MartenM
Offline
because its easiest for me on 2010 than other versions i've tested . Anyway could you make a tutorial about how to load maps later ? :d
Offline
because its easiest for me on 2010 than other versions i've tested . Anyway could you make a tutorial about how to load maps later ? :d
Blackmask wrote:can we use visual c# 2010 express for your tutorial ?
Uhm, it's almost the same O.o
And why 2010? I am trying to keep this tutorial a bit up-to-date.
I used 2010 until 2016... It's not bad but I am not using 2012 because for some reason 2015 will not work but whatever. Maybe upgrade to 2012 @blackmask
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
The music in all 3 videos gave me cancer.
Comments on the first one:
You should follow the naming convention for form controls, which is to prefix the control name with its type. The type can be abbreviated - e.g. Textbox = "tb", Checkbox = "cb", Listbox/Label = "lb", Button = "btn". For example, "tbEmail" instead of just "email", and "btnConnect" instead of "connect". This differentiates them from variables and ensures you don't get confused if you want to give several different controls the same name (btnSave, lbSave, cbSave). You also capitalised some control names and not others - follow the rules of camelCasing.
In your connection code, isConnected should only become true when you receive "init". If the bot DCs it won't trigger OnDisconnect, so the bool will remain true and your bot will crash if you call that "say" method. A better way to check f the bot is connected is to use the con.Connected property, which requires null checking as con is null until the bot connects.
if (con != null && !con.Connected) { //Connect... }
//Or if you like unreadable code and feel like chaining C# 6.0's null-conditional operator with the null-coalescing operator:
if (!con?.Connected ?? true) { //Connect... }
You don't check if the three textboxes are empty. Display error messages if they are.
In the messagebox displayed in the catch, indicate in the mbox title that the error is in the connection - be explicit in stating error sources as some of the PlayerIO errors really aren't clear. You should really be delegating the error callback in both the SimpleConnect and JoinRoom methods so you can distinguish between client- and room-connection errors, but I suppose a try/catch is fine for beginners.
For those nubs who will have done next to no C#, you're implying that a "say" method must be created in order to send a chat message. Writing "con.Send("say", ...);" a lot of times helps a lot in getting familiar with message sending.
Using a switch instead of lots of if statements is good practice, and should be encouraged.
Please point out the UseSystemPasswordChar property (bool) of Textbox, which makes password entry look a little more professional. With that set to true, PasswordChar can be left blank.
It would be nice for neatness to use GroupBoxes to partition parts of the GUI. The connection can go in its own box, and even gets a little title to itself. The act of having clearly-grouped controls immediately increases GUI tidiness.
That label isn't necessary. Forms have titles for a reason.
[GrammarNazi: Videos*, unless something belongs to the video.]
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Thanks. I'll Bump this topic, t continue tomorrow, please don't ban
Thanks. I'll Bump this topic, t continue tomorrow, please don't ban
Looks like a really good reason to bump this thread. Have you tried to use bookmarks/favorites in your webbrowser before?
Offline
Could you make a rain tutorial ( if you are not busy ofc )
Offline
[ Started around 1736949279.9313 - Generated in 0.089 seconds, 12 queries executed - Memory usage: 1.56 MiB (Peak: 1.72 MiB) ]