Board index FlightGear Development Spaceflight

Space Shuttle - Development

Discussion about development and usage of spacecraft

Re: Space Shuttle - Development

Postby eatdirt » Fri Dec 27, 2019 6:22 pm

Hi there,
even without the security warnings, have you tried with the "--allow-nasal-read=dirs", it sounds exactly like a permission issue? Recently I had to use that even for symlinks!

good luck!
eatdirt
 
Posts: 495
Joined: Wed Aug 15, 2018 2:06 pm

Re: Space Shuttle - Development

Postby Thorsten » Fri Dec 27, 2019 7:05 pm

but still why cannot i use my mission file from my custom Aircraft directory?


Largely because the code expects a filename of a file inside the mission directory, not a full path, and I don't see anything sacred about the mission directory, it's meant to be populated by the user. It's the logical place to store mission files - you can already have custom aircraft paths inside FG - if we put custom aircraft config anywhere - what mess is that? :?:

SpaceShuttle/Nasal/mission.nas line 117 will ease all your troubles though...
Thorsten
 
Posts: 11469
Joined: Mon Nov 02, 2009 8:33 am

Re: Space Shuttle - Development

Postby GinGin » Sat Dec 28, 2019 1:26 pm

@Thorsten : reading through dps workbook, I found a first hint concerning matrix reset



Image
GinGin
 
Posts: 918
Joined: Wed Jul 05, 2017 10:41 am
Location: Paris
Callsign: Gingin

Re: Space Shuttle - Development

Postby wkitty42 » Sat Dec 28, 2019 2:50 pm

Thorsten wrote in Fri Dec 27, 2019 7:05 pm:
but still why cannot i use my mission file from my custom Aircraft directory?


Largely because the code expects a filename of a file inside the mission directory, not a full path,

ok... i guess the property name should have been a glaring hint that only a filename is desired instead of a path and filename...

Thorsten wrote in Fri Dec 27, 2019 7:05 pm:and I don't see anything sacred about the mission directory, it's meant to be populated by the user. It's the logical place to store mission files

true except that i'm flying from a living repository clone of the shuttle... the problem is any edits i make have to be stashed before i update and since i don't always remember to stash and my script doesn't yet make a check for modified code like dnc does, it whines about "git pull -r" when there is modified code or even new files in place... i'll be working on my script in the next days, i guess... i should also make it more generic so i have only one script instead of 40leven for the various custom craft i pull from living repos... i won't mention that the shuttle is the only craft that i have that has this expectation of user edited files within its structure... in any case, i thought the easiest way around this problem would be to put my custom mission files outside of the repo... i guess not ;)

Thorsten wrote in Fri Dec 27, 2019 7:05 pm:- you can already have custom aircraft paths inside FG - if we put custom aircraft config anywhere - what mess is that? :?:

i know but we can already do that with adding directories to one of the paths of FG so that it will allow such...

Thorsten wrote in Fri Dec 27, 2019 7:05 pm:SpaceShuttle/Nasal/mission.nas line 117 will ease all your troubles though...

thank you but that keeps me in the same position of having to remember to stash before "git pull -r"... i'll work on my (admittedly quite simple) script to handle this in the same way that the dnc script does...

thanks for your time and all the work you do on this craft! :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6139
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Space Shuttle - Development

Postby Thorsten » Sat Dec 28, 2019 3:04 pm

true except that i'm flying from a living repository clone of the shuttle...


... with a particular workflow - I have a bunch of experimental mission files in my own repo dir as well - but then again I don't stash.

What I'm trying to say is - it's a power-user problem you're describing, and I guess you should apply GIT-fu to solve it. Change the line to your needs, commit your change locally - and unless I will specifically change that particular line, you'll just have a living repo with a difference of that line to my repository (if I do change the line you'll have a merge conflict which you need to solve manually). My understanding is that GIT is especially made for such things...
Thorsten
 
Posts: 11469
Joined: Mon Nov 02, 2009 8:33 am

Re: Space Shuttle - Development

Postby wkitty42 » Sun Dec 29, 2019 1:16 am

the following made things a lot easier/better ;)

Code: Select all
[... blah blah ...]
function _gitUpdate(){
  repo=$1
  branch=$2
  printf "checking local repo for modified/untracked files...\n"
  set +e
  git diff --exit-code 2>&1 > /dev/null
  ECODE=$?
  if [ $ECODE != 1 ]; then
    set -e
    printf "no modified/untracked files found; updating from $repo...\n"
    git pull -r $repo
    git checkout -f $branch
  else
    printf "modified/untracked files found; stashing them...\n"
    git stash save -u
    printf "stash complete; updating from $repo...\n"
    git pull -r $repo
    git checkout -f $branch
    printf "unstashing modified/untracked files...\n"
    git stash pop
  fi
  printf "update from $repo complete...\n"
  git status
}

