# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)
export_dir = "C:\Program Files\Steam\SteamApps\common\mountblade warband\Modules\Native"
#export_dir = "C:\Program Files\Steam\SteamApps\common\mountblade warband\Modules\Native"
from madmin_utils import *
addMadminScripts(scripts)
# -*- coding: cp1254 -*-
from header_common import *
from header_operations import *
from module_constants import *
from module_constants import *
from header_parties import *
from header_skills import *
from header_mission_templates import *
from header_items import *
from header_triggers import *
from header_terrain_types import *
from header_music import *
from ID_animations import *
from madmin_utils import *
addMadminScripts(scripts)
Nord Champion said:So, where exactly do I put
Code:from madmin_utils import * addMadminScripts(scripts)
?
I put it
Code:# -*- coding: cp1254 -*- from header_common import * from header_operations import * from module_constants import * from module_constants import * from header_parties import * from header_skills import * from header_mission_templates import * from header_items import * from header_triggers import * from header_terrain_types import * from header_music import * from ID_animations import * from madmin_utils import * addMadminScripts(scripts)
here but no luck.
I got it, you put it below everything... Thanks for this!
from madmin_utils import *
addMadminScripts(scripts)
darkrider231 said:I've been trying to get this to work in my own mod for ages, any chance I could have a hand?
MadocComadrin said:darkrider231 said:I've been trying to get this to work in my own mod for ages, any chance I could have a hand?
Certainly. Everything is open source, so you shouldn't have to look too hard to find the code I used. I'll dig it up later myself when I'm at home.
All those two lines do is check to make sure that the maps aren't native maps. You can replace custom_maps_begin with your first custom scene and custom_maps_end with the last multiplayer scene entry (I believe it's multiplayer_end). Also, I didn't touch the bot spawns. I'll take a look at them in the future.darkrider231 said:Edit again: Ok got it working, what you had was basically what I already have but with some tweaking I got things to work, may have screwed up the other siege maps though cause i got rid of these lines
(store_current_scene, ":cur_scene"),
(is_between,":cur_scene",custom_maps_begin,custom_maps_end),
As I don't know how to get them to work without importing all of your stuff (know what they are trying to do though)