Unity-Source-Tools icon indicating copy to clipboard operation
Unity-Source-Tools copied to clipboard

For some of the models the script looks in the wrong place for the .vmf file and adds some numbers to the .vmf that it is looking for.

Open ghost opened this issue 8 years ago • 32 comments

texturehelp1

texturehelp2

These are the pictures of the list of files it is lookings for and where they acutaly are. The second image is my settings to make sure everything is configures correctly.

Looking forward to your help. :+1:

ghost avatar Nov 20 '18 06:11 ghost

This is done because of how Source handles cubemaps for reflections, I believe. It's a pain, but what I did was copy/paste the original file, and rename it to fit.

StamatisP avatar Nov 20 '18 09:11 StamatisP

These files are in a zip inside the bsp file. You should unpack them with GCFScape.

lewa-j avatar Nov 20 '18 16:11 lewa-j

Thank you. Got it working but some of the models are still missing and the clock is mis placed. texturehelp4

ghost avatar Nov 20 '18 20:11 ghost

You still haven't filled out all of the materials in the WorldManager. That's the cause of the source argument error. Try that out.

StamatisP avatar Nov 20 '18 21:11 StamatisP

What materials are that? Where are they on the world manager menu?

ghost avatar Nov 21 '18 00:11 ghost

List of models the are visible: Bed Walls Doors Center of Button Cube dropper

Non visible or not there: Auto portal frame mini stone table check board radio button holder/outer circuit line from button to door all parts of the elevator

Objects you can walk through: Doors "Glass" if it is there is has no refraction effect so it is invisible

Glitchy stuff: Countdown clock is on the wrong wall and misaligned.

ghost avatar Nov 21 '18 03:11 ghost

Fixed some of the problems by setting the transparent cut out. What do I set the vertex lit material to?

ghost avatar Nov 21 '18 03:11 ghost

Diffuse

lewa-j avatar Nov 21 '18 08:11 lewa-j

These files are in a zip inside the bsp file. You should unpack them with GCFScape.

I've commited a pull request to fix this issue, removing this step altogether.

atrblizzard avatar Nov 21 '18 20:11 atrblizzard

#5 This is just a workaround. As a result, we lose all the information about cubemaps. The right solution to the problem is to make loading materials from the zip archive from bsp.

lewa-j avatar Nov 21 '18 22:11 lewa-j

Fixxed almost all of the problems now!!

  1. The test chamber sign is improperly displayed

  2. The clock holder is misaligned

  3. When I click stop play it removes the map. How can I stop this so I can edit it such as adding physics to objects etc?

How can I fix these?

Picture one is bad sign and misaligned clock texturehelp6

Picture two is configuration and debug console texturehelp7

ghost avatar Nov 22 '18 03:11 ghost

Extra problem: I can still walk through most 3d models such as the doors and elevator.

ghost avatar Nov 22 '18 03:11 ghost

  1. Testchamber Signs are complex (https://developer.valvesoftware.com/wiki/Custom_Testchamber_Signs)
  2. MDL loader is unfinished. Can on some files fail root bone rotation.
  3. Script creates all meshes and objects in runtime and stores them only in RAM. For editing, they must first be exported. Started writing collada exporter, but doesn't finish.
  4. Same to 2nd, mdl loader doesn't load collision files.

lewa-j avatar Nov 23 '18 20:11 lewa-j

How much of the exporter is done and how long do you think it will take? I would like to be able to use it by Christmas.

ghost avatar Nov 24 '18 21:11 ghost

Done only vertices and UVs, without materials and objects.

how long do you think it will take

Well, forever. It was abandoned almost two years ago.

lewa-j avatar Nov 25 '18 12:11 lewa-j

Well damn. Is there a way you could edit the script loader so it adds the objects as permanent objects? Like loading the materials and models into a permanent folder(PortalProject/Objects). Or what if I got you like 10 professions to assist you with finishing the exporter?

ghost avatar Nov 25 '18 22:11 ghost

Throwing people at it would certainly help (provided they're paid well), but it's not really worth it. I suggest recreating it in probuilder, because the way Source does maps is really wonky compared to Unity.

StamatisP avatar Nov 25 '18 23:11 StamatisP

Check this out. https://www.reddit.com/r/Unity3D/comments/a0dy17/can_we_get_some_people_to_help_with_a_project/?

Also what do you think of my first recommendation?

ghost avatar Nov 26 '18 00:11 ghost

Those aren't really experts, I doubt someone in their spare time would work on a project like this without any monetary incentive. I'm sorry, but your best choice is to rebuild the map completely. Otherwise, shadows and such are broken.

StamatisP avatar Nov 26 '18 02:11 StamatisP

Damn. Tbh I don't really care if shadows are broken.

ghost avatar Nov 26 '18 03:11 ghost