:改変詳細/CNPCメッセージ読込サイズ拡張

Last-modified: 2012-12-28 (金) 04:32:21

変更履歴

2012/12/24T(人柱)版の変更内容

・暫定的にCNPCの会話文(%txt~ファイルの終端までの間)を32kバイト上限に、カスタムゴッドのメッセージを20kバイト上限に増やしてみるテスト
  ・従来の本家1.22と互換ヴァリアントは会話文が8kバイト、omake系ヴァリアントは16kバイトが上限
  ・なのでメッセージは基本タグ→omake以外の拡張タグ→omakeとomake_babyの拡張タグ→MMA/TTの拡張タグと%txt[MMA]の順に配置するのを推奨
  ・同じようにカスタムゴッドのテキストも長くなる場合はMMA/TTの拡張タグと%txt[MMA]を下に持ってくるのが望ましい(omake_overhaul、omake_babyは16kバイト制限)
  ・CNPC、カスタムゴッドに梱包しないuser\talkフォルダ内にある口調ファイルは無制限なので↑の限りではない

変更内容

(160360行目付近)テキスト変数サイズの拡張(80 * 250 → 80 * 400)

	procid = (procid + 1) \ 4
	proclist(procid) = "userNpc_update" + " ct:" + ct
	getuserfiledata "npc", usernpcmax
	if ( usernpcmax >= 100 ) {
		usernpcmax = 100
	}
	dim userdata, 70, usernpcmax + 1
	dim userdata2, 10, usernpcmax + 1
	sdim userdatan, 40, 10, usernpcmax + 1
	sdim userdatan2, 40, 10, usernpcmax + 1
// MMA 20121222T START
//	sdim usertxt, 80 * 250, usernpcmax + 1
	sdim usertxt, 80 * 400, usernpcmax + 1
// MMA 20121222T END
	sdim userrace, 2000
	sdim userclass, 2000

(160525行目付近)テキスト取得サイズの拡張(80 * 200 - 2 → 80 * 400 - 2)

		p = instr(txtbuff, 0, "%txt")
		txtbuff = strmid(txtbuff, p, instr(txtbuff, 0, "%endTxt") - p + 7)
// MMA 20121222T START
//		usertxt(tg) = strmid(txtbuff, 0, 80 * 200 - 2)
		usertxt(tg) = strmid(txtbuff, 0, 80 * 400 - 2)
// MMA 20121222T END
		procid = (procid + 1) \ 4
		proclist(procid) = "userNpc_update:2.1" + " ct:" + ct + " " + userfilelist(0, cnt)