See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: [BETA25] UMmu addon & UMmu SDK available.  (Read 7876 times)

0 Members and 2 Guests are viewing this topic.

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
06 April 2007, 00:38:29
"BETA GOLD" (just before final) released see here:
http://orbiter.dansteph.com/forum/index.php?topic=12008.msg185004#msg185004







New version "BETA 2.5" released 14 april 15h GMT+2

End user and author can install the file below.

For Authors there is a fully commented example of ShuttlePB
so you may insert Ummu in your ship in no time... See DOC/UMMu_SDK for lib header, source and example.
Be sure to read the PDF documentation and copy first the UMmu_ShuttlePB_Example folder
in "sample" directory of orbiter SDK and compile it.


the SDK header is fully commented as is the ShuttlePB example. As UMMu is really
simple this should not cause any problems even for medium programmers.
Read anyway the PDF file there is an important notice.

END USER FILE UMMU 1.0 ADDON + SDK for Author (see in doc directory)
Download an unzip in your orbiter directory:
http://www.dansteph.com/publie/UMmu_and_SDK_BETA25.zip


Comments and feedback welcome !!!!

Best

Dan



Message modifié ( 14-04-2007 14:49 )



Message modifié ( 14-04-2007 14:50 )


Offline sunshine135

  • Hero Member
  • *****
  • Posts: 547
  • Country: United States us
  • Karma: 3
  • I fly by the seat of my pants!
Reply #1 - 06 April 2007, 17:20:46
Dan,

I look forward to trying my hand at adding the UMmu features to some of the existing spacecraft that I use. I wonder if I
alter someone's design by adding UMmu if I should, to be nice, advise them that I am doing so? I guess as long as I do not
publish it as my own work, I should be okay.

I will have to play later though. Too much "put food on the table" work to do today.


Cheers and thanks again for another piece of fine work.

Regards,


"Sun Dog"

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #2 - 06 April 2007, 17:41:48
If you publish it you must ask authorisation to author, I've seen some nice ships on OH that would deserve a crew.

Dan


Offline sunshine135

  • Hero Member
  • *****
  • Posts: 547
  • Country: United States us
  • Karma: 3
  • I fly by the seat of my pants!
Reply #3 - 06 April 2007, 20:21:43
Just a thought Dan...I got to play with the new PB Shuttle a little, and noticed that no change was made to the actual
shuttle mesh. I was wondering if, in the future, would it be possible to have a pilot mesh for the seat that would disappear
when the last UMmu left the spacecraft? That may be too difficult of a request based on the number of different meshes.

Regards,


"Sun Dog"

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #4 - 06 April 2007, 21:02:07
That's just a demo that show the SDK,I want to keep it as simple as possible.
Up to you to make a mesh and make it disappear/appear, this is not too difficult.
Notice it's like that we start HUGE project "oh I will just add that".... "maybe just that also" ...

I started modifying stock DG because I just wanted to add *one* button on the airlock.
That was four years ago, now DGIV have countless button and 32'000 lines of code  :badsmile:

Dan



Message modifié ( 06-04-2007 22:41 )


Offline Quick_Nick

  • Sr. Member
  • ****
  • Posts: 446
  • Karma: 0
Reply #5 - 06 April 2007, 22:36:51
Just make a circlular area a little out of the bottom with a docking port texture and resist doing anything else. Or
someone else can do that...


-Nick

Offline n122vu

  • Full Member
  • ***
  • Posts: 150
  • Karma: 1
Reply #6 - 07 April 2007, 02:14:35
Dan,

One thing I noticed, a typo in the description of actions on the Transfer demo scenario.  When you press "E" to
transfer a crew member to another docked vessel, it reads "<name> aged<age>, was transfered to our ship"
but when you press "S" to check status, there is one less soul aboard and one additional available seat.  

This text should read "<name> aged <age> was transferred from our ship" to reflect that the individual has left
the vessel rather than boarded.  Also note the additional "r" in transferred.

Regards,
n122vu



Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #7 - 07 April 2007, 02:18:28
Quote
n122vu a écrit:
This text should read "&ltname&gt aged &ltage&gt was transferred from our
ship" to reflect that the individual has left
the vessel rather than boarded.  Also note the additional "r" in transferred.

Not a typo: both vessels fight to put their message on screen the one you see is the one from the other vessel.
I must forbid "non focus vessel" to send message in the demo.

Dan


Offline n122vu

  • Full Member
  • ***
  • Posts: 150
  • Karma: 1
Reply #8 - 07 April 2007, 02:22:13
Quote
DanSteph wrote:

Not a typo: both vessels fight to put their message on screen the one you see is the one from the other vessel.
I must forbid "non focus vessel" to send message in the demo.

Dan

Ah.  Makes sense.  Carry on with the good work then!

n122vu



Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #9 - 07 April 2007, 22:31:20
Quote
   // We warn the user, in the case UMmu isn't installed it's a good idea to send a "oapiDebugString"
   // Orbiter message, otherwise your addon will not be fully operational and user may not notice.
   //(nobody read doc, you may be the only one, if you read this send me a postcard ;)

One postcard. ;)



Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #10 - 08 April 2007, 03:41:28
Quote
streb2001 a écrit:
Quote
   // We warn the user, in the case UMmu isn't installed it's a good idea to send a
"oapiDebugString"
   // Orbiter message, otherwise your addon will not be fully operational and user may not notice.
   //(nobody read doc, you may be the only one, if you read this send me a postcard ;)

One postcard. ;)


:lol:


Be warned I just saw an error in the demo... just missing two lines,
seem nobody tried to compile it until now anyway ;)

Dan


Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #11 - 14 April 2007, 02:08:45
I can't get past these errors (using VC++ 6.0):
--------------------Configuration: ISS_UMMU - Win32 Release--------------------
Linking...
   Creating library Release/ISS_UMMU.lib and object Release/ISS_UMMU.exp
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)"
(??_V@YAXPAX@Z)
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol __ftol2_sse
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol __ftol2_sse
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol ___security_cookie
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol ___security_cookie
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol _sprintf_s
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol _strcpy_s
..\..\..\Modules/ISS_UMMU.dll : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

ISS_UMMU.dll - 11 error(s), 1 warning(s)

Any ideas?

Steve


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #12 - 14 April 2007, 02:55:47
mhhh using old library or some compile setting that aren't good ?

Search Google about "unresolved external symbol ___security_cookie"
or "unresolved external symbol __ftol2_sse" there is plenty of reply but
I don't have time to dig in for now. The solution may be in your installation
of VC+platform SDK so very hard for me to dig in anyway.

Let me know if you find the answer.

Dan



Message modifié ( 14-04-2007 04:08 )


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #13 - 14 April 2007, 07:09:19
I just uploaded the BETA2 of the SDK, please see 1st post for link and advice.
I would say try first to compile the ShuttlePB example than if it work see what
is different on your "ISS" project settings.

Take care to not mix new and old lib and header please.

Thanks & feedback welcome.

Dan


Offline jer11

  • Sr. Member
  • ****
  • Posts: 273
  • Karma: 0
Reply #14 - 14 April 2007, 07:44:43
How abot the ISS? Ummus in the ISS

What if they all die onboard?

I want H20




Age 13

Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #15 - 14 April 2007, 12:17:03
Dan, which version of VC++ are you using? I would guess VC2003 which explains why VC++6.0 can't find the linker libs. I will
reinstall VC++ 2005 express and try putting the libs path into the project. If this fails I give up.


Offline tritoch

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 0
Reply #16 - 14 April 2007, 12:49:11
the d**{cencored}n lionk wont work


if im online then im online [now you're offline, user banned]

Offline melinda

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
Reply #17 - 14 April 2007, 13:09:25
Quote
tritoch wrote:
the d**{cencored}n lionk wont work

i got that to

[User Banned]

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #18 - 14 April 2007, 14:51:48
Quote
streb2001 a écrit:
Dan, which version of VC++ are you using? I would guess VC2003 which explains why VC++6.0 can't find the linker
libs. I will reinstall VC++ 2005 express and try putting the libs path into the project. If this fails I give up.

I use VC2005 proffesionnal edition but of course if have the latest platform SDK and DirectX SDK
in lib path.

I just uploaded a new version "BETA25" see if it goes better. You have a PM also. ;)

Dan


Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #19 - 14 April 2007, 17:08:43
Quote
DanSteph wrote:
Quote
streb2001 a écrit:
Dan, which version of VC++ are you using? I would guess VC2003 which explains why VC++6.0 can't find the linker
libs. I will reinstall VC++ 2005 express and try putting the libs path into the project. If this fails I give up.

I use VC2005 proffesionnal edition but of course if have the latest platform SDK and DirectX SDK
in lib path.

I just uploaded a new version "BETA25" see if it goes better. You have a PM also. ;)

Dan

Cheers Dan, I PMd you before I saw this. Oops. Downloading 2.5...

Steve


Offline g2g591

  • Jr. Member
  • **
  • Posts: 71
  • Karma: 0
Reply #20 - 14 April 2007, 19:03:06
semi off topic but if anyone gets the iss to have ummus and compile, get me a copy.
reason i cant find a source for the iss
edit2: now downloading platformsdk (somehow forgot) ... its taking forever ...



