Project genericvessel - spacecraft3 and multistage2 replacement project

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
Ctrl+F4 to open the custom functions menu, then pick "GenericVessel editor".
It's supposed to be a live-fire editor for the sc3 code of current vessel, but currently only the reload button works, and you have to use an external editor to do the actual changes.
Hmm, I don't have a such a function available in my Custom Functions dialog. My vessel and the only vessel in the scenario is a GenericVessel.

MY GenericVessel version is from this URL: https://bitbucket.org/face/genericvessel/get/Artlav\reload.zip
 

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
Hmm, I don't have a such a function available in my Custom Functions dialog. My vessel and the only vessel in the scenario is a GenericVessel.

MY GenericVessel version is from this URL: https://bitbucket.org/face/genericvessel/get/Artlav\reload.zip

This could be because the version there contains no binary snapshot corresponding to the source code. Artlav uploaded a ZIP archive in the linked discussion thread. If you do not recompile source code versions yourself, please try his binaries directly.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
This could be because the version there contains no binary snapshot corresponding to the source code. Artlav uploaded a ZIP archive in the linked discussion thread. If you do not recompile source code versions yourself, please try his binaries directly.
OK, tried them and we're back to CTDs again.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
Hm. Just to make sure... you tried this here: http://orbides.1gb.ru/orbf/genericvessel-reload-130519.zip ?
That is correct. It CTDs upon loading the scenario.

Edit:
It seems like the CTDs were down to me not updating the xves.dll module. Once I updated it(I missed it in the archive), everything loads properly.

---------- Post added at 09:37 PM ---------- Previous post was at 08:52 PM ----------

I think I have found a problem with the Reload function. For me, it produces a CTD every 4th reload, it's always on the 4th press of the Reload button.
 
Last edited:

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
I think I have found a problem with the Reload function. For me, it produces a CTD every 4th reload, it's always on the 4th press of the Reload button.

Artlav already mentioned that his version has some problems in this regards. We still have to make the reload stable, as mentioned in the IDE development thread. Thanks for the report, anyway.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
I have a problem with GenericVessel. One component of my animations will not move despite being properly set up. The screenshot shows the problem. The section in the red rectangle, should bend aft and remain connected to the straight section above it.

GV_animation_problem.jpg


Here's the cfg file. The animation component in bold and red is the problematic animation component. I have checked with both meshc and the D3D9Client debug dialog that the mesh group numbers are correct.
Code:
; === Configuration file for Centaur Integrated Support System ===
ClassName = CISS
Module = genericvessel
ImageBmp = Images\Vessels\SSU\CISS.bmp
END_PARSE

[CONFIG]
MESHNAME="SSU\CISS_CentaurG_Prime"
SIZE=10
EMPTY_MASS=2605
FUEL_MASS=0
MAIN_THRUST=0
RETRO_THRUST=0
HOVER_THRUST=0
ATTITUDE_THRUST=0
ISP=0
TRIM=0
PMI=(15.5,22.1,7.7)

[CHILD_ATTACH_0]
NAME=PLB
POS=(0,-2.55,-1.25)
DIR=(0,-1,0)
ROT=(0,0,1)
ID="XS"
RANGE=0.3
LOOSE=0

[PARENT_ATTACH_0]
NAME=Centaur
POS=(0,0,5)
DIR=(0,1,0)
ROT=(0,0,-1)
ID="XS"
RANGE=0.3
LOOSE=0

[ROBOTIC_ARM]
JOINT_0_NAME="Deployment Adapter"
JOINT_0_SEQ=0
JOINT_0_RANGE=(0,45)
GRAP_SEQ=1
GRAP_ATTACH=0

[ANIM_SEQ_0]
INIT_POS=0
DURATION=5.8

[ANIM_SEQ_1]
INIT_POS=0
DURATION=5.8

[ANIM_COMP_0]
; Deployment Adapter + Engine Support Stand
SEQ=0
GROUPS=2
RANGE=(0,1)
ROT_PNT=(0,-0.03,-2.12)
ROT_AXIS=(-1,0,0)
ANGLE=45

; === LH2/GH2 propellant lines ===

[B][COLOR="Red"][ANIM_COMP_1]
; LH2 fill/drain line segment 1
SEQ=0
GROUPS=24,27
RANGE=(0,1)
ROT_PNT=(-1.58,-0.66,-2.17)
ROT_AXIS=(-1,0,0)
ANGLE=22.5[/COLOR][/B]

