OHM Spacecraft3 to DLL&C++ converter 141006

Nemoricus

Addon Developer
Addon Developer
Joined
Jul 7, 2009
Messages
286
Reaction score
0
Points
0
Mashing keys randomly until something worked. >.>
 

PeterRoss

Warranty man
Joined
Oct 8, 2009
Messages
1,985
Reaction score
127
Points
63
Location
Khabarovsk
Website
vk.com
Big Space Plane 4 by Greg Burch ([ame="http://www.orbithangar.com/searchid.php?ID=3124"]Big SpacePlane 4.0[/ame]) also have some issues while being converted into dll. First of, if you'll try to convert it as is the converter will lock up dead. It is caused by the error in the .ini file:
Code:
[ANIM_SEQ_6]
; Cargo Bay Doors / Docking Tube & Airlock Deploy
KEY=0
DURATION=6

[ANIM_SEQ_]
; Cargo Bay Connecting Tube & Airlock Deploy
KEY=2
DURATION=4

[ANIM_SEQ_7]
; HUD Retract
KEY=9
DURATION=4
As you can see there is one block with no animation sequense number defined. But when being processed by spacecraft3 it's not causing any big problems; looks like it's just being ignored. I know it's not your mistake after all, just want to point out some potential problem source.

Second issue with BSP4 is with its robotic arm. Seems like its third segment aren't participating in all the fun at all:) It just remains at place no matter what I 'm doing.
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
Hi Artlav,

Any more progress, or is this done for now ?
 

Poscik

Addon Developer
Addon Developer
Joined
Mar 28, 2008
Messages
512
Reaction score
3
Points
18
Location
Sulejówek
Hi! I have some problems with PMA2. I can't see any reason why does it behaves like that. You will need Thorton's newest ISS, and Donamy's ISS Experience to run this. You would need to convert Unity.ini and PMA2.ini with module names as ini names. Unity works completely fine, but PMA2 seems to have something wrong with attachments. Here is scenario:
Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 51328.4541618090
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Unity
END_FOCUS

BEGIN_CAMERA
  TARGET Unity
  MODE Extern
  POS 8.10 9.38 -6.61
  TRACKMODE GlobalFrame
  FOV 44.92
END_CAMERA

BEGIN_HUD
  TYPE Docking
  NAV 0
END_HUD

BEGIN_MFD Left
  TYPE User
  MODE Attachment menagement
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE Attachment menagement
END_MFD

BEGIN_SHIPS
Zarya:ISSR\Zarya
  STATUS Orbiting Earth
  RPOS 4186066.30 4903829.28 -2020279.82
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  AFCMODE 7
  PRPLEVEL 0:0.477783 1:0.500000
  DOCKINFO 1:1,Unity
  NAVFREQ 0 0
  XPDR 161
  ANT 0 1.0000 -1
  CAM 1
  SOL_DEP 0 1.0000 -1
  ControlMode 0
  SOL_ST 0.0000 0
  MSSTATE 1
  LIGHT 0 1
  BATTERY 72614.7014 72.6147
  SHOWDATA 2
END
APFR:ISSR\APFR
  STATUS Orbiting Earth
  RPOS 4186070.57 4903836.11 -2020282.89
  RVEL 1752.071 1522.684 7321.003
  AROT 70.09 40.39 -127.94
  VROT 0.02 0.00 0.07
  ATTACHED 3:4,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.1103 0
  SH2 1 0.4890 0
  SH3 1 0.5777 0
  SH5 0.5000 0.5000
  POS0 0.04 0.09 0.35
  DIR0 -0.21 -0.30 -0.93
  ROT0 0.07 0.95 -0.32
  POS1 0.00 -0.08 0.07
  DIR1 0.00 -0.32 -0.95
  ROT1 0.00 -0.95 0.32
END
OTD:ISSR\OTD
  STATUS Orbiting Earth
  RPOS 4186072.07 4903834.12 -2020283.86
  RVEL 1752.071 1522.684 7321.003
  AROT -123.63 -32.92 46.08
  VROT 0.00 -0.03 -0.06
  ATTACHED 1:10,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.6188 0
  SH2 1 0.6669 0
  SH3 0 0.0000 0
  SH4 0 0.0000 0
  SH5 0.5000
  POS -1.25 0.60 0.10
  DIR -0.78 0.38 -0.50
  ROT 0.44 0.90 0.00
