A World of Ice and Fire Forums

Recent posts

#61
V9.0 / Sticky wall in Winterfell's ar...
Last post by tos1 - June 18, 2024, 02:42:31 PM

In arena of Winterfell, the wall opposite the opening with the door behind the pillars is sticky. The player and bots are stuck. The zone is mainly under the eave beneath the seat where tournament master stands, but it extends a little beyond the eaves.

(Barrowton's arena is almost the same shape, but that's fine.)

- Game version (and steam or downloaded):
AWoIaF v9.4-developer_version 5, Warband v1.174 downloaded
#62
V9.0 / [Fixed at v10.0 developer ver....
Last post by tos1 - June 18, 2024, 11:01:49 AM
Related topic:
Beric Dondarion's "book" needed in 2 texts, Wrong speaker

I might have misled you. Following text is displayed when the player undertook the quest:
----
qstr_Beric_Dondarrion_has
Beric Dondarrion has asked you to despatch a Lannister raiding party that has been reported pillaging the villages around Hollow Hill. Once completed, you must return to Beric.
----

It's used here.
----
str_store_string s2 "@Beric Dondarrion has asked you ..."
call_script "script_start_quest" "qst_relic" (i.e. "A Lannister always pays his debts".)
----

I don't have a complete understanding of quests in general, the quest text in quest module seems to be overridden by setting s2 from the quick string before "script_start_quest" is called, right? So probably the phrase mentioning the book should be added to the quick string, not to the quest module.

(On the other hand, I confirmed both the book was added in the dialog and the wrong speaker was fixed. Thanks.)

- Game version (and steam or downloaded):
AWoIaF v9.4-developer_version 5, Warband v1.174 downloaded
#63
V9.0 / Re-Follow-up: Negative values ...
Last post by tos1 - June 16, 2024, 09:40:06 AM
Sorry, the table I mentioned was out of date! I checked v9.4 dev.5 and noticed today that the values for levels 53 and above don't match the values returned by get_level_boundary in the current engine, so the values displayed are a bit off.

Currently, the initial level of troops that can become companions in AWoIaF is at most around 50, so this is not a problem for the time being, but it would be better to fix this before future expansions or spreading to other mods.

For example, a level 62 NPC should assume that the experience points required to reach the next level is 2050460032 and the difference should be calculated based on that, but when using that table it is mistakenly assumed to be 2050460000. When I experimented with v9.4 dev.5, the value displayed was indeed 32 points off from the correct value.



In the first place, this code for jq_xp_to_next_lvl should have been written using a loop like:
----
store_script_param ":cur_lvl" 1
assign ":end1" 64
try_for_range ":i" 0 ":end1"
  get_level_boundary ":bndry" ":i"  # get boundary value of the level, i
  gt ":bndry" ":cur_lvl"  # exceeded the current level
  assign ":end1" 0        # change upper-value of loop to break
try_end
store_sub reg1 ":bndry" ":cur_lvl"
str_store_string s1 "@{reg1}"
----

I confirmed the (hand-disassembled) code above works fine in my hand-patched .txt for at least level 4 and level 62 companions. (It's today that I've just learned the get_level_boundary operation for the first time.)

- Game version (and steam or downloaded):
AWoIaF v9.4-developer_version 5, Warband v1.174 downloaded
#64
V9.0 / Re: Melee (crowd) fight at are...
Last post by Produno - June 07, 2024, 06:12:15 PM
Done some fixes for this - will need proper testing in 9.4. Thanks!
#65
V9.0 / Re: Fatal hole in Lorathi aren...
Last post by Produno - June 07, 2024, 05:57:06 PM
Should be fixed now, thanks.
#66
V9.0 / Re: Sticky wooden deck in Stor...
Last post by Produno - June 07, 2024, 05:52:31 PM
Fixed, thanks!
#67
V9.0 / Re: Spawn point in the Lorathi...
Last post by Produno - June 07, 2024, 05:28:12 PM
Ive added some extra spawn points to the scene to hopefully fix this. Please let me know in v9.4 if its still an issue. Thanks!
#68
V9.0 / Re: Follow-up: "Power Draw ski...
Last post by Produno - June 05, 2024, 04:44:20 PM
Good job, thanks!
#69
V9.0 / Re: Follow-up: Negative values...
Last post by Produno - June 05, 2024, 04:32:30 PM
Well spotted, fixed now. Thanks!
#70
V9.0 / Re: Follow-up: "Farmer-works s...
Last post by Produno - June 05, 2024, 04:16:35 PM
Not entirely sure why this happens. Seems to be an issue with Warband for several assigned strings. I have changed the assigned string to see if it makes a difference.