Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 04-07-2012, 12:12 PM   #1336
Ripley
Tutorial translator
 
Ripley's Avatar
Default

Hi Jarmo.
I just noticed that upon a new fresh O2010P1 installation, if I directly run orbiter_ng.exe for the first time ever (without launching orbiter.exe, that is), the "usual" DirectX check and all that stuff doesn't take place.

Isn't that somehow needed?
Ripley is offline   Reply With Quote
Old 04-07-2012, 12:25 PM   #1337
orb
O-F Administrator
Ninja
 
orb's Avatar

Default

Quote:
Originally Posted by Ripley View Post
 I just noticed that upon a new fresh O2010P1 installation, if I directly run orbiter_ng.exe for the first time ever (without launching orbiter.exe, that is), the "usual" DirectX check and all that stuff doesn't take place.

Isn't that somehow needed?
It isn't needed at all if you know you have all requirements satisfied.

For example, I don't run it at all. I just copy orbiter.bin from the Install folder over the orbiter.exe in the root folder of the installation, or patch it with beta version, which has the actual Orbiter executable in the root folder of the archive.

The cause for the check with running the regular orbiter.exe for the first time is that it isn't actually Orbiter executable, but executable of the Installation verification tool, which replaces itself with the actual Orbiter executable after performing all the checks, and orbiter_ng.exe is always the same file (which executes Modules/Server/orbiter.exe with working directory set to Orbiter's root).
orb is offline   Reply With Quote
Thanked by:
Old 04-12-2012, 11:32 AM   #1338
Marvin42
Mostly Harmless
 
Marvin42's Avatar
Bug Alt-Tab

ALT-TAB

Is it my old rig too old or RC44 is always loosing connection to the Direct3DDevice when Alt-Tab is pressed or when searching at Help dialog from ALT-F1?


Edit. Also it should be mentioned that the Dragonfly ship that comes with Orbiter is not working with D3D9Client (CTD)

---------- Post added 04-12-12 at 11:32 AM ---------- Previous post was 04-11-12 at 10:19 PM ----------


Moons Names
I was getting some errors in Orbiter.log:
Code:
Planet Not Found 'Kale                    '
hPlanet is NULL in FileParser::ScanBases(Config\Kale\Base)
Planet Not Found 'Ymir                    '
hPlanet is NULL in FileParser::ScanBases(Config\Ymir\Base)
Planet Not Found 'Paaliaq                 '
hPlanet is NULL in FileParser::ScanBases(Config\Paaliaq\Base)....etc
These moons have only one thing in common: in their cfg there is a comment like this:
Code:
; === Configuration file for moon Kale-S/2001_J8(Jupiter) by Rolf Keibel Carl Romanik and Tony Dunn ===
Name = Kale                    ; S2001-J8
EllipticOrbit = TRUE           ; assume unperturbed orbit
HasElements = TRUE             ; orbital elements follow .....etc
If I remove the " ; S2001-J8" comment, the error is gone.

Can the FileParser.cpp be made to check the "Name" string untill the ";" sign (or any other way to support having comments after the Name)?
Edit: If I have one or more " " (spaces) after the Name I get "Planet Not Found 'Ymir ".

Last edited by Marvin42; 04-12-2012 at 11:48 AM.
Marvin42 is offline   Reply With Quote
Old 04-12-2012, 10:06 PM   #1339
kuddel
Donator
Default

Quote:
Originally Posted by Marvin42 View Post
 Moons Names
I was getting some errors in Orbiter.log:
Code:
Planet Not Found 'Kale                    '
hPlanet is NULL in FileParser::ScanBases(Config\Kale\Base)
Planet Not Found 'Ymir                    '
hPlanet is NULL in FileParser::ScanBases(Config\Ymir\Base)
Planet Not Found 'Paaliaq                 '
hPlanet is NULL in FileParser::ScanBases(Config\Paaliaq\Base)....etc
These moons have only one thing in common: in their cfg there is a comment like this:
Code:
; === Configuration file for moon Kale-S/2001_J8(Jupiter) by Rolf Keibel Carl Romanik and Tony Dunn ===
Name = Kale                    ; S2001-J8
EllipticOrbit = TRUE           ; assume unperturbed orbit
HasElements = TRUE             ; orbital elements follow .....etc
If I remove the " ; S2001-J8" comment, the error is gone.