END
Strela1:ISSR\Strela
  STATUS Orbiting Earth
  RPOS 4186072.88 4903834.51 -2020281.99
  RVEL 1752.071 1522.684 7321.003
  AROT 149.84 50.71 -66.08
  VROT -0.04 -0.00 0.05
  ATTACHED 1:9,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.3687 0
  SH2 1 0.1109 0
  SH3 0 0.0000 0
  SH4 0 0.0000 0 0 0.0000 0
  SH5 0.5000 0.5000
  POS0 0.18 2.32 0.69
  DIR0 0.03 0.38 -0.92
  ROT0 1.00 -0.08 -0.00
  POS1 -0.04 -0.56 0.95
  DIR1 0.00 0.00 1.00
  ROT1 -0.08 -1.00 0.00
END
Unity:Unity
  STATUS Orbiting Earth
  RPOS 4186073.03 4903837.35 -2020285.12
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  AFCMODE 7
  DOCKINFO 1:1,Zarya
  NAVFREQ 0 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
  SEQ 0 -2 0.000000
  SEQ 1 -2 0.000000
  SEQ 2 -2 0.000000
  SEQ 3 -2 0.000000
END
PMA2:PMA2
  STATUS Orbiting Earth
  RPOS 4186076.08 4903840.96 -2020287.12
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  ATTACHED 0:0,Unity
  AFCMODE 7
  NAVFREQ 0 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
END
END_SHIPS

BEGIN_ExtMFD
END
 

Artlav

Aperiodic traveller
Addon Developer
Beta Tester
Joined
Jan 7, 2008
Messages
5,790
Reaction score
780
Points
203
Location
Earth
Website
orbides.org
Preferred Pronouns
she/her
Update 110509.
-Fixed no arm grapple point causing attachment bug
-Fixed no arm sequence bug
-Fixed error handling for animation sequences number (BSP now works)

Hi! I have some problems with PMA2.
Fixed.
Big Space Plane 4 by Greg Burch also have some issues while being converted into dll.
Fixed.
Poor dude...
Um, details please?
The robotic arm animations seemed to be bugged.
Cannot reproduce.
Does it still exist in current version?
Does it happen in compiled sources?
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
Artlav,
Are you able to pause animation ?

---------- Post added at 06:59 PM ---------- Previous post was at 06:56 PM ----------



Poscik
Hi! I have some problems with PMA2. I can't see any reason why does it behaves like that. You will need Thorton's newest ISS, and Donamy's ISS Experience to run this. You would need to convert Unity.ini and PMA2.ini with module names as ini names. Unity works completely fine, but PMA2 seems to have something wrong with attachments. Here is scenario:
Code:
BEGIN_DESC
 
END_DESC
 
BEGIN_ENVIRONMENT
  System Sol
  Date MJD 51328.4541618090
END_ENVIRONMENT
 
BEGIN_FOCUS
  Ship Unity
END_FOCUS
 
BEGIN_CAMERA
  TARGET Unity
  MODE Extern
  POS 8.10 9.38 -6.61
  TRACKMODE GlobalFrame
  FOV 44.92
END_CAMERA
 
BEGIN_HUD
  TYPE Docking
  NAV 0
END_HUD
 
BEGIN_MFD Left
  TYPE User
  MODE Attachment menagement
END_MFD
 
BEGIN_MFD Right
  TYPE User
  MODE Attachment menagement
END_MFD
 
BEGIN_SHIPS
Zarya:ISSR\Zarya
  STATUS Orbiting Earth
  RPOS 4186066.30 4903829.28 -2020279.82
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  AFCMODE 7
  PRPLEVEL 0:0.477783 1:0.500000
  DOCKINFO 1:1,Unity
  NAVFREQ 0 0
  XPDR 161
  ANT 0 1.0000 -1
  CAM 1
  SOL_DEP 0 1.0000 -1
  ControlMode 0
  SOL_ST 0.0000 0
  MSSTATE 1
  LIGHT 0 1
  BATTERY 72614.7014 72.6147
  SHOWDATA 2