DEST=$HOME/myflightgear/Aircraft/SpaceShuttle
RSLTCODE=0

RUNCMD2="git remote prune upstream"
RUNCMD3="git push origin"

start_prog_timer
cd $DEST
    _gitUpdate upstream development
    if [[ $RSLTCODE -eq 0 ]] ; then
        printf "RUNCMD2=$RUNCMD2\n\n"
        $RUNCMD2
        RSLTCODE=$?
        printf "RSLTCODE=$RSLTCODE\n"
        if [[ $RSLTCODE -eq 0 ]] ; then
            printf "RUNCMD3=$RUNCMD3\n\n"
            $RUNCMD3
            RSLTCODE=$?
            printf "RSLTCODE=$RSLTCODE\n"
        fi
    fi
printf "Process terminates.\n"
stop_prog_timer

i don't try to remember all the git commands and such... i'm a BBS operator... we script everything so we don't have to remember how to do it manually... scripts are life :lol:
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6139
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Space Shuttle - Development

Postby GinGin » Mon Dec 30, 2019 3:23 pm

I tested the failure simulator
Really nice.
It would have been approved "type rating ready" in the past with such a devotion to failure simulation :)
GinGin
 
Posts: 918
Joined: Wed Jul 05, 2017 10:41 am
Location: Paris
Callsign: Gingin

Re: Space Shuttle - Development

Postby wlbragg » Thu Jan 02, 2020 5:57 pm

Has this mesh always been this messed up?
II noticed a few other places that could stand some touch up.
Image
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5235
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Space Shuttle - Development

Postby eatdirt » Thu Jan 02, 2020 8:41 pm

Has this mesh always been this messed up?


I guess so, but someone needed to spot it, and to be honest I've never put my head under the rudder pedals before, till now :)

Well spotted Wayne, the Engineer is on board!

Thanks a lot!
eatdirt
 
Posts: 495
Joined: Wed Aug 15, 2018 2:06 pm

Re: Space Shuttle - Development

Postby GinGin » Sat Jan 04, 2020 4:42 pm

Wow, well spotted Wayne.
I don't look too much to my feet xD

Quick question, Are you still working on an ISS retexturing ?
GinGin
 
Posts: 918
Joined: Wed Jul 05, 2017 10:41 am
Location: Paris
Callsign: Gingin

Re: Space Shuttle - Development

Postby wlbragg » Sat Jan 04, 2020 6:23 pm

I haven't in the last several weeks, but since I started testing the Shuttle recently and saw all the ISS files sitting there, I did notice (or maybe I should say remember) that I haven't been working on it in. :lol:

Hopefully I can start back on it before too long. I have a different, time sensitive project, I am currently "not working on" as well that needs my attention first.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5235
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Space Shuttle - Development

Postby GinGin » Sun Jan 05, 2020 5:54 pm

Very nice Wayne :)
I will wait for new textures before my next ISS trip ahah
GinGin
 
Posts: 918
Joined: Wed Jul 05, 2017 10:41 am
Location: Paris
Callsign: Gingin

Re: Space Shuttle - Development

Postby amalahama » Thu Jan 09, 2020 5:00 pm

So I can see the 3D cockpit model used in FG Space shuttle has been ported from here:

https://www.turbosquid.com/es/3d-models ... obj/833432

I can see crisp and sharp textures, why haven't they been kept in FG?

Image
amalahama
 
Posts: 115
Joined: Mon Mar 28, 2016 9:54 am

Re: Space Shuttle - Development

Postby wkitty42 » Thu Jan 09, 2020 5:16 pm

amalahama wrote in Thu Jan 09, 2020 5:00 pm:So I can see the 3D cockpit model used in FG Space shuttle has been ported from here:

https://www.turbosquid.com/es/3d-models ... obj/833432

not according to what i see in the cockpit xml files...

/home/myuser/myflightgear/Aircraft/SpaceShuttle/Models/cockpit-detailed.xml
/home/myuser/myflightgear/Aircraft/SpaceShuttle/Models/cockpit.xml

Code: Select all
<!-- STS (Space Shuttle) Cockpit model based on Chris Kuhn's excellent mesh : ref KuhnIndustries  http://www.blendswap.com/blends/view/74692
     under licence Creative Commons. http://creativecommons.org/licenses/by/3.0/
     Flightgear version by Richard Harrison; rjh@zaretto.com 2015-04-06 -->
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6139
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Space Shuttle - Development

Postby amalahama » Thu Jan 09, 2020 5:23 pm

It's the same model from Chris Kuhn. I'm not fully sure why he sells it and at the same time offer it for free under CC though
amalahama
 
Posts: 115
Joined: Mon Mar 28, 2016 9:54 am

PreviousNext

Return to Spaceflight

Who is online

Users browsing this forum: No registered users and 1 guest