It would be very convenient if when you type a command in the console, you can press Tab to auto complete it if it is unambiguous and display options if it is ambiguous.
Even cooler if it can use current command as a context. For example auto completion of AI names, so pressing tab will autocomplete “start_ai A” to “start_ai AdmiralAI”
Add auto-completion for console commands
Moderator: OpenTTD Developers
Re: Add auto-completion for console commands
I have created a PR with the basic version of this feature:
https://github.com/OpenTTD/OpenTTD/pull/12163
https://github.com/OpenTTD/OpenTTD/pull/12163
Re: Add auto-completion for console commands
It also lacks some form of loop to repeat.
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Add auto-completion for console commands
The console is not a programming language.
Re: Add auto-completion for console commands
And that's the problem, neither Gamescripts nor the console can be used to their full potential, each of them lacks some useful functions...
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Add auto-completion for console commands
I came across this thread, it looks like the console has some hidden features when it can handle the TCL language...but I don't know more about it.... :
viewtopic.php?t=22846
It's from 2006, it probably doesn't work anymore...maybe
Owner and admin of servers with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Re: Add auto-completion for console commands
"autopilot" was an old method of communicating with a dedicated server, that was very vulnerable to version changes. it has been superceded by the admin port.
Who is online
Users browsing this forum: No registered users and 5 guests