Page 1 of 1

(fixed in 0.79) [0.78] Crash on nonstandard party arrangement

Posted: Thu Apr 22, 2021 6:07 pm
by kaypy
Set up a minimal dungeon.
Spawn a character in part slot 2, but not party slot 1

result:

Code: Select all

FATAL LUA ERROR: Lua Function sys_render_magic: base/render.lua:214: dsb_get_charname requires int in param 1

Re: [0.78] Crash on nonstandard party arrangement

Posted: Thu Apr 22, 2021 6:12 pm
by kaypy

Code: Select all

---DSB ESB---
--[[ Autogenerated by ESB.
 Trying to edit this file by hand may not give you
 particularly good results.
]]

dsb_text2map(0, 5, 5, 100, 1, {
"10100",
"10110",
"11110",
"00110",
"00100"} )
dsb_level_wallset(0, wallset.default)
dsb_add_champion(1, "asdf", "port_mophus", "ASDF", "", 1000, 1000, 1000, 400, 400, 400, 400, 400, 400, 400, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0})
dsb_add_champion(2, "xgnsdgf", "port_mophus", "XGNSDGF", "", 1000, 1000, 1000, 400, 400, 400, 400, 400, 400, 400, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0})
ch_exvar = {
}
dsb_spawnburst_begin(3)
dsb_spawn(3, "stairsup", 0, 2, 0, 4)
dsb_spawn(2, "pad", 0, 3, 2, 4)
dsb_spawn(1, "stairsdown", 0, 2, 4, 4)
exvar = {
[1] = { y = 0,
x = 2,
silent = true },
[2] = { target = 3,
msg = 100003,
opby_party = true },
[3] = { y = 4,
x = 2,
silent = true },
}
dsb_spawnburst_end()
EDITOR_FLAGS = 255
dsb_champion_toparty(1, 1)
dsb_party_place(0, 0, 0, 2)

Re: (fixed in 0.79) [0.78] Crash on nonstandard party arrangement

Posted: Thu Apr 22, 2021 9:43 pm
by Sophia
Ok, I thought I wasn't going to fix this, because it won't ever come about during normal play, but it's actually a lot simpler than I thought, so I will. :mrgreen:

Re: (fixed in 0.79) [0.78] Crash on nonstandard party arrangement

Posted: Fri Apr 23, 2021 11:42 am
by kaypy
Thanks.

I was thinking it might possibly come up with multiple parties.

As opposed to playing with less than four members, and deciding to colour coordinate them in a manner that winds up with no-one for green...