UFO:Alien Invasion

Development => Mapping => Topic started by: kurja on May 13, 2012, 10:19:21 am

Title: beginner questions
Post by: kurja on May 13, 2012, 10:19:21 am
Hi,

just getting started with uforadiant, some questions.

I'm following the mapping for dummies tut, but I'm not seeing any textures on the textures tab. If I open an existing map, textures used there will appear on the tab; have I misplaced some files, what do I need and where?

When I start out a new map and choose file -> save, a file is not created. I saw an earlier thread mentioning that a map needs to have some minimum number of objects (brushes?) in it to be saved, is this correct?

edit - figured out the saving problem, by default I don't have write access in usr/share/... folders (where ufoai and radiant are installed by default) so a file is not created. There is no notification of failed save attempt in uforadiant though.
Title: Re: beginner questions
Post by: Kildor on May 13, 2012, 10:42:42 am
> I'm following the mapping for dummies tut, but I'm not seeing any textures on the textures tab. If I open an existing map, textures used there will appear on the tab; have I misplaced some files, what do I need and where?
There are button on top the texture tab with directory selector.
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 10:49:39 am
Sorry, I don't see it?

screenshot right after launching uforadiant
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 10:55:38 am
under "surfaces", there's this though.
Title: Re: beginner questions
Post by: ShipIt on May 13, 2012, 11:00:52 am
There should be a <directory> right under the 'textures' tab, which is missing in your screenshot.

How did you install, from what source?
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 11:05:21 am
installed from getdeb repositories, version 1.6.0 Apr 24 2012
Title: Re: beginner questions
Post by: ShipIt on May 13, 2012, 11:16:41 am
non-Win, I will need to call for help.  :-[
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 11:18:03 am
hmm, did you enter the correct path in UFORadiant preferences ?
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 11:20:54 am
If you do not have the source with decompressed files and folders you probably need to decompress the .pk3s in your ufoai installation dir, subdir /base.
To have write rights for those folders I would decompress the pk3s into some subdir below your home dir or ~.
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 11:30:03 am
radiant->edit->preferences->path is set to /usr/share/games/ufoai/ (tutorial instructs to set the path to where ufo.exe is, but obviously that file is not present, I'm assuming this is the correct directory in linux)

Are the .map files the uncompressed files we're talking about here? I have the .map files in ...ufoai/base/maps/, but I tried moving them around to .../base/ and to .../ufoai/, without noticeable effect.
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 11:40:52 am
you have to decompress the .pk3 files then
those are ordinary .zip files
but I would recommend you do that somewhere below your home directory and point uforadiant there, because of write rights
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 11:56:24 am
according to tutorial,
Quote
    /base/0pics.pk3 (becomes /base/textures/)

    This is where the textures are stored. In order to use existing textures in your maps, you don't need to unpack this. UFORadiant will read them in the pk3 files.

I "unzipped" them though, but to no effect. btw is 0pics.pk3 really supposed to become /base/textures/? not ../pics/?

If I set path in uforadiant to another location (where I've copied the .map files and .pk3 files are) it gives me an error "could not load ufos/entities.ufo"
Title: Re: beginner questions
Post by: Latino210 on May 13, 2012, 12:34:19 pm
according to tutorial,
I "unzipped" them though, but to no effect. btw is 0pics.pk3 really supposed to become /base/textures/? not ../pics/?

If I set path in uforadiant to another location (where I've copied the .map files and .pk3 files are) it gives me an error "could not load ufos/entities.ufo"

No, 0pics is supposed to become a /base/pics directory. Can you open the archive without unzipping?

The "could not load ufos..." error simply means that you must unzip everything.
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 12:46:18 pm
according to tutorial,
I "unzipped" them though, but to no effect. btw is 0pics.pk3 really supposed to become /base/textures/? not ../pics/?

If I set path in uforadiant to another location (where I've copied the .map files and .pk3 files are) it gives me an error "could not load ufos/entities.ufo"

1. No, it should become the base/pics folder ofc. That is a typo then which should be fixed (it is a wiki).
2. Please make sure you decompressed all pk3 files to base/ in your new subdirectory, so it contains ~/yournewdiryoupointradiantto/base/ufos and all the other decompressed pk3s (pics, textures, maps)

Title: Re: beginner questions
Post by: kurja on May 13, 2012, 04:20:33 pm
I apparently need a [mydirectory]/base/ directory, and I can have the 0ufos.pk3 file in it uncompressed and not get an error message about the missing file.

So I uncompressed everything under ...[mydirectory]/base/, got subfolders such as ...[mydirectory]/base/textures/, pictures, ufos et cetera, no error messages when starting uforadiant but I'm still not seeing the textures.
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 04:29:39 pm
Can you open the archive without unzipping?

The "could not load ufos..." error simply means that you must unzip everything.

Yes, I can access the files in the archive file without decompressing first.

Apparently I didn't need to unzip "ufos", the pk3 just needed to be in the right dir.
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 04:34:05 pm
screenshots:
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 06:06:34 pm
What happens if you load a map ?
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 06:08:32 pm
textures used in that map will appear in the textures tab, if I then start a new map those textures remain there and I can use them.
Title: Re: beginner questions
Post by: MCR on May 13, 2012, 06:10:32 pm
A workaround would be to use some other browser for the textures and add them manually (by typing their path & name in)...
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 06:13:50 pm
one by one?
Title: Re: beginner questions
Post by: ShipIt on May 13, 2012, 08:40:36 pm
Could you show the content of the /base/textures folder, too?
Title: Re: beginner questions
Post by: Mattn on May 13, 2012, 09:53:34 pm
please also attach the radiant.log from ~/.ufoai/radiant
Title: Re: beginner questions
Post by: kurja on May 13, 2012, 10:31:08 pm
Textures folder is full of, well, textures. Zillion small pictures in png and jpg formats in many subfolders as seen in the attached screenshot.

in the log file, I'm seeing hundreds of lines like these:
Code: [Select]
**-Message: Could not find image (parkbench.map) for prefab /misc/parkbench.map
**-Message: Could not find image (wood.map) for prefab /misc/wood.map
**-Message: Could not find image (crate6.map) for prefab /misc/crate6.map
**-Message: Could not find image (sunshade.map) for prefab /misc/sunshade.map
**-Message: Could not find image (pingpong.map) for prefab /misc/pingpong.map

.map? wtf? entire logfile attached.
Title: Re: beginner questions
Post by: ShipIt on May 14, 2012, 07:13:00 am
Mattn made a commit yesterday which I hope was to fix the problem. Was it?
Title: Re: beginner questions
Post by: kurja on May 14, 2012, 09:44:23 am
Mattn made a commit yesterday which I hope was to fix the problem. Was it?

Remember the topic was "beginner questions" - how do I proceed to apply the changes he's made? I've installed uforadiant from getdeb repos.
Title: Re: beginner questions
Post by: ShipIt on May 14, 2012, 10:04:36 am
I am not sure if the commit was about the problem, so that question was addressed to him, not to you. :)

Also, I really would like to help you getting started, and I could for sure if it was about mapping. Unfortunately I have no idea about most of the technical stuff, especially if non-Win. MCR or Mattn should be able to help.
Title: Re: beginner questions
Post by: kurja on May 16, 2012, 07:35:33 am
any news on this?
Title: Re: beginner questions
Post by: Mattn on May 16, 2012, 10:07:02 am
i'm still working on uforadiant issues