Jump to content

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


Procsimo

Recommended Posts

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

Link to comment
Share on other sites

I do that in Uebergame for auto executing game mode scripts and auto executing mission scripts:


https://github.com/Duion/Uebergame/blob/master/scripts/server/server.cs#L319

This searches for any .cs file ending with "Game" and executes them


Further below this:

https://github.com/Duion/Uebergame/blob/master/scripts/server/server.cs#L327

Just searches and executes any .cs file in the levels folder


Adjust this to your needs.

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...