Permanently stuck at low HP

正在查看此主题的用户

Muchis

Recruit
U4VmxUZ.png

(Brytenwalda Repolished) So after a big battle against an enemy lord, in which I ended with low hp and unable to continue fighting and had to send my men to fight without me, my HP is stuck at 4, it does not recover, not from resting, went to the arena and lost and still at 4, leveled up a level of STR, time passes and its still at that.
Any way I can solve this? Maybe a mechanic I dont know of? Thanks in advance and sorry for my english.
 
r0RrPG2.jpg

Also it seems that those 10 Airigs have replaced me as the main unit, as I cant move them down from the top position.
Just in case this helps as information.
 
Where are you on that nice screenshot?
Which mod version are you playing?

I've contacted someone who might be able to help.
This is a lategame bug that's been reported before and it's not easy to fix. I think it eventually just fixed itself as I couldn't figure it out back in May.
If you use the cheat mode, can you get your hitpoints to return to full health? Control-h?
Can you provide any info on how that happened?
 
gdwitt 说:
Where are you on that nice screenshot?
Which mod version are you playing?

I've contacted someone who might be able to help.
This is a lategame bug that's been reported before and it's not easy to fix. I think it eventually just fixed itself as I couldn't figure it out back in May.
If you use the cheat mode, can you get your hitpoints to return to full health? Control-h?
Can you provide any info on how that happened?

Hello, thanks for your time!
I cut out my character, not really important is it?
Brytenwalda Repolished 1.05  (v1.41)
I believe there's no cheat for getting my hitpoints to full health, Control H does nothing apparently.
Certainly, as I said, joined a friendly lord in a fight against an enemy faction lord, 500 ish against 450 ish (combining my forces and his). I got knocked out on the first 2 engages, at the third one, I couldnt fight anymore and my men had to fight without me. When the fight ended, I did the usual, take prisoners, looting. Afterwards, everything seemed normal, except that, after a lot of walking around, resting a couple of nights, and trying to do other things, I noticed that I was permanently at extremely low HP. I tried entering the arena, losing on purpose, still at 4 hp, resting does nothing, I tried putting a point on STR and it just stays at 5 HP.
In my second screenshot, I tried to show that those 10 Airigs units are where my character is supposed to be, on the top of the units, and I cannot move them down whatsoever. nor move Ceawling a place up to replace it... I'm not even in the unit list there!

I think as a last resource I'm gonna try and lose against some random lord, or die against bandits and maybe that "revives" me.
Hope that fill of information helps!
 
Ive also had these very same reports in my own mod, which is based off of Brytenwalda. So I'm glad its present in Bryt and not something ive done.

I have PM'd Idibil regarding this and the dieing companions, which seems to be related to the same thing. But it seems we were lost in translation. I shall Pm him again to see if we can find out the issue.


Hopefully me and Gdwitt can find some remedy to this and why its actually happening.
 
I can script a solution to fix it, but you need to be playing the Reworked mod.
The two mods aren't interchangeable as we use different headeroperation files.

Here is my latest script. Suggestions are welcome.:
SCRIPT WARNING ON OPCODE 406: Invalid Player ID: 0; LINE NO: 1:
At script: restore_hitpoints. At script: restore_hitpoints. At script: restore_hitpoints. DEBUG wounded troop recovers 15 hitpoints to total -1
operation referred is player_get_agent_id                  = 406

