Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Genghis on March 22, 2010, 10:35:48 am
-
For anyone with SVN submit access...
There's a patch fix for Mantis 2151 (http://scp.indiegames.us/mantis/view.php?id=2151) in the bug attachments. There was some discussion about the validity of NULL engine wash info, but it seems to be just fine.
While I was at it, I also went through the code looking for other cases where stuff_string() is used and the result needs to be meaningful; I added warnings where appropriate. The results of that effort are also attached to 2151 in extra_error_checking.diff.
-
Generally, it's a good idea to keep discussion in one place. If developers aren't evaluating the patch at the speed you prefer, bump the Mantis ticket a few times. Only after repeated bumping should you post in the forum. ;)
And what does stuff_string() have to do with engine wash? There should really be only one issue per ticket. You have developer permissions on Mantis now; you can open a new Mantis ticket and start discussion about stuff_string() there. :)
-
Generally, it's a good idea to keep discussion in one place. If developers aren't evaluating the patch at the speed you prefer, bump the Mantis ticket a few times. Only after repeated bumping should you post in the forum. ;)
And what does stuff_string() have to do with engine wash? There should really be only one issue per ticket. You have developer permissions on Mantis now; you can open a new Mantis ticket and start discussion about stuff_string() there. :)
Okay okay consider it done, I'll create a new ticket for the extra error checking and move the diff there :)
As for why is it linked to engine wash? Well it's because while I was adding the error check for the engine wash I noticed there were other similar cases where stuff_string() was being used to pull a string value out of a table, and it needed to be meaningful (it usually had to correspond to a name in some other table) but no error checking was being done on them. So I decided to go through and fix as many as I could find, rather than wait for FUBAR To bug them all individually :D
But you're right, that belongs in a different bug report.
-
I made a similar comment in the bug so it's not confusing in Mantis what's going on with the ticket. Thanks for splitting it.
-
:bump:
I've gone through all the bugs assigned to Genghis and committed whatever I could understand. Can someone go through the other 4 (http://scp.indiegames.us/mantis/permalink_page.php?url=http%3A%2F%2Fscp.indiegames.us%2Fmantis%2Fsearch.php%3Fproject_id%3D1%26amp%3Bstatus_id%3D50%26amp%3Bhandler_id%3D2103%26amp%3Bsticky_issues%3Don%26amp%3Bsortby%3Dlast_updated%26amp%3Bdir%3DDESC%26amp%3Bhide_status_id%3D-2)?
Actually, you can probably ignore the extra-checking one, most of that is in SVN too now.
-
Arggh, WarningEx() breaks cross-platform compile!
-
Gah! Forgot that Windows_stubs is used for cross platform defines like Warning etc. I've added the code there but I can't compile it myself to test it.
-
Ta. Fixed. :)
-
Not entirely for me.
Pastebin post (http://fsscp.pastebin.com/TVLzKEYK)
=== BUILD NATIVE TARGET code OF PROJECT FS2_Open WITH CONFIGURATION Debug_Inferno ===
Check dependencies
CompileC build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/ppc/stubs.o ../../code/windows_stub/stubs.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/cliffgordon/fs2open/projects/Xcode
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -DINF_BUILD -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mtune=G5 -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/code.hmap -Wno-char-subscripts -F/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -F/Users/cliffgordon/fs2open/projects/Xcode/Frameworks -I/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/DerivedSources/ppc -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/DerivedSources -c /Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp -o /Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/ppc/stubs.o
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp: In function 'void WarningEx(char*, int, const char*, ...)':
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp:152: error: 'AssertText1' was not declared in this scope
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp:155: error: 'msg' was not declared in this scope
CompileC build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/i386/stubs.o ../../code/windows_stub/stubs.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/cliffgordon/fs2open/projects/Xcode
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -D_DEBUG -DSCP_UNIX -DUSE_OPENAL -DAPPLE_APP -DINF_BUILD -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/code.hmap -Wno-char-subscripts -F/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -F/Users/cliffgordon/fs2open/projects/Xcode/Frameworks -I/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno/include -I../../code -IFrameworks/Ogg.framework/Headers -IFrameworks/Vorbis.framework/Headers -IFrameworks/Theora.framework/Headers -IFrameworks/SDL.framework/Headers -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/DerivedSources/i386 -I/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/DerivedSources -c /Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp -o /Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/i386/stubs.o
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp: In function 'void WarningEx(char*, int, const char*, ...)':
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp:152: error: 'AssertText1' was not declared in this scope
/Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp:155: error: 'msg' was not declared in this scope
=== BUILD NATIVE TARGET png OF PROJECT FS2_Open WITH CONFIGURATION Debug_Inferno ===
Check dependencies
=== BUILD NATIVE TARGET zlib OF PROJECT FS2_Open WITH CONFIGURATION Debug_Inferno ===
Check dependencies
=== BUILD NATIVE TARGET FS2_Open OF PROJECT FS2_Open WITH CONFIGURATION Debug_Inferno ===
Check dependencies
Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist'.
[WARN]Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist'.
Ld "build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/ppc/FS2_Open-Inferno (debug)" normal ppc
cd /Users/cliffgordon/fs2open/projects/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -L/Users/cliffgordon/fs2open/projects/Xcode/build/Debug -F/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -FFrameworks -filelist "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/ppc/FS2_Open-Inferno (debug).LinkFileList" -mmacosx-version-min=10.4 -framework SDL -lSystemStubs -framework Cocoa -framework OpenGL -framework GLUT -framework OpenAL -framework SDL -ljpeg -lcode -llua -lpng -lzlib -framework Ogg -framework Vorbis -framework Theora -o "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/ppc/FS2_Open-Inferno (debug)"
ld: warning: directory '/Users/cliffgordon/fs2open/projects/Xcode/build/Debug' following -L not found
ld: library not found for -lcode
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g++-4.0 failed with exit code 1
Command /Developer/usr/bin/g++-4.0 failed with exit code 1
Ld "build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/i386/FS2_Open-Inferno (debug)" normal i386
cd /Users/cliffgordon/fs2open/projects/Xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -L/Users/cliffgordon/fs2open/projects/Xcode/build/Debug -F/Users/cliffgordon/fs2open/projects/Xcode/build/Debug_Inferno -FFrameworks -filelist "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/i386/FS2_Open-Inferno (debug).LinkFileList" -mmacosx-version-min=10.4 -framework SDL -lSystemStubs -framework Cocoa -framework OpenGL -framework GLUT -framework OpenAL -framework SDL -ljpeg -lcode -llua -lpng -lzlib -framework Ogg -framework Vorbis -framework Theora -o "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/i386/FS2_Open-Inferno (debug)"
ld: warning: directory '/Users/cliffgordon/fs2open/projects/Xcode/build/Debug' following -L not found
ld: library not found for -lcode
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g++-4.0 failed with exit code 1
Command /Developer/usr/bin/g++-4.0 failed with exit code 1
** BUILD FAILED **
The following build commands failed:
code:
CompileC build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/ppc/stubs.o /Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp normal ppc c++ com.apple.compilers.gcc.4_0
CompileC build/FS2_Open.build/Debug_Inferno/code.build/Objects-normal/i386/stubs.o /Users/cliffgordon/fs2open/projects/Xcode/../../code/windows_stub/stubs.cpp normal i386 c++ com.apple.compilers.gcc.4_0
FS2_Open:
Ld "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/ppc/FS2_Open-Inferno (debug)" normal ppc
Ld "/Users/cliffgordon/fs2open/projects/Xcode/build/FS2_Open.build/Debug_Inferno/FS2_Open.build/Objects-normal/i386/FS2_Open-Inferno (debug)" normal i386
(4 failures)
-
Hmmmm. I wonder why that worked for E9 and not for you then.
Try adding this just above the entry for WarningEx in stubs.cpp
char AssertText1[2048];