Can the FileParser.cpp be made to check the "Name" string untill the ";" sign (or any other way to support having comments after the Name)?
Edit: If I have one or more " " (spaces) after the Name I get "Planet Not Found 'Ymir ".
@jarmonik: A more robust line-parser like the following example might be an option

PHP Code:
#include <vector>
#include <iostream>

#include <functional> 
#include <algorithm>

using namespace std;

// trim from start
static inline std::string &ltrim(std::string &s) {
    
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int>(isspace))));
    return 
s;
}

// trim from end
static inline std::string &rtrim(std::string &s) {
    
s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int>(isspace))).base(), s.end());
    return 
s;
}

// trim from both ends
static inline std::string &trim(std::string &s) {
    return 
ltrim(rtrim(s));
}

// split string into (multiple) parts
void splitvector<string> & theStringVector,  // Altered/returned value 
            
const  string  theString,
            const  
string  theDelimiter)
{
    
_ASSERT(theDelimiter.size() > 0);

    
size_t  start 0end 0;

    while (
end != string::npos) {
        
end theString.findtheDelimiterstart);

        
// If at end, use length=maxLength.  Else use length=end-start.
        
theStringVector.push_back(theString.substr(start,
            (
end == string::npos) ? string::npos end start));

        
// If at end, use start=maxSize.  Else use start=end+delimiter.
        
start = (   ( end > (string::npos theDelimiter.size()) )
            ?  
string::npos  :  end theDelimiter.size());
    }
}

// THE function ;)
int parseLine (
    const 
std::string &s,       ///< (in)           input string
    
std::string &key,           ///< (out)          receives clean 'key'
    
std::string &val,           ///< (out)          receives clean 'value'
    
std::string &com string() ///< (out,optional) receives clean 'comment'
    
)
{
    
vector<stringvv2;
    
int num 0;

    
key.erase(); val.erase(); com.erase();

    
// 'remove' comment
    
split(vs";");
    if (
v.size()) {

        
// Handle 'pre-comment' part (v[0])
        
split(v2trim(v[0]), "=");
        if (
v2.size())
        {
            
key trim(v2[0]);
            if (
v2.size() == 2) {
                
val trim(v2[1]);
            }
        }

        
// Handle 'comment' parts (v[1],...,v[n])
        
if (v.size() >= 2)
        {
            
com ltrim(v[1]);
            for (
size_t i 2v.size(); i++) {
                (
com += ";") += v[i];
            }
            
trim(com);
        }
    }

    if (!
key.empty()) num |= 0x01;
    if (!
val.empty()) num |= 0x02;
    if (!
com.empty()) num |= 0x04;

    return 
num;
}


