Guys i have a question (bout modding)

Users who are viewing this thread

MISHO

Banned
Uhhh, i know its a stupid question but scince i dont know too much about scripting (more about scene editing and other stuff)
does anybody know how should i assign lets say a town to another faction, and maybe castles and stuff...
And one more thing is when i make a new lord and assign him to the new faction, do i have to do something else? or is he just going to spawn somewhere on the map later?
 
You have to change mod scripts, here is a example:

      (call_script, "script_give_center_to_faction_aux", "p_castle_4", "fac_kingdom_4"),
      (call_script, "script_give_center_to_lord", "p_town_6",  "trp_kingdom_4_lord", 0),
Change the red stuff with your cities, factions and lords.

About the lords, I think they spawn on their own. But I'm not sure.
 
Yes, they spawn IFF their faction is active & has at least one center that isn't under siege.  A timer checks for this every 48 hrs.
 
wait, so when i make my lords and stuff i only assign them to a faction and they will be there? ok and
just how could i add castles too? lol thanks for this anyway!
 
In module_parties, search for the castles tuples, and copy the last one:

Code:
 ("castle_40","Al-Qusab_Jebel_Tariq",icon_castle_d|pf_castle, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-51.5, -132.9),[],260),

(Al-Qusab... is the name of my castle number 40...)

and rename it (change its ID):

Code:
  ("castle_41","Capital_of_MISHOland",icon_castle_d|pf_castle, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-51.5, -132.9),[],260),

When you have done this, you can change the coordinates of the castle, or move it with the Map Editor (But if you compile the MS after that, all you have done before with MapEditor, TroopEditor... will be erased), it's better to take a while and do it with the MS

Ok, then go to SceneObject folder, and copy the files of the castle you want, castle_4? ok, just copy all the files:

scn_castle_4_interior, scn_castle_4_exterior, scn_castle_4_prision

and paste in the same folder changing their names to, for example, scn_castle_41_interior... (it's easier if you name them that way to search for them latter... if you need to)

Now, open module_scenes:

Go to the castles tuples, and copy the same files of the castle scenes you copied before, for us it will be castle_4 (you know about scenes, if you change the code of the terrain...  :shock:)

 
Code:
("castle_4_exterior",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000030044e900003dd02000077b20000400100005697",
    [],[],"outer_terrain_plain"),
  ("castle_4_interior",sf_indoors, "interior_castle_k", "bo_interior_castle_k", (-100,-100),(100,100),-100,"0",
    ["exit"],["castle_4_seneschal"]),
  ("castle_4_prison",sf_indoors,"interior_prison_l", "bo_interior_prison_l", (-100,-100),(100,100),-100,"0",
    [],[]),

paste them after castle_40 tuples and change its number to 41

Code:
("castle_41_exterior",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000030044e900003dd02000077b20000400100005697",
    [],[],"outer_terrain_plain"),
  ("castle_41_interior",sf_indoors, "interior_castle_k", "bo_interior_castle_k", (-100,-100),(100,100),-100,"0",
    ["exit"],["castle_4_seneschal"]),
  ("castle_41_prison",sf_indoors,"interior_prison_l", "bo_interior_prison_l", (-100,-100),(100,100),-100,"0",
    [],[]),

compile, and voila... your new castle is... where you place it
 
cool, thank you man!
how could i assign villages to be for the faction i want?
when change the map...
 
lol ok so i was right 'bout that but i am having big problems with the map editor and i cant make maps any more, because of the retarded arb texture thingy (problem is i didnt change my driver or anything and it doesnt work on any of my PCs!
so do you have any suggestions?
because i cant do it with coordinates!
 
ehmmm...

Not the map, just the towns, castles and villages... if your MapEditor doesn't work...

Convince somebody to make the map for you, or try to run your MapEditor one more time... (what was the problem with it?)

 
well it says (on my new PC, which is vista) it only says that the map editor has stopped working (it worked before)
and on the old one it says something like "cannot find ARB texture" but i guess its the same problem with the new PC scince it never shows the cause of a program stopping... i really want to make this map by myself :(
 
Uhm, try this:

1.- Install MapEditor in the M&B folder.

2.- Open your MapEditor folder, then open editorData

3.- With TextPad or similar open settings.cfg

4.- The beginning of the file will be this:

Code:
#  Change these settings at your own risk
#  Don't include any spaces for now

#  Mount & Blade path
# use "." if running the editor from the root M&B directory
# use "auto" to auto detect M&B path
# or type in the full path: eg "C:/games/Mount&Blade"
# NOTE: if typing the full path, use / NOT \ as a separator
mbPath=auto

5.- Ok, then,  change the line: mbPath=auto to mbPath=C:/Program Files/Mount&Blade

6.- Save and run MapEditor
 
mmm, I don't know what could happen with your new PC...

Mine is Vista too, and I had the same problem as you in your old computer, but I changed that line and now it works.
 
Back
Top Bottom