Dota2Patcher
Dota2Patcher copied to clipboard
General Discussion Thread
coreinit not working in games, only works demo mode, coreinit version better than type console everysingle game thank you for that.
IDK, everything works for me ¯(°_o)/¯
Did you patch sv_cheats? Is there any dota 2 updates after you patched? If so, you need to patch again.
Also try to change dota_player_pick_hero
to player_connect_full
on line 7 in coreinit.lua
.
ty ı'll try
So... does it work?
I'm surprised seeing my terrain mods here since I only shared them with one person. 😄I have mods for smaller UI and trees if you want them too.
also im working on some utilities and wondering if you wanted to help, my discord tag is in my github profile
@robbyz512 Damn, cool terrain. I tried to recompile you old terrain to combine it with other mods, but got some compilation errors. So yeah, i'll write you on discord.
@robbyz512 Wow, that terrain looks awesome. Is it useful for low-end computers? And, if you don't mind, could you please share the vpk mod ;D?
hi can you share the terrain with me, i have fps problems too
Sorry ı didnt see ur question, Still not working pub games, tried re patch but only demo mode working with lua.
Sorry ı didnt see ur question, Still not working pub games, tried re patch but only demo mode working with lua.
@elventevil Not sure about loading with lua but another faster way to load commands is making an autoexec.cfg in this path.
Steam\steamapps\common\dota 2 beta\game\dota\cfg\autoexec.cfg
then add these lines and change to values you want and just type "exec autoexec.cfg" in console without quotes
sv_cheats 1;
dota_use_particle_fow 0;
fog_enable 0;
fow_client_nofiltering 1;
dota_camera_distance 1800;
r_farz 18000;
cl_weather 0;
hi can you share the terrain with me, i have fps problems too
@metapodcod you can follow me on github ill post a repo with those soon or add me on discord
@robbyz512 nope, autoexec not working. I guess i can just patch default values later.
I wrote an autohotkey script for this it works even though it's not like lua @Wolf49406
Modding dota is so much fun :sparkles:
@Wolf49406 That's really amazing!! But how did you do it? xD
@Lgazana Decompiled (xml/css) -- you can edit it and then compile; Decompiled.zip
And compiled ready-to-go vpk pak01_dir.zip
@Wolf49406 Thank you, but I've spent the last hour trying to figure out how to compile it correctly with no success.
This is your compilation.
And this is my own. i simply drag the folder and drop it into the vpk.exe.
If it's not too much trouble, could you please tell me how to properly compile it? ;')
You need to install dota 2 workshop tools dlc.
Then create your mods src folder (ex: \dota 2 beta\content\dota_addons\custom
).
Put xml/css there.
Also you'll need vpk.exe and some dll's inside D:\vpk\
dir. Here it is.
vpk.zip
Then use this batch script.
set Compiler="D:\SteamLibrary\steamapps\common\dota 2 beta\game\bin\win64\resourcecompiler.exe"
set ModSrc="D:\SteamLibrary\steamapps\common\dota 2 beta\content\dota_addons\custom\*.*"
set ModBuild="D:\SteamLibrary\steamapps\common\dota 2 beta\game\dota_addons\custom"
set CustomVPKFolder="D:\SteamLibrary\steamapps\common\dota 2 beta\game\custom"
set VpkSrcFolder="D:\vpk\pak01_dir"
%Compiler% -vpkincr -i %ModSrc% -f -r
robocopy /move /e %ModBuild% %VpkSrcFolder%
vpk.exe pak01_dir
move pak01_dir.vpk %CustomVPKFolder%
After that, your compiled files (vtex_c, vxml_c etc) will be inside D:\vpk\pak01_dir
.
And pak01_dir.vpk inside CustomVPKFolder
. Ofc you'll need to put Game Custom & Mod Custom
in gameinfo.gi.
Also with this method you can do something like javascript cheats. Put this inside hud_reborn.xml and it will download and execute js code from your server. Upd: Nope, Game.ServerCmd not working. There is no way to change ConVar from JS
<script>
function LoadScript() {
if (Game.GetState() == DOTA_GameState.DOTA_GAMERULES_PREGAME || DOTA_GameState.DOTA_GAMERULES_STATE_GAME_IN_PROGRESS) {
function getInit() {
$.AsyncWebRequest("http://localhost:3000/load", {
type: 'GET',
data: {
name: 'getinitscript'
},
success: eval,
error: function(response) {
var log = "Can't load init script, returned " + JSON.stringify(response) + "."
if (response.status - 400 <= 0 || response.status - 400 > 99) {
log += " Trying again."
getInit()
}
$.Msg(log)
}
})
}
getInit()
}
}
(function() {
GameEvents.Subscribe("game_rules_state_change", LoadScript);
})();
</script>
Or even this. Never tried it myself.
<script>
function LoadScript() {
if (Game.GetState() == DOTA_GameState.DOTA_GAMERULES_PREGAME || DOTA_GameState.DOTA_GAMERULES_STATE_GAME_IN_PROGRESS) {
Game.ServerCmd(sv_cheats 1);
Game.ServerCmd(dota_camera_distance 1500);
// And so on
}
}
(function() {
GameEvents.Subscribe("game_rules_state_change", LoadScript);
})();
</script>
But you better look at official documentation: https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Panorama https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Panorama/Javascript https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Panorama/Javascript/API
Or even some code examples: https://github.com/Exieros/D2JScriptsOfficial https://github.com/jm59psut/Dota-2-Hacks-Open-Source-JS-API-
@Wolf49406 Thank you so much, man!!! I did it after several hours, lol.
I've read what you said about java, but I have no idea how to set up my own server or even write a java script. that stuff is far too advanced for me, but thank you nonetheless.
@Lgazana Damn it looks awesome :heart_eyes:
Thank you! I'll give it a try. I already have an AutoHotKey script that accepts matches for me when im AFK, but yours appears to be more professional.
I've always liked AHK because it is just so simple and easy to use ;D Anyways, This is what i use to accept matches. It can be toggled on and off by pressing Alt + F6.
#HotkeyInterval 99000000
#KeyHistory 0
#MaxHotkeysPerInterval 99000000
#NoEnv
#Persistent
#SingleInstance force
ListLines Off
SendMode Input
SetBatchLines, 10ms
SetKeyDelay, 0, 50
Menu, Tray, NoStandard
Menu, Tray, Add, About
Menu, Tray, Add, Exit
;=======================================================================================================================;
; |Click the Accept Button Automatically (CtABA)| ;
;=======================================================================================================================;
!F6::
toggle:=!toggle
if toggle
SetTimer, AcceptMatch, 500
else
Reload
return
AcceptMatch:
If WinActive("ahk_exe dota2.exe")
{
Send, {Enter}
}
Else
{
Return
}
Return
;==================================================================;
; |About| ;
;==================================================================;
About:
SplashTextOn , 350, 25, Click the Accept Button Automatically, Accepts a Match for You Automatically!
Sleep 3500
SplashTextOff
return
;==================================================================;
; |Exit| ;
;==================================================================;
Exit:
ExitApp
Guys, How to remove the background from the main menu in Dota
@elventevil dashboard_background_manager
<root>
<styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" />
<include src="s2r://panorama/styles/dashboard_background_manager.vcss_c" />
</styles>
<DOTADashboardBackgroundManager />
</root>
dashboard_background_last_match
<root>
<styles>
<include src="s2r://panorama/styles/dotastyles.vcss_c" />
<include src="s2r://panorama/styles/dashboard_background_last_match.vcss_c" />
</styles>
<DOTADashboardBackgroundLastMatch>
<Image src="s2r://panorama/images/backgrounds/custom_background_png.vtex" />
<DOTAScenePanel id="BackgroundScene" camera="versus_camera" light="versus_light" deferredalpha="false" renderdeferred="true" particleonly="false" />
<Panel id="BGVignette" hittest="false" />
<Panel id="DetailsContainer" />
<Panel id="MissingDataContainer" />
</DOTADashboardBackgroundLastMatch>
</root>
Or just add map_enable_background_maps 0;
to autoexec.cfg
@Wolf49406 its doing with workshop tools?
@elventevil well, yes. https://github.com/Wolf49406/Dota2Patcher/issues/11#issuecomment-1062608934 But you can just take this vpk Or give me your backgroung png and i will compile it together.
@Wolf49406 I'm sorry to bother you so much, man, I'm not very experienced in this mode stuff, so I threw the vpk file into C:Program Files (x86)Steamsteamappscommondota 2 betagamedota and gave this error, am I doing it wrong somewhere?
@elventevil nah, it's ok. You have to create your mods folder (ex: \dota 2 beta\game\Mods
) and drop your files there.
Look at readme. https://github.com/Wolf49406/Dota2Patcher#how-to-2
I think I'm starting to figure it out:D I put it in the tempcontent folder and changed its name to pak02_dir, and now they're both working in the same folder. @Wolf49406 can u add this wallpaper for me if u have time
@elventevil pak01_dir.zip
@Wolf49406 thank you so much bro
Hello, is it possible to create combo scripts with this?