Home » Renegade Discussions » Mod Release Forum » scripts.dll 3.4.2 is out
|
|
|
|
Re: scripts.dll 3.4.2 is out [message #279432 is a reply to message #278732] |
Thu, 16 August 2007 12:29 |
Cunin
Messages: 87 Registered: April 2007
Karma: 0
|
Recruit |
|
|
I found sone problems while working on a HUD. I started making it with version 3.4.1 and the problems are still there with this new version.
1) QuadNXPos and QuadNYPos are reversed, the X is actually Y and the Y is X.
2) The QuadNTop, QuadNLeft, QuadNBottom & QuadNRight functions are broken. They don't uses the values I give them in the right way, like the QuadNBottom value should be in pixel but if I give it my texture height it crops it, I need to put a higher number than the real texture height.
Also, my texture's proportions are never respected, it always try to make it square-shaped even if I use a rectangular shape (width higher than height). I also tried to stretch it horizontally but nothing changes. It's like the height and the width have a relation. I tried to stretch it to 192x45 (the original texture is 96x45) and it shows it exactly the same, I just need to set the Bottom and Right with the same number (like 96) and it shows it fully but as a square, otherwise if I'm using the correct resolution it will cut the texture.
Also, all the next Quad's are working differently, like the second being stretched 4x vertically.
Am I doing something wrong?
If you need more info just let me know.
EDIT:
I forgot to mention that I'm just using hud.ini with Renegade, and the texture format is either hud or tga, I get same results.
[Updated on: Thu, 16 August 2007 12:40] Report message to a moderator
|
|
|
|
Re: scripts.dll 3.4.2 is out [message #279529 is a reply to message #279432] |
Fri, 17 August 2007 00:52 |
Tunaman
Messages: 1190 Registered: January 2005
Karma: 2
|
General (1 Star) |
|
|
Cunin wrote on Thu, 16 August 2007 15:29 | I found sone problems while working on a HUD. I started making it with version 3.4.1 and the problems are still there with this new version.
1) QuadNXPos and QuadNYPos are reversed, the X is actually Y and the Y is X.
2) The QuadNTop, QuadNLeft, QuadNBottom & QuadNRight functions are broken. They don't uses the values I give them in the right way, like the QuadNBottom value should be in pixel but if I give it my texture height it crops it, I need to put a higher number than the real texture height.
Also, my texture's proportions are never respected, it always try to make it square-shaped even if I use a rectangular shape (width higher than height). I also tried to stretch it horizontally but nothing changes. It's like the height and the width have a relation. I tried to stretch it to 192x45 (the original texture is 96x45) and it shows it exactly the same, I just need to set the Bottom and Right with the same number (like 96) and it shows it fully but as a square, otherwise if I'm using the correct resolution it will cut the texture.
Also, all the next Quad's are working differently, like the second being stretched 4x vertically.
Am I doing something wrong?
If you need more info just let me know.
EDIT:
I forgot to mention that I'm just using hud.ini with Renegade, and the texture format is either hud or tga, I get same results.
|
The code is fucked up yes, make sure that your textures have the same height and width. If you'd like for me to fix these bugs I could make a custom shaders.dll for you(I made one for myself that fixes a few things and adds new stuff too) but it might take a little while.
|
|
|
Re: scripts.dll 3.4.2 is out [message #279545 is a reply to message #278732] |
Fri, 17 August 2007 02:36 |
|
Tunaman, could you please post the source changes to your shaders.dll (i.e. the edited shaderhud.cpp etc). I want to look at what you changed.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
Re: scripts.dll 3.4.2 is out [message #279576 is a reply to message #279432] |
Fri, 17 August 2007 08:32 |
Cunin
Messages: 87 Registered: April 2007
Karma: 0
|
Recruit |
|
|
Cunin wrote on Thu, 16 August 2007 14:29 |
EDIT:
I forgot to mention that I'm just using hud.ini with Renegade, and the texture format is either hud or tga, I get same results.
|
I obviously meant dds not hud lol sorry.
Tunaman wrote on Fri, 17 August 2007 02:52 |
The code is fucked up yes, make sure that your textures have the same height and width. If you'd like for me to fix these bugs I could make a custom shaders.dll for you(I made one for myself that fixes a few things and adds new stuff too) but it might take a little while.
|
I'd appreciate it, but as jonwil requested your code and is willing to fix this stuff, I'd like to have a public version of the scripts fixed and working, so I can just tell everyone "get the latest scripts to make this hud working" .
If you have 1 already compiled then post it, I can use it until the official scripts gets fixed.
Thanks.
|
|
|
Re: scripts.dll 3.4.2 is out [message #279581 is a reply to message #279529] |
Fri, 17 August 2007 09:14 |
|
saberhawk
Messages: 1068 Registered: January 2006 Location: ::1
Karma: 0
|
General (1 Star) |
|
|
Tunaman wrote on Fri, 17 August 2007 02:52 |
The code is fucked up yes, make sure that your textures have the same height and width. If you'd like for me to fix these bugs I could make a custom shaders.dll for you(I made one for myself that fixes a few things and adds new stuff too) but it might take a little while.
|
It's more important that the image dimensions are powers of two than the same width and height. Powers of 2 are 1,2,4,8,16,32,64,128,256,512,1024,2048,etc etc etc. Mix and match any of them at will.
[Updated on: Fri, 17 August 2007 09:14] Report message to a moderator
|
|
|
Re: scripts.dll 3.4.2 is out [message #279585 is a reply to message #278732] |
Fri, 17 August 2007 09:38 |
Tunaman
Messages: 1190 Registered: January 2005
Karma: 2
|
General (1 Star) |
|
|
I know that, the code in shaderhud.cpp takes the width(I believe) and assumes that the height is the same.. I figured this out the hard way. :\ I don't know why I said the code was all messed up though, I guess I was kinda tired and in a hurry.
I want to clean up my code a little bit and then I'll post the source. ^^
|
|
|
Re: scripts.dll 3.4.2 is out [message #279586 is a reply to message #279581] |
Fri, 17 August 2007 09:40 |
Cunin
Messages: 87 Registered: April 2007
Karma: 0
|
Recruit |
|
|
Saberhawk wrote on Fri, 17 August 2007 11:14 |
Tunaman wrote on Fri, 17 August 2007 02:52 |
The code is fucked up yes, make sure that your textures have the same height and width. If you'd like for me to fix these bugs I could make a custom shaders.dll for you(I made one for myself that fixes a few things and adds new stuff too) but it might take a little while.
|
It's more important that the image dimensions are powers of two than the same width and height. Powers of 2 are 1,2,4,8,16,32,64,128,256,512,1024,2048,etc etc etc. Mix and match any of them at will.
|
So i'll maybe need to add pixels to the textures so they can be square-shaped and with a power of 2 width and height to fix it?
|
|
|
Re: scripts.dll 3.4.2 is out [message #279626 is a reply to message #279581] |
Fri, 17 August 2007 13:11 |
|
Saberhawk wrote on Fri, 17 August 2007 17:14 |
Tunaman wrote on Fri, 17 August 2007 02:52 |
The code is fucked up yes, make sure that your textures have the same height and width. If you'd like for me to fix these bugs I could make a custom shaders.dll for you(I made one for myself that fixes a few things and adds new stuff too) but it might take a little while.
|
It's more important that the image dimensions are powers of two than the same width and height. Powers of 2 are 1,2,4,8,16,32,64,128,256,512,1024,2048,etc etc etc. Mix and match any of them at will.
|
2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768 (those are from memory... pointless or what?)
Renguard is a wonderful initiative
Toggle Spoiler
BBC news, quoting... |
Supporters of Proposition 8 will argue California does not discriminate against gays, as the current law allows them to get married - as long as they wed a partner of the opposite sex.
|
halokid wrote on Mon, 11 October 2010 08:46 |
R315r4z0r wrote on Mon, 11 October 2010 15:35 |
|
the hell is that?
|
|
|
|
|
Re: scripts.dll 3.4.2 is out [message #279639 is a reply to message #279634] |
Fri, 17 August 2007 13:49 |
|
Chuck Norris
Messages: 312 Registered: July 2007
Karma: 0
|
Recruit |
|
|
Cunin wrote on Fri, 17 August 2007 15:36 | well i don't think any current hardware will support textures so big anyway lol.
Should be 2048 for dx9 cards.
| It has nothing to do with DirectX. nVidia cards since the GeForce 3 could support up to 4096 x 4096. ATi cards haven't been able to until the Radeon X1x00 series.
When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
Chuck Norris is the reason why Waldo is hiding.
When Chuck Norris does a pushup, he isn’t lifting himself up, he’s pushing the Earth down.
Chuck Norris can slam a revolving door.
|
|
|
|
|
Re: scripts.dll 3.4.2 is out [message #279862 is a reply to message #278732] |
Sat, 18 August 2007 17:49 |
|
Chuck Norris
Messages: 312 Registered: July 2007
Karma: 0
|
Recruit |
|
|
Any high-end card from at least the last 4 generations, and any mid-range card from at least the last 2 or 3 generations, should be able to run Renegade at higher resolutions, and if it's not bottlenecked by a 128-bit memory bus (not sure if the latest mid-range cards still use that or if it's bumped up to 256-bit), then you'll be able to use high levels of AA and AF as well. As long as you're not buying a dinosaur, any video card these days will handle Renegade no problem.
When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
Chuck Norris is the reason why Waldo is hiding.
When Chuck Norris does a pushup, he isn’t lifting himself up, he’s pushing the Earth down.
Chuck Norris can slam a revolving door.
|
|
|
|
Re: scripts.dll 3.4.2 is out [message #279882 is a reply to message #278732] |
Sat, 18 August 2007 19:59 |
|
Chuck Norris
Messages: 312 Registered: July 2007
Karma: 0
|
Recruit |
|
|
Really? Such as? That's a new one to me.
When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
Chuck Norris is the reason why Waldo is hiding.
When Chuck Norris does a pushup, he isn’t lifting himself up, he’s pushing the Earth down.
Chuck Norris can slam a revolving door.
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Jan 17 23:04:46 MST 2025
Total time taken to generate the page: 0.01450 seconds
|