[ANIM_COMP_2]
; LH2 fill/drain segment 2
SEQ=0
GROUPS=23,26
RANGE=(0,1)
ROT_PNT=(-1.58,0.76,-2.17)
ROT_AXIS=(-1,0,0)
ANGLE=13
PARENT=1

[ANIM_COMP_3]
; LH2 fill/drain line segment 3
SEQ=0
GROUPS=21,22,25
RANGE=(0,1)
ROT_PNT=(-1.58,0.76,-1.46)
ROT_AXIS=(-1,0,0)
ANGLE=5.3
PARENT=2

[ANIM_COMP_4]
; GH2 vent line segment 1
SEQ=0
GROUPS=31,34
RANGE=(0,1)
ROT_PNT=(-1.77,-0.47,-2.12)
ROT_AXIS=(-1,0,0)
ANGLE=22.5

[ANIM_COMP_5]
; GH2 vent line segment 2
SEQ=0
GROUPS=30,33
RANGE=(0,1)
ROT_PNT=(-1.58,0.59,-2.27)
ROT_AXIS=(-1,0,0)
ANGLE=15
PARENT=4

[ANIM_COMP_6]
; GH2 vent line segment 3
SEQ=0
GROUPS=28,29,32
RANGE=(0,1)
ROT_PNT=(-1.58,0.59,-1.45)
ROT_AXIS=(-1,0,0)
ANGLE=15
PARENT=5


; === LOX/GOX propellant lines ===

[ANIM_COMP_7]
; LOX fill/drain line segment 1
SEQ=0
GROUPS=17,14
RANGE=(0,1)
ROT_PNT=(1.58,-0.66,-2.17)
ROT_AXIS=(-1,0,0)
ANGLE=22.5

[ANIM_COMP_8]
; LOX fill/drain segment 2
SEQ=0
GROUPS=15,18
RANGE=(0,1)
ROT_PNT=(1.58,0.76,-2.17)
ROT_AXIS=(-1,0,0)
ANGLE=13
PARENT=7

[ANIM_COMP_9]
; LOX fill/drain line segment 3
SEQ=0
GROUPS=16,19,20
RANGE=(0,1)
ROT_PNT=(1.58,0.76,-1.46)
ROT_AXIS=(-1,0,0)
ANGLE=5.3
PARENT=8

[ANIM_COMP_10]
; GOX vent line segment 1
SEQ=0
GROUPS=6,9
RANGE=(0,1)
ROT_PNT=(1.58,-0.47,-2.12)
ROT_AXIS=(-1,0,0)
ANGLE=22.5

[ANIM_COMP_11]
; GOX vent line segment 2
SEQ=0
GROUPS=7,10
RANGE=(0,1)
ROT_PNT=(1.58,0.59,-2.27)
ROT_AXIS=(-1,0,0)
ANGLE=15
PARENT=10

[ANIM_COMP_12]
; GOX vent line segment 3
SEQ=0
GROUPS=8,11,12
RANGE=(0,1)
ROT_PNT=(1.58,0.59,-1.45)
ROT_AXIS=(-1,0,0)
ANGLE=7.4
PARENT=11
 
Last edited:

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
The section in the red rectangle, should bend aft and remain connected to the straight section above it.
<snip>
Here's the cfg file. The animation component in bold and red is the problematic animation component. I have checked with both meshc and the D3D9Client debug dialog that the mesh group numbers are correct.

Does this mean that only the red component is not rotating? The other drain line segments - that have parent/child relations to the red component - are moving?
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
Does this mean that only the red component is not rotating? The other drain line segments - that have parent/child relations to the red component - are moving?
Correct on both. For some reason it is not at all. I have tried substituting other groups just to check if there was something wrong with numbers, but to no use.

As you probably see from the cfg file, it is all part of a robot arm definition required so that the Deployment Adapter can rotate the Centaur upper stage to the deploy attitude.
 

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
Correct on both. For some reason it is not at all. I have tried substituting other groups just to check if there was something wrong with numbers, but to no use.

Did you also try to reorder the entries for 1 to 3 and 4 to 6? Maybe it is something with especially the first parent/child definition. If my theory holds, reordering it will suddenly make the first vent line component fail instead of the drain line.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,991
Reaction score
289
Points
173
Did you also try to reorder the entries for 1 to 3 and 4 to 6? Maybe it is something with especially the first parent/child definition. If my theory holds, reordering it will suddenly make the first vent line component fail instead of the drain line.
Tried this and indeed this is the case. Now the first vent line segment (component 4, groups 31 and 34) is not animating.
 

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
Tried this and indeed this is the case. Now the first vent line segment (component 4, groups 31 and 34) is not animating.

