Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: RandomTiger on July 27, 2002, 10:06:47 pm

Title: Thanks testers, GF4 people read this
Post by: RandomTiger on July 27, 2002, 10:06:47 pm
Thanks to everyone who tested stuff for me, looks like the code works and doesnt cause any problems for other cards.

For those geforce 4 and 3 users who experienced font corruptions just incase you didnt know Galactic Emperor has a brilliant site that lets you play FS1 through the FS2 engine. This means you can use my exe to play FS1 and avoid the font corruption in that as well. Hoorah.

Also that higher res is just great. Heres the link:

http://www.3dactionplanet.com/hlp/hosted/fsport/dloads.html
Title: Thanks testers, GF4 people read this
Post by: Inquisitor on July 27, 2002, 10:08:46 pm
Is this the same fix that you posted? Any changes to the final code snippet?
Title: Thanks testers, GF4 people read this
Post by: RandomTiger on July 27, 2002, 10:16:39 pm
No thats it. Im surpised it doesnt have any affect on other cards. Must be some kind of legacy rounding error or something. Not quite sure if I should check it in yet though (or how for that matter). I have a funny feeling this bug will disappear if the code is upgraded to DX8. Doesnt matter too much. Its such a tiny change.
Title: Re: Thanks testers, GF4 people read this
Post by: DTP on July 28, 2002, 10:46:29 am
Quote
Originally posted by RandomTiger
Thanks to everyone who tested stuff for me, looks like the code works and doesnt cause any problems for other cards.

For those geforce 4 and 3 users who experienced font corruptions just incase you didnt know Galactic Emperor has a brilliant site that lets you play FS1 through the FS2 engine. This means you can use my exe to play FS1 and avoid the font corruption in that as well. Hoorah.

Also that higher res is just great. Heres the link:

http://www.3dactionplanet.com/hlp/hosted/fsport/dloads.html


:D
Title: Thanks testers, GF4 people read this
Post by: Inquisitor on July 28, 2002, 10:52:20 am
Alrighty, I'll post to the dev list, see if we can integrate this.
Title: Thanks testers, GF4 people read this
Post by: Mehrunes on July 28, 2002, 11:35:08 am
Goody. I think Milod was having the same problem in the development of Starshatter. I'm not sure what version of DX he's using though.
Title: Thanks testers, GF4 people read this
Post by: penguin on August 05, 2002, 07:36:09 am
Sorry to burst anyone's bubble, but RandomTiger's patch makes the text look awful on my box.  With the 4-line patch reverted to the original, it looks fine.

It has a POS integrated ATI RAGE IIC chipset. :mad:

Don't tell me that it's my own faullt for not testing ;)

I guess this oughta be some kind of configuration parameter... that was Inquisitor's suggestion.
Title: Thanks testers, GF4 people read this
Post by: DTP on August 05, 2002, 07:54:59 pm
Quote
Originally posted by penguin
Sorry to burst anyone's bubble, but RandomTiger's patch makes the text look awful on my box.  With the 4-line patch reverted to the original, it looks fine.

It has a POS integrated ATI RAGE IIC chipset. :mad:

Don't tell me that it's my own faullt for not testing ;)

I guess this oughta be some kind of configuration parameter... that was Inquisitor's suggestion.


For the time being, i could quickly make this a commandline option.

like fs2_open.exe -GF4FIX

will activate this
Title: Thanks testers, GF4 people read this
Post by: WMCoolmon on August 05, 2002, 08:25:23 pm
:yes:
Title: Thanks testers, GF4 people read this
Post by: Inquisitor on August 06, 2002, 06:23:20 am
Command line sounds good, till we get some kind of video set up wizard :)
Title: Thanks testers, GF4 people read this
Post by: DTP on August 06, 2002, 07:07:33 am
gotta go to work now, will make it when i get home. should be nothing more than a 10 minute fix +compile time to see if it works.
Title: Thanks testers, GF4 people read this
Post by: DTP on August 06, 2002, 05:07:13 pm
seems i' m getting A lot of Warnings when doing a release build of the current CVS.

