#publish 仅为了测试webhook

main
xian18 3 years ago
parent 2374a76d38
commit ca25285d2a

File diff suppressed because one or more lines are too long

@ -2,5 +2,5 @@
null, null,
{"id":1,"expanded":false,"name":"MAP001","order":2,"parentId":0,"scrollX":2457,"scrollY":1368}, {"id":1,"expanded":false,"name":"MAP001","order":2,"parentId":0,"scrollX":2457,"scrollY":1368},
null, null,
{"id":3,"expanded":true,"name":"南郊(有水泵站)","order":1,"parentId":0,"scrollX":1390.2857142857142,"scrollY":1219.7142857142856} {"id":3,"expanded":true,"name":"南郊(有水泵站)","order":1,"parentId":0,"scrollX":534,"scrollY":323}
] ]

@ -11,7 +11,7 @@ null,
{"id":9,"animationId":66,"damage":{"critical":false,"elementId":2,"formula":"100 + a.mat * 2 - b.mdf * 2","type":1,"variance":20},"description":"","effects":[],"hitType":2,"iconIndex":64,"message1":"吟唱了%1","message2":"","mpCost":5,"name":"火焰","note":"","occasion":1,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":10}, {"id":9,"animationId":66,"damage":{"critical":false,"elementId":2,"formula":"100 + a.mat * 2 - b.mdf * 2","type":1,"variance":20},"description":"","effects":[],"hitType":2,"iconIndex":64,"message1":"吟唱了%1","message2":"","mpCost":5,"name":"火焰","note":"","occasion":1,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":10},
{"id":10,"animationId":78,"damage":{"critical":false,"elementId":4,"formula":"100 + a.mat * 2 - b.mdf * 2","type":1,"variance":20},"description":"","effects":[],"hitType":2,"iconIndex":66,"message1":"吟唱了%1","message2":"","mpCost":5,"name":"闪电","note":"","occasion":1,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":2,"speed":0,"stypeId":2,"successRate":100,"tpCost":0,"tpGain":10}, {"id":10,"animationId":78,"damage":{"critical":false,"elementId":4,"formula":"100 + a.mat * 2 - b.mdf * 2","type":1,"variance":20},"description":"","effects":[],"hitType":2,"iconIndex":66,"message1":"吟唱了%1","message2":"","mpCost":5,"name":"闪电","note":"","occasion":1,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":2,"speed":0,"stypeId":2,"successRate":100,"tpCost":0,"tpGain":10},
{"id":11,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"","note":"","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0}, {"id":11,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"","note":"","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0},
{"id":12,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,1","note":"<SF_SkillUpdate: 1, 1>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0}, {"id":12,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,1","note":"<SF_SkillUpdate: 1, 1>\n<Barrier Points 1000 Turns: +500>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":11,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0},
{"id":13,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,2","note":"<SF_SkillUpdate: 1, 2>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0}, {"id":13,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,2","note":"<SF_SkillUpdate: 1, 2>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0},
{"id":14,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,3","note":"<SF_SkillUpdate: 1, 3>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0}, {"id":14,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,3","note":"<SF_SkillUpdate: 1, 3>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":1,"successRate":100,"tpCost":0,"tpGain":0},
{"id":15,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,4","note":"<SF_SkillUpdate: 1, 4>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":2,"successRate":100,"tpCost":0,"tpGain":0}, {"id":15,"animationId":0,"damage":{"critical":false,"elementId":0,"formula":"0","type":0,"variance":20},"description":"","effects":[],"hitType":0,"iconIndex":0,"message1":"","message2":"","mpCost":0,"name":"1,4","note":"<SF_SkillUpdate: 1, 4>","occasion":0,"repeats":1,"requiredWtypeId1":0,"requiredWtypeId2":0,"scope":1,"speed":0,"stypeId":2,"successRate":100,"tpCost":0,"tpGain":0},

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
[ [
null, null,
{"id":1,"members":[{"enemyId":1,"x":336,"y":436,"hidden":false},{"enemyId":1,"x":480,"y":436,"hidden":false}],"name":"蝙蝠*2","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":true},"list":[{"code":311,"indent":0,"parameters":[0,0,1,0,1000,true]},{"code":0,"indent":0,"parameters":[]}],"span":2}]}, {"id":1,"members":[{"enemyId":1,"x":336,"y":436,"hidden":false},{"enemyId":1,"x":480,"y":436,"hidden":false}],"name":"蝙蝠*2","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":1}]},
{"id":2,"members":[{"enemyId":2,"x":337,"y":436,"hidden":false},{"enemyId":2,"x":480,"y":436,"hidden":false}],"name":"史莱姆*2","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]}, {"id":2,"members":[{"enemyId":2,"x":337,"y":436,"hidden":false},{"enemyId":2,"x":480,"y":436,"hidden":false}],"name":"史莱姆*2","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]},
{"id":3,"members":[{"enemyId":3,"x":408,"y":436,"hidden":false}],"name":"兽人","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]}, {"id":3,"members":[{"enemyId":3,"x":408,"y":436,"hidden":false}],"name":"兽人","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]},
{"id":4,"members":[{"enemyId":4,"x":408,"y":436,"hidden":false}],"name":"牛头怪","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]} {"id":4,"members":[{"enemyId":4,"x":408,"y":436,"hidden":false}],"name":"牛头怪","pages":[{"conditions":{"actorHp":50,"actorId":1,"actorValid":false,"enemyHp":50,"enemyIndex":0,"enemyValid":false,"switchId":1,"switchValid":false,"turnA":0,"turnB":0,"turnEnding":false,"turnValid":false},"list":[{"code":0,"indent":0,"parameters":[]}],"span":0}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

@ -3,16 +3,16 @@
var $plugins = var $plugins =
[ [
{"name":"Community_Basic","status":true,"description":"Plugin used to set basic parameters.","parameters":{"cacheLimit":"20","screenWidth":"1024","screenHeight":"560","changeWindowWidthTo":"","changeWindowHeightTo":"","renderingMode":"auto","alwaysDash":"off"}}, {"name":"Community_Basic","status":true,"description":"Plugin used to set basic parameters.","parameters":{"cacheLimit":"20","screenWidth":"1024","screenHeight":"560","changeWindowWidthTo":"","changeWindowHeightTo":"","renderingMode":"auto","alwaysDash":"off"}},
{"name":"MadeWithMv","status":false,"description":"Show a Splash Screen \"Made with MV\" and/or a Custom Splash Screen before going to main screen.","parameters":{"Show Made With MV":"true","Made with MV Image":"MadeWithMv","Show Custom Splash":"false","Custom Image":"","Fade Out Time":"120","Fade In Time":"120","Wait Time":"160"}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"SF_Core","status":true,"description":"core lib for salted fish plugins","parameters":{}}, {"name":"SF_Core","status":true,"description":"core lib for salted fish plugins","parameters":{}},
{"name":"SF_Objects","status":true,"description":"objects lib for salted fish plugins","parameters":{}}, {"name":"SF_Objects","status":true,"description":"objects lib for salted fish plugins","parameters":{}},
{"name":"SF_Managers","status":true,"description":"Managers lib for salted fish plugins","parameters":{}}, {"name":"SF_Managers","status":true,"description":"Managers lib for salted fish plugins","parameters":{}},
{"name":"SF_SkipLoadError","status":true,"description":"try to skip load errors","parameters":{}},
{"name":"SF_Sprites","status":true,"description":"sprite base for salted fish plugins","parameters":{}}, {"name":"SF_Sprites","status":true,"description":"sprite base for salted fish plugins","parameters":{}},
{"name":"SF_Windows","status":true,"description":"window base for salted fish plugins","parameters":{}}, {"name":"SF_Windows","status":true,"description":"window base for salted fish plugins","parameters":{}},
{"name":"SF_Scenes","status":true,"description":"scenes lib for salted fish plugins","parameters":{}}, {"name":"SF_Scenes","status":true,"description":"scenes lib for salted fish plugins","parameters":{}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"SF_SkipLoadError","status":true,"description":"try to skip load errors","parameters":{}},
{"name":"SF_AutoUpdate","status":true,"description":"v1.0.0 - Automatically update the game.","parameters":{}},
{"name":"SF_WindowScrollCommand","status":true,"description":"v1.0 Allows you to scroll text in selected commands.","parameters":{}}, {"name":"SF_WindowScrollCommand","status":true,"description":"v1.0 Allows you to scroll text in selected commands.","parameters":{}},
{"name":"SF_InputBindControl","status":true,"description":"v1.0 support add anf remove input event listener","parameters":{}}, {"name":"SF_InputBindControl","status":true,"description":"v1.0 support add anf remove input event listener","parameters":{}},
{"name":"SF_AutoRevive","status":true,"description":"v1.0.0 - Automatically revive dead party members.","parameters":{}}, {"name":"SF_AutoRevive","status":true,"description":"v1.0.0 - Automatically revive dead party members.","parameters":{}},
@ -28,14 +28,15 @@ var $plugins =
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"YEP_X_SkillCooldowns","status":true,"description":"v1.11 技能冷却☁️","parameters":{"---冷却时间---":"","Cooldown Format":"%1CD","Cooldown Font Size":"20","Cooldown Text Color":"6","Cooldown Icon":"75","Cooldown After Battle":"-10","Cooldown Steps":"5","Cooldown Bypass":"1 2 3 4 5 6 7","---热身---":"","Warmup Format":"%1WU","Warmup Font Size":"20","Warmup Text Color":"4","Warmup Icon":"75","---战斗核心---":"","Time Based":"false","Turn Time":"100"}}, {"name":"YEP_X_SkillCooldowns","status":true,"description":"v1.11 技能冷却☁️","parameters":{"---冷却时间---":"","Cooldown Format":"%1CD","Cooldown Font Size":"20","Cooldown Text Color":"6","Cooldown Icon":"75","Cooldown After Battle":"-10","Cooldown Steps":"5","Cooldown Bypass":"1 2 3 4 5 6 7","---热身---":"","Warmup Format":"%1WU","Warmup Font Size":"20","Warmup Text Color":"4","Warmup Icon":"75","---战斗核心---":"","Time Based":"false","Turn Time":"100"}},
{"name":"YEP_X_SkillCostItems","status":true,"description":"v1.03 技能消耗物品☁️","parameters":{"---全局---":"","Cost Style":"2","Font Size":"20","Amount Format":"×%1","Amount Y Buffer":"4","---计量表---":"","Gauge Color 1":"13","Gauge Color 2":"5","Display Name":"true","Text Color":"16"}}, {"name":"YEP_X_SkillCostItems","status":true,"description":"v1.03 技能消耗物品☁️","parameters":{"---全局---":"","Cost Style":"2","Font Size":"20","Amount Format":"×%1","Amount Y Buffer":"4","---计量表---":"","Gauge Color 1":"13","Gauge Color 2":"5","Display Name":"true","Text Color":"16"}},
{"name":"YEP_AbsorptionBarrier","status":true,"description":"v1.05 吸收屏障☁️","parameters":{"Barrier State":"0","Barrier Color 1":"13","Barrier Color 2":"5","Barrier Animation":"0","Break Animation":"0","Barrier Popup":"255, 0, 255, 160","Display 0 HP Damage":"false","Clear Per Battle":"true","Clear on Death":"true","Default Penetration Rate":"0","Default Penetration Flat":"0"}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"SF_SkillUpdate","status":true,"description":"v1.0 Allows you to auto Update skills.","parameters":{}}, {"name":"SF_SkillUpdate","status":true,"description":"v1.0 Allows you to auto Update skills.","parameters":{}},
{"name":"SF_QuestSystem","status":true,"description":"v1.0 Allows you to show quests.","parameters":{"Quest List Window":"","Quest List Window X":"260","Quest List Window Y":"90","Quest List Window Width":"120","Quest List Window Height":"370","Quest List Window Font Size":"18","Quest Detail Window":"","Quest Detail Window X":"380","Quest Detail Window Y":"90","Quest Detail Window Width":"440","Quest Detail Window Height":"370","Quest Detail Window Font Size":"18","Quest Editor":"","Quest Editor Enable":"false","Quest List Info X":"0","Quest List Info Y":"90","Quest List Info Width":"240","Quest List Info Height":"370","Quest List Info Font Size":"18"}}, {"name":"SF_QuestSystem","status":true,"description":"v1.0 Allows you to show quests.","parameters":{"Quest List Window":"","Quest List Window X":"260","Quest List Window Y":"90","Quest List Window Width":"120","Quest List Window Height":"370","Quest List Window Font Size":"18","Quest Detail Window":"","Quest Detail Window X":"380","Quest Detail Window Y":"90","Quest Detail Window Width":"440","Quest Detail Window Height":"370","Quest Detail Window Font Size":"18","Quest Editor":"","Quest Editor Enable":"false","Quest List Info X":"0","Quest List Info Y":"90","Quest List Info Width":"240","Quest List Info Height":"370","Quest List Info Font Size":"18"}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"MOG_ActorHud","status":true,"description":"(v2.0 *) Adiciona uma Hud com os parâmetros do personagem.","parameters":{"-> MAIN <<<<<<<<<<<<<<<<<<<<<<<":"","Initial Visible":"true","Hud X-Axis":"0","Hud Y-Axis":"0","Smart Fade":"true","Auto Fade":"true","":"","-> LAYOUT 2 <<<<<<<<<<<<<<<<<<<<<<<":"","Layout Overlay Visible":"false","Layout Overlay X-Axis":"0","Layout Overlay Y-Axis":"0","-> FACE <<<<<<<<<<<<<<<<<<<<<<<":"","Face Visible":"true","Face X-Axis":"51","Face Y-Axis":"50","Face Priority":"1","-> NAME <<<<<<<<<<<<<<<<<<<<<<<":"","Name Visible":"false","Name X-Axis":"5","Name Y-Axis":"20","Name Font Size":"20","Name Bold Size":"4","Name Font Italic":"false","-> HP <<<<<<<<<<<<<<<<<<<<<<<":"","HP Meter Visible":"true","HP Meter X-Axis":"110","HP Meter Y-Axis":"33","HP Meter Angle":"0","HP Meter Flow Anime":"true","HP Meter Flow Speed":"4","HP Number Visible":"false","HP Number Align":"0","HP Number X-Axis":"270","HP Number Y-Axis":"70","MaxHP Number Visible":"false","MaxHP Number X-Axis":"185","MaxHP Number Y-Axis":"40","HP Icon Visible":"false","HP Icon Half Mode":"false","HP Icon Max Colors":"2","HP Icon Max Rows":"10","HP Icon Max Columns":"2","HP Icon X-Axis":"143","HP Icon Y-Axis":"85","HP Icon Space X":"0","HP Icon Space Y":"0","HP Icon Zoom Anime":"true","-> MP <<<<<<<<<<<<<<<<<<<<<<<":"","MP Meter Visible":"true","MP Meter X-Axis":"110","MP Meter Y-Axis":"48","MP Meter Angle":"0","MP Meter Flow Anime":"true","MP Meter Flow Speed":"4","MP Number Visible":"false","MP Number Align":"0","MP Number X-Axis":"287","MP Number Y-Axis":"100","MaxMP Number Visible":"false","MaxMP Number X-Axis":"196","MaxMP Number Y-Axis":"78","MP Icon Visible":"false","MP Icon Half Mode":"false","MP Icon Max Colors":"2","MP Icon Max Rows":"10","MP Icon Max Columns":"2","MP Icon X-Axis":"143","MP Icon Y-Axis":"120","MP Icon Space X":"0","MP Icon Space Y":"0","MP Icon Zoom Anime":"true","-> TP <<<<<<<<<<<<<<<<<<<<<<<":"","TP Meter Visible":"false","TP Meter X-Axis":"143","TP Meter Y-Axis":"50","TP Meter Angle":"0","TP Meter Flow Anime":"true","TP Meter Flow Speed":"4","TP Number Visible":"false","TP Number Align":"0","TP Number X-Axis":"270","TP Number Y-Axis":"130","MaxTP Number Visible":"false","MaxTP Number X-Axis":"185","MaxTP Number Y-Axis":"116","TP Icon Visible":"false","TP Icon Half Mode":"false","TP Icon Max Colors":"2","TP Icon Max Rows":"10","TP Icon Max Columns":"2","TP Icon X-Axis":"143","TP Icon Y-Axis":"50","TP Icon Space X":"0","TP Icon Space Y":"0","TP Icon Zoom Anime":"true","-> EXP <<<<<<<<<<<<<<<<<<<<<<<":"","EXP Meter Visible":"true","EXP Meter X-Axis":"110","EXP Meter Y-Axis":"63","EXP Meter Angle":"0","Level Number Visible":"false","Level Number Align":"1","Level Number X-Axis":"65","Level Number Y-Axis":"153","-> STATES <<<<<<<<<<<<<<<<<<<<<<<":"","States Visible":"false","States X-Axis":"5","States Y-Axis":"64"}}, {"name":"MOG_ActorHud","status":true,"description":"(v2.0 *) Adiciona uma Hud com os parâmetros do personagem.","parameters":{"-> MAIN <<<<<<<<<<<<<<<<<<<<<<<":"","Initial Visible":"true","Hud X-Axis":"0","Hud Y-Axis":"0","Smart Fade":"true","Auto Fade":"true","":"","-> LAYOUT 2 <<<<<<<<<<<<<<<<<<<<<<<":"","Layout Overlay Visible":"false","Layout Overlay X-Axis":"0","Layout Overlay Y-Axis":"0","-> FACE <<<<<<<<<<<<<<<<<<<<<<<":"","Face Visible":"true","Face X-Axis":"51","Face Y-Axis":"50","Face Priority":"1","-> NAME <<<<<<<<<<<<<<<<<<<<<<<":"","Name Visible":"false","Name X-Axis":"5","Name Y-Axis":"20","Name Font Size":"20","Name Bold Size":"4","Name Font Italic":"false","-> HP <<<<<<<<<<<<<<<<<<<<<<<":"","HP Meter Visible":"true","HP Meter X-Axis":"110","HP Meter Y-Axis":"33","HP Meter Angle":"0","HP Meter Flow Anime":"true","HP Meter Flow Speed":"4","HP Number Visible":"false","HP Number Align":"0","HP Number X-Axis":"270","HP Number Y-Axis":"70","MaxHP Number Visible":"false","MaxHP Number X-Axis":"185","MaxHP Number Y-Axis":"40","HP Icon Visible":"false","HP Icon Half Mode":"false","HP Icon Max Colors":"2","HP Icon Max Rows":"10","HP Icon Max Columns":"2","HP Icon X-Axis":"143","HP Icon Y-Axis":"85","HP Icon Space X":"0","HP Icon Space Y":"0","HP Icon Zoom Anime":"true","-> MP <<<<<<<<<<<<<<<<<<<<<<<":"","MP Meter Visible":"true","MP Meter X-Axis":"110","MP Meter Y-Axis":"48","MP Meter Angle":"0","MP Meter Flow Anime":"true","MP Meter Flow Speed":"4","MP Number Visible":"false","MP Number Align":"0","MP Number X-Axis":"287","MP Number Y-Axis":"100","MaxMP Number Visible":"false","MaxMP Number X-Axis":"196","MaxMP Number Y-Axis":"78","MP Icon Visible":"false","MP Icon Half Mode":"false","MP Icon Max Colors":"2","MP Icon Max Rows":"10","MP Icon Max Columns":"2","MP Icon X-Axis":"143","MP Icon Y-Axis":"120","MP Icon Space X":"0","MP Icon Space Y":"0","MP Icon Zoom Anime":"true","-> TP <<<<<<<<<<<<<<<<<<<<<<<":"","TP Meter Visible":"false","TP Meter X-Axis":"143","TP Meter Y-Axis":"50","TP Meter Angle":"0","TP Meter Flow Anime":"true","TP Meter Flow Speed":"4","TP Number Visible":"false","TP Number Align":"0","TP Number X-Axis":"270","TP Number Y-Axis":"130","MaxTP Number Visible":"false","MaxTP Number X-Axis":"185","MaxTP Number Y-Axis":"116","TP Icon Visible":"false","TP Icon Half Mode":"false","TP Icon Max Colors":"2","TP Icon Max Rows":"10","TP Icon Max Columns":"2","TP Icon X-Axis":"143","TP Icon Y-Axis":"50","TP Icon Space X":"0","TP Icon Space Y":"0","TP Icon Zoom Anime":"true","-> EXP <<<<<<<<<<<<<<<<<<<<<<<":"","EXP Meter Visible":"true","EXP Meter X-Axis":"110","EXP Meter Y-Axis":"63","EXP Meter Angle":"0","Level Number Visible":"false","Level Number Align":"1","Level Number X-Axis":"65","Level Number Y-Axis":"153","-> STATES <<<<<<<<<<<<<<<<<<<<<<<":"","States Visible":"false","States X-Axis":"5","States Y-Axis":"64"}},
{"name":"MOG_ATB","status":true,"description":"(v0.3 *) Sistema de batalha em tempo real.","parameters":{"ATB Mode":"0","ATB Max Value":"4000","Turn Duration":"480","States Duration":"180","Escape Duration":"180","Skip Emerge Message":"true","Full SE":"audio/se/Book1","Change Actor Left":"pagedown","Change Actor Right":"pageup","Escape Button":"cancel","Escape Layout X":"600","Escape Layout Y":"64","Escape Gauge X":"6","Escape Gauge Y":"16"}}, {"name":"MOG_ATB","status":false,"description":"(v0.3 *) Sistema de batalha em tempo real.","parameters":{"ATB Mode":"0","ATB Max Value":"4000","Turn Duration":"480","States Duration":"180","Escape Duration":"180","Skip Emerge Message":"true","Full SE":"audio/se/Book1","Change Actor Left":"pagedown","Change Actor Right":"pageup","Escape Button":"cancel","Escape Layout X":"600","Escape Layout Y":"64","Escape Gauge X":"6","Escape Gauge Y":"16"}},
{"name":"MOG_ATB_Gauge","status":true,"description":"(v1.0) Apresenta a Hud de ATB para MOG_ATB.","parameters":{"Hud Angle":"0","Hud X-Axis":"740","Hud Y-Axis":"45","Enemy X-Axis Offset":"16","Actor X-Axis Offset":"-16","Active X-Axis":"-3","Active Y-Axis":"30","Gauge Size":"160","Skill Visible":"true","Skill Zoom":"0.6","Skill X-Axis":"0","Skill Y-Axis":"0"}}, {"name":"MOG_ATB_Gauge","status":false,"description":"(v1.0) Apresenta a Hud de ATB para MOG_ATB.","parameters":{"Hud Angle":"0","Hud X-Axis":"740","Hud Y-Axis":"45","Enemy X-Axis Offset":"16","Actor X-Axis Offset":"-16","Active X-Axis":"-3","Active Y-Axis":"30","Gauge Size":"160","Skill Visible":"true","Skill Zoom":"0.6","Skill X-Axis":"0","Skill Y-Axis":"0"}},
{"name":"MOG_BattleHud","status":true,"description":"(v5.04 *) Permite customizar o layout de batalha.","parameters":{"-> MAIN <<<<<<<<<<<<<<<<<<<<<<<":"","Hud X-Axis":"-90","Hud Y-Axis":"500","Hud Space X":"0","Hud Space Y":"0","Hud Slide X":"0","Hud Slide Y":"0","Vertical Mode":"false","Max Battle Members":"6","":"","-> LAYOUT OVERLAY <<<<<<<<<<<<<<<<<<<<<<<":"","Layout2 Visible":"true","Layout2 X-Axis":"0","Layout2 Y-Axis":"0","-> TURN <<<<<<<<<<<<<<<<<<<<<<<":"","Turn Visible":"true","Turn X-Axis":"-5","Turn Y-Axis":"-5","Turn Rotation Speed":"0","Turn Zoom Animation":"false","-> FACE <<<<<<<<<<<<<<<<<<<<<<<":"","Face Visible":"true","Face X-Axis":"70","Face Y-Axis":"29","Face Shake Animation":"true","Face Zoom Animation":"true","Face Frame Animation":"false","Face Priority":"1","-> NAME <<<<<<<<<<<<<<<<<<<<<<<":"","Name Visible":"false","Name X-Axis":"0","Name Y-Axis":"0","Name Align":"0","Name Font Size":"20","Name Bold Size":"4","Name Font Italic":"false","-> HP <<<<<<<<<<<<<<<<<<<<<<<":"","HP Meter Visible":"true","HP Meter X-Axis":"124","HP Meter Y-Axis":"13","HP Meter Angle":"0","HP Meter Flow Anime":"false","HP Number Visible":"true","HP Number Align type":"0","HP Number X-Axis":"220","HP Number Y-Axis":"0","MaxHP Number Visible":"false","MaxHP Number X-Axis":"0","MaxHP Number Y-Axis":"0","-> MP <<<<<<<<<<<<<<<<<<<<<<<":"","MP Meter Visible":"true","MP Meter X-Axis":"124","MP Meter Y-Axis":"32","MP Meter Angle":"0","MP Meter Flow Anime":"false","MP Number Visible":"true","MP Number Align type":"0","MP Number X-Axis":"220","MP Number Y-Axis":"19","MaxMP Number Visible":"false","MaxMP Number X-Axis":"0","MaxMP Number Y-Axis":"0","-> TP <<<<<<<<<<<<<<<<<<<<<<<":"","TP Meter Visible":"true","TP Meter X-Axis":"124","TP Meter Y-Axis":"51","TP Meter Angle":"0","TP Meter Flow Anime":"false","TP Number Visible":"true","TP Number Align type":"0","TP Number X-Axis":"220","TP Number Y-Axis":"38","MaxTP Number Visible":"false","MaxTP Number X-Axis":"0","MaxTP Number Y-Axis":"0","-> ATB <<<<<<<<<<<<<<<<<<<<<<<":"","ATB Meter Visible":"true","ATB Meter X-Axis":"0","ATB Meter Y-Axis":"61","ATB Meter Angle":"0","ATB Meter Flow Anime":"false","-> STATES <<<<<<<<<<<<<<<<<<<<<<<":"","States Visible":"true","States X-Axis":"3","States Y-Axis":"24","States Mode":"0","States Max":"4","States Align":"0","-> W COMMAND <<<<<<<<<<<<<<<<<<<<<<<":"","Command Auto Adjust":"1","W Command X-Axis":"20","W Command Y-Axis":"270","W Command Width":"192","W Command Height":"180","W Command Slide X":"0","W Command Slide Y":"0","Layout Command":"true","L Command X-Axis":"-25","L Command Y-Axis":"-35","-> W PARTY <<<<<<<<<<<<<<<<<<<<<<<":"","W Party X-Axis":"325","W Party Y-Axis":"170","W Party Width":"192","W Party Height":"110","W Party Slide X":"0","W Party Slide Y":"0","Layout Party":"true","L Party X-Axis":"-325","L Party Y-Axis":"-42","-> W HELP <<<<<<<<<<<<<<<<<<<<<<<":"","W Help X-Axis":"0","W Help Y-Axis":"0","W Help Width":"816","W Help Height":"108","W Help Slide X":"0","W Help Slide Y":"0","Layout Help":"true","L Help X-Axis":"0","L Help Y-Axis":"0","-> W SKILL <<<<<<<<<<<<<<<<<<<<<<<":"","W Skill X-Axis":"0","W Skill Y-Axis":"444","W Skill Width":"816","W Skill Height":"180","W Skill maxCols":"2","W Skill Slide X":"0","W Skill Slide Y":"0","Layout Skill":"true","L Skill X-Axis":"0","L Skill Y-Axis":"-67","-> W ITEM <<<<<<<<<<<<<<<<<<<<<<<":"","W Item X-Axis":"0","W Item Y-Axis":"444","W Item Width":"816","W Item Height":"180","W Item maxCols":"2","W Item Slide X":"0","W Item Slide Y":"0","Layout Item":"true","L Item X-Axis":"0","L Item Y-Axis":"-67","-> W ACTOR <<<<<<<<<<<<<<<<<<<<<<<":"","W Actor X-Axis":"0","W Actor Y-Axis":"444","W Actor Width":"816","W Actor Height":"180","W Actor maxCols":"1","W Actor Slide X":"0","W Actor Slide Y":"0","Layout Actor":"true","L Actor X-Axis":"0","L Actor Y-Axis":"-67","-> W ENEMY <<<<<<<<<<<<<<<<<<<<<<<":"","W Enemy X-Axis":"0","W Enemy Y-Axis":"444","W Enemy Width":"816","W Enemy Height":"180","W Enemy maxCols":"2","W Enemy Slide X":"0","W Enemy Slide Y":"0","Layout Enemy":"true","L Enemy X-Axis":"0","L Enemy Y-Axis":"-67","-> SCREEN LAYOUT <<<<<<<<<<<<<<<<<<<<<<<":"","Screen Layout":"true","Screen X-Axis":"0","Screen Y-Axis":"0","-> CUSTOM POSITION <<<<<<<<<<<<<<<<<<<<<<<":"","Custom Position 1":"25,465","Custom Position 2":"290,465","Custom Position 3":"555,465","Custom Position 4":"25,545","Custom Position 5":"290,545","Custom Position 6":"555,545","Custom Position 7":"","Custom Position 8":""}}, {"name":"MOG_BattleHud","status":false,"description":"(v5.04 *) Permite customizar o layout de batalha.","parameters":{"-> MAIN <<<<<<<<<<<<<<<<<<<<<<<":"","Hud X-Axis":"-90","Hud Y-Axis":"500","Hud Space X":"0","Hud Space Y":"0","Hud Slide X":"0","Hud Slide Y":"0","Vertical Mode":"false","Max Battle Members":"6","":"","-> LAYOUT OVERLAY <<<<<<<<<<<<<<<<<<<<<<<":"","Layout2 Visible":"true","Layout2 X-Axis":"0","Layout2 Y-Axis":"0","-> TURN <<<<<<<<<<<<<<<<<<<<<<<":"","Turn Visible":"true","Turn X-Axis":"-5","Turn Y-Axis":"-5","Turn Rotation Speed":"0","Turn Zoom Animation":"false","-> FACE <<<<<<<<<<<<<<<<<<<<<<<":"","Face Visible":"true","Face X-Axis":"70","Face Y-Axis":"29","Face Shake Animation":"true","Face Zoom Animation":"true","Face Frame Animation":"false","Face Priority":"1","-> NAME <<<<<<<<<<<<<<<<<<<<<<<":"","Name Visible":"false","Name X-Axis":"0","Name Y-Axis":"0","Name Align":"0","Name Font Size":"20","Name Bold Size":"4","Name Font Italic":"false","-> HP <<<<<<<<<<<<<<<<<<<<<<<":"","HP Meter Visible":"true","HP Meter X-Axis":"124","HP Meter Y-Axis":"13","HP Meter Angle":"0","HP Meter Flow Anime":"false","HP Number Visible":"true","HP Number Align type":"0","HP Number X-Axis":"220","HP Number Y-Axis":"0","MaxHP Number Visible":"false","MaxHP Number X-Axis":"0","MaxHP Number Y-Axis":"0","-> MP <<<<<<<<<<<<<<<<<<<<<<<":"","MP Meter Visible":"true","MP Meter X-Axis":"124","MP Meter Y-Axis":"32","MP Meter Angle":"0","MP Meter Flow Anime":"false","MP Number Visible":"true","MP Number Align type":"0","MP Number X-Axis":"220","MP Number Y-Axis":"19","MaxMP Number Visible":"false","MaxMP Number X-Axis":"0","MaxMP Number Y-Axis":"0","-> TP <<<<<<<<<<<<<<<<<<<<<<<":"","TP Meter Visible":"true","TP Meter X-Axis":"124","TP Meter Y-Axis":"51","TP Meter Angle":"0","TP Meter Flow Anime":"false","TP Number Visible":"true","TP Number Align type":"0","TP Number X-Axis":"220","TP Number Y-Axis":"38","MaxTP Number Visible":"false","MaxTP Number X-Axis":"0","MaxTP Number Y-Axis":"0","-> ATB <<<<<<<<<<<<<<<<<<<<<<<":"","ATB Meter Visible":"true","ATB Meter X-Axis":"0","ATB Meter Y-Axis":"61","ATB Meter Angle":"0","ATB Meter Flow Anime":"false","-> STATES <<<<<<<<<<<<<<<<<<<<<<<":"","States Visible":"true","States X-Axis":"3","States Y-Axis":"24","States Mode":"0","States Max":"4","States Align":"0","-> W COMMAND <<<<<<<<<<<<<<<<<<<<<<<":"","Command Auto Adjust":"1","W Command X-Axis":"20","W Command Y-Axis":"270","W Command Width":"192","W Command Height":"180","W Command Slide X":"0","W Command Slide Y":"0","Layout Command":"true","L Command X-Axis":"-25","L Command Y-Axis":"-35","-> W PARTY <<<<<<<<<<<<<<<<<<<<<<<":"","W Party X-Axis":"325","W Party Y-Axis":"170","W Party Width":"192","W Party Height":"110","W Party Slide X":"0","W Party Slide Y":"0","Layout Party":"true","L Party X-Axis":"-325","L Party Y-Axis":"-42","-> W HELP <<<<<<<<<<<<<<<<<<<<<<<":"","W Help X-Axis":"0","W Help Y-Axis":"0","W Help Width":"816","W Help Height":"108","W Help Slide X":"0","W Help Slide Y":"0","Layout Help":"true","L Help X-Axis":"0","L Help Y-Axis":"0","-> W SKILL <<<<<<<<<<<<<<<<<<<<<<<":"","W Skill X-Axis":"0","W Skill Y-Axis":"444","W Skill Width":"816","W Skill Height":"180","W Skill maxCols":"2","W Skill Slide X":"0","W Skill Slide Y":"0","Layout Skill":"true","L Skill X-Axis":"0","L Skill Y-Axis":"-67","-> W ITEM <<<<<<<<<<<<<<<<<<<<<<<":"","W Item X-Axis":"0","W Item Y-Axis":"444","W Item Width":"816","W Item Height":"180","W Item maxCols":"2","W Item Slide X":"0","W Item Slide Y":"0","Layout Item":"true","L Item X-Axis":"0","L Item Y-Axis":"-67","-> W ACTOR <<<<<<<<<<<<<<<<<<<<<<<":"","W Actor X-Axis":"0","W Actor Y-Axis":"444","W Actor Width":"816","W Actor Height":"180","W Actor maxCols":"1","W Actor Slide X":"0","W Actor Slide Y":"0","Layout Actor":"true","L Actor X-Axis":"0","L Actor Y-Axis":"-67","-> W ENEMY <<<<<<<<<<<<<<<<<<<<<<<":"","W Enemy X-Axis":"0","W Enemy Y-Axis":"444","W Enemy Width":"816","W Enemy Height":"180","W Enemy maxCols":"2","W Enemy Slide X":"0","W Enemy Slide Y":"0","Layout Enemy":"true","L Enemy X-Axis":"0","L Enemy Y-Axis":"-67","-> SCREEN LAYOUT <<<<<<<<<<<<<<<<<<<<<<<":"","Screen Layout":"true","Screen X-Axis":"0","Screen Y-Axis":"0","-> CUSTOM POSITION <<<<<<<<<<<<<<<<<<<<<<<":"","Custom Position 1":"25,465","Custom Position 2":"290,465","Custom Position 3":"555,465","Custom Position 4":"25,545","Custom Position 5":"290,545","Custom Position 6":"555,545","Custom Position 7":"","Custom Position 8":""}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"XdRs_MiniMap","status":true,"description":"实景小地图 。","parameters":{"key":"77","width":"Graphics.width / 6","height":"Graphics.height / 6","miniSize":"24","dpFollower":"Y","dpHide":"Y","dpDc1":"Y","dpDc2":"Y","dpMapName":"Y","dpPlace":"Y","dpScale":"Y","color1":"200,0,200","color2":"0,200,0","color3":"0,255,200","icon1":"320","icon2":"320","icon3":"65","icon4":"324","icon5":"117","icon6":"32","icon7":"48"}}, {"name":"XdRs_MiniMap","status":true,"description":"实景小地图 。","parameters":{"key":"77","width":"Graphics.width / 6","height":"Graphics.height / 6","miniSize":"24","dpFollower":"Y","dpHide":"Y","dpDc1":"Y","dpDc2":"Y","dpMapName":"Y","dpPlace":"Y","dpScale":"Y","color1":"200,0,200","color2":"0,200,0","color3":"0,255,200","icon1":"320","icon2":"320","icon3":"65","icon4":"324","icon5":"117","icon6":"32","icon7":"48"}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
@ -43,7 +44,8 @@ var $plugins =
{"name":"SF_MapNameWindow","status":true,"description":"v1.0 Adds a window to the map screen that displays the name of the map.","parameters":{"Map Name Window":"","Map Name Window X":"Math.round(Graphics.boxWidth*5/6)-110","Map Name Window Y":"0","Map Name Window Width":"100","Map Name Window Height":"36","Map Name Window Font Size":"12"}}, {"name":"SF_MapNameWindow","status":true,"description":"v1.0 Adds a window to the map screen that displays the name of the map.","parameters":{"Map Name Window":"","Map Name Window X":"Math.round(Graphics.boxWidth*5/6)-110","Map Name Window Y":"0","Map Name Window Width":"100","Map Name Window Height":"36","Map Name Window Font Size":"12"}},
{"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}}, {"name":"--------------------","status":true,"description":"------------------------------------------------------------","parameters":{}},
{"name":"SF_SceneTitle","status":true,"description":"Scene Title","parameters":{}}, {"name":"SF_SceneTitle","status":true,"description":"Scene Title","parameters":{}},
{"name":"SF_SceneMenu","status":true,"description":"Scene Menu","parameters":{}}, {"name":"SF_SceneMenu","status":false,"description":"Scene Menu","parameters":{}},
{"name":"SF_SceneActorSelect","status":true,"description":"v1.0.0 Allows you to select an actor from the scene.","parameters":{}}, {"name":"SF_SceneActorSelect","status":true,"description":"v1.0.0 Allows you to select an actor from the scene.","parameters":{}},
{"name":"SF_SceneSplash","status":true,"description":"v1.0.0 - Scene Splash","parameters":{}},
{"name":"SF_TestPlugins","status":true,"description":"","parameters":{}} {"name":"SF_TestPlugins","status":true,"description":"","parameters":{}}
]; ];

@ -0,0 +1,408 @@
//=============================================================================
// Salted Fish Plugins - Auto Update
// SF_AutoUpdate.js
//=============================================================================
"use strict";
var Imported = Imported || {};
Imported.SF_AutoUpdate = true;
var SF_Plugins = SF_Plugins || {};
//=============================================================================
/*:
* @plugindesc v1.0.0 - Automatically update the game.
* @author Salted Fish
*
* @help
*
* ===========================================================================
* Introduction
* ===========================================================================
*
* This plugin automatically updates the game.
*
* ===========================================================================
* Requires
* ===========================================================================
*
* You need use ycrpg2-android-client to run on android.
* otherwise, you can use ycrpg2-pc-client to run on pc.
* This is not supported on ios and web, but web also use the newest version.
*
* ===========================================================================
* How to use
* ===========================================================================
*
* ycrpg2-android-client provide FileUtils and UpdateUtils.
* FileUtils is used to read and write Text files, and UpdateUtils is used to
* update the game.
*
* FileUtils provide the following functions:
* public void evaluateJavascript(String script)
* public boolean canExecute(String fileName)
* public boolean canRead(String fileName)
* public boolean canWrite(String fileName)
* public boolean createNewFile(String fileName)
* public boolean delete(String fileName)
* public boolean exists(String fileName)
* public String getAbsolutePath(String fileName)
* public String getCanonicalPath(String fileName)
* public String getName(String fileName)
* public String getParent(String fileName)
* public String getPath(String fileName)
* public boolean isAbsolute(String fileName)
* public boolean isDirectory(String fileName)
* public boolean isFile(String fileName)
* public long lastModified(String fileName)
* public long length(String fileName)
* public String list(String fileName)
* public boolean mkdir(String fileName)
* public boolean mkdirs(String fileName)
* public boolean renameTo(String srcName, String dstName)
* public String toString(String fileName)
* public String readTextFile(String fileName)
* public boolean writeTextFile(String fileName,String content)
* public String getFileHashHex(String fileName, String algorithm)
* public String getFileHashHex(String fileName)
*
* UpdateUtils provide the following functions:
* public void evaluateJavascript(String script)
* public void downloadFullUrl(String fileName, String urlString, String success, String fail)
* public void downloadRelativeUrl(String fileName, String urlString, String success, String fail)
* public void updateFileCompleted(boolean bool)
* public String getHashInfoJson()
* public void updateFile(String fileName, String success, String fail)
*/
//=============================================================================
(function () {
var SF_AutoUpdate = {};
SF_Plugins.SF_AutoUpdate = SF_AutoUpdate;
SF_AutoUpdate.version = 1.0;
SF_AutoUpdate.remoteFileInfoName = "file_info_remote.json";
SF_AutoUpdate.localFileInfoName = "file_info_local.json";
SF_AutoUpdate.remoteFileInfoUrl = "https://ycrpg.xyzzgame.com/ycrpg2/file_info_remote.json";
SF_AutoUpdate.remoteUrlRoot = "https://ycrpg.xyzzgame.com/YCrpg2/";
SF_AutoUpdate.emptyFileInfoStr = `{"is_file":false,"is_dir":"true","files":[],"dirs":[],"sha_512":""}`;
SF_AutoUpdate.enableAutoUpdate = false;
SF_AutoUpdate.isAndroid = function () {
return !!window.FileUtils && !!window.UpdateUtils && !SF_AutoUpdate.isPC();
}
SF_AutoUpdate.isPC = function () {
return !!Utils.isNwjs();
}
SF_AutoUpdate.isWeb = function () {
return !SF_AutoUpdate.isPC() && !SF_AutoUpdate.isAndroid();
}
SF_AutoUpdate.isSupported = function () {
return SF_AutoUpdate.enableAutoUpdate && (SF_AutoUpdate.isAndroid() || SF_AutoUpdate.isPC());
}
if (!SF_AutoUpdate.isSupported()) { return; }
SF_AutoUpdate.FileUtils = window.FileUtils || {};
SF_AutoUpdate.UpdateUtils = window.UpdateUtils || {};
if (SF_AutoUpdate.isPC()) {
window.FileUtils = SF_AutoUpdate.FileUtils;
window.UpdateUtils = SF_AutoUpdate.UpdateUtils;
var fs = require('fs');
var path = require('path');
var os = require('os');
var crypto = require('crypto');
var http = require('http');
SF_AutoUpdate.FileUtils.evaluateJavascript = function (script) {
(new Function(script)).call(window);
}
SF_AutoUpdate.FileUtils.canExecute = function (fileName) {
try {
fs.accessSync(fileName, fs.X_OK);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.canRead = function (fileName) {
try {
fs.accessSync(fileName, fs.R_OK);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.canWrite = function (fileName) {
try {
fs.accessSync(fileName, fs.W_OK);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.createNewFile = function (fileName) {
try {
fs.writeFileSync(fileName, "");
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.delete = function (fileName) {
try {
fs.unlinkSync(fileName);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.exists = function (fileName) {
try {
fs.accessSync(fileName, fs.F_OK);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.getAbsolutePath = function (fileName) {
return path.resolve(fileName);
}
SF_AutoUpdate.FileUtils.getCanonicalPath = function (fileName) {
return path.resolve(fileName);
}
SF_AutoUpdate.FileUtils.getName = function (fileName) {
return path.basename(fileName);
}
SF_AutoUpdate.FileUtils.getParent = function (fileName) {
return path.dirname(fileName);
}
SF_AutoUpdate.FileUtils.getPath = function (fileName) {
return path.resolve(fileName);
}
SF_AutoUpdate.FileUtils.isAbsolute = function (fileName) {
return path.isAbsolute(fileName);
}
SF_AutoUpdate.FileUtils.isDirectory = function (fileName) {
return fs.statSync(fileName).isDirectory();
}
SF_AutoUpdate.FileUtils.isFile = function (fileName) {
return fs.statSync(fileName).isFile();
}
SF_AutoUpdate.FileUtils.lastModified = function (fileName) {
return fs.statSync(fileName).mtime.getTime();
}
SF_AutoUpdate.FileUtils.length = function (fileName) {
return fs.statSync(fileName).size;
}
SF_AutoUpdate.FileUtils.mkdir = function (fileName) {
try {
fs.mkdirSync(fileName);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.mkdirs = function (fileName) {
try {
fs.mkdirSync(fileName, { recursive: true });
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.reanmeTo = function (srcName, dstName) {
try {
fs.renameSync(oldFileName, newFileName);
return true;
} catch (e) {
return false;
}
}
SF_AutoUpdate.FileUtils.toString = function (fileName) {
return path.resolve(fileName);
}
SF_AutoUpdate.FileUtils.readTextFile = function (fileName) {
return fs.readFileSync(fileName, 'utf-8');
}
SF_AutoUpdate.FileUtils.writeTextFile = function (fileName, text) {
return fs.writeFileSync(fileName, text, 'utf-8');
}
SF_AutoUpdate.FileUtils.getFileHashHex = function (fileName, algorithm) {
var hash = crypto.createHash(algorithm || 'SHA512');
var data = fs.readFileSync(fileName);
hash.update(data);
return hash.digest('hex');
}
SF_AutoUpdate.UpdateUtils.evaluateJavascript = function (script) {
(new Function(script)).call(window);
}
SF_AutoUpdate.UpdateUtils.downloadFullUrl = function (fileName, url, success, fail) {
var file = fs.createWriteStream(fileName);
http.get(url, function (response) {
response.pipe(file);
file.on('finish', function () {
file.close(SF_AutoUpdate.UpdateUtils.evaluateJavascript.bind(SF_AutoUpdate.UpdateUtils, success));
});
}).on('error', function (err) {
SF_AutoUpdate.UpdateUtils.evaluateJavascript.bind(SF_AutoUpdate.UpdateUtils, fail)(err.message);
});
}
SF_AutoUpdate.UpdateUtils.downloadRelativeUrl = function (fileName, url, success, fail) {
SF_AutoUpdate.UpdateUtils.downloadFullUrl(fileName, SF_AutoUpdate.remoteUrlRoot + url, success, fail);
}
SF_AutoUpdate.UpdateUtils.updateFileCompleted = function (result) {
// todo
}
SF_AutoUpdate.UpdateUtils.getHashInfoJson = function () {
try {
return fs.readFileSync(SF_AutoUpdate.localFileInfoName) || SF_AutoUpdate.emptyFileInfoStr;
} catch (e) {
return SF_AutoUpdate.emptyFileInfoStr;
}
}
SF_AutoUpdate.UpdateUtils.updateFile = function (fileName, success, fail) {
SF_AutoUpdate.UpdateUtils.downloadRelativeUrl(fileName, fileName, success, fail);
}
}
//=============================================================================
// Scene_AutoUpdate
//=============================================================================
function Scene_AutoUpdate() {
this.initialize.apply(this, arguments);
}
window.Scene_AutoUpdate = Scene_AutoUpdate;
SF_AutoUpdate.Scene_AutoUpdate = Scene_AutoUpdate;
Scene_AutoUpdate.prototype = Object.create(Scene_Base.prototype);
Scene_AutoUpdate.prototype.constructor = Scene_AutoUpdate;
Scene_AutoUpdate.prototype.initialize = function () {
Scene_Base.prototype.initialize.call(this);
this._localFileInfo = JsonEx.parse(UpdateUtils.readTextFile(SF_AutoUpdate.localFileInfoName));
this._remoteFileInfo = {};
this._updateFileList = [];
this._updateFileIndex = 0;
this._updateFileCount = 0;
this._updateFileName = "";
this._status = "completed"; // "working", "completed"
this._job = ""; // "fetch remote file info", "compare file info", "update file"
this._nextJob = "fetched remote file info";
};
Scene_AutoUpdate.prototype.create = function () {
Scene_Base.prototype.create.call(this);
}
Scene_AutoUpdate.prototype.start = function () {
Scene_Base.prototype.start.call(this);
}
Scene_AutoUpdate.prototype.update = function () {
Scene_Base.prototype.update.call(this);
this.updateJob();
this.updateLoading();
}
Scene_AutoUpdate.prototype.updateLoading = function () {
console.log(this._job, this._status);
}
Scene_AutoUpdate.prototype.updateJob = function () {
if (this._status === "working") { return; }
if (this._nextJob === "") {
SceneManager.pop();
}
this._job = this._nextJob;
this._status = "working";
switch (this._job) {
case "fetched remote file info":
this.fetchRemoteFileInfo();
this._nextJob = "compare file info";
break;
case "compare file info":
this.compareFileInfo();
this._nextJob = "update file";
break;
case "update file":
this.updateFile();
this._nextJob = "";
break;
}
}
Scene_AutoUpdate.prototype.fetchRemoteFileInfo = function () {
var success = (function () {
this._remoteFileInfo = JsonEx.parse(UpdateUtils.readTextFile(SF_AutoUpdate.remoteFileInfoName));
this._status = "completed";
this._nextJob = "compare file info";
}).bind(this);
var fail = (function () {
this._status = "completed";
this._nextJob = "";
}).bind(this);
UpdateUtils.downloadRelativeUrl(
SF_AutoUpdate.remoteFileInfoName,
SF_AutoUpdate.remoteFileInfoName,
CallBack.registerOneTime(success),
CallBack.registerOneTime(fail)
);
}
Scene_AutoUpdate.prototype.compareFileInfo = function () {
}
//=============================================================================
// SceneManager
//=============================================================================
SF_AutoUpdate.SceneManager_initialize = SceneManager.initialize;
SceneManager.initialize = function () {
SF_AutoUpdate.SceneManager_initialize.call(this);
this.addSceneBefore(Scene_AutoUpdate, Scene_Title);
}
})();

@ -0,0 +1,24 @@
onmessage = function (e) {
var local_file_info = e.data[0];
var remote_file_info = e.data[1];
local_file_info.is_dir = local_file_info.is_dir || false;
remote_file_info.is_dir = remote_file_info.is_dir || false;
}
function compare_file_info(local_file_info, remote_file_info) {
}
function compare_file_file(local_file_info, remote_file_info) {
console.assert(local_file_info.is_file === remote_file_info.is_file);
}
function generate_delete_file_list(file_info) {
var delete_file_list = [];
if (file_info.is_dir) {
for (var i = 0; i < file_info.children.length; i++) {
delete_file_list = delete_file_list.concat(generate_delete_file_list(file_info.children[i]));
}
}
}

@ -379,4 +379,53 @@ var SF_Plugins = SF_Plugins || {};
} }
throw new Error(message); throw new Error(message);
}; };
//=============================================================================
// CallBack Scope Transport
//=============================================================================
function CallBack() {
throw new Exception("this is static method");
}
window.CallBack = CallBack;
CallBack.initialize = function () {
this.clear();
}
// Return closureIndex
CallBack.getNew = function () {
var closureIndex = this._closureIndex++;
return closureIndex;
}
CallBack.setByClosureIndex = function (closureIndex, closureFunction) {
this._closureFunction[closureIndex] = closureFunction;
}
CallBack.unregister = function (closureIndex) {
delete this._closureFunction[closureIndex];
}
CallBack.callByClosureIndex = function (closureIndex) {
if (this._closureFunction[closureIndex]) {
this._closureFunction[closureIndex]();
}
}
CallBack.convertToString = function (closureIndex) {
return "CallBack.callByClosureIndex(" + closureIndex + ")";
}
CallBack.clear = function () {
this._closureFunction = {};
this._closureIndex = 0;
}
CallBack.registerOneTime = function (closureFunction) {
var closureIndex = this.getNew();
this.setByClosureIndex(closureIndex, (function () { closureFunction(); this.unregister(closureIndex); }).bind(this));
return this.convertToString(closureIndex);
}
})(); })();

@ -40,4 +40,51 @@ var SF_Plugins = SF_Plugins || {};
return this.loadBitmap('img/scene_ui/scene_menu/', filename, 0, true); return this.loadBitmap('img/scene_ui/scene_menu/', filename, 0, true);
}; };
ImageManager.loadSceneSplash = function (filename) {
return this.loadBitmap('img/scene_ui/scene_splash/', filename, 0, true);
}
//=============================================================================
// SceneManager
//=============================================================================
SceneManager._sceneBeforeClasses = {};
SF_Managers.SceneManager_initialize = SceneManager.initialize;
SceneManager.initialize = function () {
SF_Managers.SceneManager_initialize.call(this);
this._sceneBeforeClasses = {};
this.initCallBack();
};
SF_Managers.SceneManager_goto = SceneManager.goto;
SceneManager.goto = function (sceneClass) {
if (this._sceneBeforeClasses[sceneClass]) {
var beforeSceneList = this._sceneBeforeClasses[sceneClass];
var index = beforeSceneList.indexOf(this._scene.constructor);
if (index == -1) { // if the scene is not in the array
this._stack.push(sceneClass);
SF_Managers.SceneManager_goto.call(this, beforeSceneList[0]);
} else if (index == beforeSceneList.length - 1) {
SF_Managers.SceneManager_goto.call(this, sceneClass);
} else {
SF_Managers.SceneManager_goto.call(this, beforeSceneList[index + 1]);
}
} else {
SF_Managers.SceneManager_goto.call(this, sceneClass);
}
}
SceneManager.addSceneBefore = function (beforeSceneClass, sceneClass) {
if (this._sceneBeforeClasses[sceneClass]) {
this._sceneBeforeClasses[sceneClass].push(beforeSceneClass);
} else {
this._sceneBeforeClasses[sceneClass] = [beforeSceneClass];
}
}
SceneManager.initCallBack = function () {
CallBack.initialize();
}
})(); })();

@ -84,6 +84,7 @@ var SF_Plugins = SF_Plugins || {};
'help': [814, 33], 'help': [814, 33],
'cancel': [678, 463], 'cancel': [678, 463],
'database': [438, 348], 'database': [438, 348],
'skill': [438, 94]
}; };
} }
@ -146,7 +147,7 @@ var SF_Plugins = SF_Plugins || {};
this.pivot.y = Graphics.boxHeight / 2; this.pivot.y = Graphics.boxHeight / 2;
this.x = Graphics.boxWidth / 2; this.x = Graphics.boxWidth / 2;
this.y = Graphics.boxHeight / 2; this.y = Graphics.boxHeight / 2;
this.rotation = -0.03; // this.rotation = -0.03;
} }
Scene_Menu.prototype.update = function () { Scene_Menu.prototype.update = function () {
@ -195,5 +196,8 @@ var SF_Plugins = SF_Plugins || {};
SceneManager.push(Scene_Database); SceneManager.push(Scene_Database);
} }
Scene_Menu.prototype.on_skill_button = function () {
SceneManager.push(Scene_Skill);
}
})(); })();