END
APFR:ISSR\APFR
  STATUS Orbiting Earth
  RPOS 4186070.57 4903836.11 -2020282.89
  RVEL 1752.071 1522.684 7321.003
  AROT 70.09 40.39 -127.94
  VROT 0.02 0.00 0.07
  ATTACHED 3:4,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.1103 0
  SH2 1 0.4890 0
  SH3 1 0.5777 0
  SH5 0.5000 0.5000
  POS0 0.04 0.09 0.35
  DIR0 -0.21 -0.30 -0.93
  ROT0 0.07 0.95 -0.32
  POS1 0.00 -0.08 0.07
  DIR1 0.00 -0.32 -0.95
  ROT1 0.00 -0.95 0.32
END
OTD:ISSR\OTD
  STATUS Orbiting Earth
  RPOS 4186072.07 4903834.12 -2020283.86
  RVEL 1752.071 1522.684 7321.003
  AROT -123.63 -32.92 46.08
  VROT 0.00 -0.03 -0.06
  ATTACHED 1:10,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.6188 0
  SH2 1 0.6669 0
  SH3 0 0.0000 0
  SH4 0 0.0000 0
  SH5 0.5000
  POS -1.25 0.60 0.10
  DIR -0.78 0.38 -0.50
  ROT 0.44 0.90 0.00
END
Strela1:ISSR\Strela
  STATUS Orbiting Earth
  RPOS 4186072.88 4903834.51 -2020281.99
  RVEL 1752.071 1522.684 7321.003
  AROT 149.84 50.71 -66.08
  VROT -0.04 -0.00 0.05
  ATTACHED 1:9,Unity
  AFCMODE 7
  NAVFREQ 0 0
  SH1 1 0.3687 0
  SH2 1 0.1109 0
  SH3 0 0.0000 0
  SH4 0 0.0000 0 0 0.0000 0
  SH5 0.5000 0.5000
  POS0 0.18 2.32 0.69
  DIR0 0.03 0.38 -0.92
  ROT0 1.00 -0.08 -0.00
  POS1 -0.04 -0.56 0.95
  DIR1 0.00 0.00 1.00
  ROT1 -0.08 -1.00 0.00
END
Unity:Unity
  STATUS Orbiting Earth
  RPOS 4186073.03 4903837.35 -2020285.12
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  AFCMODE 7
  DOCKINFO 1:1,Zarya
  NAVFREQ 0 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
  SEQ 0 -2 0.000000
  SEQ 1 -2 0.000000
  SEQ 2 -2 0.000000
  SEQ 3 -2 0.000000
END
PMA2:PMA2
  STATUS Orbiting Earth
  RPOS 4186076.08 4903840.96 -2020287.12
  RVEL 1752.071 1522.684 7321.003
  AROT 119.59 -36.22 159.52
  VROT 0.07 0.00 0.00
  ATTACHED 0:0,Unity
  AFCMODE 7
  NAVFREQ 0 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
END
END_SHIPS
 
BEGIN_ExtMFD
END

Does it work if you dock it instead ?
 
Last edited:

PeterRoss

Warranty man
Joined
Oct 8, 2009
Messages
1,985
Reaction score
127
Points
63
Location
Khabarovsk
Website
vk.com
Thank you, Artlav, with your great tool I'll manage to convert all the Greg's fleet into .dlls someday:) Too bad he's not interested in Orbiter anymore (?). He's a great designer.

Look, am I right guessing that attachment system doesn't add mass of a child to a parent vessel? At least I haven't noticed any change in Vehicle Stack Mass in BTC MFD during attach/detach of a child vessel. Maybe it will be more correct to make attachment system to add masses? Or maybe you could just tell me what to change in generated sources to make it work this way?
 

Poscik

Addon Developer
Addon Developer
Joined
Mar 28, 2008
Messages
512
Reaction score
3
Points
18
Location
Sulejówek
Artlav,
Are you able to pause animation ?

---------- Post added at 06:59 PM ---------- Previous post was at 06:56 PM ----------



Poscik

Does it work if you dock it instead ?
Your PMA2 doesn't have docking ports :) All dockings are handled by Unity, and PMA2 work just like "fill the space" between shuttle and Unity.
 

Nemoricus

Addon Developer
Addon Developer
Joined
Jul 7, 2009
Messages
286
Reaction score
0
Points
0
Update 110509.
Cannot reproduce.
Does it still exist in current version?
Does it happen in compiled sources?

It longer occurs in the current version, so evidently it's been fixed.
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
remove the red part from every SC3 .ini, Orbiter 2010 doesn't like it for some reason.