Ok, thanks for the info, I'll have a look.
 

Loru

Moderator
Addon Developer
Donator
Joined
Sep 30, 2008
Messages
3,733
Reaction score
4
Points
36
Location
Warsaw
Ok - I know it's early but would it be possible to add airbreathing engines? It would allow for creation of various planes/helicopters/vtols. (basically merging aircraft.dll with generic vessel)

I know in SC3 I can ommit some values and module will add default so why not something like that?

Code:
MAIN_THRUST=35000
MAIN_TYPE=[B]JET[/B] ; default : ROCKET
HOVER_THRUST=0
HOVER_TYPE=[B]PROP[/B]; default : ROCKET
...

certain thrust modifiers then can be added to thrust caclulations for JET and PROP modes depending on static or dynamic pressure.
 
Last edited:

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,834
Reaction score
90
Points
123
Location
Cape
Also could you add more drag elements.
 

Michael_Chr

New member
Joined
Jul 16, 2013
Messages
153
Reaction score
0
Points
0
Location
Virklund
Animation not working

Trying to perform a transition to Generic Vessel from SC3. All looks good except from some minor issues. So wanted to start with something simple.

The vessel I generate seems to get 4 docking ports even though only one is defined.

But the worst part is that I cant seem to get the animmation to run. Have I done anything bad in the cfg file. If nescessary I can provide the mesh file as well for full testing.

This is the cfg file:
Code:
ClassName = genericvessel
Module = genericvessel


[CONFIG] 
MESHNAME="Hydra\Antares_hydra_SM"
SIZE = 15
CAMERA=(-0.45,1.7,8.1)
VISIBLE=1
EMPTY_MASS =5600
FUEL_MASS=9600
MAIN_THRUST=91000
ATTITUDE_THRUST=2000
COG=0
ISP=3153 ;N2O4+Aerozine apvd mc
PMI=(8.5,8.5,10.26)
PITCH_MOMENT_SCALE=0.0001 
BANK_MOMENT_SCALE=0.0001 
FOCUS=0
; MAIN_TEX=exhaust_atsmb
; ATT_TEX=exhaust_atrcs

[PAYLOAD_0]
MESHNAME="Antares\antares"
NAME=Antares-Reentry
MASS=13350
OFF=(0,0,7.75)
MODULE=AntaresLRcap
SPEED=(0,0,0.3)
ROT_SPEED=(0,0,0)

; ===== ENGINES & RCS ========

; **************** Main engine ***************

[EX_MAIN_0]
OFF=(0,0,-5.504587)
DIR=(0,0,-1)
LENGTH=16
WIDTH=1.15

; **************** UPR RCS cluster***************