@ -0,0 +1,60 @@
//=============================================================================
// Salted Fish Plugins - Scene SKill
// SF_SceneSkill.js
//=============================================================================
"use strict";
var Imported = Imported || {};
Imported.SF_SceneSkill = true;
var SF_Plugins = SF_Plugins || {};
//=============================================================================
/*:
* @plugindesc v1.0.0 - Scene Skill
* @author Salted Fish
*
*
* @help
*
* ===========================================================================
* Introduction
* ===========================================================================
*
* This plugin is used to show the skill list.
* Any config just change the file.
*
*/
//=============================================================================
(function () {
var SF_SceneSkill = {};
SF_Plugins.SF_SceneSkill = SF_SceneSkill;
SF_SceneSkill.version = 1.0;
//=============================================================================
// Window_UserSelect
//=============================================================================
function Window_UserSelect() {
this.initialize.apply(this, arguments);
}
SF_SceneSkill.Window_UserSelect = Window_UserSelect;
window.Window_UserSelect = Window_UserSelect;
Window_UserSelect.prototype = Object.create(Window_PagingBase.prototype);
Window_UserSelect.prototype.constructor = Window_UserSelect;
Window_UserSelect.prototype.initialize = function () {
Window_PagingBase.prototype.initialize.apply(this, arguments);
this.refresh();
}
//=============================================================================
// Scene_Skill
//=============================================================================
})();

