Please or Register to create posts and topics.

Custom skin and Wheatley looking at player help

PreviousPage 2 of 4Next

I knew that. Its just a matter of how I do that. I can't find a way of putting the textures into the folder with the personality_sphere skins

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

1. You need to make a folder somewhere in your computer called pak01_dir and inside that one, create the folder /materials... and there, your model's textures folders tree as you see them into the .VMT file:

modelsnpcspersonality_sphere

2. Now put inside the 2 custom files, personality_sphere_skin01.VMT and personality_sphere_skin01.VTF

3. You need to make the folder pak01_dir a "packed" .VPK file. For this, you need to click on this folder and to drag it on top of the program vpk.exe that you have inside the folder "portal 2/bin":

Image

Right in the moment you drop your folder pak01_dir on top of that executable file, a .VPK file called pak01_dir.VPK will be created (and you'll find it in the same directory where you had your folder pak01_dir)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

Thanks for all of the helpful replies josepezdj Anyways, I can now create the correct file, but now if I replace it with my normal pak01_dir, i loose all of the files that were in original pak01_dir. I know why, but whenever I try to extract the files form the original, change the texture, and re-pack it with VPK.exe so there's no missing files when I replace it, the command prompt window just freezes (I think. nothing happens and It doenst respond when I click X.)

Anyways, thanks for the great help.

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

Try to extract only the .mdl file and rehex it according to Skoty's tut: mapping-help/reskinning-how-to-t4041.html
It worked much better for me.

@Arachnaphob: OK, first off. I think there's a misunderstanding here about concepts :D When you said "mod pack" I eventually thought you were making an actual mod, with the mod format and so on. Let me explain:

- Mods are located in separate folders than your game, meaning that you won't ever replace any of the game files, ok? There is a folder called sourcemods, and in there, you can create a new folder with your mod's name and put your mod files in. But this is not a simple task, there is a whole process behind and you still need some important files from the original game, ok? (like the pak01_dir.VPK file we talked about before) This is the guide you can follow up to make your own mod (even though it warns you that it's no longer valid since the DLCs release, it only needs some extra tweaks to work, but it works... just let me know that this is what you want to make and I'll help you with it). But I don't think you need this!

- If you are not interested in developing a whole mod, but only in having some custom models and textures, this is much easier to achieve, and you don't need to distribute any "mod pack" for ppl to be able to see your custom stuff apart from your .BSP map file itself, becasue all of that can be pack into the .BSP as I already told you. the way to go about that is this:

1. First you need "a copy" of the model you want to use, but one that loads your custom textures. This can be made by at least 2 ways, and the simplest one is hexing the model. As Yishbarr said, there's an awesome tuto by Skotty, you can take a look to it... HOWEVER this model is a complex model, and it is composed by several other models (5 or 6 models I think), so it would be necessary to check out carefully which one to change and if changing only that one will be enough ;) I can see there is one called "personality_sphere_skins.MDL", and looking into it with a hex editor I think this is the one that take the skin files, so maybe just hexing this one would be enough... but maybe not! maybe you'll nee to hex all of those 5-6 models. Check out:

Image

I'll need to check that out later at home.

2. OK, imagining we have all the above sorted out already, the next step is to embed or pack ALL the custom files into your .BSP map file. 'ALL' means both, your model files and your customer textures files, ok? This can be made using pakrat, and as I told you there are many threads about it already here, use the Search feature of these forums (check on top of this page). Here you have a quick tuto for your reference.

3. Once you finish with pakrat you'll have a .BSP file of your map but with your custom content IN. You'll only need to publish this .BSP file and ppl will see your custom content ;)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

You only need to hex one personality core model, depending how many skins you want: personality_sphere.mdl has broken Wheatley and clean Wheatley, so you get two skins with different eyes and different bodies. The personality_sphere_skins.mdl has broken Wheatley, Space Core, Rick, and Fact Core, so you get four skins with different eyes and the same body.

Falsi sumus crusto!

Good to know :thumbup: Then I guess the OP will prefer to hex the personality_sphere.MDL because he/she needed custom bodies...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

Wow,this is starting to get much more complex than it thought it was. Sorry to be a pain here by the way. Thanks for sticking with me. :thumbup: I know what the difference of a modpack is. I was just thinking that I could create a workshop version for people who are to lazy or incapable of downloading a mod and a pack version so people don't have to subscribe to a bunch of maps.

Anyways, whenever I try to load the file it gives me:

Error reading personality_sphere_skins.mdl error 2: File not found

Damnit, XV132, it is there, okay?

Anyways, since i now have a sudden feel that i'm not giving enough information, here is what i'm trying to do.

For my custom story, there is a character named Thompson that you meet part way in. Because he is a separate core from Wheatley or the other 3 corrupted cores, he has a different eye. Originally, I thought that I could just replace the eye texture in pak01_dir, and that would work. But now I can easily see it is much more complex. Back to current time, in that tutorial on the model, I didn't see any reference or path to personality_sphere_skin01. I dodn't read much I Spy books either, so maybe that's the problem. In the file, it says a bunch about the personality_sphere_lights models, and maybe those are the ones I want. Anyways, my brain is imploding right about now, and again thank you for being really helpful.

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

Ok, Arachnaphob, I still can't understand your concepts :D sorry! You call a "modpack" what I think I simply described as a mod, meaning what you put into the sourcemods folder, right? I understand that you prefer not to do this.

Now you mention a "pack version so people don't have to subscribe to a bunch of maps"... hmmm... do you mean that you want to make a big map instead of several ones? if this is it, good, because this way you'll only have to pack your custom stuff into 1 single .BSP.

Regarding that error on loading the model, forget about that one, just pick personality_sphere.MDL instead. But this model uses the following textures, so you'll have to edit these and the easiest thing would be to keep their names too:

Image

If this is so hard for you, let's do this: send me a pm with your custom textures; and if the map is already finished, send it to me as well, just the .BSP file is fine.

I'll do the thing for you, and then I'll post a description of the process I followed step by step so you and anyone else can take a look in the case he wants to do a similar customization ;)

EDIT

Ok, let's see if that error you have with the model is caused by a bad hexing or any other step in the process. Let me put an example hexing the personality_sphere.MDL model with XVI32, and changin only the folder where the model searches for its texture files: from the folder models/npcs/personality_sphere/ to the new folder models/npcs/arachnaphob_sphere/ ;)

1. First of all, you need to extract the desired model from the file pak01_dir.VPK you have into your folder portal 2/portal2. You'll need GFCScape. With this program you'll be able to see inside the .VPKs and extract (right click > Extract) whatever file. You'll need these 5 files for the model personality_sphere.MDL:

Image

(As you can see, they are located into models/npcs/personality_sphere)

Extract them all into this previously created folder: portal 2/portal2/models/npcs/arachnaphob_sphere. And I mean an external folder in your hard drive, ok? not inside the .VPK file, but into your game folder. You must know that your game reads whatever inside the pak01_dir.VPK files and whatever into the game folders, so for models, whatever under portal 2/portal2/models/ "real" folder ;)

2. Now open the .MDL file using XVI32 and remember this: you can edit whatever path or name into the model file but you must remember to always keep the same number of characters than you had before, and do not edit any of the weird characters you see! In this example, as I mentioned in the point above, I'll only change 1 folder...

- This is the top part of the file after you open it with the hex editor (I underlined the part that you can edit):

This is the path where the model is located, and the model name
Image
NOTE: as it can be seen, it is understood here the first part of the path: portal 2/portal2/models/

- This is the bottom part of the file before the edition (again I underlined the part that you can edit):

This is the path where the textures that the model "reads" are located and their names
Image
NOTE: as it can be seen, it is understood here the first part of the path: portal 2/portal2/materials/

- This is how it should look like after you edit it on TOP part:

Image

- This is how it should look like after you edit it on BOTTOM part:

Image

- Do not forget to 'Save' the model file (Ctrl+S) after your changes! :D

So now you've got a hexed model that must be located in your folder models/npcs/arachnaphob_sphere/ so that your game can load it correctly, and this hexed model will read its textures from inside the folder materials/npcs/arachnaphob_sphere/, ok?

3. Now the textures... If you take a close look to the picture above where I showed the bottom part of the model file, you'll see some clearly recognizable texture names and paths. After the hex edition, the model will look into materials/models/npcs/arachnaphob_sphere/, and these are the textures it will need:

- personality_sphere.VMT
- personality_sphere.VTF
- personality_sphere_glass.VMT
- personality_sphere_glass.VTF
- personality_sphere_light_damaged.VMT
- personality_sphere_light_damaged.VTF
- personality_sphere_clean.VMT
- personality_sphere_clean.VTF
- personality_sphere_lights.VMT
- personality_sphere_lights.VTF

Well, those are the textures we need to extract now and those are the texture that you can edit to your wish... So we need to use again the GFCScape and extract them from the pak01_dir.VPK:

Image

(As you can see, now we need to go to materials/models/npcs/personnality_sphere/ folder)

- Now Extract them to your physical folder previously created: materials/models/npcs/arachnaphob_sphere/. And remember to correct the paths inside the .VMT in the parameter $baseTexture from "models/npcs/personality_sphere/personality_sphere" to "models/npcs/arachnaphob_sphere/personality_sphere".

If you did everything as explained here, you should be able to have your model in the game without problems. Let me know if you did this way and if it works...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

That's weird, for some reason my post didn't show up, oh well. I'll just type it again.

Anyways, This is a lot more complex than I thought. I also do know what a modpack is. The reason there may be some confusion is because originally I wanted a workshop and modpack version, but now I think i'll still do both but substitute the space core for the custom core in the workshop version.

So when I tried extracting the .mdl file for the first time, I saw that it referenced a file called personality_sphere_lights or something instead of the original filename I was using. Anyways, still pretty confused on how to use the hex editor program (Sorry I forgot yet another name.) I followed the tutorial exactly and still could not get it to work

Also, I feel because of the confusion that's going on, I'll provide all of the information that I think would be necessary. I am trying to create a custom eye for a core named Thompson. I don't care if it replaces my in game eye for Wheatley, I just want to get there to be a custom eye for him.

By the way, josepezdj, I looked at some of your maps and they are incredible. :notworthy: ...and I was wondering if you could join my friend and I in the building of our modpack. Send me a PM on the forums if you want. I would be real grateful if you joined our little crew. We both suck at making puzzles too, so it would be nice having someone who was good at it. I"ll send you a few sample maps if you want to just check it out first. Thanks for being a really great help. :thumbup:

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb
PreviousPage 2 of 4Next