Re: [hlcoders] Modding Problems

2015-03-29 Thread Gavin Isgar
Thanks Ken, i was just tired last night and having a rough time with some
stuff, thanks though!

On Sun, Mar 29, 2015 at 5:58 AM, Ken Swisher  wrote:

> It says right there...
> The images displayed in the new game dialogue are 152x86. Since texture
> dimensions must both be a power of two, your VTFs will be 256x128 with a
> border to the right and bottom.
>
> That means that the full dimensions of the image will be 256 wide by 128
> tall, but only a portion of that gets used. 152 x 86 to be specific. What
> you should do is create your chapter images as 152x86 images, and then
> either edit that image's canvas size to 256x128 (but don't scale/stretch
> the actual image), or take that 152x86 image and copy it into a new 256x128
> image, and just make sure it is positioned in the top-left. The unused
> portion of the image should just be black.
>
>
>  Original message 
> From: Gavin Isgar 
> Date: 03/28/2015 10:36 PM (GMT-05:00)
> To: Discussion of Half-Life Programming 
> Subject: Re: [hlcoders] Modding Problems
>
> Alright I guess
>
> On Sat, Mar 28, 2015 at 10:24 PM, Tom Schumann 
> wrote:
>
>> Other than that I'd just use the images from Half-Life 2 as a base.
>>
>> On 29 March 2015 at 12:20, Gavin Isgar  wrote:
>>
>>> Tom, i checked that but, to be honest, i didnt understand it a bit.
>>> Anything else?
>>>
>>> On Sat, Mar 28, 2015 at 9:40 PM, Tom Schumann 
>>> wrote:
>>>
 There's some information on that at
 https://developer.valvesoftware.com/wiki/Background#Images

 On 29 March 2015 at 09:09, Gavin Isgar  wrote:

> Hey guys, im having another problem again and couldnt find a fix on
> the internet. I dont know the right size for chapter thumbnails, what size
> do i make the picture(not the vtf or vmt)?
>
> On Thu, Mar 26, 2015 at 8:53 PM, Ben Lubar 
> wrote:
>
>> The two dots means "parent directory". You start in materials/vgui, go
>> up one to materials, then to materials/logo and
>> materials/logo/hl2rslogo1.vmt.
>>
>> On Thu, Mar 26, 2015 at 7:46 PM, Gavin Isgar 
>> wrote:
>> > Yea Jesse, here's how i fixed it! So in my materials folder, i made
>> a logo
>> > folder, inside i put both put the vmt and vtf file with the same
>> name.
>> > Inside the vmt file, i put:
>> >
>> > "UnlitGeneric"
>> > {
>> > "$basetexture" "logo/hl2rslogo1"
>> > "$nolod" 1
>> > "$translucent" 1
>> > }
>> >
>> > The path automatically detects the material folder, so just put the
>> folder
>> > and the name of both the vmt and vtf file(no extension). Then in my
>> > gamelogo.res in my resource folder, i put:
>> >
>> > Resource/GameLogo.res
>> > {
>> > GameLogo
>> > {
>> > ControlName EditablePanel
>> > fieldName GameLogo
>> > xpos 0
>> > ypos 0
>> > zpos 50
>> > wide 400
>> > tall 100
>> > autoResize 1
>> > pinCorner 0
>> > visible 1
>> > enabled 1
>> > offsetX -20
>> > offsetY -15
>> > }
>> >
>> > Logo
>> > {
>> > ControlName ImagePanel
>> > fieldName Logo
>> > xpos 0
>> > ypos 0
>> > zpos 50
>> > wide 400
>> > tall 100
>> > visible 1
>> > enabled 1
>> > image ../logo/hl2rslogo1
>> > scaleImage 1
>> > }
>> > }
>> >
>> > The dots in the path specify how many folders are before vmt and
>> vtf, but i
>> > rather just do it like this:
>> >
>> > 2 dots specifies 2 folders/files like logo/hl2rslogo1, thats 1
>> folder, 1
>> > file! If it was material/logo/hl2rslogo1 it would be 3 dots. Thats
>> how i<
>>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
>
>
>
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders



Re: [hlcoders] Modding Problems

2015-03-29 Thread Ken Swisher


It says right there...The images displayed in the new game dialogue are 152x86. 
Since texture dimensions must both be a power of two, your VTFs will be 256x128 
with a border to the right and bottom.
That means that the full dimensions of the image will be 256 wide by 128 tall, 
but only a portion of that gets used. 152 x 86 to be specific. What you should 
do is create your chapter images as 152x86 images, and then either edit that 
image's canvas size to 256x128 (but don't scale/stretch the actual image), or 
take that 152x86 image and copy it into a new 256x128 image, and just make sure 
it is positioned in the top-left. The unused portion of the image should just 
be black.

 Original message 
From: Gavin Isgar  
Date: 03/28/2015  10:36 PM  (GMT-05:00) 
To: Discussion of Half-Life Programming  
Subject: Re: [hlcoders] Modding Problems 

Alright I guess
On Sat, Mar 28, 2015 at 10:24 PM, Tom Schumann  wrote:
Other than that I'd just use the images from Half-Life 2 as a base.
On 29 March 2015 at 12:20, Gavin Isgar  wrote:
Tom, i checked that but, to be honest, i didnt understand it a bit. Anything 
else?
On Sat, Mar 28, 2015 at 9:40 PM, Tom Schumann  wrote:
There's some information on that at 
https://developer.valvesoftware.com/wiki/Background#Images
On 29 March 2015 at 09:09, Gavin Isgar  wrote:
Hey guys, im having another problem again and couldnt find a fix on the 
internet. I dont know the right size for chapter thumbnails, what size do i 
make the picture(not the vtf or vmt)? 
On Thu, Mar 26, 2015 at 8:53 PM, Ben Lubar  wrote:
The two dots means "parent directory". You start in materials/vgui, go

up one to materials, then to materials/logo and

materials/logo/hl2rslogo1.vmt.



On Thu, Mar 26, 2015 at 7:46 PM, Gavin Isgar  wrote:

> Yea Jesse, here's how i fixed it! So in my materials folder, i made a logo

> folder, inside i put both put the vmt and vtf file with the same name.

> Inside the vmt file, i put:

>

> "UnlitGeneric"

> {

> "$basetexture" "logo/hl2rslogo1"

> "$nolod" 1

> "$translucent" 1

> }

>

> The path automatically detects the material folder, so just put the folder

> and the name of both the vmt and vtf file(no extension). Then in my

> gamelogo.res in my resource folder, i put:

>

> Resource/GameLogo.res

> {

> GameLogo

> {

> ControlName EditablePanel

> fieldName GameLogo

> xpos 0

> ypos 0

> zpos 50

> wide 400

> tall 100

> autoResize 1

> pinCorner 0

> visible 1

> enabled 1

> offsetX -20

> offsetY -15

> }

>

> Logo

> {

> ControlName ImagePanel

> fieldName Logo

> xpos 0

> ypos 0

> zpos 50

> wide 400

> tall 100

> visible 1

> enabled 1

> image ../logo/hl2rslogo1

> scaleImage 1

> }

> }

>

> The dots in the path specify how many folders are before vmt and vtf, but i

> rather just do it like this:

>

> 2 dots specifies 2 folders/files like logo/hl2rslogo1, thats 1 folder, 1

> file! If it was material/logo/hl2rslogo1 it would be 3 dots. Thats how i<___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders