Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
	
	
		I'm making a map. In this map, I have placed a "Mineshaft Elevator" mapmodel. Whenever I go into AssaultCube and load my map, the elevator is not there. There is also no clip preventing me from moving into its designated space but upon entering edit mode, the "entity marker" is still visible from where I placed it. When I place another elevator in the same place (or roughly in the same place), the first elevator appears all of a sudden. What do?
If it helps to know, this map already has its own .cfg file.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 751
	Threads: 14
	Joined: Jun 2010
	
	
 
	
		
		
		14 Jun 17, 07:24PM 
(This post was last modified: 14 Jun 17, 07:32PM by Robtics.)
		
	 
	
		did you by chance move the first elevator to an elevation < 0 (floor level) ?
if it says smth like: "closest ent: mapmodel ( x, x, ~250, x)"; hold "3" and scroll until you see it
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
	
		
		
		14 Jun 17, 07:30PM 
(This post was last modified: 14 Jun 17, 07:30PM by MerCyKiL.)
		
	 
	
		Indeed I did
So don't move it off the floor?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 751
	Threads: 14
	Joined: Jun 2010
	
	
 
	
	
		you can place it "lower" than the floor by lowering the tile its placed on but the mapmodel itself cant be lower than the tile it is placed on I think
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
 
	
	
	
		
	Posts: 376
	Threads: 32
	Joined: Apr 2014
	
	
 
	
		
		
		15 Jun 17, 09:16AM 
(This post was last modified: 15 Jun 17, 09:29AM by stef.)
		
	 
	
		to move a mapmodel below ground, use a negative elevation in the config file entry (3rd parameter)
mapmodel 3 8 -5 0 makke/mine-shaft_elevator
this offsets all entities using that slot
BTW, you could use the dev client (git master branch), which allows setting those parameters from the menu :)
As long as you don't use new map features like floating-point entity attributes or tilted clips, you can use "savemap9" to create maps, that 1.2.0.2 will still load.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
	
	
		Thanks stef. I have another problem though. I tried just placing an elevator on flat ground and when I save the map and reload it, said elevator still disappears (except for the entity marker). Any ideas?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 376
	Threads: 32
	Joined: Apr 2014
	
	
 
 
	
	
	
		
	Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
	
		
		
		16 Jun 17, 05:29PM 
(This post was last modified: 16 Jun 17, 05:38PM by MerCyKiL.)
		
	 
	
		by typing /newent mapmodel 202
Is it worth mentioning that when I look at mapmodels in the game menu, some of the texts (including the Mineshaft Elevator) are faded out?
Like so: 
http://imgur.com/a/GufCR
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 751
	Threads: 14
	Joined: Jun 2010
	
	
 
	
	
		type /loadallmapmodels and make sure to enable the .cfg save in the editing > skymaps menu
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 376
	Threads: 32
	Joined: Apr 2014
	
	
 
	
		
		
		16 Jun 17, 06:26PM 
(This post was last modified: 16 Jun 17, 06:29PM by stef.)
		
	 
	
		That was sort of a bug: I've changed it, so that adding a new slot from the menu now also activates "automapconfig", which needs to be on, if the map config file should be maintained by AC automatically.
type /automapconfig to activate it manually (only needs to be done once for a map)
PS: be careful, if you have a beautifully handcrafted map config file with lots of ASCII art or license information in the comments. automapconfig embeds the config file into the map file - without any comments.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 762
	Threads: 120
	Joined: May 2011
	
	
 
	
	
		Thanks for the help, stef. I actually found that the mineshaft elevator was "commented out" in .cfg file. Just moved it to the end of the list and got rid of the slash marks
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 376
	Threads: 32
	Joined: Apr 2014
	
	
 
	
	
		The point of "automapconfig" is, that you don't have to do that manually :)