Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll 3.2.2 WIP update
scripts.dll 3.2.2 WIP update [message #254241] Mon, 16 April 2007 07:25 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Here is a list of all the things fixed so far in scripts.dll 3.2.2:
1.Improved the normal map shader (the goal with 3.2.2 is to have all the bugs gone and to make it work as close to perfectly as possible)
2.Cleaned up the way scripts.dll loads the other dlls (better output when files are missing or cant load)
3.Cleaned up a possible memory leak in except.cpp
4.Cleaned up a case where some memory could be cleaned up more than once by accident so that it wont try to clean it up if it is already cleaned up. (prevents a possible crash at that point)
5.Cleaned up the way Tangent and Binormal data is calculated (related to point #1 about the normal map shader)
6.Fixed a possible bug in engine_net.cpp that may have lead to a crash
7.Cleaned up the Get_Vehicle_Mode engine call so that if you pass a soldier, it will try to retrieve the soldiers vehicle if they have one and return the mode of that.
8.Fixed a bug in WideStringClass::Get_Header that affected linux systems.
9.New code for disabling fog when shaders render so that fog is only disabled on those cards where not disabling it breaks stuff (specifically any card that supports Shader Model 3.0)
10.Fixed the ExpVehFac logic to correctly set the LastFlyVehOwner variable.
11.Changed how the ExpVehFac logic makes a flying unit "untargetable" by the base defenses to use the new Set_Vehicle_Is_Visible engine call added in 3.2
12.Fixed a bug in shaders.cpp to do with correctly releasing the memory used for per-map shader databases.
13.Fixed a bug that caused the game to crash anytime a model viewer control (such as used by the View console command or the Encyclopedia/Nod database in single player) displayed a model with certain kinds of dazzles.
14.Fixed a bug that made the game crash anytime it tried to render a mesh with the Scale, SineLinearOffset, ZigZagLinearOffset, or Random texture mappers.
15.Fixed a bug which could cause the wrong shadow to be drawn for a unit under certain rare circumstances
16.Fixed a bug that would cause the game to crash on loading if you had an ATI graphics card and turned on Multi-Sample Anti-Aliasing.
17.Changed the Exit console command to hopefully not crash anymore
18.Fixed some off-by-one errors in the sidebar code that were causing problems with one of the maps in the current WIP of RA:APB
19.Added code to Direct3DCreate8 to return the correct value in the case of a failure creating the Direct3d9 object.
20.Added code to d3d8.dll to make things work correctly when the PIX direct3d log tool is used with scripts.dll 3.2.x loaded

Currently still to fix:
1.Find out why Saberahwk is having problems with PIX even with this fix (could be Vista related) and solve whatever problem is the cause
2.Fix the mobile gap generator (someone reported that it does not affect the allies properly if a soviet steals one and starts driving it)
3.Finish fixing the normal map shader and the Tangent/Binormal generation code
4.Find out why the console is not working for some people who are playing on Vista
5.Test the custom kill message scripts and fix any bugs that show up (right now I think there may be a bug to do with someone planting a beacon or C4 and being inside a vehicle when it goes off, need to test that)


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.2.2 WIP update [message #254244 is a reply to message #254241] Mon, 16 April 2007 07:43 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Thats a lot of work, nice!

This may be a bit early, but it would make a few peoples lifes a bit easier.


void KillHook(GameObject *Obj, GameObject *Killer, int LastDamage)
{

    //...
}

//...


AddKillHook(KillHook);



i could make this, i'm just no good with documentation.
Re: scripts.dll 3.2.2 WIP update [message #254258 is a reply to message #254244] Mon, 16 April 2007 10:43 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Exit and mapper fixes both make me happy.

Re: scripts.dll 3.2.2 WIP update [message #254260 is a reply to message #254244] Mon, 16 April 2007 10:53 Go to previous messageGo to next message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

gamemodding wrote on Mon, 16 April 2007 16:43

i could make this, i'm just no good with documentation.


then make it and I do the documentation Razz


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: scripts.dll 3.2.2 WIP update [message #254308 is a reply to message #254241] Mon, 16 April 2007 16:01 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

3.2.2 is a bug fix release so no I cant add the kill hook.
However, it is a usefull idea and I will consider adding it in the future.


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.2.2 WIP update [message #254358 is a reply to message #254241] Tue, 17 April 2007 03:45 Go to previous messageGo to next message
Crow3333 is currently offline  Crow3333
Messages: 26
Registered: March 2007
Location: Germany
Karma: 0
Recruit

very good work Thumbs Up

short question:
how can i open the shaders.sdb file to edit or add normalmaps? I tried the win-editor, but it didn´t really work.

[Updated on: Tue, 17 April 2007 03:46]

Report message to a moderator

Re: scripts.dll 3.2.2 WIP update [message #254360 is a reply to message #254358] Tue, 17 April 2007 04:13 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Just use sdbedit.exe
Re: scripts.dll 3.2.2 WIP update [message #254361 is a reply to message #254260] Tue, 17 April 2007 05:10 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Cat998 wrote on Mon, 16 April 2007 18:53

gamemodding wrote on Mon, 16 April 2007 16:43

i could make this, i'm just no good with documentation.


then make it and I do the documentation Razz



Ok Smile ill speek to you on MSN
Re: scripts.dll 3.2.2 WIP update [message #255384 is a reply to message #254241] Tue, 24 April 2007 03:47 Go to previous messageGo to next message
Crow3333 is currently offline  Crow3333
Messages: 26
Registered: March 2007
Location: Germany
Karma: 0
Recruit

Hello again:
I´ve got a problem, everytime I try to use the normalmapshaders the models gets black. What exactly must I do to get it to work? I renamed the texture on the model (its a character) to c_ag_gdi_mg then I exportet everything, made a normal map with the name c_ag_gdi_mg_n.tga and put it in the datafolder like the other files. Then I edited the shaders.sdb and made a new shader with the texture file "c_ag_gdi_mg_n.tga" in the normalmap slot. The other settings were left to the default. The mammoth and Ftank shaders are working fine, but i can´t get my files to work.
Re: scripts.dll 3.2.2 WIP update [message #259259 is a reply to message #254241] Thu, 17 May 2007 23:23 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
where do we download that script update or what ever?
Re: scripts.dll 3.2.2 WIP update [message #259287 is a reply to message #254241] Fri, 18 May 2007 03:13 Go to previous message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
It's posted a few topics down the forum...

http://4camp.net/scripts322.exe
Previous Topic: Me Again
Next Topic: Client DDE
Goto Forum:
  


Current Time: Thu Dec 26 19:28:50 MST 2024

Total time taken to generate the page: 0.00990 seconds