Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Nord Champion said:
Actually, I have another question that may be common.

I took your advice and edited the banner selection to be race selection (thanks btw!!!). But I'm having trouble figuring out what I should use to detect the player's character so I can change the race.

Currently, I have

Code:
("race_longclaw", [

			(multiplayer_get_my_player, ":my_player_no"),
			(player_get_agent_id, ":player_agent", ":my_player_no"),
			
			(try_begin),
			(player_set_skin, ":player_agent", 2),
			(display_message,"@You_have_choosen_the_Long_Claw_race!"),
			(try_end),
         ]),

Which, I have a feeling is wrong, since it doesn't work. I get the debug message, but I get an error saying I used the wrong agent detector(not exact words, but I hope you get what I am saying.) Anyways, thanks for the help, and any more help would be greatly appreciated.

If the command is player_set_skin, then you should use ":my_player_no" player ID rather than the agent ID ":player_agent"
 
Code:
  ("game_get_date_text",
    [
      (store_script_param_2, ":num_hours"),
      (store_div, ":num_days", ":num_hours", 24),
      (store_add, ":cur_day", ":num_days", 23),
      (assign, ":cur_month", 3),
      (assign, ":cur_year", 1257),
 
Somebody said:
Code:
  ("game_get_date_text",
    [
      (store_script_param_2, ":num_hours"),
      (store_div, ":num_days", ":num_hours", 24),
      (store_add, ":cur_day", ":num_days", 23),
      (assign, ":cur_month", 3),
      (assign, ":cur_year", 1257),

I love you.
 
bonzomannen said:
I am wondering how to change the start date.

I want to change it from 1257 to 1401, any help?
By the module system, the file is module_scripts, and the script is "game_get_date_text". Find the line:
(assign, ":cur_year", 1257),
and change as needed

By .txt editing, go to scripts.txt, find "game_get_date_text" and find the number 1257 on the line that follows. Change as needed.

edit - just noticed Somebody was in there with the ninja. heh.
 
I am a wannabe Warband modder and I would like some guidance on making new factions and adding new items :grin:

I have followed tutorials and worked out the rhythm of the module system and very roughly how to edit it. However, I do not understand how to add new factions and new items to the game (I.E new swords, armours that aren't in Native).

Could somebody please tell me how to do so, or point me to a good tutorial for modding Warband?

Thanks :grin:
 
Hi!
How I can restore a random play sountrack in TLD 3.12?
Their music is good, but but in the longer fight against the same enemy...Its crazy!
For an hour I can't hear the same song...

Usually, I changed the  music file, or renamed my songs(Its worked with every mods).Here it is different.TLD's devs changed something in scripts files.
Now, any modifications in music.txt doesn't working.I had "red lines"
SCRIPT WARRING ON UPCODE : 601 Invalid Track ID : 98 LINE NO: 267:
AT scripts : s292.
AT scripts : s292.
AT scripts : s292.
AT simple TRIGGER TRIGGER NO: 6.

I Found this script:
s292 -1
267 23 2 1224979098644774912 1 2133 2 1224979098644774913 0 4 0 1073741855 2 1224979098644774912 8192 1073741855 2 1224979098644774912 1048576 1073741855 2 1224979098644774912 524288 1073741855 2 1224979098644774912 16384 31 2 1224979098644774912 2097152 1 2 936748722493063485 144115188075855999 2114 2 1224979098644774913 72057594037927936 5 0 1073741855 2 1224979098644774912 4096 31 2 1224979098644774912 1024 1 2 936748722493063485 144115188075855999 2114 2 1224979098644774913 72057594037927936 1 2 936748722493063485 648518346341351424 2114 2 1224979098644774913 72057594037927936 1 2 936748722493063297 648518346341351424 1 2 936748722493063485 72057594037927936 2114 2 1224979098644774913 72057594037927936 5 0 31 2 1224979098644774912 65536 1 2 936748722493063297 648518346341351424 1 2 936748722493063485 72057594037927936 2114 2 1224979098644774913 72057594037927936 5 0 31 2 1224979098644774912 8388608 1 2 936748722493063485 648518346341351424 2114 2 1224979098644774913 72057594037927936 5 0 31 2 1224979098644774912 32768 1 2 936748722493063485 144115188075855999 2114 2 1224979098644774913 72057594037927936 3 0 4 0 1073741855 2 1224979098644774912 8192 31 2 1224979098644774912 1048576 4 0 2273 0 2133 2 1224979098644774912 524288 3 0 3 0 603 1 1224979098644774912 604 1 1224979098644774913 4 0 31 2 1224979098644774912 8192 2133 2 1224979098644774914 0 2204 2 1224979098644774915 144115188075855999 4 0 1073741855 2 1224979098644774915 432345564227567619 31 2 1224979098644774915 432345564227567621 2136 3 1224979098644774916 0 100 2147483678 2 1224979098644774916 10 2133 2 1224979098644774914 1657324662872342556 5 0 31 2 1224979098644774915 432345564227567619 4 0 31 2 144115188075855999 648518346341351442 2133 2 1224979098644774914 1657324662872342557 5 0 2133 2 1224979098644774914 1657324662872342558 3 0 5 0 31 2 1224979098644774915 432345564227567621 4 0 31 2 144115188075855999 648518346341351455 2133 2 1224979098644774914 1657324662872342559 5 0 31 2 144115188075855999 648518346341351457 2133 2 1224979098644774914 1657324662872342560 5 0 2133 2 1224979098644774914 1657324662872342561 3 0 5 0 31 2 1224979098644774915 432345564227567620 4 0 31 2 144115188075855999 648518346341351501 2133 2 1224979098644774914 1657324662872342563 5 0 2133 2 1224979098644774914 1657324662872342562 3 0 5 0 1073741855 2 1224979098644774915 432345564227567622 1073741855 2 1224979098644774915 432345564227567633 31 2 1224979098644774915 432345564227567632 4 0 31 2 144115188075855999 648518346341351463 2133 2 1224979098644774914 1657324662872342564 5 0 2133 2 1224979098644774914 1657324662872342565 3 0 5 0 31 2 1224979098644774915 432345564227567623 4 0 31 2 144115188075855999 648518346341351467 2133 2 1224979098644774914 1657324662872342566 5 0 2133 2 1224979098644774914 1657324662872342567 3 0 5 0 31 2 1224979098644774915 432345564227567624 2133 2 1224979098644774914 1657324662872342568 5 0 31 2 1224979098644774915 432345564227567625 2133 2 1224979098644774914 1657324662872342569 5 0 31 2 1224979098644774915 432345564227567626 2133 2 1224979098644774914 1657324662872342570 5 0 31 2 1224979098644774915 432345564227567627 4 0 31 2 144115188075855999 648518346341351483 2133 2 1224979098644774914 1657324662872342571 5 0 2133 2 1224979098644774914 1657324662872342572 3 0 5 0 31 2 1224979098644774915 432345564227567628 2133 2 1224979098644774914 1657324662872342573 5 0 31 2 1224979098644774915 432345564227567629 2133 2 1224979098644774914 1657324662872342574 5 0 31 2 1224979098644774915 432345564227567630 2133 2 1224979098644774914 1657324662872342575 5 0 31 2 1224979098644774915 432345564227567631 2133 2 1224979098644774914 1657324662872342576 5 0 31 2 1224979098644774915 432345564227567634 2133 2 1224979098644774914 1657324662872342577 5 0 31 2 1224979098644774915 432345564227567635 2133 2 1224979098644774914 1657324662872342578 5 0 2133 2 1224979098644774914 1657324662872342579 3 0 601 2 1224979098644774914 1 3 0 4 0 1073741855 2 1224979098644774912 1024 31 2 1224979098644774912 4096 2133 2 1224979098644774914 0 2204 2 1224979098644774917 144115188075855999 4 0 2147483681 3 1224979098644774917 3 21 4 0 32 2 144115188075856308 0 2204 2 1224979098644774917 144115188075856308 3 0 4 0 2147483681 3 1224979098644774917 3 21 2133 2 1224979098644774917 144115188075855994 3 0 3 0 4 0 31 2 1224979098644774917 432345564227567619 2133 2 1224979098644774914 1657324662872342544 5 0 31 2 1224979098644774917 432345564227567620 2133 2 1224979098644774914 1657324662872342541 5 0 31 2 1224979098644774917 432345564227567621 2133 2 1224979098644774914 1657324662872342549 5 0 31 2 1224979098644774917 432345564227567622 2133 2 1224979098644774914 1657324662872342547 5 0 31 2 1224979098644774917 432345564227567623 2133 2 1224979098644774914 1657324662872342546 5 0 1073741855 2 1224979098644774917 432345564227567624 1073741855 2 1224979098644774917 432345564227567625 31 2 1224979098644774917 432345564227567626 2133 2 1224979098644774914 1657324662872342542 5 0 31 2 1224979098644774917 432345564227567627 2133 2 1224979098644774914 1657324662872342537 5 0 31 2 1224979098644774917 432345564227567628 2133 2 1224979098644774914 1657324662872342543 5 0 1073741855 2 1224979098644774917 432345564227567629 1073741855 2 1224979098644774917 432345564227567630 31 2 1224979098644774917 432345564227567631 2133 2 1224979098644774914 1657324662872342539 5 0 1073741855 2 1224979098644774917 432345564227567632 31 2 1224979098644774917 432345564227567633 2133 2 1224979098644774914 1657324662872342548 5 0 31 2 1224979098644774917 432345564227567634 2133 2 1224979098644774914 1657324662872342545 5 0 31 2 1224979098644774917 432345564227567635 2133 2 1224979098644774914 1657324662872342540 5 0 2133 2 1224979098644774914 1657324662872342538 3 0 601 2 1224979098644774914 0 3 0 4 0 31 2 1224979098644774912 65536 2133 2 1224979098644774914 0 1 2 936748722493063297 648518346341351424 2133 2 1224979098644774918 72057594037927936 521 3 1224979098644774917 1224979098644774918 61 2136 3 1224979098644774916 0 100 4 0 2147483678 2 1224979098644774916 20 2133 2 1224979098644774917 0 3 0 2133 2 1224979098644774919 0 4 0 31 2 1224979098644774917 432345564227567619 2133 2 1224979098644774914 1657324662872342608 2133 2 1224979098644774919 5 5 0 31 2 1224979098644774917 432345564227567620 2133 2 1224979098644774914 1657324662872342600 2133 2 1224979098644774919 3 5 0 31 2 1224979098644774917 432345564227567621 2133 2 1224979098644774914 1657324662872342624 2133 2 1224979098644774919 4 5 0 1073741855 2 1224979098644774917 432345564227567622 1073741855 2 1224979098644774917 432345564227567623 1073741855 2 1224979098644774917 432345564227567632 1073741855 2 1224979098644774917 432345564227567633 31 2 1224979098644774917 432345564227567634 2133 2 1224979098644774914 1657324662872342620 2133 2 1224979098644774919 4 5 0 1073741855 2 1224979098644774917 432345564227567624 1073741855 2 1224979098644774917 432345564227567625 31 2 1224979098644774917 432345564227567626 2133 2 1224979098644774914 1657324662872342603 2133 2 1224979098644774919 5 5 0 31 2 1224979098644774917 432345564227567628 2133 2 1224979098644774914 1657324662872342613 2133 2 1224979098644774919 4 5 0 1073741855 2 1224979098644774917 432345564227567629 1073741855 2 1224979098644774917 432345564227567630 31 2 1224979098644774917 432345564227567631 2133 2 1224979098644774914 1657324662872342617 2133 2 1224979098644774919 3 5 0 31 2 1224979098644774917 432345564227567635 2133 2 1224979098644774914 1657324662872342598 2133 2 1224979098644774919 2 5 0 4 0 2273 0 2133 2 1224979098644774914 1657324662872342591 2133 2 1224979098644774919 7 5 0 2133 2 1224979098644774914 1657324662872342580 2133 2 1224979098644774919 11 3 0 3 0 2136 3 1224979098644774920 0 1224979098644774919 2105 2 1224979098644774914 1224979098644774920 601 2 1224979098644774914 0 3 0
 
Hi there!  :grin:
According quest making:
Is it possible for quest to start disregard player's actions? i.e. for example no conversations with NPCs, no entering to the cities, and so on.

What exact I'm going to do:
1st quest  starts with the new game, and cannot be finished by player - only time
2nd starts immediately when 1st is failed

Many thanks in advance!  :smile:
 
How do you cancel a musket (not crossbow) reload? I've tried setting the defend action, the attack action, and setting the agent as running away - no luck.
This is in multiplayer.
 
Azrooh said:
How do you cancel a musket (not crossbow) reload? I've tried setting the defend action, the attack action, and setting the agent as running away - no luck.
This is in multiplayer.

Try setting an animation with higher priority than that of the reloading animation.
 
SonKidd said:
Azrooh said:
How do you cancel a musket (not crossbow) reload? I've tried setting the defend action, the attack action, and setting the agent as running away - no luck.
This is in multiplayer.

Try setting an animation with higher priority than that of the reloading animation.

I'll try that. Doing some damage to the agent and immediately healing it works too, that could be a good fallback option.
 
nothingpersonal said:
Hi there!  :grin:
According quest making:
Is it possible for quest to start disregard player's actions? i.e. for example no conversations with NPCs, no entering to the cities, and so on.

What exact I'm going to do:
1st quest  starts with the new game, and cannot be finished by player - only time
2nd starts immediately when 1st is failed

Many thanks in advance!  :smile:
Yes.
1. Start the quest at the end of script_game_start
2. Since you control when quest 1. is failed (you have to write code to fail the 1. quest), start 2. just after the code that fails quest 1.

You can also start quest 1. in a trigger, so it starts after X game hours, or any other condition, regardless of what the player is doing.

Just in case:
- How do you code quests? See any of the Native ones. They are in module_quests.py. Search all the module system files for their ID strings like "deliver_message_to_enemy_lord" and see how they are done.
Generally if you want to make a new quest, find the most similar Native quest, copy what it does, then modify as you please.
- How do you search for strings in module system files?
Have a good editor like Notepad++, then ctrl+F, and use Find in Files.
 
Is it possible to make the game save through a code? Alternatively, can I alter the mtf_battle mission template so that pressing Escape brings up the save game screen? (The default mission template doesn't allow idle horses to be killed, which is sort of important.)
 
Ruthven said:
Is it possible to make the game save through a code? Alternatively, can I alter the mtf_battle mission template so that pressing Escape brings up the save game screen? (The default mission template doesn't allow idle horses to be killed, which is sort of important.)
Best currently possible is bringing up the 'escape' screen where you have the save, load, quit, etc options by calling: (change_screen_quit),
I think this has been requested of cmp for WSE, but I'm not sure...I know it isn't in yet.
 
Caba`drin said:
Ruthven said:
Is it possible to make the game save through a code? Alternatively, can I alter the mtf_battle mission template so that pressing Escape brings up the save game screen? (The default mission template doesn't allow idle horses to be killed, which is sort of important.)
Best currently possible is bringing up the 'escape' screen where you have the save, load, quit, etc options by calling: (change_screen_quit),
I think this has been requested of cmp for WSE, but I'm not sure...I know it isn't in yet.
I'm pretty sure that change_screen_quit exits you right out of the game, so I don't think that will work too well.  :razz:
 
Status
Not open for further replies.
Back
Top Bottom