Post #22by Dave M » 05.03.2011, 02:08
Thanks for responding. Here is the script I made with the generator, and the script with my speed changes. It wouldn't allow me to attach txt or celx files so I have to just copy it here:
require "scripts/autocelxfunctions" -- ? UTF-8
celestia:print(" ") wait(0.1)
--------------------------------------------------------------------------
-- script initialization --
--------------------------------------------------------------------------
duration = 5 -- default value for goto
speed = 1 -- adjustable speed during script for the functions stepto(), orbitto and dotravel()
goparam={ -- fixed parameters
startInterpolation = 0.25,
endInterpolation = 0.75,
accelTime = 0.5
}
function celestia_cleanup_callback()
restoreoriginalsettings() -- comment out if you prefer.
celestia_cleanup_callback=nil
end
------------------------------------------------------------
-- beginning of recorded script --
------------------------------------------------------------
saveoriginalsettings()
obs=celestia:getobserver()
obs:singleview()
celestia:seturl("cel://Follow/Sol:Earth/2011-06-04T14:13:51.79651?x=yeDmdeR7GA&y=oE+3aCqoYA&z=qNZKc4V9bv///////////w&ow=0.107253&ox=0.117052&oy=-0.948026&oz=-0.275757&select=Sol:Earth&fov=20.4721&ts=0<d=0&p=0&rf=1922947&lm=0&tsrc=0&ver=3") wait(0) wait(0.1)
--[[ goto version of the above url
earth = celestia:find("Sol/Earth")
celestia:select(earth)
obs:follow(earth)
celestia:settime(2455717.0929606)
celestia:settimescale(0)
jumpto("yeDmdeR7GA", "oE+3aCqoYA", "qNZKc4V9bv///////////w", 0.107253, 0.117052, -0.948026, -0.275757)
wait(duration)
fov_change(20.4721/deg)
]]
earth = celestia:find("Sol/Earth")
celestia:select(earth)
obs:follow(earth)
flypath = {
{1.29,0.00037132419012983,0.00049532859641527,-0.00041473056239629,-0.00014049953951961,-0.00018741962295205,0.00015692339629421,-0.68083877607237,0.69750701150239,0.22347825375478},
{0.331,0.00037894625599428,0.00051017772857049,-0.00042408610340597,0.00037420107932995,0.00050378926737322,-0.000418775684185,-0.68284034567672,0.69482399002169,0.22571815435723},
{1.328,0.00038760488246614,0.0005294543163138,-0.00043475793737022,0.00038631864543499,0.00052769736283167,-0.00043331522654813,-0.68602797364541,0.69050360209682,0.22928234748292},
{1.302,0.00039925045730275,0.00055489443092394,-0.00044933387900347,0.00039155195432818,0.00054419474016867,-0.00044066964796551,-0.68976291678518,0.68535584871705,0.23348335970114},
{1.36,0.00041089736233113,0.00058911441377932,-0.00046406144744552,0.00040151955319501,0.0005756692008424,-0.0004534702875099,-0.69654878413553,0.67577738395656,0.24113216013657},
{1.244,0.00042570635623799,0.0006349735744358,-0.00048299823612965,0.00041351848220161,0.00061679442858032,-0.00046917010888776,-0.70501575589604,0.66338876645296,0.25073517599722},
{1.454,0.00040753133537276,0.00068811822963178,-0.00048582895075822,0.000395285102371,0.0006674404180345,-0.00047122989048095,-0.72799884145932,0.62697021765375,0.27735542722128},
{1.314,0.00038221465922174,0.0007027778184262,-0.00055605580526042,0.00036729174976197,0.00067533907555835,-0.0005343455693072,-0.73154381217651,0.6208301192935,0.28180421189948},
{1.117,0.00036976262595174,0.00069849563708276,-0.00063239656160726,0.00035561283550214,0.00067176614577941,-0.00060819649864861,-0.70513774939829,0.64329805367826,0.29824213067118},
{1.102,0.00037772176227898,0.00074116974756592,-0.00069482328128276,0.0003644727407031,0.00071517237342036,-0.00067045156229682,-0.57566323813906,0.69588806090759,0.42936190206111},
{1.461,0.00039332312642239,0.00077736254138862,-0.00077620761054644,0.00037808254726885,0.00074724111056711,-0.00074613093126313,-0.57020896395183,0.70671448695112,0.41882737656747},
{1.44,0.00036689767708807,0.00083813233181746,-0.00091205417200485,0.00034543431346974,0.00078910193418492,-0.00085869937704205,-0.45749059459858,0.7387865618593,0.49487045968612},
{1.428,0.00034429673676797,0.00090409936654126,-0.0010859826360374,0.00032211707235709,0.00084585710513556,-0.0010160234181562,-0.40702641839614,0.76128993918397,0.50474461188295},
{1.37,0.00030959641533811,0.00098856591127317,-0.0013025367263927,0.00028773626284999,0.00091876471043759,-0.0012105665030643,-0.35535295889587,0.78331657620525,0.51003864171849},
{1.427,0.00030451848676395,0.0010809355258166,-0.0015727725769129,0.0002820145754204,0.0010010544075975,-0.0014565447084162,-0.34954904275086,0.80236154322548,0.4837679409229},
{1.329,0.00037682296377064,0.0011252258465771,-0.0019426783301033,0.00034541321519117,0.0010314336302471,-0.0017807480769448,-0.33744445876276,0.84148336851318,0.42194428277442},
{2.1,0.00038163116182746,0.0012810400599135,-0.0023622387106699,0.00035016473884476,0.0011754151728105,-0.0021674663495763,-0.28549396614672,0.86104700039956,0.4208221220382},
{0, 0.00038163116182746,0.0012810400599135,-0.0023622387106699,0.00038163114696546,0.0012810400100255,-0.0023622386186764,-0.28549396614672,0.86104700039956,0.4208221220382},
}
dotravel()
-- end of script
wait(5)
celestia:print("the script is over",5)
wait(0)
and here is with my speed changes:
require "scripts/autocelxfunctions" -- ? UTF-8
celestia:print(" ") wait(0.1)
--------------------------------------------------------------------------
-- script initialization --
--------------------------------------------------------------------------
duration = 5 -- default value for goto
speed = 1 -- adjustable speed during script for the functions stepto(), orbitto and dotravel()
goparam={ -- fixed parameters
startInterpolation = 0.25,
endInterpolation = 0.75,
accelTime = 0.5
}
function celestia_cleanup_callback()
restoreoriginalsettings() -- comment out if you prefer.
celestia_cleanup_callback=nil
end
------------------------------------------------------------
-- beginning of recorded script --
------------------------------------------------------------
saveoriginalsettings()
obs=celestia:getobserver()
obs:singleview()
celestia:seturl("cel://Follow/Sol:Earth/2011-06-04T14:13:51.79651?x=yeDmdeR7GA&y=oE+3aCqoYA&z=qNZKc4V9bv///////////w&ow=0.107253&ox=0.117052&oy=-0.948026&oz=-0.275757&select=Sol:Earth&fov=20.4721&ts=0<d=0&p=0&rf=1922947&lm=0&tsrc=0&ver=3") wait(0) wait(0.1)
--[[ goto version of the above url
earth = celestia:find("Sol/Earth")
celestia:select(earth)
obs:follow(earth)
celestia:settime(2455717.0929606)
celestia:settimescale(0)
jumpto("yeDmdeR7GA", "oE+3aCqoYA", "qNZKc4V9bv///////////w", 0.107253, 0.117052, -0.948026, -0.275757)
wait(duration)
fov_change(20.4721/deg)
]]
earth = celestia:find("Sol/Earth")
celestia:select(earth)
obs:follow(earth)
flypath = {
{1.29,0.00037132419012983,0.00049532859641527,-0.00041473056239629,-0.00014049953951961,-0.00018741962295205,0.00015692339629421,-0.68083877607237,0.69750701150239,0.22347825375478},
{0.331,0.00037894625599428,0.00051017772857049,-0.00042408610340597,0.00037420107932995,0.00050378926737322,-0.000418775684185,-0.68284034567672,0.69482399002169,0.22571815435723},
{1.328,0.00038760488246614,0.0005294543163138,-0.00043475793737022,0.00038631864543499,0.00052769736283167,-0.00043331522654813,-0.68602797364541,0.69050360209682,0.22928234748292},
{1.302,0.00039925045730275,0.00055489443092394,-0.00044933387900347,0.00039155195432818,0.00054419474016867,-0.00044066964796551,-0.68976291678518,0.68535584871705,0.23348335970114},
{1.36,0.00041089736233113,0.00058911441377932,-0.00046406144744552,0.00040151955319501,0.0005756692008424,-0.0004534702875099,-0.69654878413553,0.67577738395656,0.24113216013657},
{1.244,0.00042570635623799,0.0006349735744358,-0.00048299823612965,0.00041351848220161,0.00061679442858032,-0.00046917010888776,-0.70501575589604,0.66338876645296,0.25073517599722},
{1.454,0.00040753133537276,0.00068811822963178,-0.00048582895075822,0.000395285102371,0.0006674404180345,-0.00047122989048095,-0.72799884145932,0.62697021765375,0.27735542722128},
{1.314,0.00038221465922174,0.0007027778184262,-0.00055605580526042,0.00036729174976197,0.00067533907555835,-0.0005343455693072,-0.73154381217651,0.6208301192935,0.28180421189948},
{1.117,0.00036976262595174,0.00069849563708276,-0.00063239656160726,0.00035561283550214,0.00067176614577941,-0.00060819649864861,-0.70513774939829,0.64329805367826,0.29824213067118},
{1.102,0.00037772176227898,0.00074116974756592,-0.00069482328128276,0.0003644727407031,0.00071517237342036,-0.00067045156229682,-0.57566323813906,0.69588806090759,0.42936190206111},
{1.461,0.00039332312642239,0.00077736254138862,-0.00077620761054644,0.00037808254726885,0.00074724111056711,-0.00074613093126313,-0.57020896395183,0.70671448695112,0.41882737656747},
{1.44,0.00036689767708807,0.00083813233181746,-0.00091205417200485,0.00034543431346974,0.00078910193418492,-0.00085869937704205,-0.45749059459858,0.7387865618593,0.49487045968612},
{1.428,0.00034429673676797,0.00090409936654126,-0.0010859826360374,0.00032211707235709,0.00084585710513556,-0.0010160234181562,-0.40702641839614,0.76128993918397,0.50474461188295},
{1.37,0.00030959641533811,0.00098856591127317,-0.0013025367263927,0.00028773626284999,0.00091876471043759,-0.0012105665030643,-0.35535295889587,0.78331657620525,0.51003864171849},
{1.427,0.00030451848676395,0.0010809355258166,-0.0015727725769129,0.0002820145754204,0.0010010544075975,-0.0014565447084162,-0.34954904275086,0.80236154322548,0.4837679409229},
{1.329,0.00037682296377064,0.0011252258465771,-0.0019426783301033,0.00034541321519117,0.0010314336302471,-0.0017807480769448,-0.33744445876276,0.84148336851318,0.42194428277442},
{2.1,0.00038163116182746,0.0012810400599135,-0.0023622387106699,0.00035016473884476,0.0011754151728105,-0.0021674663495763,-0.28549396614672,0.86104700039956,0.4208221220382},
{0, 0.00038163116182746,0.0012810400599135,-0.0023622387106699,0.00038163114696546,0.0012810400100255,-0.0023622386186764,-0.28549396614672,0.86104700039956,0.4208221220382},
}
speed = 0.33 dotravel()
-- end of script
wait(5)
celestia:print("the script is over",5)
wait(0)
I am using Windows XP. I have tried it on 3 different PCs though and it does the same thing every time. I've attached a screenshot of the error message I get.