("restore_hitpoints",
插入代码块:
  [(store_script_param, ":agent", 1),
         (get_player_agent_no, ":agent"),
              (store_agent_hit_points, ":hp",":agent"),
              (assign, reg2, ":hp"),
              (display_message,"@{!}DEBUG start hitpoints {reg2}",0x6495ed),
              (store_add, ":healing", reg2, 150),
              #(val_add,":cur_hit_points",15),
              (agent_set_hit_points,":agent",":healing",1),
              (store_agent_hit_points, ":hp2",":agent")
              (assign, ":hp2",reg3),
      (display_message,"@{!}DEBUG wounded troop recovers 150 hitpoints to total {reg3}",0x6495ed),
      (agent_play_sound, ":agent", "snd_man_victory"),
Game_menu
插入代码块:
("camp_cheat_cheat_0",[], "Heal yourself...",
       [
         # (try_for_range, ":hero", active_npcs_begin, active_npcs_end),
         #   (troop_slot_eq, ":hero", slot_troop_occupation, slto_kingdom_hero),
          # (store_agent_hit_points,reg0,"trp_player",1),
          # #(assign, reg0 ":hp"), 
          # (display_message,"You have {reg0} hitpoints",0x6495ed),
           (call_script, "script_restore_hitpoints", "trp_player"),
          #(call_script, "script_restore_hitpoints"),
           (jump_to_menu, "mnu_camp_cheat"),

I also tried putting the script into the game_menus, it compiles, but give me this  error:
插入代码块:
(get_player_agent_no, ":player_agent"),
          (store_agent_hit_points, ":hp",":agent"),
           (assign, reg2, ":hp"),
            (display_message,"@{!}DEBUG start hitpoints {reg2}",0x6495ed),
            (store_add, ":healing", reg2, 150),
            (agent_set_hit_points,":agent",":healing",1),
              (store_agent_hit_points, ":hp2",":agent")
              (assign, ":hp2",reg3),
            (display_message,"@{!}DEBUG wounded troop recovers 150 hitpoints to total {reg3}",0x6495ed),
            (agent_play_sound, ":agent", "snd_man_victory"),
           (jump_to_menu, "mnu_camp_cheat"),

Finally, a very simple script from the mission_template at game start:
(get_player_agent_no, ":player_agent"),
     
插入代码块:
    (store_agent_hit_points, ":hp",":player_agent"),
          (assign, ":hp",reg2),
           (display_message,"@{!}DEBUG starting hitpoints {reg2}",0x6495ed),
          (try_begin),
           (lt, ":hp", 90),
           (agent_set_hit_points, ":player_agent", 100),
          
              (store_agent_hit_points, ":hp2",",:player_agent"),
              (assign, reg3,":hp2"),
            (display_message,"@{!}DEBUG wounded troop recovers 150 hitpoints to total {reg3}",0x6495ed),
            (try_end),
            (agent_play_sound, ":agent", "snd_man_victory"),
           (jump_to_menu, "mnu_camp_cheat"),
 
@Muchis

ah i had the same problems on my character.  i was playing gdwitt's submod and you weren't so i guess this is a problem common to main bw

it's good you know when it happened.  i went for a long time before i realized i wasn't in my own party anymore so i couldn't trace it back and just went with it. i wonder if the 2 problems are linked, getting knocked out to permanent low health and being removed from the party screen -- maybe the computer thinks you're dead. 
and they must be related also because what are the chances you got the same 2 bugs i had

unfortunately i don't have much helpful information

the main character disappearing, i haven't fixed.  you'll notice your party skill boosts also disappeared as if you aren't a member of the party, so you don't give the bonuses like +2 engineering.  whoever is in the #1 position stays there until death, so it would be best to have a group of soldiers there who won't all be dying soon instead of a companion so that you can still talk to the companion. i had ceawlin there for a long time and could not change his gear.  i think i ended up moving him out of my party with the savegame editor so the people below him in #2 slot (my archers, since i had many and they were a permanent staple of my army) could take up the 1st slot


for the health not regenerating, i tried all kinds of things. the submod has a horn that will heal you and i used it to boost my health to 100% in different places (battle, walking around town, in a siege) and hp would still go back down at the next loading area.

for that problem i got my health to come back by using m&b's savegame editor again.  i uh... it's been some time what did i do... i tinkered with my main char, he's somewhere in there and i think i put his health to 100 in my last save.  that fixed it for awhile.  but sometimes when i got knocked out my health would permanently go down again and i had to use the editor again.  so doing that would keep the glitch at bay for awhile at least.  it had a greater chance of coming back if you got knocked out in battle, seemed like a random chance.  but iirc it happened fewer and fewer like a wound that was healing and it stopped eventually

sorry for being almost completely useless at solving the problem, that's the best i could come up with at the time when i was playing
 
It turns out that my horn script doesn't work.
There are 2 healing script buried in the old Brytenwalda that is healing characters.
The trigger in the horn is useless.
Whenever you make the horn sound in battle, the old script gives you and the entire party 15 hitpoint.
If you press 'u" in battle, everyone gets 17 hitpoints.
You rally your men! (wounded troops recover 17 % hitpoints)
You spent -36 experience points.
Battle won, your foes lie slaughtered on the field! (Press tab key to leave)
Renown change of 7 reduced to 5, because of high existing ren
That was supposed to be a rally your men script that heals only them not you.
It increases with leadership and charisma.
 
Hours of trials have only shown me that the only times that hitpoints can be recovered is inside a mission_template.
Some mission templates only allow temporary healing, like town scenes where I can recover my health but lose it when i return to the map.
Most battle templates offer permanent healing from item-triggers.
However, I can't get my triggers scripts to be read.
I removed the scripts in module_scripts in multiplayer that were triggered by jumphowl and "(eq,":sound","snd_horn")"
I have written a fancy script for the item_horn. I found that the game wasn't reading my script in the module_items trigger and was using another trigger.
So I created an external script call script_restore_health that gets called by the item:
插入代码块:
"horn_of_arthur", "horn_of_arthur", [("horn",0),], itp_type_thrown |itp_primary|itp_no_pick_up_from_ground, itcf_throw_knife, 145 , weight(1.5)|difficulty(0)|spd_rtng(50) | shoot_speed(54) | thrust_damage(3 , cut)|max_ammo(5)|weapon_length(0),imodbits_thrown,
   [(ti_on_weapon_attack, [
       (play_sound,"snd_horn"),
       (call_script, restore_health),
This seems to be part of the game engine?
When your item makes the sound horn, something is called in the game engine that causes the snd_victory and prints this message from quick strings: "Horn rally men! (wounded troops recover 13 hitpoints)".  qstr_Horn_rally_men!__wou Horn_rally_men!_(wounded_troops_recover_13_hitpoints).
I have no idea where this string is coming from. 
It so
The script is quite long and gives different amounts of hitpoints for different groups of the player's party. The player gets 50 hp while the companions only get 1 (intended as test only)
However, this script is not being called according to my debug statements.
("restore_health",
插入代码块:
  [#(store_script_param, ":agent", 1),
#       (store_script_param, ":event_type", 2),
# (eq,":sound","snd_horn"),
      
       # (player_get_agent_id, ":agent",":player_no"),##At script: restore_hitpoints. At script: restore_hitpoints. At script: restore_hitpoints. SCRIPT WARNING ON OPCODE 406: Invalid Player ID: 0; LINE NO: 1: 
       #       (agent_get_position,pos6,":player_agent"),
       #               (play_sound, "snd_horn"),
       #             (agent_get_team, ":wielder_team", ":player_agent"),
       #              (agent_set_animation, ":player_agent", "anim_tekst"),
       # (assign, ":heal_count", 0),
       #(try_for_agents,":agent"),
       (get_player_agent_no, ":player_agent"),
        #(player_get_agent_id, ":player_agent",":player_no"),
             (agent_get_position,pos6,":player_agent"),
                 
                   (agent_get_team, ":wielder_team", ":player_agent"),
                    (agent_set_animation, ":player_agent", "anim_cheer"),
       (assign, ":heal_count", 0),
       (try_for_agents,":agent"),
         (agent_is_alive,":agent"), 
         (agent_is_human,":agent"), 
         (agent_is_ally,":agent"),  
         (neg|eq,":agent",":player_agent"),
         (agent_set_slot,":agent", slot_agent_has_been_healed, 0), #chief
         (agent_get_position,pos4,":agent"),
         (get_distance_between_positions,":dist",pos6,pos4),
         (le,":dist",3100),
         (agent_get_slot, ":healed", ":agent", slot_agent_has_been_healed),
         (store_agent_hit_points, ":cur_hp",":agent",0),
             (try_begin),
                  (lt,":cur_hp",90),
                  
                  (store_agent_hit_points, ":hp",":agent",1),
                  (val_add,":hp",5),
                  (agent_set_hit_points,":agent",":hp",0),
                  (assign,reg1,":hp"),    
                  (agent_set_slot,":agent", slot_agent_has_been_healed, 1),
                  (val_add, ":heal_count", 1),
                  #(assign,reg2,":life"),  
                  (display_message, "@{!}You heal the troops to {reg1} hitpoints"),
                   (display_message, "@{!}heal count is {reg2}"),
                   (agent_play_sound, ":agent", "snd_man_victory"),
                  (else_try),
                     
                              
              (try_end),
      (else_try),
          (eq,":agent","trp_player"),
              (store_agent_hit_points, ":cur_hit_points",":agent",1),
              (val_add,":cur_hit_points",84),
              (agent_set_hit_points,":agent",":cur_hit_points",1),
              (assign,reg3,":cur_hit_points"),    
             # (agent_set_slot,":agent", slot_agent_has_been_healed, 1),
              #(val_add, ":heal_count", 1),
              (display_message, "@{!}You heal to {reg3} hitpoints"),
       (try_end),
What is being called is a script that assigns every allied agent a small hitpoint boost which is consistent with the qstr quoted above?
Is healing to a snd_horn part of the native script?
If not, where is the script coming from if it ignores my paramaters.
I've searched my source files for that quick string and it doesn't exist either with or without the _ symbol.
I even deleted strings and quick strings in the text module so it would have to rebuild it.
The quick string above reappeared. I am very puzzled.
 
@Muchis and players who are not playing BW reworked.
I don't think I'll be able to create a new set of items with health triggers.
If you are stuck at low hiptoints, I recommend you buy the horns at the end of the item cheat list and try them out.
The horn script in Brytenwalda Repolished is the same script that is currently working in Reworked.
I recommend you open up the horn with Morgh's editor and adding as many "blows" as you think is reasonable for your condition.
This horn heals you by about 13% per blast when you are in a battle setting.
It also heals your troops and it doesn't appear that can be removed.
 
后退
顶部 底部