integer overflow bug
Dear Alexander, actually a turbulence model (causing effects not just on roll but on other axes as well) is already implemented according to some std and documented practice in aeronautical applications. If you want to increase the turbulence intensity you can change a parameter, if I remember correctly, in the wind setup dialog. Please have a try, hope it's what you are looking for. Regards, Luca
Random roll to simulate turbulence
I've been working with the people on the SDL bug tracker and it looks like this fix will be put into both SDL1 and SDL2. So, after their release schedule and Linux distribution release schedules and people update their installations, this will be fixed.
This would be awesome, I'm not sure how big of a change it would be, but FPC abilities would be amazing. Love this sim!
Point camera between plane and horizon, and use "life-size" zoom. (includes patch as example)
Here's a better patch, which ensures that the endpoints of each axis become -32767 and +32767. Even though SDL already had code to do that, it wasn't doing it correctly, even before my previous patch. Rather, it was over-shooting those endpoints and then clipping the result. So not only were there dead zones in the middle of each axis, but there were dead zones at each end as well.
Compile failure in 0.9.13, src/mod_video/crrc_animation.cpp:87
Deadzone in Joystick Axes in Linux
Jens Thank you for suggestions: I obtained the files via BARCS web site forum using this link: http://joel.lienard.free.fr/crrcsim/index.html The number in the program did contain the "e". I will try again anyway. Thanks. Pete
There is no need to change source code. Option A: From where did you get that "french scenery file"? Try to download again, compare to the file on your disk. Contact the author in case they are the same (i.e. the author provides a malformed file). Option B: If it contains "1.34439-008" then this most likely needs a change to "1.34439e-008". I would open the file with an editor (can't recommend something, don't know your system), edit, save, try again. Then try to find out why this malformed number...
Jens thanks, I did find a file that contained1.34439e-008 within one of the french scenery files but have no idea how to access and change the code or what to change it to. I have deleted all files bearing crrcsim from system and re-installed software, it is now working again. Not sure if I should now keep clear of the nicer french scenary? What would you do? Thanks for help.
In one of the files which crrcsim is trying to load there is a string "1.34439-008". Maybe in a model file you downloaded from somewhere else or edited manually? Find that string and correct it. Maybe it should be "1.34439e-008"?
xml exception
thank you
I'll fix it but I need some time. I'm using a temporary fix with a fake/empty libCGAL.so: In an empty folder: touch CGAL.c gcc -c CGAL.c -o CGAL.o gcc -shared CGAL.o -o libCGAL.so sudo cp libCGAL.so /lib64/ Not a good fix but it works flawlessly as a temporary fix.
install errors downloaded crrcsim extracted files and run ./configure failed because of missing files which I downloaded and run ./configure on them too. boost 1.72.0 jpeg-9d plib 1.8.5 SDL 1.2.15 SDL 2.0 still getting errors about FETCH 0 or newer not found! root@One:/home/don/crrcsim-0.9.13# cd .. root@One:/home/don# ls boost_1_72_0 Desktop Downloads Music plib-1.8.5 Public Templates Videos crrcsim-0.9.13 Documents jpeg-9d Pictures portaudio SDL-1.2.15 test.html root@One:/home/don# cd SDL-1.2.15/...
crrcsim fails to link with CGAL >5.x
A glitch in the biplan2.ac object
model_based_scenery.cpp:577:46: warning: 'temp_heightdata' may be used uninitialized in this function
It fixes the issue. Thanks.
output between 2 and 130 bytes into a destination of size 127 It means that content from sysname and release fields requires 130 bytes but you have only 127. If you don't have any plans for dynamically allocate the buffer and prefer to keep the following define untouched: #define OSVERSIONSTRINGBUFFERLEN (128) then please consider to use the following patch: $ hg di crrc_system.cpp diff -r 41dc80721fb1 src/crrc_system.cpp --- a/src/crrc_system.cpp Fri Dec 22 15:26:23 2017 +0100 +++ b/src/crrc_system.cpp...
Fixed by fixing #41.
bug at launch in fedora 28
crrcsim crashes at src/crrc_sound.cpp:319
Patch accepted and applied. Thanks for your support!
Fix issue #41 (thanks go to Jan Yenya Kasprzak for the patch)
This is a duplicate of bug#41 (and Fedora bug #1575624). See the patch attached to the bug #41.
OK, I have finally got time to dig into this. The problem is apparently in C++ being a moving target. Apparently std::vector does not only need myvector.reserve(n) in order to be able to use myvector[0] to myvector[n-1], but the values should be added themselves. With the attached patch I am able to run crrcsim on Fedora 28. Please apply the patch to the source code.
bug at launch in fedora 28
crrcsim crashes at src/crrc_sound.cpp:319
I've found that it all seems to come from PLIB. The version of PLIB installed in opensuse 43.2 doesn't have 'puaLargeInput::setText'. Also found that puaLargeInput::getText is protected which crrcsim doesn't like. Will work on a workaround using addText but first clearing the buffer. I think this post can be closed. Alasdair
linux - compile error - puaLargeInput’ has no member ‘setText'
PilatusB4.ac is duplicated both in: crrcsim and crrcsim-addon-models packages
I don't really understand this warning. I'm using snprintf to explicitly truncate the output at the end of the buffer, yet I receive a warning that output is truncated? Hmm, I tend to disable this warning. The other option would be to enlarge the target buffer by setting OSVERSIONSTRINGBUFFERLEN (line 91) to something like 256 or 512. Could you please try if that helps?
model_based_scenery.cpp:577:46: warning: 'temp_heightdata' may be used uninitialized in this function
I've pushed a fix [85cacb], please check if it fixes the warning on your system.
[bugs:39] Fix compiler warning on Fedora
crrcsim-0.9.12 support for platforms without <sys/io.h>
Patch applied [a580a5].
support for platforms without <sys/io.h>
Rebased version of the patch for v0.9.13: https://src.fedoraproject.org/rpms/crrcsim/blob/master/f/crrcsim-0.9.13-support-for-platforms-without-sys-io.h.patch
model_based_scenery.cpp:577:46: warning: 'temp_heightdata' may be used uninitialized in this function
crrc_system.cpp:177:8: warning: '%s' directive output may be truncated
Yay, I have compiling success on Xubuntu 17.04! I first installed g++-5, and already had gcc-5 installed. Then I followed this as a guide: https://codeyarns.com/2015/02/26/how-to-switch-gcc-version-using-update-alternatives/ My exact code: $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 100 --slave /usr/bin/g++ g++ /usr/bin/g++-6 $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50 --slave /usr/bin/g++ g++ /usr/bin/g++-5 $ sudo update-alternatives --config...
CRRCsim started as a C program compiled with gcc 3. Later it was restructured into a C++ application using gcc 4. Some fixes were made for gcc 5 compatibility. So far noone has contributed fixes for gcc 6. I guess it's not too big of a problem, but as I don't have gcc 6 on my machine, I can't help you with this issue.
Due to all the /c++/6 errors, I supected that CRRCSIM 0.9.13 may have been written to an earlier version of c++. My errors above were on Xubuntu 17.04 which uses g++ 6.3. I created a Virtualbox install of Ubuntu 16.04, which uses g++ 5.4 and compile completes without errors and I am able to run CRRCSIM. Next I will see if I can make my Xubuntu 17.04 use g++ 5. I see it is installed but not sure how to switch compiler.
Compile error on Ubuntu 17.04
Compilation errors using gcc 6
Late update... bug is fixed.
Bad shadow with intel graphics on Linux
Should be fixed with commit https://sourceforge.net/p/crrcsim/code/ci/1fc598ff00b1139ceabdce97a0774ada46771e98/
Hi Jan, thanks for looking into the code and testing the fixes!
merged changes into branch "default" and disabled GL_POLYGON_SMOOTH
Disabled GL smoothing as it leads to shadow artifacts (see bug #36)
It may be the same issue as https://sourceforge.net/p/crrcsim/bugs/36/. Disabling GL_POLYGON_SMOOTH definitely helps.
I think this is related to the change here: https://sourceforge.net/u/fredmuc/crrcsim/ci/28ed9ba57011371cab8b637550acc716b973c47d/tree/src/mod_video/crrc_graphics.cpp?diff=fa687d696c00505c1eb85a82c30ac340d7de8d43 in crrc_graphics.cpp. Maybe you could just try to disable GL_POLYGON_SMOOTH there?
Hi, is this maybe the same issue as this: https://github.com/dartsim/dart/issues/804 That would mean that strange lines appeared when GL_POLYGON_SMOOTH was enabled. The lines disappeared when GL_POLYGON_SMOOTH was disabled. Regards
Hi, thanks for looking at the code! I attached picture from my Macbook. Friedrich
Hello and thanks for your contribution. Unfortunately I'm getting some graphical glitches on my Linux box (NVidia graphics). I'll have to do some further investigation to find the cause.
Here's the same thing on an nvidia card (same hw/sw except for video card)
Scenery doesn't render correctly (Intel graphics)
I see the same problem on a Gentoo system with X.Org 1.18.4, Intel i915 kernel driver,...
Same problem with Linux Mint 18.1
I didn't know about https://sourceforge.net/p/crrcsim/code/ci/default/tree/packages/Fedora/CRRCsim.desktop...
Is there a fundamental difference to the existing file /packages/Fedora/CRRCsim.desktop?...
Linux AppData file
Linux .desktop file
The same build on another pc (Mint 17.3) with a Radeon R7 work flawlessly (and new...
Same problem with Linux Mint 17.3
Bad shadow with intel graphics on Linux
Patch for 0.9.13 would be this (attachment)
CRRCsim 0.9.13 released
CRRCsim 0.9.13 released
CRRCsim 0.9.13 released
CRRCsim 0.9.13 released
set default smart camera option to 0 (disabled)
Added tag 0.9.13 for changeset dcd178e3df54
Release notes for 0.9.13
back to original outhouse.rgb texture.
outhouse.rgb texture saved without RLE.
bugfix: string in "about" dialog
anti aliasing defaults to "on", fallback included
fixed some compiler warnings:
fixed some compiler warnings
fixed some references (sourceforge instead of b...
how to create a new release
even more files added to distribution
add m44_test.cpp to dist
Restored messagebox when loading scenery
Fixed problem with overlay display since Rev 1506
Added "simple_woods" model based scenery.
Updated info on how to make win32 installer
Fixed problem with overlay display since Rev 1522
Bug fixes (sourceforge tickets)