Example #1
0
	
	if _old_size[2]>size[2]:
		for x1 in range(_old_size[0]):
			for y1 in range(_old_size[1]):
				for z in range(abs(_old_size[2]-size[2])):
					_new_map[x1][y1].pop()
	elif _old_size[2]<size[2]:
		for x1 in range(_old_size[0]):
			_y1 = []
			for y1 in range(abs(_old_size[1])):
				_z1 = []
				for z1 in range(abs(_old_size[2]-size[2])):
					_z1.append(None)
			
				_new_map[x1][y1].extend(_z1)
	
	return _new_map

if __name__ == '__main__':
	if '--create' in sys.argv:
		create_all_tiles()
		WORLD_INFO['map'] = maps.create_map()
		maps.create_position_maps()
		maps.update_chunk_map()
		
		zones.create_zone_map()
		zones.connect_ramps()
		
		maps.save_map('temp_map')
		
		print 'Created map: temp_map.dat'
Example #2
0
def post_setup_world():
	items.reload_all_items()
	weather.change_weather()
	maps.create_position_maps()
	
	WORLD_INFO['real_time_of_day'] = WORLD_INFO['length_of_day']/2
Example #3
0
    if _old_size[2] > size[2]:
        for x1 in range(_old_size[0]):
            for y1 in range(_old_size[1]):
                for z in range(abs(_old_size[2] - size[2])):
                    _new_map[x1][y1].pop()
    elif _old_size[2] < size[2]:
        for x1 in range(_old_size[0]):
            _y1 = []
            for y1 in range(abs(_old_size[1])):
                _z1 = []
                for z1 in range(abs(_old_size[2] - size[2])):
                    _z1.append(None)

                _new_map[x1][y1].extend(_z1)

    return _new_map


if __name__ == '__main__':
    if '--create' in sys.argv:
        create_all_tiles()
        WORLD_INFO['map'] = maps.create_map()
        maps.create_position_maps()
        maps.update_chunk_map()

        zones.create_zone_map()
        zones.connect_ramps()

        maps.save_map('temp_map')

        print 'Created map: temp_map.dat'
Example #4
0
def post_setup_world():
    items.reload_all_items()
    weather.change_weather()
    maps.create_position_maps()

    WORLD_INFO['real_time_of_day'] = WORLD_INFO['length_of_day'] / 2