Code:
[CONFIG]
MESHNAME="PMA2" 
EMPTY_MASS=1814  
FUEL_MASS=0     
MAIN_THRUST=0
ATTITUDE_THRUST=0
ISP=0
[COLOR="Red"]PMI=(1,1,1)
CROSS_SECTION=(3.0,2.9,2.9)[/COLOR]
SIZE=5
 

Arthur Dent

Absolutely Mental
Donator
Joined
Feb 8, 2008
Messages
336
Reaction score
1
Points
18
Location
Dresden
Website
wasa.pottyland.de
remove the red part from every SC3 .ini, Orbiter 2010 doesn't like it for some reason.

Code:
[CONFIG]
MESHNAME="PMA2" 
EMPTY_MASS=1814  
FUEL_MASS=0     
MAIN_THRUST=0
ATTITUDE_THRUST=0
ISP=0
[COLOR="Red"]PMI=(1,1,1)
CROSS_SECTION=(3.0,2.9,2.9)[/COLOR]
SIZE=5

won't that have negative effects?
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
If it stops crashing, that's not a negative effect. :lol:

Seriously though, I think they are obsolete features.
 

Arthur Dent

Absolutely Mental
Donator
Joined
Feb 8, 2008
Messages
336
Reaction score
1
Points
18
Location
Dresden
Website
wasa.pottyland.de
Well that is definitely a positive thing. Could you please explain why it is obsolete and what did it do? I thought that was important for Orbiter to calculate the center of gravity, or something like that.
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,457
Reaction score
712
Points
203
I think I found a bug with the converter's animation handling. There's no keys specified in the generated sources to trigger the animations! The animations are correctly specified in the ini file, no erroneous spaces or misspellings. They're just not generated.
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
Would it be possible, for the same keys to be used in the .dlls as the .ini ?
 

Artlav

Aperiodic traveller
Addon Developer
Beta Tester
Joined
Jan 7, 2008
Messages
5,790
Reaction score
780
Points
203
Location
Earth
Website
orbides.org
Preferred Pronouns
she/her
I think I found a bug with the converter's animation handling. There's no keys specified in the generated sources to trigger the animations! The animations are correctly specified in the ini file, no erroneous spaces or misspellings. They're just not generated.
Huh?
void make_anim(int n,int id,int tp,int repeat,int trigkey,int status,double spd,double proc,double init,int grpcnt,int compcnt)

Fifth parameter is the trigger key.

clbkConsumeBufferedKey uses it.

All is there, or what exactly did you mean?
Is there a broken case?
What is it exactly?

Look, am I right guessing that attachment system doesn't add mass of a child to a parent vessel?
Does SC3 do it? Never checked.


Artlav,
Are you able to pause animation ?
Not sure what you mean yet.
If the animation is defined as repeated, then it should start and stop on key press. Else, it toggles at key press.
What else should be there?

remove the red part from every SC3 .ini, Orbiter 2010 doesn't like it for some reason.
...
If it stops crashing, that's not a negative effect.
PMI is principal moment of inertia, a vital parameter for the handling of the vessel, on par with it's mass.
CROSS_SECTION is for air resistance.

Neither are obsolete by al long shot, so if anything crashes we're better investigate the crash.

Would it be possible, for the same keys to be used in the .dlls as the .ini ?
The question makes no sense to me, please clarify.
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,924
Reaction score
232
Points
138
Location
Cape
In SC3, repeat means an endless loop. Pause means to be able to stop the animation's motion in the time step and reverse them..

SC3 uses the left-shift key + the numkeypad(0-9) to use animations, cntrol key + left-shift + the numkeypad(0-9) reverses the direction of the animations that have the pause feature.

All the features for SC3 are explained in the SC3 Doc.
 
Last edited:

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,457
Reaction score
712
Points
203
Huh?
void make_anim(int n,int id,int tp,int repeat,int trigkey,int status,double spd,double proc,double init,int grpcnt,int compcnt)

Fifth parameter is the trigger key.

clbkConsumeBufferedKey uses it.

All is there, or what exactly did you mean?
Is there a broken case?
What is it exactly?
clbkConsumeBufferedKey is not generated that's what I mean. Here's a complete package including the generated sources: http://dl.dropbox.com/u/24122088/Orbiter stuff/SSU_VAB_1990.zip
 
Top