Is a command line feasible?
Moderator: Moderators
Is a command line feasible?
Would implementing a command line / text console that can be telneted into be difficult to implement?
I haven't thought about the details much, but I've been inspired by bash and MySQL for a while, so the question is, would it be much work?
If my programming ability is up to it, along with my free time (which is lacking), I'd try to implement one myself.
I haven't thought about the details much, but I've been inspired by bash and MySQL for a while, so the question is, would it be much work?
If my programming ability is up to it, along with my free time (which is lacking), I'd try to implement one myself.
- [K.B.] Napalm Cobra
- Posts: 1222
- Joined: 16 Aug 2004, 06:15
Re: .
Read about unix and bourney -shell, then you may understand why unix is very popular OS family today. It is 35 years old!hrmph wrote:Why?
It should be hard to make so good operating system toolset which lasts as working even so long time. Think how many different versions windows has put out last ten years. Think about it, win32 or MS-DOS is not useful OS today. AND win XP is having same dark ending where it turns dead! Only because of stupid hard design of the operating system where MS stands for.
Command line is a very powerful tool for controlling computer systems, if implemented well. Also it increases development greatly. The zen of creating a working command line:
Make it strict, ( reason: below. ) If you want a brief command line, put some tool which gives extra information for user but is being filtered out when given for another command line script.
Make it able to connect commands together.
:idea: Imitate bourney shell,It is always good to base on known-to-work-well -solutions.

It has ability to work as part of bourney -shell script, and it can be handled as independent shell too.
Why?
I can imagine selecting all idle aircraft plants to produce brawlers in the time it takes my to type 10 words. I can see this as an easy, sleezy way to add an extra screen (via telnet) that contains most of my statistics (freeing the main screen for the battlefield.)
Yes, I would have to think about how I want it to work. I haven't given it much thought, and won't for a while. If I do, I will seek advice and give some testing.
Now my question was, would a console be difficult to implement (one that could be telnet into if possible)?
I can imagine selecting all idle aircraft plants to produce brawlers in the time it takes my to type 10 words. I can see this as an easy, sleezy way to add an extra screen (via telnet) that contains most of my statistics (freeing the main screen for the battlefield.)
Yes, I would have to think about how I want it to work. I haven't given it much thought, and won't for a while. If I do, I will seek advice and give some testing.
Now my question was, would a console be difficult to implement (one that could be telnet into if possible)?
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Re: Is a command line feasible?
About the telnet i don't know but the in-game chat, where you can give comands like «.cheat», «.spectator», «.team 2», isn't what you are asking for?black wrote:Would implementing a command line / text console that can be telneted into be difficult to implement?
...
Re: Is a command line feasible?
Thats not a commandline thought, thats MS-DOSPauloMorfeo wrote:About the telnet i don't know but the in-game chat, where you can give comands like «.cheat», «.spectator», «.team 2», isn't what you are asking for?

He means something like this!
Code: Select all
id 'brawler' > brawler
sel 'aircraft-plant' | prod -uid $brawler -a 10 -cont False > amount
Making a daemon would be like next:
Code: Select all
def wander:
for u in sel 'brawler':
if not enemyspotted u:
random >> u.angle
turn u -a $u.angle
daemon wander
Alantai, LUA would be good, but I still think python would be better. Simply because the language syntax is faster to write and simpler than with LUA. LUA is simple as well, but it has twice more control marks than python, which equals in more typing failures.
But I gues this should be done in earlier stage than now. It would be good if you could control almost everything trough command line. Also command line would help in debugging the system. And when made correctly, it would be easy to add more commands. Also system maintenance and modding would get lot easier!
But I gues this should be done in earlier stage than now. It would be good if you could control almost everything trough command line. Also command line would help in debugging the system. And when made correctly, it would be easy to add more commands. Also system maintenance and modding would get lot easier!
.
I was mainly saying why to the telnet part. In my opinion, a command line drop down within the game could be useful for controlling AI variables. Controlling ones own units with a command line seems inefficient; the GUI is perfectly suited to do most commands (using repeat and such).
I brought up telnet (which I have NO experience with) that it would not be much more difficult to implement than a regular command line, but you'd be able to use 2 keyboards, 2 screens, etc.
I could see having a shitty comp networked next to my good comp. I telnet in from my shitty comp, and bamn, I have a nice clear view of the battlefield on one monitor and the stats on a different, shitty one, not to mention I'll have a different keyboard as well.
I don't have time to clarify my thoughts. Maybe I'll be able to in a month or so. The purpose of my question was to see how much work would be involved with a console.
I could see having a shitty comp networked next to my good comp. I telnet in from my shitty comp, and bamn, I have a nice clear view of the battlefield on one monitor and the stats on a different, shitty one, not to mention I'll have a different keyboard as well.
I don't have time to clarify my thoughts. Maybe I'll be able to in a month or so. The purpose of my question was to see how much work would be involved with a console.
hrmph: Telnet would give me an extra computer, w/ monitor and keyboard. I could make and select zillions of different battlegroups and give them orders, especially if one can get map coordinates (like I said, I have not elaborated on my position)
Cheery: I probably don't understand bash as well as you, and wasn't thinking something as advanced as daemons.
// some SQL inspired lines
select groups 56, 21 move 7098, 980;
select groups 53, 33, 12 defend;
Cheery: I probably don't understand bash as well as you, and wasn't thinking something as advanced as daemons.
// some SQL inspired lines
select groups 56, 21 move 7098, 980;
select groups 53, 33, 12 defend;
Last edited by black on 23 Jul 2005, 19:16, edited 1 time in total.
telnet? Why cant a GroupAI be written or the engine modified, or a spring client that was heavily mofified not to have a 3d interface so it showed statistics only in a window using spectator mode, could be written? Eitherway a Telnet system is not in our interests.
As for a scripting engine, we would have one by now for GroupAI if I didnt have other things todo. It's a hsame since I said that I hadnt the time that nobody has taken this up.
As for a scripting engine, we would have one by now for GroupAI if I didnt have other things todo. It's a hsame since I said that I hadnt the time that nobody has taken this up.