Jump to content

[CODING] [TESTING] Automated script for compiling / Testing Mutators


Merak_Haguen

Recommended Posts

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 by Merak_Haguen
Link to comment
Share on other sites

  • Totem Arts Staff

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. 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...