A ZoR tutorial - This is how I made a ZoR. It also tells you how to make mercenaries recruitable from buildings. But it is a ZoR tutorial first and foremost.
Step One:
First go to export_descr_buildings, and look for the line near the top, starting with "hidden_resources". Then add to the end of the line “welshbow” and save the file.
Step Two:
Open descr_regions, and search for the Caernarvon entry. In the entry, look for the line containing resources like wine, textiles or camels (Note: the line probably won’t contain any of these resources, I just showing examples). Then, add “, welshbow” to the end of the line and save the file. You can add your resource to as many regions as you want, I am just doing one here for quickness.
Step Three:
Go to export_unit_descr, and search for the Welsh Longbowmen Mercs entry. Add the factions you want to make the unit available to to the ownership line, like this:
ownership slave, england
The figures in italics are the added figures.
Step Four:
Now, go back to EDB, and search for the building you want the unit to be recruitable from. You will see the various unit entries for units below the building entry. Scroll to down to the buildings last unit entry then copy and paste any unit entry under the sun below this last entry. Then, in between the speech marks, replace the unit’s name with your unit’s name, in this case “Welsh Longbowmen Mercs”. Then, where the faction names are located (e.g { hre, } ), replace the faction name(s) with “england,”. So it should look like: { england, }. M2:TW is installed on my other computer, so unfortunately I cannot show you the exact entry. Then, add on to the end of your entry “ and hidden_resource welshbow”. I stress there must be two spaces before the “and”. Copy and paste the entry you have made into all buildings you want your Welsh Longbowmen Mercs to be recruitable in.
There you have it, a ZoR tutorial. If it doesn’t work for you, always make sure, you are using the Welsh Longbowmen Mercs as there may be another entry for normal Welsh Longbowmen, which would be invisible on the battlemap. Remember to check your system log thingy for errors, as it is amazingly helpful. Finally, as a last resort, pm me your problem and/or problem files. If this tutorial has been at all helpful, please show your appreciation by adding some rep for me.
EDIT: If you want to set up a ZoR, just add your resource to edb (welshbow in our case), add it to the region you want in descr_regions (Caernarvon region in our case) and add " and hidden_resource ***" at the end of the unit's edb entry (and hidden_resource welshbow in our case). EDIT 2: There is a maximum number of hidden resources, I think it is 63 or 64. EDIT 3: I'm not sure whether this needs to be done or not, but I'm adding it in for the sake of completeness. Social_infidel says you need to delete the map.rwm file before the hidden_resources will work. I think he maybe right. If it still doesn't work, e-mail me your non-working edu ,edb and descr_regions files so I can help you. A suggestion of what you want doing may help as well!
EDIT 2: The last time I looked at this thread was in December 2007; if you have any problems, please do not hesitate to PM me, as that is the only way I will be able to answer your question(s).



Reply With Quote









