Skip to content
Daniel Wong edited this page Dec 30, 2017 · 24 revisions

This page is for developers. If you are not a developer, click the below link for installation instructions:

https://github.com/07th-mod/guide/wiki/Umineko-Part-1---Voice-and-Graphics-Patch


Script Reference

setLangString setLangStringC / setKakeraMemoryString

These functions are used when images are language dependent. For example below:

;note: refer to the other functions in the script as they are slightly different.
*setLangString
	getparam $witchh5, $witchh6

	mov $witchh4, ":b"
	add $witchh4, $witchh6

	notif %cur_language = 1 jumpf
	add $witchh4, ";"
	~
	notif %cur_language = 0 jumpf
	add $witchh4, ";en\"
	~
	add $witchh4, $witchh5
return

The function adds ':b' to the string and the second parameter (usually just an empty string), then it adds either ";" for Japanese lines or ';en' for English lines. Finally it adds the first input parameter to get something like :b;BMP\background\efe\oct_4_1986.png for the call setLangString "BMP\background\efe\oct_4_1986.png", "" (usually a stralias is used).

Note that the stralias passed to this function is expected NOT to contain the ':b', and it is expected that there are two copies of the image - one in the root directory (japanese version) and one in the 'en' directory (english version)

set_oldnew_bg

*set_oldnew_bg
	getparam $witchh11,$witchh12,%witchh13,%witchh14

	mov %witchh15,1
	if %witchh13 = 0 mov %witchh15,0

	notif %show_cgs = 1 jumpf
	mov %hide_new_sprites,%witchh15

	mov %oldnew_bg,1
	mov $oldnew_bg,$witchh11
	mov $oldnew_bg_old,$witchh12

	gosub *displayOldNewBg
	if %witchh13 = 2 print 99,2000,"breakup.dll/lrp"
	notif %witchh13 = 2 print %witchh14
	~
	if %show_cgs = 1 jumpf
		bg $witchh12,%witchh14
	~
return
*displayOldNewBg

notif %is_old_sprites = 0 jumpf
if %hide_bgsp2_cg = 1 vsp bgsp2,0

mov $witchh12, ":b;big\"
add $witchh12, $oldnew_bg
add $witchh12, ".png"
~
if %is_old_sprites = 0 jumpf
mov $witchh12, $oldnew_bg_old
if %hide_bgsp2_cg = 1 vsp bgsp2,1

~
bg $witchh12,0

return

set_oldnew_bg cg_ep1_1,rose_1b,1,0

The function is used as follows: the CG to display, followed by regular background, then a flag on whether or not to show sprites, then the transition type to use. Note that the CG string must not include the ':b;' portion, and must not include the file extension, and is assumed to be relative to the ":b;big\" directory.

Clone this wiki locally