Results 1 to 4 of 4

Thread: Useful things for new scripters

  1. #1

    Useful things for new scripters

    should we have a stickied thread for useful things for people who have not done any scripting in valve games before?

    as there's a lot of things I've found along the way that help me out writing stuff, that aren't really put anywhere on this forum or the wiki

    list of things that would have helped me knowing about immediately:

    console commands (some of these first require setting sv_cheats 1):
    • dota_bot_reload_scripts - updates bot code in-game. so you can fix error without having to restart game

    • restart - restart game without having to back out and create fresh

    • dota_start_game - sets timer to 0:00 and spawns lane creeps/stuff

    • host_timescale - allows you to speed up game to run through tests/checking stuff faster


    and this
    • DebugPause() - if you have a problem in your code. add it where the problem is. when game pauses can make changes and then do bot_reload_scripts



    there's also probably stuff other people are using that I don't even know about
    https://github.com/ThePianoDentist/t...dentistdotabot Lina bot which pulls small camp when 'laning' (Aim to work on pulling and stacking bots initially)
    https://github.com/ThePianoDentist/dotabots-ml-tools Parsing data from bot games

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    178
    Nice tooltips and thank you

    may i ask you which software are you using to compile and write lua programs?

  3. #3
    I'm using intellij. has quite good lua plugins and syntax stuff


    (there is technically no 'compilation' as lua is scripting language. I literally just have my 'project' based in the vscripts/bots folder
    on a side-note there is this thing called moonscript which makes lua 'nicer' to use (table comprehensions, classes, things like that). you can write your program in moonscript and it transpiles(?) it into lua
    https://moonscript.org/
    I haven't tried it yet, but as it literally just outputs pure lua it `should` just work fine
    )
    https://github.com/ThePianoDentist/t...dentistdotabot Lina bot which pulls small camp when 'laning' (Aim to work on pulling and stacking bots initially)
    https://github.com/ThePianoDentist/dotabots-ml-tools Parsing data from bot games

  4. #4
    Basic Member
    Join Date
    May 2013
    Location
    In a flying city in the sky
    Posts
    1,107
    Quote Originally Posted by TheP1anoDentist View Post
    I'm using intellij. has quite good lua plugins and syntax stuff


    (there is technically no 'compilation' as lua is scripting language. I literally just have my 'project' based in the vscripts/bots folder
    on a side-note there is this thing called moonscript which makes lua 'nicer' to use (table comprehensions, classes, things like that). you can write your program in moonscript and it transpiles(?) it into lua
    https://moonscript.org/
    I haven't tried it yet, but as it literally just outputs pure lua it `should` just work fine
    )
    There is also a tool, which converts JS to LUA:
    https://github.com/wizzard0/js2lua

    Also worth a try, if you are more familiar with JavaScript.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •