Need Help With Scripting

Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 1 minutes later
No, it's not hiding file exertions.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 2 minutes later
That doesn't appear to work :/ Same error.
Avatar
ChickenMobile
2,460 Posts
Posted Jul 09, 2013
Replied 1 minute later
Read my post above.
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 2 minutes later
I removed those and it still doesn't work (scripts/vscripts). As for why my steamapps is in my desktop.....that's a long story involving glitching computers and faulty graphics cards.

Here is another image http://i.imgur.com/ljcWnXT.png

Avatar
ChickenMobile
2,460 Posts
Posted Jul 09, 2013
Replied 5 minutes later
Last resort:
Close and then open the .nut file with just normal notepad and not notepad++.

I'm bloody going to upload my example and see if it's just your computer.

Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 3 minutes later
Interestingly enough, the file does not appear when using normal notepad.

I'm betting it is my computer to be honest at this point :/.

Either way, I really appreciate all the help.

Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2013
Replied 17 minutes later
OK, is the folder scrips/vscripts under the same directory than Portal2? I mean, into portal 2/portal2/scripts/vscrips.
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 1 minutes later
Yeah it is :smile:.
Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2013
Replied 8 minutes later
Man, try the attached script and let me know.

EDIT: Oh, and just in cases, restart Portal2

Attachments
cubeswitch.7z
0.00 MB 43 downloads
Avatar
ChickenMobile
2,460 Posts
Posted Jul 09, 2013
Replied 1 minutes later

Guess I was a minute late, here's mine with the example map.

portal 2.zip
Attachments
portal 2.zip
0.01 MB 39 downloads
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 1 minutes later
Still isn't working, arg! Ill send you a message...one moment.
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 1 minutes later
Trying Chicken's now
Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 4 minutes later
Chicken, yours works. I cannot thank you enough. I don't know why yours didn't Jose. But I also want to thank you very much for your help as well. Sorry if I was just being super annoying or dumb at all through this process. The help is very, very much appreciated. Thank you both very much.
Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2013
Replied 3 minutes later

Hmmmm... weird. This is the one I made for my map Da-MaSK and did actually worked out perfectly (I applied not to a single cube, but all of them in the map, so I searched by class name):

function ChangeCubes(){
   Entities.FindByClassname(null, "prop_weighted_cube").SetModel("models/josepezdj/metal_box_jose.mdl");
}

Avatar
Tmast98
210 Posts
Posted Jul 09, 2013
Replied 2 minutes later
Odd, maybe I did something wrong with yours?
Avatar
FelixGriffin
2,680 Posts
Posted Jul 09, 2013
Replied 4 hours later
Remember, Tmast, SetModel doesn't change collisions. If you SetModel a sphere into a cube, it will become a box that rolls around and acts like a sphere. Unless your custom model is shaped just like a cube, I'd recommend an env_entity_dissolver to destroy the boxes.
Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2013
Replied 2 hours later
Yeah, that reminded me to my trial of turning a Frankenturret (monster cube) into a regular cube last year :lol:
Avatar
DaMaGepy
361 Posts
Posted Jul 11, 2013
Replied 1 day later
OFFTOPIC:
About Portal being on the desktop: Symbolic links ftw!
If someone has steam installed on the OS partition (C:), and periodically backs up the partition with a backup program (norton ghost, macrium reflectm etc), should consider moving the steam installation to another drive. It can be done normally with lot of registry tweaking, or just moving the whole dir and making a symbolic link to it. So the Steam dir is still on C: but phisically its on another drive. I use it all the time. (Symbolic Link Creator):)
There are free programs to create junctions or hard or symbolic directory or file links. For example my Steam is installed on drive e: but the portal 2 dir from steam is moved to an ssd. I also moved My World of Warcraft's Interface directory to the SSD, thousands of little small file that loads so slowly on a normal HDD.
Avatar
FelixGriffin
2,680 Posts
Posted Jul 11, 2013
Replied 12 hours later
You don't even need to download anything; use the mklink command on Windows and ln on anything else. :smile:
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Jul 11, 2013
Replied 45 minutes later
If you install any game on steam doesn't it ask you if you want to put it in a new directory anyway?