Merak_Haguen Posted August 16, 2020 Share Posted August 16, 2020 (edited) Hello and good morning, Descritpion: A few people on discord server have been familiar that I am building mutator, and i found the whole proccess of building and testing very long, having to keep folders open, edit files, open a compiler program and so on, so i decided to build a bat script (bat is totaly pain, but it's something that there would be no need of instaling anything on anyone's machine). What does it do? - Mody the .ini file that the UDK will read to compile your script, by addind on the correct place the name of the mutator your specify. - Compiles the current mutator speicifed. This one, i havent figured out how to get the output that will go on to another window, so, it will prompt another windows with compilation logs. - After the new prompt windows is closed, the batch resumes and asks to procced or not, if yes, it will copy the new compiled file from the UDK folder to the RenX game folder. The question proccess is for the case there is compilation issues and you do not wish to procced - Then it will execute the RenX, loading the mutator on a specified map, skipping the movies/intros. What a user has to change in order to work? A the top of the file, there will be some variables surrounded by comments, there you need to fit in, explained bellow: SET INI_FILE=The path to the ini file named DefaultEngineUDK.ini SET MAP=Name of the map to be loaded SET MUTATOR_NAME=Mutator name SET MUTATOR_PACKAGE_NAME=Mutator Package name SET RENX_PATH=Renegade X Folder SET UDK_PATH=UDK Folder --------------------------- TO DO: The file attached is completed filled with informationj of my own mutator, to serve as example of the varibles to be filled. At the end of the file is just a comment from the commend i use at cmd to invoke that script -------------------------- Future Modification: Find a way to capture the make result to check if error and do not procced, or on sucessfull compilation, go forward and load map. RenX_Mutator_Local_Test.bat Edited August 18, 2020 by Merak_Haguen Quote Link to comment Share on other sites More sharing options...
Totem Arts Staff kira Posted August 16, 2020 Totem Arts Staff Share Posted August 16, 2020 Im not sure, but I think that if you want to grab the output logs from the new opened window, you can do it with C++ or Nodejs. On nodejs is something called process module and on C++ i think you can start researching from here https://docs.microsoft.com/en-us/windows/win32/learnwin32/creating-a-window Btw, this is also something that i want to know too, ill share info once i have something more practical. Quote Link to comment Share on other sites More sharing options...
Merak_Haguen Posted August 16, 2020 Author Share Posted August 16, 2020 The thing is. I dont want anyone else to have to use any outside or third party sofware / programming language, or have to run any executable. A Bat file is worlwide. It it was in Linux i would just do Peal, that now a days comes default in most of system, but Windows is Bat of Power Shell. Quote Link to comment Share on other sites More sharing options...
Totem Arts Staff kira Posted August 16, 2020 Totem Arts Staff Share Posted August 16, 2020 Well, I don't think there is a way to catch that info from that window without using a programming langauge. Quote Link to comment Share on other sites More sharing options...
Merak_Haguen Posted August 17, 2020 Author Share Posted August 17, 2020 It stay at that for now, minize the need of multiple folders open, manual copy and paste, and dont use the UnrealFrontEnd, also there is no need edit any other file than your own code at Development/src Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.