Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex incompatibility #27

Open
qnighy opened this issue Nov 24, 2017 · 0 comments
Open

Regex incompatibility #27

qnighy opened this issue Nov 24, 2017 · 0 comments

Comments

@qnighy
Copy link
Owner

qnighy commented Nov 24, 2017

My friend pointed out that a game 魔法少年の迷宮 (trial version) fails to load because of regex compilation error.

The regex in question is /\s*+\s*/. It has nested */+s. It works in the latest Ruby version.

Why is this so problematic?

Because it may imply that the author of RGSS1/2 have replaced GNU-made regex.c in Ruby1.8.1 with some other engines, possibly due to licensing reason.

We'll have to figure out what engine was used as a substitution.

Log

unimplemented: kernel32.dll: RtlZeroMemory
unimplemented: kernel32.dll: MultiByteToWideChar
unimplemented: kernel32.dll: WideCharToMultiByte
unimplemented: user32.dll: MessageBoxA
unimplemented: kernel32.dll: GetPrivateProfileStringA
#∟Audio-EX 対応版:39: warning: already initialized constant DEBUG_CHECK
#∟Audio-EX 対応版:50: warning: already initialized constant DELETE_DEBUG_MESSAGE
#∟Audio-EX 対応版:925: warning: already initialized constant MB_OK
#∟Audio-EX 対応版:926: warning: already initialized constant MB_OKCANCEL
#∟Audio-EX 対応版:927: warning: already initialized constant MB_ABORTRETRYIGNORE
#∟Audio-EX 対応版:928: warning: already initialized constant MB_YESNOCANCEL
#∟Audio-EX 対応版:929: warning: already initialized constant MB_YESNO
#∟Audio-EX 対応版:930: warning: already initialized constant MB_RETRYCANCEL
#∟Audio-EX 対応版:932: warning: already initialized constant MB_ICONERROR
#∟Audio-EX 対応版:933: warning: already initialized constant MB_ICONQUESTION
#∟Audio-EX 対応版:934: warning: already initialized constant MB_ICONWARNING
#∟Audio-EX 対応版:935: warning: already initialized constant MB_ICONINFORMATION
#∟Audio-EX 対応版:936: warning: already initialized constant MB_SYSTEMMODAL
#∟Audio-EX 対応版:937: warning: already initialized constant MB_TASKMODAL
#∟Audio-EX 対応版:938: warning: already initialized constant MB_TOPMOST
#∟Audio-EX 対応版:939: warning: already initialized constant MB_FATAL
#∟Audio-EX 対応版:940: warning: already initialized constant MB_WARN
#∟Audio-EX 対応版:942: warning: already initialized constant IDOK
#∟Audio-EX 対応版:943: warning: already initialized constant IDCANCEL
#∟Audio-EX 対応版:944: warning: already initialized constant IDABORT
#∟Audio-EX 対応版:945: warning: already initialized constant IDRETRY
#∟Audio-EX 対応版:946: warning: already initialized constant IDIGNORE
#∟Audio-EX 対応版:947: warning: already initialized constant IDYES
#∟Audio-EX 対応版:948: warning: already initialized constant IDNO
#∟Audio-EX 対応版:952: warning: already initialized constant ERROR_SECTION_NUM
#∟Audio-EX 対応版:953: warning: already initialized constant ERROR_SECTION
#∟Audio-EX 対応版:954: warning: already initialized constant DOUBLE_CRLF
unimplemented: user32.dll: MessageBoxA
unimplemented: kernel32.dll: GetPrivateProfileStringA
∟ノベル用に改造:13: warning: found = in conditional, should be ==
ギルドシステム(Mission総まとめ:1063: warning: don't put space before argument parentheses
カレンダー:35: warning: don't put space before argument parentheses
+Window_Base2:12: warning: already initialized constant WLH
unimplemented: TRGSSX.dll: DllGetVersion
unimplemented: TRGSSX.dll: GetInterpolationMode
unimplemented: TRGSSX.dll: SetInterpolationMode
unimplemented: TRGSSX.dll: GetSmoothingMode
unimplemented: TRGSSX.dll: SetSmoothingMode
unimplemented: TRGSSX.dll: RopBlt
unimplemented: TRGSSX.dll: ClipBlt
unimplemented: TRGSSX.dll: BlendBlt
unimplemented: TRGSSX.dll: StretchBltR
unimplemented: TRGSSX.dll: SkewBltR
unimplemented: TRGSSX.dll: DrawPolygon
unimplemented: TRGSSX.dll: FillPolygon
unimplemented: TRGSSX.dll: DrawRegularPolygon
unimplemented: TRGSSX.dll: FillRegularPolygon
unimplemented: TRGSSX.dll: DrawSpoke
unimplemented: TRGSSX.dll: DrawTextNAA
unimplemented: TRGSSX.dll: DrawTextFastA
unimplemented: TRGSSX.dll: GetTextSizeNAA
unimplemented: TRGSSX.dll: GetTextSizeFastA
unimplemented: TRGSSX.dll: SaveToBitmapA
unimplemented: gdi32.dll: DeleteObject
unimplemented: gdi32.dll: CreateRectRgn
unimplemented: gdi32.dll: CreateRectRgnIndirect
unimplemented: gdi32.dll: CreateRoundRectRgn
unimplemented: gdi32.dll: CreateEllipticRgn
unimplemented: gdi32.dll: CreateEllipticRgnIndirect
unimplemented: gdi32.dll: CreatePolygonRgn
unimplemented: gdi32.dll: CreatePolyPolygonRgn
unimplemented: gdi32.dll: CombineRgn
多人数パーティ - KGC_LargeParty:358: warning: already initialized constant MAX_MEMBERS
装備拡張(魔法少年 魔石x5:94: warning: already initialized constant SHOW_STATUS_EP
装備拡張(魔法少年 魔石x5:95: warning: already initialized constant HIDE_ZERO_EP_COST
装備拡張(魔法少年 魔石x5:909: warning: already initialized constant EQUIP_TYPE_MAX
世界樹の迷宮風戦闘:隊列変更:436: warning: already initialized constant FORMATION_MEMBERS
\∟スプリット変更(,⇒★):8: warning: already initialized constant BDM_WORD
\∟スプリット変更(,⇒★):9: warning: already initialized constant ATK_WORD
\∟スプリット変更(,⇒★):10: warning: already initialized constant SPI_WORD
\∟スプリット変更(,⇒★):11: warning: already initialized constant SPD_WORD
\∟スプリット変更(,⇒★):14: warning: already initialized constant S_ATK_RE
\∟スプリット変更(,⇒★):15: warning: already initialized constant S_DEF_RE
\∟スプリット変更(,⇒★):16: warning: already initialized constant S_SPI_RE
\∟スプリット変更(,⇒★):17: warning: already initialized constant S_AGI_RE
ScriptSyntaxError: スキルレベル改:395compile error
スキルレベル改:129: nested *?+ in regexp: /\s*+\s*/
	from (eval):743
	from (eval):743
	from (eval):741:in `each'
	from (eval):741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant