The "How do I..." Thread

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Re: The "How do I..." Thread

Postby worldendDominator » Sun Nov 19, 2017 6:48 am

Zeberpal wrote:I'm trying to get some actors, which appear/dissapear as you approach/walk away to them.
What could be hte problem of script not working properly?(actors are always invisible despite the distance from player to actor)

Make sure you have the activators right. What exactly is the r parameter?

cortlong50 wrote:when using the (...) script...how do i get it to scale across the entire screen? cant seem to figure it out. does the image have to match resolution? because if so....that sucks.

You can try SetHudSize.
User avatar
worldendDominator
 
Joined: 17 May 2015

Re: The "How do I..." Thread

Postby cortlong50 » Sun Nov 19, 2017 10:39 am

worldendDominator wrote:
cortlong50 wrote:when using the (...) script...how do i get it to scale across the entire screen? cant seem to figure it out. does the image have to match resolution? because if so....that sucks.

You can try SetHudSize.


ive been messing with it and cant figure it out, including the sethudsize. i have zero idea. especially since whoever writes the wiki obviously communicates like a robot and reads like redundant stero instructions. iwant it to work for all resolutions, just a quick flash of some creepy shit. any help would be appreciated, right now i have

Code: Select allExpand view
//sethudsize (1600,900,false);
   SetFont("TUMBLR");
   HudMessage(s:"A" ; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 0.0, 0.0, 1.0);



like seriously why hasnt just "flash image in current resoltuion" been implemented. especially with how sethudsize all of a sudden changes the way you position it on the screen? why would that even be the case? why not just keep it the same system when used in conjunction.

jesus im pissed about this hahaha

like how is "Now, the number of pixels between 25 and 175 is 175 - 25 = 150. So, (150 * (h / maxh)) is the actual amount of pixels between 25 and 175 to place the > marker. Due to integer division, this must be refactored to ((150 * h) / maxh). Finally, it starts at 25 and ends at 175, so the value must be subtracted from 175 to get the final formula." even a coherent sentence let alone something somebody could learn from? so the value (what value) must be subtracted from 175 (how did you get to 175 from 150? what just happened?) to get the final formula." never actually saying what the final formula is.

im seriously going to master ACS functions so I can go back and rewrite the wiki because half of thethings ive read tonight have made absolutely no sense to me. and if you can read that...cool. i cant.

ive edited this comment like 4 times to really drive home my disdain for this "put an image on the screen" business because it is a wonky hacky feeling system that i feel definitely needs an upgrade...graf? you down?
Last edited by cortlong50 on Sun Nov 19, 2017 11:17 am, edited 2 times in total.
User avatar
cortlong50
im not the guy from that south park episode with the wrist brace
 
Joined: 24 Jun 2013
Location: bill murray. the city.

Re: The "How do I..." Thread

Postby Nevander » Sun Nov 19, 2017 10:51 am

Wouldn't you just do SetHudSize of the resolution of the image?
User avatar
Nevander
The Doomslayer
 
Joined: 06 Jan 2014
Location: United States

Re: The "How do I..." Thread

Postby cortlong50 » Sun Nov 19, 2017 11:21 am

Nevander wrote:Wouldn't you just do SetHudSize of the resolution of the image?


with ACS code

Code: Select allExpand view
sethudsize (500.0,378.0,true);
   SetFont("TUMBLR");
   HudMessage(s:"A" ; HUDMSG_PLAIN, 0, CR_UNTRANSLATED,250.0,189.0, 1.0);


setting the hudsize to the size of the image and then putting in half the coordinates to center it (as the article says) i...just dont see anything at all on my screen.

in fact using hudsize at all doesnt show anything on my screen when activated. its...annoying.
User avatar
cortlong50
im not the guy from that south park episode with the wrist brace
 
Joined: 24 Jun 2013
Location: bill murray. the city.

Previous

Return to Editing (Archive)

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests