UFO:Alien Invasion
Development => Mapping => Topic started by: Wanderer on May 03, 2007, 05:13:23 pm
-
In case anyone's interested, I'm building a walkthrough on the wiki and wouldn't mind input and to make sure the 'flow' of the process is easily understood.
It's here: http://ufoai.ninex.info/wiki/index.php/Mapping_For_Dummies
I appreciate the input.
-
woah, you have put a lot of work in.
i have been meaning to have a go at mapping. i will try to use your article when i get around to it. may be a few weeks.
-
I can't texture anything.... when I use + It nudges my brush.
-
I can't texture anything.... when I use + It nudges my brush.
Heh, whoops. Guess i'll need to explain that better. You're looking for the + next to the node in the texture window. If you don't see a window that shows 'INT, EXT, and TEX', with a little + in a box next to TEX, you don't have the texture window open.
In the default setup, it's in the bottom right, under the camera view.
If you are using a different setup, you'll need to hit 'T' to bring up the window.
-
Okay I keep getting errors (so I can't add textures.) here is the entirety of my returns.
OpenGL window configuration: colour-buffer = 32bpp, depth-buffer = none
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce FX 5200 Ultra/AGP/SSE2
GL_VERSION: 2.0.3
GL_EXTENSIONS: GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_timer_query GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control
Loaded Texture: "C:/Program Files/GtkRadiant 1.5.0/bitmaps/notex.bmp"
OpenGL window configuration: colour-buffer = 32bpp, depth-buffer = 32bpp
Loading tag file C:/Documents and Settings/David/Application Data/RadiantSettings/1.5.0/ufoai.game/shadertags.xml.
OpenGL window configuration: colour-buffer = 32bpp, depth-buffer = none
Texture load failed: "textures/"
brushDragNew
as you can see it has an error at the very end there. :S What is going wrong and how do I fix it?
-
seams like you don't have the right game path set - go to options menu and set the path in the path-tab
-
okay then *Note: stupid question comming up*
WHAT DO I SET THE PATH TO????
ohh and the only path I can set is called engine path. no texture path. so what do I do? :P
Much thanks for all he help in advance. :)
-
apparently I really need to beef up the intro section...
When GTKRadiant opens up, select UFO:AI in the game selection before hitting OK. IF YOU DON'T get this box, you're in Q3Radiant, and need to upload the GtkRadiant version. (This is for anyone else reading this, you've got the right one, TerminatorII).
Next, In Edit Menu -> Preferences. As you mentioned there's an engine path in the 'Paths' item on the left. You're looking for the path that leads to the ufo.exe file. It should also have the folders base, build, src, and tools in it. For my system, this is C:\Program Files\UFOAI21
And the only stupid question is the one unasked.
-
awesome thanks a ton it all works now.
BTW: why don't youput how to do this under your mapping for N00Bs?
-
hey, its a wiki.
TerminatorII, if you have found a useful fact missing, why don't you add it to the wiki?
-
Just started trying to use GTKRadiant too. I get this
Unable to find default tag file C:/Program Files/GtkRadiant 1.5.0/ufoai.game/shadertags.xml. No tag support.
I see from TerminatorII's post of Wed May 16, 2007 that this is not normal. When i texture stuff it appears textured, but very red.
Are these related?
How do I fix this?
-
this is not ufo:ai related - this is only needed for games >= q3
should be not problem at all, we don't need this file (works here perfectly with this warning, too)
-
OK, the tag file thing is a red herring.
I am trying to make a "hello world" type map, A single brush.
When I build it and look at it UFO its just black, no brush.
I read mapping for dummies and other stuff on the wiki. (perhaps someone can write mapping for total retards, just for me). Perhaps a missed a vital step.
the only odd clue is that the texture looks too red in GTKRadiant. like http://ufoai.ninex.info/wiki/index.php/Image:Lesson1-Texture_application.JPG, not like http://ufoai.ninex.info/wiki/index.php/Image:Lesson1-SurfaceInspector.JPG
The ufo console does not have anything unusual on it.
Any ideas?
-
set sunlight and ambient light - e.g. use the ufo:ai plugin and select the night or day scenario - then modify some brushes and save (without changing any brush the changes will not be saved)
-
Hi,
Maybe a stupid answer but uh ...the brushes are red when they are selected in GTKradiant. It could explain why you have that strange red look.
Another point, in Mapping For Dummies/Basics it states
To be able to get your map to build into a .bsp file (what the UFO: AI game will actually use) correctly, you'll need at least 3 brushes on the map with their level settings correct. The map must also be a minimum of 20 64x64 visible squares (Figure 320 x 256). I haven't tested if this can be shrank when you go up with multiple levels, but a 'single level' map is hit with this constriction. However, you will NOT need to place any alien or human start points yet.
I don't know why but I did see strange things when I put only 2-3 small brushes on a map (it was black or I wasn't able to move around). It seems that a single brush map is not possible.
-
yay :D
mattn: I had run the plugin, but running the plugin and then tweaking a brush worked.
zark: red, selected. that was it. :oops:
thanks, everyone.
-
Two questions about the "Prepping the software" section of the tutorial (http://ufoai.ninex.info/wiki/index.php/Mapping_For_Dummies).
1. When I unpack the .pk3 files (into the same folder) and move them out of the folder, UFORadiant no longer loads the textures. Did I do something wrong? If I move them back, the textures load fine, but I suspect it needs to be able to read unpacked textures if I'm to use any custom ones that aren't packed up.
2. It says to go to the "Build" menu and choose customize to set the Final Build settings. My UFORadiant doesn't have a "Build" menu. Is this ([ufo2map] -bounce 0 -extra "[MapFile]") supposed to go under the engine path in the preferences setting?
I'm using UFORadiant from the latest full game .exe put up by Destructavator in the forums. Thanks.
-
hi
i've updated the wiki articles to reflect the latest version of uforadiant - i hope i haven't missed anything, please reread the articles and let me know if you have any other problems. the articles were written against the no longer supported gtkradiant.
-
Thanks Matt. Working my way through now. Here's my observations:
1. When I browse to specify the path to ufo2map, it doesn't actually put the path in the field. If I type it out manually it stays there, though. Wiki might also mention that it's in the /tools/ folder.
2. Several of the textures mentioned in the tutorial are no longer there. Not a big deal.
3. Many of the key shortcuts mentioned have not worked for me. They often say, press [key] to bring up [this window]. But pressing it does nothing for me and the windows are usually just something over on the panel on the right. Am I missing something or is this related to GTKRadiant?
4. I'm having trouble setting the map lighting at this part of the tutorial (http://ufoai.ninex.info/wiki/index.php/Mapping_For_Dummies/Lesson1#Set_the_map_lighting_in_the_worldspawn). First, it looks like maybe you've changed the way day and night lighting are done, as they have their own key's now.
Second, if you look at the attached screenshot, the keys and values don't seem to be going in right. I got the maxlevel going fine, then added a light_night. When I tried to add the value to light_night, the key name disappeared and I no longer had the ability to select and edit the key. I tried adding a new one and ran into the same problems, and sometimes putting in one value or selecting one key would erase or replace values for another one.
Anyway, please don't read these as complaints. Just trying to give feedback as I move through the tutorial. Thanks!
-
I bypassed the final problem by reloading UFORadiant a few times to delete the wayward keys. I then made sure I completed each entry by hitting ENTER and that allowed me to input everything correctly. I guess I should have taken the tutorial literally there!
-
Ok, got my test map in-game. All is well. Couple things:
1. There's no build menu as mentioned in the wiki. I tried compile>compile the map, but it threw an error:
GLib-WARNING **: passing a child setup function to the g_spawn functions is pointless on Windows and it is ignored**-WARNING **: exec_spawn_process - failed to spawn process [19] [Failed to execute helper program (Invalid argument)]
2. I compiled by running ufo2map, but had to move the file into the Radiant folder (couldn't find DLLs). Is this right and should I modify wiki with a note about this? Don't want to go changing instructions the wrong way.
-
1. When I browse to specify the path to ufo2map, it doesn't actually put the path in the field. If I type it out manually it stays there, though. Wiki might also mention that it's in the /tools/ folder.
It isn't in the tools folder...
2. Several of the textures mentioned in the tutorial are no longer there. Not a big deal.
Which ones? Maybe i've missed some.
3. Many of the key shortcuts mentioned have not worked for me. They often say, press [key] to bring up [this window]. But pressing it does nothing for me and the windows are usually just something over on the panel on the right. Am I missing something or is this related to GTKRadiant?
Yes, this is still for GTKRadiant, UFORadiant is doing things a little bit different - we are using that sidebar.
4. I'm having trouble setting the map lighting at this part of the tutorial (http://ufoai.ninex.info/wiki/index.php/Mapping_For_Dummies/Lesson1#Set_the_map_lighting_in_the_worldspawn). First, it looks like maybe you've changed the way day and night lighting are done, as they have their own key's now.
Second, if you look at the attached screenshot, the keys and values don't seem to be going in right. I got the maxlevel going fine, then added a light_night. When I tried to add the value to light_night, the key name disappeared and I no longer had the ability to select and edit the key. I tried adding a new one and ran into the same problems, and sometimes putting in one value or selecting one key would erase or replace values for another one.
Anyway, please don't read these as complaints. Just trying to give feedback as I move through the tutorial. Thanks!
Thanks for reporting. I hope Destructavator will release new installers from time to time - as we are constantly working on adding the fixing stuff radiant. The entity inspector issue e.g. might already be fixed (or you've found another one ;) )
and yes, we've splitted the day/night light values. If you add a new key to the worldspawn, only those that are valid will be shown there.
You can also have a look at base/ufos/entities.ufo to see an overview. The wiki must still be adopted for this - it's been a long time since the articles were written.
Please a) report those wiki 'errors' or b) (it's a wiki) fix them while reading it (you just need an account)
Thanks and greetings
Martin
-
Ok, got my test map in-game. All is well. Couple things:
1. There's no build menu as mentioned in the wiki. I tried compile>compile the map, but it threw an error:
GLib-WARNING **: passing a child setup function to the g_spawn functions is pointless on Windows and it is ignored**-WARNING **: exec_spawn_process - failed to spawn process [19] [Failed to execute helper program (Invalid argument)]
Looks like there is something broken in the radiant installer - the helper program to spawn a process is missing, i will have a look at this. https://sourceforge.net/tracker/?func=detail&aid=2882150&group_id=157793&atid=805242 here is the bugreport for this, if you want to follow the process.
2. I compiled by running ufo2map, but had to move the file into the Radiant folder (couldn't find DLLs). Is this right and should I modify wiki with a note about this? Don't want to go changing instructions the wrong way.
Your map should just be inside of base/maps and you should be able to run ufo2map with the parameter maps/yourmapname:
ufo2map.exe maps/yourmapname
sorry for all the inconvenience, but uforadiant is still in the mid of development - we will try to fix your reports asap. So please continue to report problems and glitches (and try to be as verbose as possible so we are able to reproduce them)
-
No worries about the inconvenience. I got everything working in the end. I can work on modifying the Wiki as I go along, but I don't want to make changes if my information isn't correct. For instance, you said ufo2map.exe wasn't in the /tools/ folder, but that's where it installed to for me (see attached). I found success by copying it into the /UFOAI-2.3-dev/ folder. If that's how it's supposed to go I can update the Wiki accordingly.
-
that is really strange - did you compile on your own, or did you use an installer?
-
ah, found it - it will be fixed with the next installer.