project-navigation
Personal tools

Author Topic: Map doesn't exist in Windows [SOLVED]  (Read 7719 times)

Offline EagleV

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Map doesn't exist in Windows [SOLVED]
« on: December 26, 2009, 09:48:11 pm »
So, I made this map I'm quite proud of (even though it isn't worth a lot :) ) but I can't compile it. I tried with 2.2.1 and 2.3 ufo2maps, and both didn't find the map. Quite frustrated, I opened explorer to check the path. My map wasn't there. No file, not in a subfolder, no hidden file, nothing. I checked both maps folders just to be sure. I saved under 'Users/name/documents' because I thought it might be UAC, still nothing. The weird thing is, radiant finds the files when I want to open them - windows itself doesn't, and thus can't 'give' the file to ufo2map. Does anyone have an idea what's going on?

On an unrelated note, what can I place on a roof to have some light? Or should I just go with invisible light sources?

Oh, and just because I like to show it:

« Last Edit: December 27, 2009, 06:52:57 pm by EagleV »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Map doesn't exist in Windows
« Reply #1 on: December 26, 2009, 10:17:46 pm »
So, I made this map I'm quite proud of (even though it isn't worth a lot :) ) but I can't compile it. I tried with 2.2.1 and 2.3 ufo2maps, and both didn't find the map.

ufo2map of 2.3 works on the game directories only. Put your map file into data/maps directory of ufoai (probably you will need to create maps dir) and run ufo2map with relative path from data (ufo2map maps/mymap.map).

your map looks promising.

-geever

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Map doesn't exist in Windows
« Reply #2 on: December 26, 2009, 11:26:36 pm »
For my installation it's base/maps, not data/maps, so if you don't have a data folder geever probably meant "base".

I also had to move ufo2map around, but I believe that was a quirk of the initial installation file I had that has since been fixed.

Offline EagleV

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: Map doesn't exist in Windows
« Reply #3 on: December 26, 2009, 11:32:37 pm »
ufo2map of 2.3 works on the game directories only. Put your map file into data/maps

That was the first directory I tried it in. Doesn't work :(

I also had to move ufo2map around, but I believe that was a quirk of the initial installation file I had that has since been fixed.

I want to try this, did you move your ufo2map to base/maps/ or base/ or somewhere else?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Map doesn't exist in Windows
« Reply #4 on: December 27, 2009, 02:52:44 am »
Yes, sorry it's base not data. But the key with 2.3 is that ufo2map can only access game directories (those you can see in ufoconsole (hopefully) 'Adding game directory....') and needs relative path from them.

-geever

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Map doesn't exist in Windows
« Reply #5 on: December 27, 2009, 04:34:56 am »
ufo2maps has to be in ufoai root dir.
so:
./
./ufo.exe
./ufo2map.exe
./base/
./baes/maps/
./base/tex/
./base/models/

Also you can use ./contrib/scripts/compile_maps.bat.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Map doesn't exist in Windows
« Reply #6 on: December 27, 2009, 09:24:44 am »
you can also attach your map here and get a pk3 file back

Offline EagleV

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: Map doesn't exist in Windows
« Reply #7 on: December 27, 2009, 10:59:21 am »
ufo2maps has to be in ufoai root dir.
so:
./
./ufo.exe
./ufo2map.exe
./base/
./baes/maps/
./base/tex/
./base/models/
Check

Also you can use ./contrib/scripts/compile_maps.bat.
I hate to say this, but I don't have a compile_maps.bat, can I download it somewhere?

you can also attach your map here and get a pk3 file back
Thanks, but as windows doesn't find the file, I can't.

Some screenshots:
Opening with radiant, the file is there.


Opening with explorer, the file IS NOT THERE! Not hidden, nothing. I find it, at the very least, strange.

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Map doesn't exist in Windows
« Reply #8 on: December 27, 2009, 11:26:23 am »
where have you get your ufo build? Have you download it or got it via SVN?

And look to the %appdata%\ufoai\2.3-dev\base\ What`s files are there?

And, try to install the game noit to programfiles, but in any other dir?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Map doesn't exist in Windows
« Reply #9 on: December 27, 2009, 12:18:41 pm »
go to settings, paths and check the settings there.

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Map doesn't exist in Windows
« Reply #10 on: December 27, 2009, 12:23:38 pm »
I want to try this, did you move your ufo2map to base/maps/ or base/ or somewhere else?

I moved it to root directory /ufoai-2.3-dev/ and then called it in window's run thing with maps/mymap.map to point to the folder. But I'm guessing the problem is different since it doesn't even show up in explorer.

Offline EagleV

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: Map doesn't exist in Windows
« Reply #11 on: December 27, 2009, 04:32:30 pm »
:'( It's gone... Not even Radiant can find it anymore.

Wait. It's not. Hold on, I've got a (dun dun dun dun) THEORY.
Opening radiant with admin rights doesn't find the map, opening without rights does find the map. Let's try to save it with admin rights. This will probably take some time, as it's ctrl-c ctrl-v.

Succes!

Take note:
-Vista Radiant will only work correctly if opened with ADMIN RIGHTS, otherwise the map will not be properly saved nor compileable.
-Ufo2map needs admin rights as well, otherwise the bsp will not be saved.


So, now to add lighting and playtest. Thanks for the support :) .

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Map doesn't exist in Windows
« Reply #12 on: December 27, 2009, 05:19:59 pm »
You just shouldn`t install developers version to program files, especially if you want to make some work with it.

I have Win7, and my ufo is in d:/svn/ufoai/ and I do not have any problem.

Offline EagleV

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: Map doesn't exist in Windows
« Reply #13 on: December 27, 2009, 06:52:38 pm »
I'll keep that in mind when installing 2.3 final or 2.4 dev ;)