project-navigation
Personal tools

Author Topic: how does the +map command line work for assembly maps?  (Read 5164 times)

thebohemian

  • Guest
how does the +map command line work for assembly maps?
« on: April 05, 2008, 08:07:38 pm »
Hi,
I have started updating http://ufoai.ninex.info/wiki/index.php/Running_the_game#General with information that is suitable for trunk/2.3. For instance the +map argument has changed and is more flexible. However I have trouble finding out what I need to provide in order to load a map that is created from assemblies.

E.g. how do I start a farm map?

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: how does the +map command line work for assembly maps?
« Reply #1 on: April 05, 2008, 08:34:48 pm »
basically, you must just add the day/night parameter before the name of the map.

For example, for the farm, try in console (that is when game is running)
Code: [Select]
map day +farm

if you type just "map" in console, you'll get an help. The third parameter is only option, that has some default value so you don't really need to fill it.

Offline blondandy

  • Sergeant
  • *****
  • Posts: 391
    • View Profile
Re: how does the +map command line work for assembly maps?
« Reply #2 on: April 06, 2008, 12:07:20 am »
see

http://ufoai.ninex.info/wiki/index.php/Mapping/Random_map_assembly

for the random map assembly options

eg

map day +village residential

I am reasonably sure this works, but cannot test it right now, as I do not have the tiles compiled.

read the .ump files to see what the themes are.

thebohemian

  • Guest
Re: how does the +map command line work for assembly maps?
« Reply #3 on: April 06, 2008, 12:10:58 pm »
Thanks for the info. I updated the mentioned page.

However I was unable to get the command (e..g. map day +farm small) working on the command-line (it worked from console just nicely).

E.g. if I run ufoai like this:

Code: [Select]
./ufo +map day +farm small

This is printed on the terminal later:
Code: [Select]
Usage: map <day|night> <mapname> [<assembly>]
Use 'maplist' to get a list of all installed maps
Unknown command "farm"

So +farm is treated like a new command. Perhaps this has something to do with how the command-line argument parser works. I'll look into that later.

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: how does the +map command line work for assembly maps?
« Reply #4 on: April 06, 2008, 01:13:18 pm »
you should use the command from game console: start game (./ufo), open the console (^ key), and type "map day +farm small" in the console.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: how does the +map command line work for assembly maps?
« Reply #5 on: April 06, 2008, 02:46:31 pm »
He said it worked in the console, so you can assume he knows how to do it. I think the point is that he wants to do it from the command line for some reason.

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: how does the +map command line work for assembly maps?
« Reply #6 on: April 06, 2008, 08:44:08 pm »
ooops sorry, I read too fast  :-[