rojo-rbx / remodel

Scriptable Roblox multitool: Manipulate instances, model files, places, and assets on Roblox.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remodel.writePlaceFile and remodel.writeModelFile do not write Part0 and Part1 properties

fredgig opened this issue · comments

When reading a .rbxmx or .rbxlx (xml) file and writing it as a .rbxm or .rbxl (binary) file, any WeldConstraint inside the .rbxmx or .rbxlx file will lose their Part0 and Part1 property values.

This is not an issue with other instance types containing Part0 and Part1 properties like NoCollisionConstraint, but I have not tested many others.

I noticed that exporting xml files from Roblox Studio will use Part0Internal and Part1Internal as property names for WeldConstraint's, so it might be related to this issue.

Let me know if you need any more detail.

This issue now makes Remodel partly obsolete for us. It is no longer possible for us to publish our games with remodel.writeExistingPlaceAsset because WeldConstraint's are messed up in the process.

This issue is still happening. I've attached a repro project file below.

Rojo7_RefBug_Repro.zip

Steps to reproduce
From the root of the repro project, run these commands:

  1. Run rojo build default.project.json -o Temp\CurrentBuild.rbxl

  2. Open the generated place file. Observe that Workspace.WeldedModel.A.WeldConstraint has its ref values (part0 and part1) intact.
    image

  3. Close the place file, and run remodel run AddGameVersion.lua.

  4. Open the place file. Observe that Workspace.WeldedModel.A.WeldConstraint has had its ref values wiped.
    image

commented

This is potentially same issue as rojo-rbx/rojo#458, I just encountered on =0.9.1