Author Topic: Command Line  (Read 874 times)

techperson1

  • Guest
Command Line
« on: 16 July 2013, 15:03:11 »
Can someone please explain the command line to me, (What it is, how it works) I accidently made my screen res way too high on MegaGlest and it makes it so I can't even change it in the options (the apply button was not on the screen) Any help would be really appreciated.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Command Line
« Reply #1 on: 16 July 2013, 15:57:03 »
Hi,

how to get a command line depends much on your operating system. The FAQ has some information on this (in an otherwise unrelated topic). On OS X (not discussed on the wiki) there should be some software available which is called "Terminal" which gives you a command line prompt.

I was recently in touch with someone running OS X who had a related question (maybe this was you) about accessing the MegaGlest INI files, which did not work for him, probably because those are now hidden.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

techperson1

  • Guest
Re: Command Line
« Reply #2 on: 16 July 2013, 19:09:03 »
I found the Application Support, but MegaGlest isn't there, could you explain what I should do in terminal? Thanks. (Yes, I am the person you were in contact with)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Command Line
« Reply #3 on: 17 July 2013, 00:21:22 »
Hmm, I was convinced it'd be there. Sadly supporting the operating system you have chosen to use is difficult since it's not exactly developer friendly (for example a developer who wants to support it is not allowed to run it in  virtual machine even after buying a license) so it's hard to support it...
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

techperson1

  • Guest
Re: Command Line
« Reply #4 on: 17 July 2013, 00:57:33 »
So what do you suggest I do?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Command Line
« Reply #5 on: 17 July 2013, 02:07:19 »
Well there's still the option of running the game with command line options. Try --help for a list of ll available options, then pick the ones you like.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

techperson1

  • Guest
Re: Command Line
« Reply #6 on: 17 July 2013, 12:14:14 »
In Terminal or MegaGlest? How would I do it in MegaGlest if so

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Command Line
« Reply #7 on: 17 July 2013, 13:58:22 »
You start Terminal, then change into the directory the MegaGlest executable file is located in, then run it passing command line options to it.

This is an advanced but standard procedure, you'll surely find some web pages explaining how to use the Terminal on OS X easily by using a web search engine.

Edit:
Sadly this is unnecessarily complicated on OS X (a repetitive pattern there as soon as you need to operate under the hood), but it's still possible.
« Last Edit: 17 July 2013, 14:05:52 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

techperson1

  • Guest
Re: Command Line
« Reply #8 on: 17 July 2013, 15:22:10 »
Maybe to make it easier on all of us, can you just write out exactly what I want to put in terminal to change the res?

techperson1

  • Guest
Re: Command Line
« Reply #9 on: 17 July 2013, 16:48:14 »
Nevermind, I got it! I figured out that if I drag the executable file to terminal and the right a command from herehttps://docs.megaglest.org/MG/Command_line_options, it would work, Thanks for all the help!
« Last Edit: 18 June 2016, 13:39:41 by filux »

 

anything