3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 8106|回复: 3
打印 上一主题 下一主题

[工具补丁] 重制版SKSE脚本转换器

[复制链接]

127

主题

7393

帖子

1万

积分

3DM创意工坊 搬运组

[依暮凉丶花染静瞳]

Rank: 11Rank: 11Rank: 11Rank: 11

贡献度
705
金元
150595
积分
17880
精华
0
注册时间
2011-9-26

月宫亚由骨灰玩家~元气女仆(永久)

跳转到指定楼层
主题
发表于 2018-1-23 11:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[tr=rgb(68, 68, 68)]N网原帖
[tr=rgb(68, 68, 68)]

This guide will hopefully be useful in helping you port the SKSE scripts from oldrim mods to Special Edition, even if that mod didn't include the source files for those scripts.
[tr=rgb(68, 68, 68)]

1. Download your Old Skyrim mod and extract it to a new folder

2. If your mod's files are in a .bsa, download Bethesda Archive Extractor (BAE) and use it to extract the .bsa to your mod's folder. Delete the .bsa afterwards.

3. Go to the scripts folder. This could be in an SKSE folder. If there is a "source" folder within the scripts folder, full of .psc files, skip all the way to step 9 as you will not need to decompile the .pex files.

4. Otherwise, if there is no source folder and/or no .psc files, download Champollion - A PEX to Papyrus Decompiler and extract it to a new folder

5. Download decompilePEX.bat from the Files section of this guide. Put
decompilePEX.bat AND the empty output folder into the Champollion folder


6. Drag all of the compiled scripts (.pex) into the same folder as Champollion and decompilePEX.bat

7. Run decompilePEX.bat and check the output directory to make sure there are .psc files in there.

8. Move the .psc files from the output folder back into your mod; Put them in scripts/source. If there isn't a source folder within the scripts folder, make one

9. Delete the .pex files - You won't be needing them anymore.

10. Download and install Sublime Text. This is necessary for the compiler we will be using.

11. Open Sublime Text and hit Ctrl+Shift+p - This will open up a little text box you can type "Install" into. The option "Install Package Control" will pop up, select it by hitting "Enter". Then hit preferences > browse packages. Go one directory up, and then go into the directory named "Installed Packages".

12. Download the newest release of SublimePapyrus, and extract BOTH the .sublime-package files into the Installed Packages directory you opened before. It should be in "%appdata%/Sublime Text 3/Installed Packages" by default.

13. Restart Sublime Text. Go to Preferences > Package Settings > SublimePapyrus > Settings - Default, and then do the same but this time open Settings - User. Copy + Paste everything from Default into User. Then, make sure to close the default settings so you are editing the user settings.

14. The Papyrus Compiler should be located in "%yourskyrimdirectory%/Papyrus Compiler" if you have SKSE64 installed. Set "compiler" to this value, like so:



15. "output" is where your compiled scripts will go. You can set this to anywhere that is convenient. Mine is:



16. IMPORTANT: "import" are the script sources that your mod requires. This will be the Skyrim base scripts, SKSE64's scripts, and probably SkyUI or perhaps PapyrusUtil. This all depends on the mod. If you run into an error later, setting this incorrectly is probably the reason why. Identical scripts and functions that exist lower on this list will be overwritten by ones higher on it. Mine looks like:



17. Open any one of the .psc files of your mod in Sublime Text.

18. Go to Tools > Build System > Papyrus - Skyrim

19. Then hit Ctrl+B. Choose the "Batch" option; This will build all the .psc files at once. If the build fails, it is most likely because you didn't import all the script sources your mod requires during step 16.

20. Go to your output folder, and drag all the .pex files into the scripts folder of your mod.

21. You're done! You can repackage the mod into a .bsa if you prefer, but this is not required. If the mod adds any animations, you'll need to convert them using this guide, and if your mod adds any meshes/models, you'll need to convert them using SSE NIF Optimizer. If your mod has a .esp, you'll need to convert them using Bethesda's "Creator Kit". I highly recommend this video series by Dirty Weasel, starting at Episode 9, if you run into issues converting the NIF model files, animations, or the .esp files.




附件分流

decompilePEX.bat-14819-1.7z (245 Bytes, 下载次数: 193)

评分

1

查看全部评分

回复

使用道具 举报

21

主题

1050

帖子

2031

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
92
金元
16629
积分
2031
精华
0
注册时间
2017-2-17
舒服的沙发
发表于 2021-2-2 16:06 | 只看该作者
好东西,但是怎么用,之前看帖说要手动ck的太复杂,现在找到这个看似工具,但是怎么用?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-28 06:26 , Processed in 0.031976 second(s), 20 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表