Module System not compiling

正在查看此主题的用户

LAWolves

Regular
Hello,
I'm haveing problems with the module system as it doesn't create any file when i tell it to compile what i've done.

Is it possible that some error prevents it from compiling?

This is what appears in the DOS window when I tell it to compile. I supposed it was just what should have appeared, am I right?
modulesystemcompileerro.jpg
 
Have you made big changes to the module files? Could you paste the errors? You have messed up the export dir I think.
Look into the module_info. There are two lines
export dir =
#export dir =
Make sure that the first one is pointing out to the right path.
Also, what do you actually have in the module_info as the export dirs?
 
Here's the Module_info when I compiled last time (and took pic)
moduleinfopath00.jpg
And Here's what I set it now
moduleinfopath01.jpg

The Error it gave out was just the same. Only difference was the destination which was changed into what I set
 
It should be /new faction multiplayer/
and change the other export dir to the same, just to be safe.
And do you have python 2.6? Have you installed according the instructions given here?
 
Now I think I got what the problem was, I was missing this simbol at the end of the path
"
  :oops:

And now I got a very long series of true errors. Will see if I'm able to fix them on my own then let you know
 
Finally I could compile without errors.
Sadly the effect I wanted to obtain was not achieved: I wanted to make more items available for Vaegir Archers in Multiplayer but nothing really changed
 
LAWolves 说:
Finally I could compile without errors.
Sadly the effect I wanted to obtain was not achieved: I wanted to make more items available for Vaegir Archers in Multiplayer but nothing really changed
Which ones, the vaegir archer bots or player troop class? Because there are two types of "units" for each faction, bots and player units. Look into module scripts. Search for "Multiplayer ai troops" or similar to that. You should see a list of entries there. Find vaegir archer and edit it's equipment. Again, if it's for player units, search for "Multiplayer troops" and look for vaegir archer and edit it's equipment. Look at these tutorials:
http://forums.taleworlds.com/index.php/topic,116286.0.html
http://forums.taleworlds.com/index.php/topic,112126.0.html
 
The tutorial you made is the one I used when I first attempted to this  :razz:

And what I did is this
modulescriptsediting00.jpg

together with the part in Module_factions and Module_troops
but nothing changes and I get a good compile this time
 
LAWolves 说:
The tutorial you made is the one I used when I first attempted to this  :razz:

And what I did is this
modulescriptsediting00.jpg

together with the part in Module_factions and Module_troops
but nothing changes and I get a good compile this time
hmm. Could you show what you put in module troops. Would help alot. Also, try to create a whole new unit to the faction and see if it works then. Its possible to get it work for vaegir archer unit too, but since I need to see the module troop code to know what the problem is, adding a new troop would be the best temporary option. Remember to add the unit to "Multiplayer ai troops" or otherwise it won't show up as a bot for the faction.

Edit: Ninjad :grin: I thought the "strange armour" etc were also defined as multiplayer items :lol: Yes that part was missing from my tutorial since I didn't cover adding "custom" items for the units. Ill update it since it's quite obvious that people want to do it.
 
I see you've tried to add plate armor, black armor, etc to the Vaegir Archer. You'll find that they won't show up, since they're not defined as multiplayer items. mr.master's tutorial is missing this information, which is why he gave you two links to tutorials.
To define an item for multiplayer, just do this
插入代码块:
(item_set_slot, "itm_plate_armor", slot_item_multiplayer_item_class, multi_item_class_type_light_armor),
Don't worry about the light_armor part even though it's plate, it just defines what group the item gets placed with when you try to buy it in multiplayer.
Also, it doesn't matter what you put in module_troops. Those items are the base items for the troop, which are by default placed first in its group and are free.
 
Somebody 说:
I see you've tried to add plate armor, black armor, etc to the Vaegir Archer. You'll find that they won't show up, since they're not defined as multiplayer items. mr.master's tutorial is missing this information, which is why he gave you two links to tutorials.
To define an item for multiplayer, just do this
插入代码块:
(item_set_slot, "itm_plate_armor", slot_item_multiplayer_item_class, multi_item_class_type_light_armor),
Don't worry about the light_armor part even though it's plate, it just defines what group the item gets placed with when you try to buy it in multiplayer.
Also, it doesn't matter what you put in module_troops. Those items are the base items for the troop, which are by default placed first in its group and are free.

I know it may be the cause but some of the items I added were already among the ones in multyplayer like Great Long Bardiche, and Nomad Boots
 
LAWolves 说:
Somebody 说:
I see you've tried to add plate armor, black armor, etc to the Vaegir Archer. You'll find that they won't show up, since they're not defined as multiplayer items. mr.master's tutorial is missing this information, which is why he gave you two links to tutorials.
To define an item for multiplayer, just do this
插入代码块:
(item_set_slot, "itm_plate_armor", slot_item_multiplayer_item_class, multi_item_class_type_light_armor),
Don't worry about the light_armor part even though it's plate, it just defines what group the item gets placed with when you try to buy it in multiplayer.
Also, it doesn't matter what you put in module_troops. Those items are the base items for the troop, which are by default placed first in its group and are free.

I know it may be the cause but some of the items I added were already among the ones in multyplayer like Great Long Bardiche, and Nomad Boots
Well, try creating a whole new troop for the faction and see if it works then.
 
后退
顶部 底部