console commands

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
DieselDriver
Engineer
Engineer
Posts: 27
Joined: 04 Jun 2009 11:56

console commands

Post by DieselDriver »

Hi,

how can I change these settings via console (rcon pwd command)?

- disable breakdowns from vehicles
- enable taking-over other companies
- change/disable inflation

Can I change everything which I could do via GUI via console?

I am running a dedicated server.
I can connect to the server as client or I have access to the dedicated server-console on the server.

But most settings in the GUI are not changeable (as client)!

greets, DieselDriver.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: console commands

Post by planetmaker »

Open your openttd.cfg and search it for 'breakdown' and 'inflation' respectively. The names of the config setting as found in there is the config setting which the console accepts. The usual way is

Code: Select all

rcon <password> "<command>"
e.g.

Code: Select all

rcon stupidPW "kick 13"
On a dedicated server you can only change settings via rcon. Clients cannot change any server-side setting there.

Other companies cannot be taken over in general, unless they're bancrupt and for that reason sold-off.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: console commands

Post by Yexo »

You forget the most important command in this case:

Code: Select all

set name new_value
where "name" is the name of the setting you want to change and "new_value" is the new value. Leave out "new_value" to get the current value. In your case the names are vehicle_breakdowns and inflation. I'm not sure which setting controls taking over other companies.

The complete command would be:

Code: Select all

rcon password "set breakdowns 0"
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: console commands

Post by XeryusTC »

"allow_shares" would be the setting that allows people to buy other companies. All setting names can be found in the config file and via the list_settings command. The latter also lets you filter per section or part of name IIRC (don't know which one though).
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
DieselDriver
Engineer
Engineer
Posts: 27
Joined: 04 Jun 2009 11:56

Re: console commands

Post by DieselDriver »

I tried:

Code: Select all

rcon password "set breakdowns 0"
but it seems to be an unknown command (breakdowns is an unknown setting)

Where can I find all settings which I can change with rcon?
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2875
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: console commands

Post by ChillCore »

Try "vehicle_breakdowns".

Use "help" for more info.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: console commands

Post by Yexo »

DieselDriver wrote:Where can I find all settings which I can change with rcon?
planetmaker wrote:Open your openttd.cfg and search it for 'breakdown' and 'inflation' respectively. The names of the config setting as found in there is the config setting which the console accepts.
XeryusTC wrote:All setting names can be found in the config file and via the list_settings command. The latter also lets you filter per section or part of name IIRC (don't know which one though).
DieselDriver
Engineer
Engineer
Posts: 27
Joined: 04 Jun 2009 11:56

Re: console commands

Post by DieselDriver »

ok, thx. The openttd.cfg was not in the game directory but in "my documents and setting" directory.

are there all settings inside from the GUI?

How can I change the pwd from an other company via rcon?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: console commands

Post by planetmaker »

DieselDriver wrote:ok, thx. The openttd.cfg was not in the game directory but in "my documents and setting" directory.
Yes. We kind of assume that a person willing to run a server risks to have a look at the readme. At least occasionally.
are there all settings inside from the GUI?
How can I change the pwd from an other company via rcon?
We left out one setting, which is my secret. You cannot change any company password via rcon. Move yourself into the company via rcon and change it using your client.
DieselDriver
Engineer
Engineer
Posts: 27
Joined: 04 Jun 2009 11:56

Re: console commands

Post by DieselDriver »

Ok, but the company has any password I do not know.

What happens when using the "default-password" feature? which password will be set then?

Why it's not possible to change companies password on the dedicated-server-console-window?

Is it possible to join two companies?
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: console commands

Post by Arie- »

DieselDriver wrote:What happens when using the "default-password" feature? which password will be set then?
Client relevance: password is relevant for companies to prevent unwanted people messing with one. Unwanted people includes the server administrator, you also do not want google administrators to mess with your google account.
DieselDriver wrote:Why it's not possible to change companies password on the dedicated-server-console-window?
AGAIN: passwords are for companies, not for administration.[/quote]
DieselDriver wrote:Is it possible to join two companies?
Different answers possible, what are you trying to achieve: buy a company while playing as a client (enable buying of stocks). Merging two companies into one forced by an admin, not possible.
DieselDriver
Engineer
Engineer
Posts: 27
Joined: 04 Jun 2009 11:56

Re: console commands

Post by DieselDriver »

THX!

But what, when a player forgot the password (our server runs several weeks on the same gamefield). Then I only can kick the company - there it would be fine to beable to reset the password. :-)
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: console commands

Post by planetmaker »

planetmaker wrote:Move yourself into the company via rcon and change it using your client.
*sigh* Please learn to read.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Semrush [Bot] and 5 guests