Modme Forums

How to Add an Image on the Screen

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: alexisloic21

How to add a image on the Screen ???


ModmeBot:

Reply By: natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element


ModmeBot:

Reply By: alexisloic21

natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element

How to make a HUD element for the server or client


ModmeBot:

Reply By: natesmithzombies

hud = NewClientHudElem(client);



or

hud = NewHudElem();



There is a bit more to it than that. I recommend that you look for this bits in my released powerups scripts and see exactly what I did. The options are not easily explained and I dont even have them memorized. I always reference a hud elem script and copy and paste to get what I need. Then adjust the x and y locations to align properly


ModmeBot:

Reply By: alexisloic21

natesmithzombies
hud = NewClientHudElem(client);



or

hud = NewHudElem();



There is a bit more to it than that. I recommend that you look for this bits in my released powerups scripts and see exactly what I did. The options are not easily explained and I dont even have them memorized. I always reference a hud elem script and copy and paste to get what I need. Then adjust the x and y locations to align properly

OK thanx


ModmeBot:

Reply By: alexisloic21

natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element

I did this but it does not work

hud = NewClientHudElem( self );
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.alpha = 1;
	hud SetShader( "screamer_materlial" , 64, 64 );
	hud SetText("cccccc");


ModmeBot:

Reply By: natesmithzombies

alexisloic21
natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element

I did this but it does not work

hud = NewClientHudElem( self );
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.alpha = 1;
	hud SetShader( "screamer_materlial" , 64, 64 );
	hud SetText("cccccc");

You cant SetText and SetShader at the same time. That could be an error or you could have not precached the material in script, or added it to zone. Take a look at my powerup scripts to see how I added the shader


ModmeBot:

Reply By: alexisloic21

natesmithzombies
alexisloic21
natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element

I did this but it does not work

hud = NewClientHudElem( self );
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.alpha = 1;
	hud SetShader( "screamer_materlial" , 64, 64 );
	hud SetText("cccccc");

You cant SetText and SetShader at the same time. That could be an error or you could have not precached the material in script, or added it to zone. Take a look at my powerup scripts to see how I added the shader

hey i chek you script and i find my problems thanks ;D


ModmeBot:

Reply By: alexisloic21

natesmithzombies
alexisloic21
natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) Setting the Shader of the HUD element

I did this but it does not work

hud = NewClientHudElem( self );
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.alpha = 1;
	hud SetShader( "screamer_materlial" , 64, 64 );
	hud SetText("cccccc");

You cant SetText and SetShader at the same time. That could be an error or you could have not precached the material in script, or added it to zone. Take a look at my powerup scripts to see how I added the shader

i have a another problem :/

<img src="https://image.noelshack.com/minis/2017/05/1485953581-screamer-bug.png">

<img src="https://image.noelshack.com/minis/2017/05/1485953713-bug2.png">

<img src="https://image.noelshack.com/minis/2017/05/1485953731-bug3.png">


ModmeBot:

Reply By: Exofile

alexisloic21
natesmithzombies
alexisloic21
natesmithzombies

You need to be more specific. What type of images? HUD elements are how you place an image on screen, but there are multiple steps to the process:

1) creating a 2d material in APE

2) Adding the material to your zone file

3) Precaching the material in script

4) Creating a HUD element for the server or client

5) SeThtting the Shader of the HUD element

I did this but it does not work

hud = NewClientHudElem( self );
	hud.alignX = "center";
	hud.alignY = "bottom";
	hud.horzAlign = "center";
	hud.vertAlign = "bottom";
	hud.alpha = 1;
	hud SetShader( "screamer_materlial" , 64, 64 );
	hud SetText("cccccc");

You cant SetText and SetShader at the same time. That could be an error or you could have not precached the material in script, or added it to zone. Take a look at my powerup scripts to see how I added the shader

i have a another problem :/

<img src="https://image.noelshack.com/minis/2017/05/1485953581-screamer-bug.png">

<img src="https://image.noelshack.com/minis/2017/05/1485953713-bug2.png">

<img src="https://image.noelshack.com/minis/2017/05/1485953731-bug3.png">

These images are far too small for anyone to see what is going on, please upload images that are bigger.


ModmeBot:

Reply By: alexisloic21

:1485953581-screamer-bug.png:

:1485953668-bug3.png:

:1485953713-bug2.png:


ModmeBot:

Reply By: alexisloic21

?


ModmeBot:

Reply By: Exofile

alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.


ModmeBot:

Reply By: alexisloic21

Exofile
alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.

Yes i know that not everyone has the availability to reply to my message


ModmeBot:

Reply By: natesmithzombies

alexisloic21
Exofile
alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.

Yes i know that not everyone has the availability to reply to my message

Just look at any of my powerup releases and see all HUD related functions and open up the GDT. That will show you exactly how to do it


ModmeBot:

Reply By: alexisloic21

natesmithzombies
alexisloic21
Exofile
alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.

Yes i know that not everyone has the availability to reply to my message

Just look at any of my powerup releases and see all HUD related functions and open up the GDT. That will show you exactly how to do it

There is a size to respect because when I put your image in the script it works but when I put mine it does not work I made all the adjustments that you made in the APE


ModmeBot:

Reply By: alexisloic21

alexisloic21
natesmithzombies
alexisloic21
Exofile
alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.

Yes i know that not everyone has the availability to reply to my message

Just look at any of my powerup releases and see all HUD related functions and open up the GDT. That will show you exactly how to do it

There is a size to respect because when I put your image in the script it works but when I put mine it does not work I made all the adjustments that you made in the APE

Its solved thanks for all with quote my reply


ModmeBot:

Reply By: natesmithzombies

alexisloic21
alexisloic21
natesmithzombies
alexisloic21
Exofile
alexisloic21

?

please wait for someone to reply before you bump your post. You can't expect people to always be at hand when you need help.

Yes i know that not everyone has the availability to reply to my message

Just look at any of my powerup releases and see all HUD related functions and open up the GDT. That will show you exactly how to do it

There is a size to respect because when I put your image in the script it works but when I put mine it does not work I made all the adjustments that you made in the APE

Its solved thanks for all with quote my reply

Nice! You are welcome