|
| 04 Aug 2014 11:27 PM |
Im writing a plugin which ports roblox parts into the source engine. I'm doing this by creating func_brushes with a white texture and its rendercolor changed to the Color3 of the BrickColor.
I have "something" completed. However, I'm having an issue with the file format, and I'm not exactly sure whats up with it.
Here is an example of a file it would generate for a regular part with no properties changed. When I try to open it in Hammer, the file is not corrupted, but the part apparently has errors in it, and it notifies me that it was discarded. I don't know if I'll find help here, but can anyone see an issue with the file?
(Here's the plugin that generated this btw: http://www.roblox.com/Source-Engine-vmf-Exporter-WIP-item?id=170244312)
versioninfo { "formatversion" "100" "mapversion" "0" "editorversion" "400" "editorbuild" "6488" "prefab" "0" } visgroups { } viewsettings { "bSnapToGrid" "1" "bShowGrid" "1" "bShow3DGrid" "0" "bShowLogicalGrid" "0" "nGridSpacing" "64" } world { "maxpropscreenwidth" "-1" "mapversion" "2" "detailmaterial" "detail/detailsprites" "id" "28608" "classname" "worldspawn" "skyname" "sky_day01_01" "detailvbsp" "detail.vbsp" } entity { "spawnflags" "2" "StartDisabled" "0" "rendercolor" "163 162 165" "rendermode" "0" solid { side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 252) (-24 201 276) (-24 201 252)" "id" "73308" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 252) (24 216 252) (24 216 276)" "id" "60024" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(-24 201 276) (-24 216 276) (-24 216 252)" "id" "162" } "id" "21058" side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 216 252) (-24 201 252) (-24 216 252)" "id" "85262" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(-24 201 276) (-24 216 252) (-24 201 252)" "id" "6101" } editor { "color" "255 255 255" "visgroupsshown" "1" "visgroupautoshown" "1" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 216 252) (24 201 252) (-24 201 252)" "id" "80623" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 252) (24 216 276) (24 201 276)" "id" "74721" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 276) (-24 216 276) (-24 201 276)" "id" "14448" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 276) (24 216 276) (-24 216 276)" "id" "25273" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 216 252) (-24 216 252) (-24 216 276)" "id" "83462" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 201 252) (24 201 276) (-24 201 276)" "id" "14027" } side { "rotation" "0" "uaxis" "[1 0 0 0] 0.25" "vaxis" "[0 0 -1 0] 0.25" "lightmapscale" "16" "material" "LIGHTS/WHITE001" "plane" "(24 216 252) (-24 216 276) (24 216 276)" "id" "70800" } } "InputFilter" "0" "solidbsp" "0" "id" "33632" "disablereceiveshadows" "0" "Solidity" "0" editor { "color" "220 30 220" "visgroupshown" "1" "logicalPos" "[0 0]" "visgroupautoshown" "1" } "renderfx" "0" "origin" "(0 208 264)" "vrad_brush_cast_shadows" "0" "invert_exclusion" "0" "disableshadows" "0" "renderamt" "255" "classname" "func_brush" } cameras { "activecamera" "-1" } cordon { "maxs" "(1024 1024 1024)" "active" "0" "mins" "(-1024 -1024 -1024)" }
|
|
|
| Report Abuse |
|
|
2tabbycat
|
  |
| Joined: 07 Sep 2010 |
| Total Posts: 1692 |
|
|
| 04 Aug 2014 11:31 PM |
| My apologies, I know a small amount of information about Valve's Hammer Editor but nothing this complex. |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2014 04:47 AM |
| ^ both just random people posting here because its a clonetrooper1019 post... |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2014 07:32 AM |
"which ports roblox parts into the source engine"
Are you porting into a .vmf or a .bsp file? I think .vmf?
I was looking into some of my own .vmf files and I noticed the "sides" were all like this. You seem to be missing "smoothing_groups" and you also have them in a different order. Not sure if that's the problem but I would definitely look into it.
side { "id" "17" "plane" "(-320 -320 -192) (320 -320 -192) (320 320 -192)" "material" "NATURE/SNOWFLOOR003A" "uaxis" "[1 0 0 256] 0.25" "vaxis" "[0 -1 0 0] 0.25" "rotation" "0" "lightmapscale" "16" "smoothing_groups" "0" } |
|
|
| Report Abuse |
|
|
nomer888
|
  |
| Joined: 13 Feb 2010 |
| Total Posts: 551 |
|
|
| 05 Aug 2014 09:35 AM |
| It's an issue with the plane coordinates. Seems like ModuleScript you're using to convert parts into faces is faulty, or your formatting is off. Everything else is fine and dandy, and "smoothing_groups" isn't needed. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2014 07:41 PM |
jesus christ this gets posted so often
you get a NAIL
THEN YOU USE HAMMER EDITOR |
|
|
| Report Abuse |
|
|