I if this is refering to Unknownplayers comment in ps2net.cpp regarding a compiler tag that i should disable. then to a somewhat novice to C and C++, what compiler tag exactly.

anyway, here are some of the errors

Debug builds generates these two.

E:\NEW_DIR\fs2_open\code\Network\Psnet2.cpp(2622) : warning C4101: 'ret' : unreferenced local variable
e:\new_dir\fs2_open\code\io\swff_lib.cpp(367) : warning C4100: 'lpvRef' : unreferenced formal parameter

Release generates even more

E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(367) : warning C4100: 'lpvRef' : unreferenced formal parameter
Timer.cpp
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(340) : warning C4711: function 'SWFF_DestroyAllEffects' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(782) : warning C4702: unreachable code
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
E:\NEW_DIR\fs2_open\code\Io\swff_lib.cpp(812) : warning C4711: function 'int __cdecl SWFF_WriteRegString(char const *,char const *)' selected for automatic inline expansion
Title: Thanks testers, GF4 people read this
Post by: penguin on August 06, 2002, 05:58:58 pm
they're warnings ... nothing to worry about for the most part

The unreferenced parameters are OK; unreachable code is a little more troublesome, but it probably means an "else" was stuck in somewhere that will never be executed...

I don't know what the selected for "automatic inline expansion" means, but it's probably no big deal either.
Title: Thanks testers, GF4 people read this
Post by: DTP on August 06, 2002, 07:12:52 pm
:wtf:
hmm, ok, just did'nt want to implenent that commanline switch, that might get reverted.

had it all implented, and i started getting all these warnings, fearing i really did something bad to my CVS copy. downloaded a fresh copy of CVS, and still got those errors.

but i got a safe copy of the code, so implementing it again.
-------
Done, fs2_open.exe -GF4FIX will now activate random tigers GF4FIX
Title: Thanks testers, GF4 people read this
Post by: Fry_Day on August 07, 2002, 03:39:44 pm
Just a stupid question I have - Is it case-sensitive (The command-line itself)?
Title: Thanks testers, GF4 people read this
Post by: DTP on August 07, 2002, 04:26:15 pm
no question is to stupid to be asked, yes it is case sensitive, as is everything in C/C++

"ME" is not the same as "me" or "Me" or "mE".

use fs2_open.exe -GF4FIX

and the fix will be activated.
Title: Thanks testers, GF4 people read this
Post by: WMCoolmon on August 07, 2002, 11:22:25 pm
It might actually be better to have it be all lowercase, to follow the pattern of the other command line options.
Title: Thanks testers, GF4 people read this
Post by: RandomTiger on August 08, 2002, 05:35:15 am
Quote
Originally posted by penguin
Sorry to burst anyone's bubble, but RandomTiger's patch makes the text look awful on my box.  With the 4-line patch reverted to the original, it looks fine.

It has a POS integrated ATI RAGE IIC chipset. :mad:

Don't tell me that it's my own faullt for not testing ;)

I guess this oughta be some kind of configuration parameter... that was Inquisitor's suggestion.


Im sorry. But its your own fault for not testing.
Crap.

This is why I made such a big fuss about getting people to test it.
Title: Thanks testers, GF4 people read this
Post by: Inquisitor on August 08, 2002, 06:03:27 am
And I am sure more things will come out of the code, bug wise, when we release an exe for everyone to fool around with :)
Title: Thanks testers, GF4 people read this
Post by: RandomTiger on August 08, 2002, 06:56:55 am
Might have made more sense (given the test results as a whole) to have it on by default with a switch to turn it off. But if we upgrade fs2_opn to DX8 then I suspect this problem will disappear entirely.
Title: Thanks testers, GF4 people read this
Post by: Inquisitor on August 08, 2002, 07:34:05 am
The GFX card poll suggests otherwise ;)

http://www.hard-light.net/forums/index.php/topic,9083.0.html