;********FWD*******
[EX_ATT_0]
OFF=(0,2.671929,3.089058)
DIR=(0,0.216,0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=X
ROT_CW=0
LIN_AXIS=z
LIN_CW=1

;********BACK*******
[EX_ATT_1]
OFF=(0,2.671929,1.781796)
DIR=(0,0.216,-0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=X
ROT_CW=1
LIN_AXIS=z
LIN_CW=0

;********LEFT*******
[EX_ATT_2]
OFF=(-0.3405927,2.606107,2.430821)
DIR=(-1,0,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=0
LIN_AXIS=X
LIN_CW=1

;********RIGHT*******
[EX_ATT_3]
OFF=(0.3405927,2.606107,2.430821)
DIR=(1,0,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=1
LIN_AXIS=X
LIN_CW=0

; **************** LWR RCS cluster***************

;********FWD*******
[EX_ATT_4]
OFF=(0,-2.671929,3.089058)
DIR=(0,-0.216,0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=X
ROT_CW=1
LIN_AXIS=z
LIN_CW=1

;********BACK*******
[EX_ATT_5]
OFF=(0,-2.671929,1.781796)
DIR=(0,-0.216,-0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=X
ROT_CW=0
LIN_AXIS=z
LIN_CW=0

;********LEFT*******
[EX_ATT_6]
OFF=(-0.3405927,-2.606107,2.430821)
DIR=(-1,0,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=1
LIN_AXIS=X
LIN_CW=1

;********RIGHT*******
[EX_ATT_7]
OFF=(0.3405927,-2.606107,2.430821)
DIR=(1,0,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=0
LIN_AXIS=X
LIN_CW=0

; **************** LEFT RCS cluster***************

;********FWD*******
[EX_ATT_8]
OFF=(-2.671929,0,3.089058)
DIR=(-0.216,0,0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=Y
ROT_CW=0
LIN_AXIS=z
LIN_CW=1

;********BACK*******
[EX_ATT_9]
OFF=(-2.671929,0,1.781796)
DIR=(-0.216,0,-0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=Y
ROT_CW=1
LIN_AXIS=z
LIN_CW=0

;********LWR*******
[EX_ATT_10]
OFF=(-2.606107,-0.3405927,2.430821)
DIR=(0,-1,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=0
LIN_AXIS=Y
LIN_CW=0

;********UPR*******
[EX_ATT_11]
OFF=(-2.606107,0.3405927,2.430821)
DIR=(0,1,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=1
LIN_AXIS=Y
LIN_CW=1

; **************** RIGHT RCS cluster***************

;********FWD*******
[EX_ATT_12]
OFF=(2.671929,0,3.089058)
DIR=(0.216,0,0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=Y
ROT_CW=1
LIN_AXIS=z
LIN_CW=1

;********BACK*******
[EX_ATT_13]
OFF=(2.671929,0,1.781796)
DIR=(0.216,0,-0.976)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=Y
ROT_CW=0
LIN_AXIS=z
LIN_CW=0

;********LWR*******
[EX_ATT_14]
OFF=(2.606107,-0.3405927,2.430821)
DIR=(0,-1,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=1
LIN_AXIS=Y
LIN_CW=0

;********UPR*******
[EX_ATT_15]
OFF=(2.606107,0.3405927,2.430821)
DIR=(0,1,0)
LENGTH=0.6
WIDTH=0.06
ROT_AXIS=z
ROT_CW=0
LIN_AXIS=Y
LIN_CW=1

; === DOCKING and ATTACHMENT ===

[DOCK_0]
POS=(0,0,10.45)
DIR=(0,0,1)
ROT=(0,1,0)

; == ANIMATION ===

; === Animation Sequences ===

; HGA Retract
[ANIM_SEQ_0]
INIT_POS=0
KEY=K
DURATION=5
REPEAT=0
PAUSE=0


: === Animation Components ===

; HGA Retract
[ANIM_COMP_0]
SEQ=0
GROUPS=81,135,136
RANGE=(0.0,1.0)
TYPE=ROTATE
ROT_PNT=(0,2.663543,-2.813972)
ROT_AXIS=(1,0,0)
ANGLE=105

and the scenario file

Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 53125.4723924718
END_ENVIRONMENT

BEGIN_FOCUS
  Ship AntaresGV
END_FOCUS

BEGIN_CAMERA
  TARGET AntaresGV
  MODE Extern
  POS 0.94 -81.66 -30.96
  TRACKMODE TargetRelative
  FOV 60.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_SHIPS
ISS:ProjectAlpha_ISS
  STATUS Orbiting Earth
  RPOS -6480093.42 -1030791.11 1547090.17
  RVEL -1582.357 7313.456 -1756.982
  AROT 110.02 -10.09 79.99
  AFCMODE 7
  PRPLEVEL 0:1.000000
  IDS 0:588 100 1:586 100 2:584 100 3:582 100 4:580 100
  NAVFREQ 0 0
  XPDR 466
END
AntaresGV:Antares-HydraCSM
  STATUS Orbiting Earth
  RPOS 6999225.33 0.00 352794.24
  RVEL -379.655 -0.000 7532.123
  AROT 0.00 0.00 0.00
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0 0 0
  XPDR 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
  SEQ 0 -2 0.0000
END
END_SHIPS

BEGIN_ReFuelMFD
  SCENARIO_TREE 
    NAMED Computers
    END_NODE 
  END_NODE 
END

BEGIN_uap
END

BEGIN_ExtMFD
END
 

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
Trying to perform a transition to Generic Vessel from SC3. All looks good except from some minor issues.

What version of genericvessel do you use?
 
Last edited:

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
"face-genericvessel-3cd35eaf889c"
it says on the zip file and downloaded it from here:
https://bitbucket.org/face/genericvessel/downloads

Did you recompile it or just use the included binaries? If the later, you should have what Artlav distributed there. Since he declared this one the "old thread", I think it is best to post your bug report (including mesh file for reproduction) there to maximize developer attention.
 

Michael_Chr

New member
Joined
Jul 16, 2013
Messages
153
Reaction score
0
Points
0
Location
Virklund
Replaced the module from the version from Artlav- didn't fix it. Will post the question in Artlavs Thread. Thanks :)
 

Face

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,228
Reaction score
181
Points
103
Location
Vienna
Replaced the module from the version from Artlav- didn't fix it.

Well, of course not, because it is exactly the same as in the version you posted. I've double-checked that already.
 
Top