Luciddvfx Posted May 11 Posted May 11 (edited) I wondered if anyone knew how to decrypt car models from Assetto Corsa. They come in kn5 format, and I have not found a way to decrypt them. Thanks. Edited May 11 by Luciddvfx added thanks
Engineers Rabatini Posted May 11 Engineers Posted May 11 Did you try it from aluigi? # Assetto Corsa (script 0.1.2) # script for QuickBMS http://quickbms.aluigi.org idstring "sc6969" get VER long if VER >= 6 get DUMMY long endif get FILES long for i = 0 < FILES get DUMMY long get NAMESZ long getdstring NAME NAMESZ get SIZE long savepos OFFSET log NAME OFFSET SIZE math OFFSET += SIZE goto OFFSET next i get SIZE asize math SIZE -= OFFSET log "" OFFSET SIZE
Luciddvfx Posted May 11 Author Posted May 11 (edited) No, I haven't. Ill try it now, thanks! Edited May 11 by Luciddvfx thanks
Lynxylotl Posted June 14 Posted June 14 On 5/11/2025 at 6:26 PM, Luciddvfx said: No, I haven't. Ill try it now, thanks! Did it work and if so, how did you view/export the models from the .dat file that quickbms produces?
ssn Posted July 3 Posted July 3 On 5/11/2025 at 9:21 AM, Rabatini said: Did you try it from aluigi? # Assetto Corsa (script 0.1.2) # script for QuickBMS http://quickbms.aluigi.org idstring "sc6969" get VER long if VER >= 6 get DUMMY long endif get FILES long for i = 0 < FILES get DUMMY long get NAMESZ long getdstring NAME NAMESZ get SIZE long savepos OFFSET log NAME OFFSET SIZE math OFFSET += SIZE goto OFFSET next i get SIZE asize math SIZE -= OFFSET log "" OFFSET SIZE dms
stpdft Posted July 28 Posted July 28 On 5/12/2025 at 12:21 AM, Rabatini said: Did you try it from aluigi? # Assetto Corsa (script 0.1.2) # script for QuickBMS http://quickbms.aluigi.org idstring "sc6969" get VER long if VER >= 6 get DUMMY long endif get FILES long for i = 0 < FILES get DUMMY long get NAMESZ long getdstring NAME NAMESZ get SIZE long savepos OFFSET log NAME OFFSET SIZE math OFFSET += SIZE goto OFFSET next i get SIZE asize math SIZE -= OFFSET log "" OFFSET SIZE Can I ask you about the method to decrypt .kn5 files?
stpdft Posted July 28 Posted July 28 On 5/12/2025 at 12:21 AM, Rabatini said: Did you try it from aluigi? # Assetto Corsa (script 0.1.2) # script for QuickBMS http://quickbms.aluigi.org idstring "sc6969" get VER long if VER >= 6 get DUMMY long endif get FILES long for i = 0 < FILES get DUMMY long get NAMESZ long getdstring NAME NAMESZ get SIZE long savepos OFFSET log NAME OFFSET SIZE math OFFSET += SIZE goto OFFSET next i get SIZE asize math SIZE -= OFFSET log "" OFFSET SIZE After using this code, i obtained a bunch of texture files and a .dat file. What should i do next
Members marty Posted July 28 Members Posted July 28 (edited) 1 hour ago, stpdft said: After using this code, i obtained a bunch of texture files and a .dat file. What should i do next Did you maybe.. I dont know try looking at the .dat file in HxD? or atleast sharing it Edited July 28 by marty
Engineers shak-otay Posted July 28 Engineers Posted July 28 (edited) 10 hours ago, stpdft said: After using this code, i obtained a bunch of texture files and a .dat file. What should i do next Depends on your knowledge. If you are familiar with hex2obj for example you could get this from a .dat file (Ferrari F1 SF-24 as an example): (cockpit) But you would need to gather all single parts to one model. -------------------------------- The easier way is using Chipicao's Kn5_converter (found the link searching in the Xentax archives of this forum for 'kn5'). It creates .fbx (or .obj) directly from the .kn5 file. Edited July 28 by shak-otay 1
stpdft Posted July 29 Posted July 29 11 hours ago, shak-otay said: 取决于你的知识。例如,如果您熟悉 hex2obj,您可以从 .dat 文件(以法拉利 F1 SF-24 为例)获取此文件: (驾驶舱) 但是您需要将所有单个部件收集到一个模型中。 -------------------------------- 更简单的方法是使用 Chipicao 的Kn5_converter(在本论坛的 Xentax 档案中找到了搜索“kn5”的链接)。 它直接从 .kn5 文件创建 .fbx(或 .obj)。 11 hours ago, shak-otay said: 取决于你的知识。例如,如果您熟悉 hex2obj,您可以从 .dat 文件(以法拉利 F1 SF-24 为例)获取此文件: (驾驶舱) 但是您需要将所有单个部件收集到一个模型中。 -------------------------------- 更简单的方法是使用 Chipicao 的Kn5_converter(在本论坛的 Xentax 档案中找到了搜索“kn5”的链接)。 它直接从 .kn5 文件创建 .fbx(或 .obj)。 Thank you so much! I will do my best to learn and use it. I have another question: all the texture files I extracted are unopenable. Will this issue be resolved after using your method?
Engineers shak-otay Posted July 29 Engineers Posted July 29 (edited) 1 hour ago, stpdft said: Thank you so much! I will do my best to learn and use it. Good to hear. Quote I have another question: all the texture files I extracted are unopenable. Will this issue be resolved after using your method? It's not my method, kn5_converter is Chipicao's tool (from former Xentax). And from what I see the dds files created by the bms script from Aluigi and those created by kn5_converter are identical and openable. Edited July 29 by shak-otay
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now