@ -0,0 +1,250 @@
//=============================================================================
// Salted Fish Plugins - Scene Splash
// SF_SceneSplash.js
//=============================================================================
"use strict";
var Imported = Imported || {};
Imported.SF_SceneSplash = true;
var SF_Plugins = SF_Plugins || {};
//=============================================================================
/*:
* @plugindesc v1.0.0 - Scene Splash
* @author Salted Fish
*
* @help
*
* ===========================================================================
* Introduction
* ===========================================================================
*
* This plugin adds a splash scene after Scene_Boot.
*/
//=============================================================================
(function () {
var SF_SceneSplash = {};
SF_Plugins.SF_SceneSplash = SF_SceneSplash;
SF_SceneSplash.version = 1.0;
SF_SceneSplash.FADE_IN_FRAMES = 60; // Number of frames for the fade in effect.
SF_SceneSplash.FADE_OUT_FRAMES = 60;// Number of frames for the fade out effect.
SF_SceneSplash.SHOW_TIME = 150;// Number of frames for the splash to be shown.
//=============================================================================
// Sprite_SplashBase
//=============================================================================
function Sprite_SplashBase() {
this.initialize.apply(this, arguments);
}
Sprite_SplashBase.prototype = Object.create(Sprite.prototype);
Sprite_SplashBase.prototype.constructor = Sprite_SplashBase;
Sprite_SplashBase.prototype.initialize = function (index) {
Sprite.prototype.initialize.call(this);
this.state = "fadeIn";// "fadeIn", "show", "fadeOut"
this.FADE_IN_FRAMES = SF_SceneSplash.FADE_IN_FRAMES;
this.FADE_OUT_FRAMES = SF_SceneSplash.FADE_OUT_FRAMES;
this.SHOW_TIME = SF_SceneSplash.SHOW_TIME;
this.index = index;
this.showTime = 0;
this.opacity = 0;
}
Sprite_SplashBase.prototype.update = function () {
Sprite.prototype.update.call(this);
if (TouchInput.isTriggered()) {
this.state = "fadeOut";
}
if (this.state === "fadeIn") {
this.updateFadeIn();
} else if (this.state === "show") {
this.updateShow();
} else if (this.state === "fadeOut") {
this.updateFadeOut();
}
}
Sprite_SplashBase.prototype.updateFadeIn = function () {
this.opacity += 255 / this.FADE_IN_FRAMES;
if (this.opacity >= 255) {
this.opacity = 255;
this.state = "show";
}
}
Sprite_SplashBase.prototype.updateShow = function () {
this.opacity = 255;
this.updateShowTime();
}
Sprite_SplashBase.prototype.updateShowTime = function () {
this.showTime++;
if (this.showTime >= this.SHOW_TIME) {
this.state = "fadeOut";
}
}
Sprite_SplashBase.prototype.updateFadeOut = function () {
this.opacity -= 255 / this.FADE_OUT_FRAMES;
if (this.opacity <= 0) {
this.opacity = 0;
this.state = "fadeIn";
this.showTime = 0;
if (this.index + 1 < SF_SceneSplash.SpriteClassList.length) {
var spriteClass = SF_SceneSplash.SpriteClassList[this.index + 1];
var sprite = new spriteClass(this.index + 1);
this.parent.addChild(sprite);
} else {
SceneManager.pop();
}
this.parent.removeChild(this);
}
}
Sprite_SplashBase.prototype.centerSelf = function () {
this.anchor.x = 0.5;
this.anchor.y = 0.5;
this.x = Graphics.width / 2;
this.y = Graphics.height / 2;
}
//=============================================================================
// Sprite_SplashLogo
//=============================================================================
function Sprite_SplashLogo() {
this.initialize.apply(this, arguments);
}
Sprite_SplashLogo.prototype = Object.create(Sprite_SplashBase.prototype);
Sprite_SplashLogo.prototype.constructor = Sprite_SplashLogo;
Sprite_SplashLogo.prototype.initialize = function (index) {
Sprite_SplashBase.prototype.initialize.call(this, index);
this.bitmap = ImageManager.loadSceneSplash("spalsh_logo");
this.centerSelf();
}
//=============================================================================
// Sprite_SplashHealthTip
//=============================================================================
function Sprite_SplashHealthTip() {
this.initialize.apply(this, arguments);
}
Sprite_SplashHealthTip.prototype = Object.create(Sprite_SplashBase.prototype);
Sprite_SplashHealthTip.prototype.constructor = Sprite_SplashHealthTip;
Sprite_SplashHealthTip.prototype.initialize = function (index) {
Sprite_SplashBase.prototype.initialize.call(this, index);
this.bitmap = ImageManager.loadSceneSplash("spalsh_health_tip");
this.centerSelf();
}
//=============================================================================
// Sprite_SplashAdapted
//=============================================================================
function Sprite_SplashAdapted() {
this.initialize.apply(this, arguments);
}
Sprite_SplashAdapted.prototype = Object.create(Sprite_SplashBase.prototype);
Sprite_SplashAdapted.prototype.constructor = Sprite_SplashAdapted;
Sprite_SplashAdapted.prototype.initialize = function (index) {
Sprite_SplashBase.prototype.initialize.call(this, index);
this.bitmap = ImageManager.loadSceneSplash("splash_adapted");
this.centerSelf();
}
//=============================================================================
// Sprite_SplashEnd
//=============================================================================
function Sprite_SplashEnd() {
this.initialize.apply(this, arguments);
}
Sprite_SplashEnd.prototype = Object.create(Sprite_SplashBase.prototype);
Sprite_SplashEnd.prototype.constructor = Sprite_SplashEnd;
Sprite_SplashEnd.prototype.initialize = function (index) {
Sprite_SplashBase.prototype.initialize.call(this, index);
SceneManager.pop();
}
//=============================================================================
// Sprite Class for Scene Splash
//=============================================================================
SF_SceneSplash.SpriteClassList = [
Sprite_SplashLogo, Sprite_SplashHealthTip, Sprite_SplashAdapted, Sprite_SplashEnd
];
//=============================================================================
// Scene_Splash
//=============================================================================
function Scene_Splash() {
this.initialize.apply(this, arguments);
}
window.Scene_Splash = Scene_Splash;
SF_SceneSplash.Scene_Splash = Scene_Splash;
Scene_Splash.prototype = Object.create(Scene_Base.prototype);
Scene_Splash.prototype.constructor = Scene_Splash;
Scene_Splash.prototype.initialize = function () {
Scene_Base.prototype.initialize.call(this);
}
Scene_Splash.prototype.create = function () {
Scene_Base.prototype.create.call(this);
this.createBackground();
this.createSplash();
}
Scene_Splash.prototype.createBackground = function () {
var bitmap = new Bitmap(Graphics.width, Graphics.height);
bitmap.fillAll("white");
this._backgroundSprite = new Sprite(bitmap);
this.addChild(this._backgroundSprite);
}
Scene_Splash.prototype.createSplash = function () {
var spriteClass = SF_SceneSplash.SpriteClassList[0];
var sprite = new spriteClass(0);
this.addChild(sprite);
}
Scene_Splash.prototype.start = function () {
Scene_Base.prototype.start.call(this);
}
Scene_Splash.prototype.update = function () {
Scene_Base.prototype.update.call(this);
}
//=============================================================================
// SceneManager
//=============================================================================
SF_SceneSplash.SceneManager_initialize = SceneManager.initialize;
SceneManager.initialize = function () {
SF_SceneSplash.SceneManager_initialize.apply(this, arguments);
this.addSceneBefore(Scene_Splash, Scene_Title);
}
})();

File diff suppressed because it is too large Load Diff

@ -0,0 +1,3 @@
onmessage = function (e) {
debugger
}
Loading…
Cancel
Save