Cube maps only work on my computer.

Avatar
Goldenknighttim
182 Posts
Posted Jul 30, 2013
This one is a little hard to experiment with, because the issue doesn't show up until after I have uploaded my chamber to the workshop. But it seems that whenever I use pakrat for a chamber, the cube maps only work on my computer. Does anyone know why, and what I need to do to fix this problem?
Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Jul 30, 2013
Replied 4 hours later
Did you rename the map after building cubemaps?
Avatar
msleeper
4,136 Posts
Admin
Posted Jul 30, 2013
Replied 35 minutes later
Are you paking the content before or after building your cubemaps?
Avatar
Goldenknighttim
182 Posts
Posted Jul 30, 2013
Replied 2 hours later
I can't open the bsp file after packing it. I haven't seen issues before I pack, so I haven't really tried to build cubemaps. I just put them in. I'm still kind of new to hammer, so I can imagine that I am missing something there. Ill try to look into building them, lol, maybe thats what I'm missing?
Avatar
Skotty
671 Posts
Posted Jul 30, 2013
Replied 7 minutes later
First use "buildcubemaps" in game to build cubemaps and THEN put content via Packrat into your .bsp. Never the other way around!
Avatar
Goldenknighttim
182 Posts
Posted Jul 30, 2013
Replied 35 minutes later
Ok, I just tested by doing what skotty just said, and that didn't work. I built the cubemaps, packed textures, then published. I played the published version on my computer. It was fine. I had my brother test it on his computer, and it was horrible.
Avatar
josepezdj
2,386 Posts
Posted Jul 31, 2013
Replied 2 hours later
@Goldenknighttim: what you put inside your maps is an entity called env_cubemap. But still, you need to run the command buildcubemaps after you loaded your map via the console. For this command to work out you need to put a copy of your map into your portal2/portal2_dlc2/maps folder, otherwise the cubemaps building will crash.

After building cubemaps correctly, problems with cubemmaps can come via 2 possible ways:

a) Once you finished building cubemaps and packing the custom content, you ran p2map_publish.exe BUT chose any other copy of the map from whatever other folder than portal2_dlc2/maps, like for instance your portal2/maps folder. Still, when you run your map via the console in your computer, you load the correct map since the portal2_dlc2 folder has priority over the rest folders.

b) You left a space into your map's name, and even though you pick it correctly from portal2_dlc2/maps when publishing, the p2map_publish.exe program renames it removing that space and maybe giving it a bunch-of-numbers-type-name.

Revise and let us know if you finally manage it :wink:

Avatar
Goldenknighttim
182 Posts
Posted Jul 31, 2013
Replied 6 hours later
Do underscores count as spaces? I have underscores in the names. However, I have been doing what you are saying to do. and it works on my computer, even after I play the published version, but it isn't working on other machines.
Avatar
josepezdj
2,386 Posts
Posted Jul 31, 2013
Replied 2 hours later
No, underscores are fine... If you are uploading the file you have into portal2_dlc2/maps with the cubemaps already built in, no clue then, man, sorry.
Avatar
Goldenknighttim
182 Posts
Posted Aug 01, 2013
Replied 1 day later
Thanks anyway. Ill post on here if I find an answer.
Avatar
Dafflewoctor
415 Posts
Posted Aug 01, 2013
Replied 13 minutes later
Did you do a full compile...?
Avatar
Goldenknighttim
182 Posts
Posted Aug 01, 2013
Replied 4 hours later
For rad, yes. For vis, no. Ill try runing both on full now and see how that goes.
Avatar
Goldenknighttim
182 Posts
Posted Aug 01, 2013
Replied 25 minutes later
Ok, I just ran a full compile, placed the new bsp into the dlc_2/maps folder, I builtcubemaps, I packed it with pakrat, I published the packed version, I got onto another computer, unsubscribed and resubscribed to the chamber, got into the chamber, and the cubemaps were not working. I then tested it on my computer, and it was working.
Avatar
Dafflewoctor
415 Posts
Posted Aug 01, 2013
Replied 2 hours later
The same thing that happened before? Sorry, no idea...
Avatar
Skotty
671 Posts
Posted Aug 01, 2013
Replied 32 minutes later
For coop maps, you have to start them via Splitscreen to build cubemaps. Starting coop maps in singleplayer mode and building cubemaps won't work. (Probably. I know I had such an issue, too and solved it via this).
Avatar
Goldenknighttim
182 Posts
Posted Aug 02, 2013
Replied 14 hours later
It is a singleplayer map. Thats good information to know because I want to make multiplayer maps soon. I think that I should mention that this problem happens every time I pack custom textures with pakrat, and it never happens when I don't use pakrat.
Avatar
Goldenknighttim
182 Posts
Posted Aug 02, 2013
Replied 6 hours later
For the sake of troubleshooting, I am thinking that the failing cubemaps may be a problem on that specific other computer that I'm testing with. I don't think that this is the case, because it runs the cubemaps on other chambers fine. They work fine on my computer, can anyone test to see if it is a problem with everyone's computer, or just the one I am testing with? The map can be found here: http://steamcommunity.com/sharedfiles/f ... =164327033
You should be able to tell by looking at the first elevator. I really want to fix this problem, however, I am close to giving up.
Avatar
TeamSpen210
608 Posts
Posted Aug 02, 2013
Replied 55 minutes later
Maybe it could be because one computer uses LDR and the othe uses HDR? Try building cubemaps twice with both enabled.
Avatar
Goldenknighttim
182 Posts
Posted Aug 02, 2013
Replied 47 minutes later
Ok, I don't know what ldr and hdr are yet. Where can I find that type of information?
Advertisement
Registered users don’t see ads! Register now!
Avatar
Goldenknighttim
182 Posts
Posted Aug 02, 2013
Replied 4 minutes later
I was just looking in the advanced compile options. Just found those options there. I'm trying your idea now.