Jump to content

Python to run a game


Melanie

Recommended Posts

Hello,

 

I want to use Python to run a game on tcadmin v2 / win2012.

 

The command is "python.exe server.py" from my game directory.

I do not know how, can you help me please.

 

Thank you in advance,

Melanie

Link to comment
Share on other sites

Hello Melanie, for simplicity, just create a batch file in the game folder for the game per the below.

 

The Batch File content will look like this:

 

%ProgramFiles%\Python\python.exe %*

 

Name it server.bat or whatever you like, make your game executable server.bat in the Tcadmin config, and the commandline for the game will be simply: server.py and whatever other commandline parameters the game has that you like and your good to go.

 

If your python is installed to another directory, replace my assumed directory with your installations folders.

Edited by PCGamersportal
Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 9 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use