Need some help on various topics regarding modding

Users who are viewing this thread

SoTAL

Sergeant at Arms
I'm in the process of making my own mod, mostly to learn the ropes of the module system, but also for personal use eventually.

As I'm kind of a newb, I just have a few questions (for now) about some stuff.

1. I've downloaded the SoD V4 source code, but I can't seem to find the code that relates to the invasion. Anyone know of an easy way of implementing it into my own mod?

2. I'd like to implement Kingdom Management into my mod, but I'm unsure as to how I should go about doing it. Highlander's Kingdom Management is the one I've heard mentioned most frequently, so if anyone could help me implement that, or one they think is better, I'd be very happy.
Found out

3. Buildings is something I would like to add and edit. Any guide or somesuch that explains it?

4. I have some zombie parties in my mod, and I wonder if it's possible to make them turn prisoners into zombies, like once a week or so? Another thing, how can I make them recruit from villages by looting them? (or something similar)

5. What's the most efficient way of making and expanding troop trees through the module system? Can I use the troop editor and kt0's converter?

6. A guide that explains how to spawn new parties? Lke adding spawn points?( Guess this go a little under the SoD invasion, but I'd like to know how it works)

7. Anyone know of an easy way of converting TheMageLord's tweaks into python? (I could live with directions of what to search for in which file, and what to change)Found out

8. Where in the module_mission_templates (I assume that's where it is) would I go to change reinforcement waves?

9. I can't for the life of me figure out how to make battles continue after I'm dead ( no deathcam, just not autocalc). Tried kt0's and MartinF's guides, but I always get different unexplained errors when compiling. (Usually syntax errors)
Found out

10. This is not directly related to modding, but I seem to get a lot of "stutter" (not lag, but it's like the game skips every second frame) since I implemented Mirathei's formations. Any explanation or way to remove it?
Seems to come with many men in formation at the same time?

11. Adding a new faction. How can I do that? I assume it's adding a kingdom_6 in module_factions, but that's as far as I've got.

12. How can I import items through the module system?
Found out

13. What do I do to change how many men, equipment and such, I start with? Found out

I'm pretty sure I have more questions that I can't remember now, I'll ask as they come up.

Any help would be greatly appreciated and would help a fledgling modder.





 
Get Jik's tutorial
http://forums.taleworlds.com/index.php/topic,56798.0.html

Cover all the basic stuffs you need. There are others tutorials around, check out as many as you can. Then there is this board when you need help on more complicated stuffs.

Start modding with the more basic and simple stuff, then build up from there. Adding new building and script in a simple kingdom management (like windmill give 5% prosperity,...) is a good start.

3. Adding building is simple (as with Native ones). You need to define new slots in module_constants.py.

2. Kingdom management is mostly done through simple_triggers (which fires scripts on a specific time interval), and scripts.

4. Script.

7. Usually, it's in the same name module, same name script. Except for a few like quick_strings.txt,...

 
Read both Winter's and Jik's tutorials  :wink: Anyway, does anyone have a link to the Kingdom Management source code? Disregard that, just found out the source was included in the AoM download  8-)
 
I simply can't find where Highlanders Kingdom Management code is located.... Any tips? I realy need help on this one, anyone, please?
 
I'm interested in this as well... So far I have gathered that these files have the "own kingdom" codes... game_menus, scripts and strings. I have added the aforementioned to no avail. (empty strings and such...) Wish someone with more knowledge in the codes could help us out. Anyway I'll be looking at it later and I'll post an update if I find anything or get it to work.
 
I have the AoM source codes, and I've looked through them. Point is, I can't find where the code that relates to kingdom management is, nor do I know how to implement it if/when I find them.

So if anyone could help me with that, I'd be very happy.

Hehe, I credited Jik just for making the tutorial, so...

EDIT: I've found a few "own kingdom" scripts and triggers, but I'm unsure as to what to do with them...

EDIT2: I've found and added the relevant code from module_scripts and module_game_menus. What more do I need?

EDIT3: Added the stuff from module_strings.

EDIT4: Added the stuff from module_troops.

This is the error I get after adding everything in the correct places.

Heh, I added Highlanders script last, when I should have added it into activate_deactivate_player_faction.

It works now  :D

 
  (try_begin),
      (store_num_parties_of_template, ":num_parties", "pt_looters"),
      (lt,":num_parties",15),
      (store_random_in_range,":spawn_point",villages_begin,villages_end), #spawn looters twice to have lots of them at the beginning
      (spawn_around_party,":spawn_point","pt_looters"),
    (try_end),

This script, fom spawn_bandits. Does it spawn looters around a random village or the looter spawnpoint?
 
Back
Top Bottom