Git Product home page Git Product logo

windy10v10ai's Introduction

Windy10v10AI

This is a PVE Dota2 custom game. 10 Players vs 10 crazy Bots.

这是一个PVE的Dota2的自定义游戏。10位玩家 挑战 10个疯狂的AI。

Steam workshop

https://steamcommunity.com/sharedfiles/filedetails/?id=2307479570

Table of Contents 目录

  1. Contributing 参与开发
  2. Get Start 环境配置
  3. Develop 开发

Contributing 参与开发

If you would like to contribute to Windy10v10AI, please see our contributing guidelines.

如果你想参与Windy10v10AI的开发,请参考我们的参与指南

Get Start 环境配置

Requirement 环境要求

Windows 10/11

Develop Tool 开发工具

Install 安装

  1. Install Dota2 and Dota 2 Workshop Tools.
  2. Install node.js. v20
  3. 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.

Develop 开发

# Launch Dota2 devTools 启动Dota2开发工具
npm run launch

# build typescript to lua and panorama js
# 编译ts为lua和panorama js
npm run dev

Dota2 vConsole2 Command 常用命令

# load custom game
dota_launch_custom_game windy10v10ai dota
# show game end panel
dota_custom_ui_debug_panel 7
# reload lua
script_reload

How to compile item png to vtex_c 如何编译物品图标为vtex_c

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/

Troubleshooting 故障排除

Reinstall solve most of the problems.
重新安装可以解决大部分问题。

rm -r ./node_modules
npm install

If still not work, try to delete game and content folder in dota2 dota_addons directory.
如果还是不行,尝试删除dota2 dota_addons目录下的gamecontent文件夹。

Documentation 文档

Supported by ModDota template and x-template

ModDota template

https://github.com/ModDota/TypeScriptAddonTemplate

X-Template

https://github.com/XavierCHN/x-template

Typescript to lua

ModDota template README

Panorama UI with webpack, TypeScript and React.

Contents 文件夹内容说明

  • [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 tststl公用的声明,如custom_net_tables
  • [src/scripts]: 各种 node 脚本,用来完成各种辅助功能

  • [game/*]: 会和 dota 2 beta/game/dota_addons/your_addon_name 同步更新
  • [content/*]: 会和 dota 2 beta/content/dota_addons/your_addon_name 同步更新

维护指南

Console报错

console中有如下报错时,技能特效会消失,需要删除对应的文件,然后重新启动Dota2即可。

Failed loading resource "particles/units/heroes/hero_skywrath_mage/skywrath_mage_mystic_flare_ambient.vpcf_c" (ERROR_BADREQUEST: Code error - bad request)

windy10v10ai's People

Contributors

76years-old-reliable-man avatar dan0dbfe avatar dependabot[bot] avatar github-actions[bot] avatar grossmetal avatar guchenguying avatar hechehecha avatar jxq1997216 avatar lyng5 avatar mimihua avatar nemesis041 avatar puck1609 avatar serendipity1233 avatar windybirth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

windy10v10ai's Issues

服务器端AI出装列表重做

修改对象

修改后适当测试
测试观点

  • 配件装备是否占用太多格子,未及时贩卖。出现无法合成,无法购买新装备等问题。
  • 高倍金钱AI一次获得大量金钱后,是否一次购买过多装备导致装备格子溢出。出现装备买漏,不继续购买等现象。

测试方法

做个可以选技能英雄

就像OMG那样可以选择技能
或者可以摇色子,抽卡的那种感觉的 选技能升级技能
比如击杀敌人随机掉落装备 ,升级图鉴
再结合一下大富翁摇色子,加攻击 减攻击的那种。
一夜破产 怎么样????

重做复活时间选单

现有100%变为50%,现有50%变为25%
调整原复活时间,实际复活时长保持基本不变

经验金钱倍数里 添加难度备注

中文
新手,消极的,简单,普通,困难,疯狂,传说,地狱
英文
Beginner, Passive, Easy, Normal, Hard, Unfair, Legendary, hell

对应倍数
1~1.5, 2, 3, 4, 5, 10, 15, 20
👇
中文
新手,简单,普通,困难,疯狂,传说,地狱,炼狱
英文
Beginner, Easy, Normal, Hard, Unfair, Legendary, hell, inferno

代码优化

  • hard coding的参数改成全局变量改成
  • 函数共同化
  • 缺失Resources文件修正
  • OnServer区分
  • OnCreate
  Timers:CreateTimer(0.04, function ()
		hParent:SetMaxHealth( newHealth )
		hParent:SetBaseMaxHealth( newHealth )
		hParent:SetHealth( newHealth )
	end)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.