This is a PVE Dota2 custom game. 10 Players vs 10 crazy Bots.
这是一个PVE的Dota2的自定义游戏。10位玩家 挑战 10个疯狂的AI。
https://steamcommunity.com/sharedfiles/filedetails/?id=2307479570
If you would like to contribute to Windy10v10AI, please see our contributing guidelines.
如果你想参与Windy10v10AI的开发,请参考我们的参与指南。
Windows 10/11
- Install Dota2 and Dota 2 Workshop Tools.
- Install node.js.
v20
- Clone this repository to local. Run
npm install
in the repository root directory. Content and game folder will be linked to dota2 dota_addons directory.
Run in windows powershell/cmd
npm run start
Run in Dota2 Console
# launch/relaunch custom game
dota_launch_custom_game windy10v10ai dota
# show game end panel
dota_custom_ui_debug_panel 7
# reload lua
script_reload
# Speeds the game up to that number 加速游戏到指定倍速
host_timescale <float>
Create item XML file in dota 2 content folder then run tool/compile_item_png.bat
FYI: https://www.reddit.com/r/DotA2/comments/8yymx9/item_icons_mods_dont_work_since_one_of_latest/
- Add png file to
content/panorama/images
folder. - Add image to
content/panorama/layout/custom_game/images.xml
file.
png will be compiled to vtex_c automatically when you run npm run start
.
This code needs to be on the same hard drive partition as dota2.
代码需要和dota2在同一块硬盘分区上。
Reinstall solve most of the problems.
重新安装可以解决大部分问题。
rm -r ./node_modules
npm install
https://github.com/ModDota/TypeScriptAddonTemplate
https://github.com/XavierCHN/x-template
- sample modifiers and abilities: https://github.com/ModDota/TypeScriptAddonTemplate/tree/master/src/vscripts
Panorama UI with webpack, TypeScript and React.
- TypeScript for VScripts Check out Typescript Introduction for more information.
- TypeScript for Panorama
- React in Panorama tutorial
- [src/common]: TypeScript .d.ts type declaration files with types that can be shared between Panorama and VScripts
- [src/vscripts]: TypeScript code for Dota addon (Lua) vscripts. Compiles lua to game/scripts/vscripts.
- [src/panorama]: TypeScript code for panorama UI. Compiles js to content/panorama/scripts/custom_game
- [game/*]: Dota game directory containing files such as npc kv files and compiled lua scripts.
- [content/*]: Dota content directory containing panorama sources other than scripts (xml, css, compiled js)
- [src/vscripts]: 用来写
tstl
代码,lua脚本会被编译到game/scripts/vscripts
目录下- [src/vscripts/shared]: 用来写
panorama ts
和tstl
公用的声明,如custom_net_tables
等
- [src/vscripts/shared]: 用来写
- [src/scripts]: 各种 node 脚本,用来完成各种辅助功能
- [game/*]: 会和
dota 2 beta/game/dota_addons/your_addon_name
同步更新 - [content/*]: 会和
dota 2 beta/content/dota_addons/your_addon_name
同步更新
console中有如下报错时,技能特效会消失,需要删除对应的文件,然后重新启动Dota2即可。
Failed loading resource "particles/units/heroes/hero_skywrath_mage/skywrath_mage_mystic_flare_ambient.vpcf_c" (ERROR_BADREQUEST: Code error - bad request)