• Visit Rebornbuddy
  • Where to start for coding ?

    Discussion in 'Archives' started by Nixon233, Aug 24, 2015.

    1. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Any guides that I should read ? Like program language does this bot use Python ? Or should I learn something else first ? I just need some guides on where to begin or a break down of logic. Every time I open notepad or anything I feel a bit overwhelmed lol. Also what program should I use ? Visual studios ?
       
    2. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
    3. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
    4. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      Oh sorry I had those exact questions and I read it then googled some keywords and had my answers. Sorry I didn't google for you :) Next time perhaps. As a suggestion I would try to actually read over them and not skim, they really aren't in a secret language. If you can write macros in excel you can code this :p
       
    5. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Unfortunately, i'm not that good in excel either lol. Ive been reading over some of that stuff and if I think what I am reading is correct I should be able to use VS and the bot to dump the references I need to start building plugins/Crs. Now, with that being said. If I use codeDOM and PHM when I use a kill ingame will it give me some code output ? I.e. Loki something something use skill @ target or something along those lines ?
       
    6. buddyfu2

      buddyfu2 Member

      Joined:
      Aug 18, 2015
      Messages:
      47
      Likes Received:
      2
      Trophy Points:
      8
      Exilebuddy is written in c# and you should definitely use Visual Studio to create programs. Visual Studio will underline all your errors in red and allow you to auto-complete text.

      Follow this guide to setup your Visual Studio project: https://www.thebuddyforum.com/exilebuddy-forum/exilebuddy-guides/171025-setup-project-exilebuddy.html

      If you are not familiar with Object Oriented Programming or programming in general, making a plugin will be hard for you. I recommend taking the time to learn an OOP language first (c# or java, don't try to learn c++ as your first language).
       
    7. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Thanks man. I will have a look at some c# guides and begin there. Wish me luck lol
       
    8. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      i told you about the guy to watch, trust me youtube kudvenkat, I learned SQL from his videos and workign on C sharp now
       
    9. Urgent2009

      Urgent2009 Member

      Joined:
      Mar 10, 2014
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      18
      I say first, just edit the OldRoutine.cs that comes with the bot and try to get it to do something you want. To all these tho you need to read the guide on how to setup Visual Studio project and start using VS asap. Object Browser in VS helps a lot.

      After you're more comfortable with EB classes etc. try editing a plugin this time and add something you think will improve it or something like that.

      The code is there, literally just keep messing with it. I say don't read a lot of C# classes or lessons, just dive into the code. Because even though I can get my char to do what I want in EB, I know almost nothing about C#.
       
    10. alcor75

      alcor75 Community Developer

      Joined:
      Nov 22, 2012
      Messages:
      376
      Likes Received:
      24
      Trophy Points:
      18
      Nixon233, 2 years ago i was a LumberJack, with passion for computers, some knowledge of scripting, a lazy reader and a unhappy person b/c i alwas wished i could learn to really code.

      then i found this and decided to give myself a try.

      Opencorseware 6.00sc

      They mostly use Python, but that very close to c# and java, and most important, that made me perfecly understand Class and Type, and many many concepts that were like a "volano" for my formations.

      What i can tell you is....you want to learn? make sore you really want, then GUST DO IT! (TM).

      Alcor75
       
    11. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      ^ I second this.

      I would recommend learning python, why? because it learns basics, and takes less time to learn than c#.
      After that, jump to c# (pure code, not GUI stuff)
      Learn GUI stuff (jump in the boat using wpf directly, so you don't get too much amazed :D)

      During your botting period and plugins dev moments, you'll have to face naming conventions, it's basically how you should write stuff, indent them and such.
      Also take a look at Lambda expressions, and regex (regex in last position, don't want your brain to explode)

      Alcor was our student and when I opened his last project I couldnt help myself when I smiled, so much progress in few months ! :D (still waiting for his mama to invite me for pastas tho ;D jk)

      Most of the plugins out there are made by sort of a "community" helping/teaching each others don't mind taking a look at how they're made, sometimes they're not optimized, but if it works, it works.

      Should take you 3/4 days to get into c# pure code ("mastering" basics) but after that, ideas will flow through your mind !

      PS : Google/Stackoverflow is your friend.
       
    12. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      if you want python I started a great course on python on Coursera.org a year ago.
       
    13. Urgent2009

      Urgent2009 Member

      Joined:
      Mar 10, 2014
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      18
      You want to learn coding or you want to be able to do stuff in EB? Those 2 are separate things and one requires MUCH more time and dedication. So make a decision before you start..
       
    14. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      im sure you can do both, one is messing with oldroutine as was said, while learning coding so you know what you are doing while you do it. You don't have to picka side :p
       
    15. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Come to the dark side, we have cookies.
       
    16. Urgent2009

      Urgent2009 Member

      Joined:
      Mar 10, 2014
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      18

      Well I'm not so sure.. I used to teach these stuff to students of age ~21 and.. When they are introduced to something like C type languages they really have a hard time.. But I'm very confident I can teach someone to write a plugin much more easily..

      I don't know, learning curve is different for everyone. Do as you like, just know the different opinions :)
       
    17. OneStopMMO

      OneStopMMO New Member

      Joined:
      Jul 29, 2013
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      Oh I agree that learning to code is difficult because it's understanding the logic or learning to think like the code dictates. But I think it's pretty logical to say they can fail and bomb learning C and still be more efficient in writing a plugin because the basic rules and execution plans aren't hard to understand. Meaning writing a plugin alone is good for learning a task, and learning to code alone is good, but nothing works better than both put together that's why classes have labs, this lab is something of interest to the student in question; results in a higher chance of understanding material and being able to manipulate the language.
       
    18. Urgent2009

      Urgent2009 Member

      Joined:
      Mar 10, 2014
      Messages:
      182
      Likes Received:
      9
      Trophy Points:
      18
      Yup, fine points overall, nothing to add :)
       
    19. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Thanks to everyone on here. I will start watching some of the stuff and reading stuff posted as well as try to do some stuff with the cr and bot itself this weekend when I have some free time and vs installed. Really appreciate the replies. I really just want to get some solid custom routines out for the community as I think that's where we are lacking most.
       
    20. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Watching is part of it, the main thing is to start typing it.
       

    Share This Page