Rislem Posted January 15, 2019 Author Share Posted January 15, 2019 Ok so from what I can see the issue is this part xcopy /y /i %MODFOLDER% %ROOTFOLDER%\test\ if I type out the entire command in CMD it runs perfectly, as stated it downloads the file in the correct folders I just need to copy it now but for some reason the batch file does not like the xcopy part, just tells me wrong path any better suggestions on how to do that last copy part? Link to comment Share on other sites More sharing options...
numpty Posted January 15, 2019 Share Posted January 15, 2019 Try what I did. As it didn't like it and had similar issue use %ThisService_rootdirectry% or whatever it is. Br. Chane both MODFOLDER% %ROOTFOLDER to the actual directory making sure it's like how they ate in the set modfolder and set rootfolder section ofntbte like file. And try again Link to comment Share on other sites More sharing options...
HellsGuard Posted January 15, 2019 Share Posted January 15, 2019 (edited) Ok so from what I can see the issue is this part xcopy /y /i %MODFOLDER% %ROOTFOLDER%\test\ if I type out the entire command in CMD it runs perfectly, as stated it downloads the file in the correct folders I just need to copy it now but for some reason the batch file does not like the xcopy part, just tells me wrong path any better suggestions on how to do that last copy part? Did you check that your directories are parsing correctly? If any of them have a space and you're not wrapping the variable in quotes then it will break at that point. One of the reasons I use robocopy is because of xcopy being depreciated many moons ago, with xcopy, if you're trying to copy a file you have to specify the name or wildcard it (*.extension) so you may have more success with xcopy /y /i %MODFOLDER%\*.pak %ROOTFOLDER%\test\ Edited January 15, 2019 by HellsGuard Link to comment Share on other sites More sharing options...
numpty Posted January 15, 2019 Share Posted January 15, 2019 I made mine like this and they work robocopy C:\steamapps\workshop\content\107410\%ThisService_ModID% %ThisService_RootDirectory%@%ThisService_ModName% /COPYALL /E /IS /IT > nul robocopy %ThisService_RootDirectory%\steamapps\workshop\content\107410\%ThisService_ModID%\keys %ThisService_RootDirectory%\keys /COPYALL /E /IS /IT > null just edit the directories to your setup this is for arma but jsut change to relevant for COnan Link to comment Share on other sites More sharing options...
craig1690 Posted January 16, 2019 Share Posted January 16, 2019 You would just have to make the variables and make sure you set it as a script parameter, then when you make the script, you would select "Prompt for variable values" so before executing the script it will prompt them to enter any variables used in the script. It's also a good idea to use the options to configure what that prompt will look like, like a textbox, checkbox, etc. Variable Options Script Options Those are what I use. Followed your instructions created a variable for MODID & MODNAME made a custom script exactly like yours. when i click on the Steam workshop downloader icon it just gives me a blank page https://imgur.com/7aChtsx No option to actually type the ID or Name Link to comment Share on other sites More sharing options...
numpty Posted January 16, 2019 Share Posted January 16, 2019 There already there in the original script posted but didn't copy that's why I added the directory individually and it works Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 Followed your instructions created a variable for MODID & MODNAME made a custom script exactly like yours. when i click on the Steam workshop downloader icon it just gives me a blank page https://imgur.com/7aChtsx No option to actually type the ID or Name Could you post a picture of your variable options (each one) and the script editor page? Link to comment Share on other sites More sharing options...
numpty Posted January 17, 2019 Share Posted January 17, 2019 Did you forget to choose promt for variable in the script itself Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 Could you post a picture of your variable options (each one) and the script editor page? Here it is MODID Variable https://imgur.com/P3x3Vjt MODNAME https://imgur.com/kAjI27z Script https://imgur.com/DnXLrum As a side note this is the MODID first screen of the variable https://imgur.com/cGB7inD Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 Here it is MODID Variable https://imgur.com/P3x3Vjt MODNAME https://imgur.com/kAjI27z Script https://imgur.com/DnXLrum As a side note this is the MODID first screen of the variable https://imgur.com/cGB7inD Change your script to capitals for the variable names, it runs through a regex to make sure it's the same variable from the windows environment so if you use caps anywhere they have to match exact. %ThisService_MODID% if you use capitals in ModID then adjust that as well and report back what happened Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 Change your script to capitals for the variable names, it runs through a regex to make sure it's the same variable from the windows environment so if you use caps anywhere they have to match exact. %ThisService_MODID% if you use capitals in ModID then adjust that as well and report back what happened Hello there, i can now input the Mod ID and Name of mod. I will test the functionality of it. am i required to add modlist.txt to the /Mods folder Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 (edited) Hello there, i can now input the Mod ID and Name of mod. I will test the functionality of it. am i required to add modlist.txt to the /Mods folder At the moment yes, you could add more to the script to automatically append it to the modlist.txt as well. echo %ThisService_MODNAME%.pak >> %CONANMODFOLDER%\modlist.txt That will echo the mod name directly to the modlist file, >> is used to append it to a new line, however the issue with this is that whatever they type into the ModName variable will be added so it could cause issues unless they type the actual .pak name, you could script it to get the filename first then add it. Edited January 17, 2019 by HellsGuard Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 At the moment yes, you could add more to the script to automatically append it to the modlist.txt as well. No problem i added it easy enough, this is what im getting when trying to test https://imgur.com/wJrV3w7 Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 (edited) No problem i added it easy enough, this is what im getting when trying to test https://imgur.com/wJrV3w7 You may not have robocopy, you might have to use xcopy instead, also remove the @ from the modname as that's just a DayZ thing lol xcopy /y /i %MODFOLDER%\*.pak %CONANMODFOLDER% Edited January 17, 2019 by HellsGuard Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 You may not have robocopy, you might have to use xcopy instead, also remove the @ from the modname as that's just a DayZ thing lol Alrighty, i have removed the @ also doo i just replace robocopy with xcopy ? Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 Alrighty, i have removed the @ also doo i just replace robocopy with xcopy ? I edited previous post to not double post Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 You may not have robocopy, you might have to use xcopy instead, also remove the @ from the modname as that's just a DayZ thing lol xcopy /y /i %MODFOLDER%\*.pak %CONANMODFOLDER% same message for xcopy.. so i guess i need to install that hehe Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 same message for xcopy.. so i guess i need to install that hehe Wow that's new lol, what OS are you using? I run Windows server 2012 on mine so that may be why? Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 Wow that's new lol, what OS are you using? I run Windows server 2012 on mine so that may be why? Yeah its weird. Im using 2016, i figured it out, it requires the whole path C:\Windows\System32\xcopy /y /i %MODFOLDER%\*.pak %CONANMODFOLDER% I now see this error.. https://imgur.com/YJtNjWx Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 Yeah its weird. Im using 2016, i figured it out, it requires the whole path C:\Windows\System32\xcopy /y /i %MODFOLDER%\*.pak %CONANMODFOLDER% I now see this error.. https://imgur.com/YJtNjWx Comment out or remove the @echo off, that way you can get full outputs to see what exactly is happening, it may be having an issue parsing a directory, then post a screenshot of the output Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 Comment out or remove the @echo off, that way you can get full outputs to see what exactly is happening, it may be having an issue parsing a directory, then post a screenshot of the output done it good sir https://imgur.com/dQx3SsP Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 Comment out or remove the @echo off, that way you can get full outputs to see what exactly is happening, it may be having an issue parsing a directory, then post a screenshot of the output Just a side thing to note, should it be Executing as the service's user? Link to comment Share on other sites More sharing options...
HellsGuard Posted January 17, 2019 Share Posted January 17, 2019 Just a side thing to note, should it be Executing as the service's user? That depends what the service's user is, if its TCGame (or whatever your tcadmin user is named) then it only has access rights to tcadmin folders/files, if it's local system then it will have full access. Is SteamCMD running at all to download the mod? It appears to be erroring out as it's showing the path as ""\Monitor\Tools\SteamCmd\steamcmd If the service isn't running as Local System, it may need more path edits, you can either try to change the Run As on the service, or manually specify the SteamCMD location by replacing %TCAdminFolder% with the directory itself, that is probably the root of all the issues because the file might not even exist to be copied. Link to comment Share on other sites More sharing options...
craig1690 Posted January 17, 2019 Share Posted January 17, 2019 That depends what the service's user is, if its TCGame (or whatever your tcadmin user is named) then it only has access rights to tcadmin folders/files, if it's local system then it will have full access. Is SteamCMD running at all to download the mod? It appears to be erroring out as it's showing the path as ""\Monitor\Tools\SteamCmd\steamcmd If the service isn't running as Local System, it may need more path edits, you can either try to change the Run As on the service, or manually specify the SteamCMD location by replacing %TCAdminFolder% with the directory itself, that is probably the root of all the issues because the file might not even exist to be copied. Yeah its strange, i unticket that option and now this is my result https://imgur.com/FajOAxV it doesn't seem to be installing the mod i dont think i have set a user up for steam auth, but that should not matter? i dont understand this part C:\TCAFiles\Users\creid\43>C:\Windows\System32\xcopy /y /i C:\TCAFiles\Users\creid\43\\steamapps\workshop\content\440900\880454836\*.pak C:\TCAFiles\Users\creid\43\\ConanSandbox\Mods 0 File(s) copied File not found - *.pak thanks for the help btw! Link to comment Share on other sites More sharing options...
HellsGuard Posted January 18, 2019 Share Posted January 18, 2019 Yeah its strange, i unticket that option and now this is my result https://imgur.com/FajOAxV it doesn't seem to be installing the mod i dont think i have set a user up for steam auth, but that should not matter? i dont understand this part C:\TCAFiles\Users\creid\43>C:\Windows\System32\xcopy /y /i C:\TCAFiles\Users\creid\43\\steamapps\workshop\content\440900\880454836\*.pak C:\TCAFiles\Users\creid\43\\ConanSandbox\Mods 0 File(s) copied File not found - *.pak thanks for the help btw! Wait, you aren't removing the login information? That's how your script is, without the steam login information? If so, you need to change the steamcmd line to read ....+login anonymous .....in that section, at least then it will try with anonymous login Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now