Post Edited ( 04-15-07 22:37 )


Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #21 - 14 April 2007, 20:45:26
The 2.5 UmmuSDK.lib produces

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)"
(??_V@YAXPAX@Z)
UMmuSDK.lib(UMmuSDK.obj) : error LNK2001: unresolved external symbol __ftol2_sse
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol __ftol2_sse
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol _sprintf_s
UMmuSDK.lib(universal_mmu.obj) : error LNK2001: unresolved external symbol _strcpy_s
..\..\..\Modules/ISS_UMMU.dll : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

ISS_UMMU.dll - 7 error(s), 1 warning(s)

The "security_cookie" errors have gone - did you unset the buffer overflow code flag in VC2005?
I have tried including the path to the 2003 Platform SDK lib folder but the errors still remain.
The same thing happens when I try to compile the ShuttlePB example.

VC++6 is attempting to link to libs containing ftol2 that only exist in later versions (2003,2005)

Grrr... I'm giving this a rest for now because I have other jobs to complete.


Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #22 - 14 April 2007, 20:46:56
Quote
g2g591 wrote:
semi off topic but if anyone gets the iss to have ummus and compile, get me a copy.
reason i cant find a source for the iss

The ISS doesn't have a DLL. Orbiter gets the parameters directly from the config file.


Offline streb2001

  • Jr. Member
  • **
  • Posts: 43
  • Karma: 0
Reply #23 - 15 April 2007, 02:15:44
OK, we have a UMMU capable ISS!



I rebuilt the project in VC++ 2005 Express Edition (what a pain in the a***!) and compiled it against the 2003 Platform SDK
libraries.

The functionality is the same as the ShuttlePB example (docking port moved obviously). I need to test it further but I
managed to EVA (see screenshot), reenter the ISS both at Dock 1 (137.40MHz), watched the DGIV autodock from a few metres away
from the airlock and transfer the crew of the DGIV to the ISS while docked (scenario segment below)

BEGIN_SHIPS
ISS:ProjectAlpha_ISS
  STATUS Orbiting Earth
  RPOS -844606.38 6453496.34 -1662497.11
  RVEL 7509.506 552.476 -1620.613
  AROT 108.88 -3.75 80.61
  PRPLEVEL 0:1.000
  DOCKINFO 0:0,GL-01
  IDS 0:588 100 1:586 100 2:584 100 3:582 100 4:580 100
  NAVFREQ 0 0
  XPDR 466
  UMMUCREW -Albert_Jr_Falcon-15-70-45
  UMMUCREW Eng-Fanny_Gorgeous-27-67-55
  UMMUCREW Med-George_HealGood-64-70-45
  UMMUCREW -Jeroen_Roos-27-66-75
  UMMUCREW Miss-David_Thomson-20-72-75
  UMMUCREW Eng-Robert_Gaitley-36-65-86
  UMMUCREW -Fuechslin_Beat-20-72-87
END
GL-01:DeltaGliderIV
  STATUS Orbiting Earth
  RPOS -844610.90 6453521.19 -1662504.44
  RVEL 7509.506 552.476 -1620.613
  AROT -71.12 3.75 -80.61
  RCSMODE 2

Transferred Fanny Gorgeous to the DGIV successfully.

I still think UmmuSDK.lib should be compiled against VC++6.0 libraries as at the moment it is only compatible with later
versions. I believe Orbiter itself is built with VC++6.0.

So, a fruitful if frustrating evening's programming. Nice SDK Dan!

Steve


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 256
  • Hein, quoi !?
    • FsPassengers
Reply #24 - 15 April 2007, 02:52:50
YEEEEPEEE Congrat !!! :) :hot:

Will you do a simple panel to manage crew ? (hotkey and screen display is a bit ...
hem... well, maybe ISS deserve better) I can help with some code, anyway the
DeltaGlider have nice example of panel. It's not that hard.

There is two days that I search about those infamous compatibility problem,
seem the only solution is either that users install VC express (wich is free)
either that I compile with older version :grrr:

Maybe just grabing cl.exe a makefile and some lib can do the job ? (I'm dreaming here?)

Anyway my rules is that I do not pass my code, my commercial product are distributed
for free at many place, my free beta are disclosed, sorry, appart old internet friend I
don't trust unknow peoples anymore. The result of somes idiot only vs the great
majority of honnest peoples I know but that's life.

Another solution would be simply to distribute them like that with some walktrought
to install VS expres and SDK, the new compiler is free, there is no reason to not
upgrade and people that cannot take time for that would probably not do a good
addon anyway.

Maybe you can give me the link to VS express and platform 2003 so I can
put a nice walktrought in the doc ? (or maybe you can write a short walktrought
as you just have done the job ?)

Anyway congrat for ISS ;)

Dan



Message modifié ( 15-04-2007 02:53 )