search for .cs in the specified folders or run only the specified .cs (dso) and .gui files

There are no stupid questions, just stupid answers.
2 posts Page 1 of 1
Procsimo
Posts: 1
Joined: Thu Jun 25, 2020 6:44 am
  by Procsimo » Thu Jun 25, 2020 6:50 am
In fact, the question is simple: how to search for .cs (dso) and .gui in the specified folders or only run the specified .cs (dso) and .gui files when starting the game client!


If this is already described somewhere, please give a link to the topic.
P.S. My English is very bad, I strongly ask you not to scold that I could not find by search if this question was already
Duion
Posts: 1598
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jun 25, 2020 4:15 pm
I do that in Uebergame for auto executing game mode scripts and auto executing mission scripts:

https://github.com/Duion/Uebergame/blob ... er.cs#L319
This searches for any .cs file ending with "Game" and executes them

Further below this:
https://github.com/Duion/Uebergame/blob ... er.cs#L327
Just searches and executes any .cs file in the levels folder

Adjust this to your needs.
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests