(fixed) Small bugs and differences

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
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

(fixed) Small bugs and differences

Post by Joramun »

First of all : small difference in scroll display :

The vertical space between lines is two small in DSB (left) compared to RTC (rigth).
I will look in DM PC to see who is right, but I feel DSB is wrong on this one. Also maybe centering the text would be prettier but it's not really important.

EDIT: Picture. removed, bug fixed ;)

Other bugs :
- party back row gets hurt and party doesn't go upstairs when going backward on a stair tile (up or down)
Last edited by Joramun on Sat Mar 24, 2007 8:42 pm, edited 1 time in total.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

I think I've fixed the scroll. Replace obj.scroll:subrenderer in base/objects.lua with the following:

Code: Select all

function obj.scroll:subrenderer(id)
	local sr = dsb_subrenderer_target()
	local lines, num_lines = dsb_linesplit(exvar[id].text, "/")
	local y_base = 72 - (num_lines*7) + (num_lines % 2)
	local i

	dsb_bitmap_blit(gfx.scroll_inside, sr, 0, 0, 0, 0, 246, 146)
	for i=1,num_lines do
	    dsb_bitmap_textout(sr, gfx.scroll_font, lines[i],
			124, y_base+((i-1)*14), CENTER, scroll_color)
	end	
end
I didn't do a side-by-side with DM PC (or RTC), but it looks more like your screenshot, anyway.
What do you think? If you want to tweak it some more, let me know if you have values you like more.

I fixed the stairs too.
Post Reply