int main(int argccharargv[])
{
    
// test-list
    
const charlst[] = {
        
"name = Hello World   ; this is a comment with a = and a ; symbol ",
        
"a",
        
"this should not work = but it does ;)",
        
"b\t\r\n\t "// multi-line should not be fed, but should also create no errors ;)
        
"a\t \t o",
        
"syntax-error ; with = in comment",
        
"; name = Hello World",
        
"name = Hello World",
        
// Block
        
"WHATEVER",
        
"END",

        
NULL // end-of-list marker
    
};

    
string kvc;

    for (
int i=0lst[i]; i++) {

        
int n parseLine(lst[i], kvc);

        
printf(           "line %2d  : '%s'\n"ilst[i]);
        if (
1printf("  key    : '%s'\n"k.c_str());
        if (
2printf("  value  : '%s'\n"v.c_str());
        if (
4printf("  comment: '%s'\n"c.c_str());
        
printf(           "\n");

    }

    return 
0;

The main() was just to test some 'exotic' lines
In real life a simple
Code:
while(readLineFromFile(line)) {
  parseLine(line, key, value);
  ...
}

should be enough to get 'clean' key and value pairs

/Kuddel
kuddel is offline   Reply With Quote
Thanked by:
Old 04-13-2012, 10:47 PM   #1340
Bibi Uncle
50% Orbinaut, 50% Developer
 
Bibi Uncle's Avatar
Default

I already made some functions for that. It searches the config file based on "Name" flag and it removes spaces and comments automaticaly. Check in RunwayLights.cpp, for the private static methoeds RunwayLights::SearchConfigFile (and it uses RunwayLights::_fgets)

You can write a whole new file parser based on this.
Bibi Uncle is offline   Reply With Quote
Thanked by:
Old 04-15-2012, 10:05 AM   #1341
Ripley
Tutorial translator
 
Ripley's Avatar
Default

While betatesting the new DGIV-3 with RC44, I noticed this weird vertical-split sky.
I think it's more RC44 related.

Ripley is offline   Reply With Quote
Old 04-15-2012, 10:37 AM   #1342
astrosammy
Dash!
 
astrosammy's Avatar

Default

I guess you are standing on the equator? I can confirm that one. However this I also happening without D3D9 client.

-------------------------------------------

I noticed this while on approach to KSC:


In the first image, I have the center of the base in sight and see the runway lights.
But when the center of the base is out of sight, the lights disappear.
astrosammy is online now   Reply With Quote
Old 04-15-2012, 02:17 PM   #1343
Ripley
Tutorial translator
 
Ripley's Avatar
Default

Quote:
Originally Posted by astrosammy View Post
 I guess you are standing on the equator?...
Yes, I was.
Ripley is offline   Reply With Quote
Old 04-15-2012, 04:36 PM   #1344
DaveS
SSU GSE Specialist
 
DaveS's Avatar


Default

Quote:
Originally Posted by Ripley View Post
 While betatesting the new DGIV-3 with RC44, I noticed this weird vertical-split sky.
I think it's more RC44 related.
That looks like a seam in the cloud texture which I don't think any external graphics client can do anything about.
DaveS is online now   Reply With Quote
Old 04-15-2012, 08:40 PM   #1345
Cras
Spring of Life!
 
Cras's Avatar
Default

Quote:
Originally Posted by Marvin42 View Post
 Edit. Also it should be mentioned that the Dragonfly ship that comes with Orbiter is not working with D3D9Client (CTD)
I never got the Dragonfly that comes with orbiter to work. It always CTD'd on me, even with the in-line client.
Cras is offline   Reply With Quote
Old 04-16-2012, 12:41 PM   #1346
Marvin42
Mostly Harmless
 
Marvin42's Avatar
Default

Quote:
Originally Posted by Cras View Post
 I never got the Dragonfly that comes with orbiter to work. It always CTD'd on me, even with the in-line client.
Dragonfly works with inline client on my old laptop (ati200m). It was the first ship I tried in Orbiter and used it to build a basic (2 modules) station.

About ALT-TAB combination, well, that works in inline client but not the D3D9Client. Is this working with your Orbiter?
Marvin42 is offline   Reply With Quote
Old 04-16-2012, 04:22 PM   #1347
Interceptor
Orbinaut
 
Interceptor's Avatar
Default

Quote:
Originally Posted by Marvin42 View Post
 Dragonfly works with inline client on my old laptop (ati200m). It was the first ship I tried in Orbiter and used it to build a basic (2 modules) station.

About ALT-TAB combination, well, that works in inline client but not the D3D9Client. Is this working with your Orbiter?
Dragonfly never worked right in orbiter2010P1,cog offset does not respond,and neither do the scanners for it on the panel,but you could still dock to the modules.
Interceptor is offline   Reply With Quote
Old 04-21-2012, 01:07 AM   #1348
buznee
Orbinaut
Default

Anyone having issues where the taskbar shows up in full screen mode?
buznee is offline   Reply With Quote
Old 04-21-2012, 02:23 AM   #1349
Cras
Spring of Life!
 
Cras's Avatar
Default

Quote:
Originally Posted by buznee View Post
 Anyone having issues where the taskbar shows up in full screen mode?
Do not recall ever seeing that issue. I tend to only play in full screen mode myself, and I have no issues here. My main D3D9 install runs in Windows XP x64, if that matters.
Cras is offline   Reply With Quote
Old 04-21-2012, 06:19 AM   #1350
Weirdo Earthtorch
Orbinaut
Default

Quote:
Originally Posted by buznee View Post
 Anyone having issues where the taskbar shows up in full screen mode?
That's intentional. Uncheck 'Full Screen Window' under the video settings if you don't want the taskbar in full screen mode.
Weirdo Earthtorch is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project

Tags
d3d9client, graphicsclient


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 05:10 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.