It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Seeing this upon game load or after the necro?

LoadingScreen::Instance().CreateDungeonAssets - 0.000024
script error: could not find global named 'town_event_info_layout.element_text_width'
"cript error (campaign/town/town_event/town_event.layout.darkest: 411): expected ':' ending "485

I removed the following line from "town_event.layout.darkest"

.element_text_width 485

Line 17 in the town_event_info_layout section.

So far. Working.
Thanks!!!
avatar
iamnan: Seeing this upon game load or after the necro?

LoadingScreen::Instance().CreateDungeonAssets - 0.000024
script error: could not find global named 'town_event_info_layout.element_text_width'
"cript error (campaign/town/town_event/town_event.layout.darkest: 411): expected ':' ending "485

I removed the following line from "town_event.layout.darkest"

.element_text_width 485

Line 17 in the town_event_info_layout section.

So far. Working.
Again, many thanks to you!!!

This error can appear at any time returning back to town then have a Town-event.

Your tip works fine!
Thanks for this thread.
I saw a side effect of removing the .element_text_width line. For some events (Silence in the Crypts for instance), the text describing the effects of the events is garbled. I've added the following line in place of the .element_text_width one which seems to fix this issue.

My town_event_info_layout section in game/campaign/town/town_event/town_event.layout.darkest now looks like.

town_event_info_layout:
.element_start_pos 250 36
.element_offset 0 25

So far, I've had a few more events (5 or 6 different events). No crashes so far, and I did not notice any negative side effect.

For the ones interested in technique stuff:
$ strings darkest.bin.x86_64 |grep element
the interesting section of the output is the following few lines :
(...)
roster_element_animations
element_start_pos
element_offset
campaign/town/roster/rosterelement.background.png
(...)

Here, we see the element_start_pos string is in the binary, but not element_text_width. Interestingly, element_offset is not referenced anywhere in the campaign subdir. Trying a few different values for element_offset, I think the first parameter is the horizontal offset for the starting position for the second line, and the second one is the vertical offset to print the second line of the quest.

If anyone tries this, please tell us here if this breaks something else that I would have missed.

UPDATE: "All Saints Day" is an event with 3 lines of text. I initially used 36 as a vertical offset, but it's a bit too much with this event. Changed vertical offset to 25, which looks better.
Post edited August 30, 2016 by gaaaaaAab