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

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
kaypy
Artisan
Posts: 171
Joined: Sun Jan 19, 2014 7:11 am

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

Post 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
Friends don't let friends eat worm round
kaypy
Artisan
Posts: 171
Joined: Sun Jan 19, 2014 7:11 am

Re: [0.78] Crash on nonstandard party arrangement

Post 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)
Friends don't let friends eat worm round
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

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

Post 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:
kaypy
Artisan
Posts: 171
Joined: Sun Jan 19, 2014 7:11 am

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

Post 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...
Friends don't let friends eat worm round
Post Reply