Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Lua Scripting Find support, share snippets and general discussion around using the Lua engine in Orbiter.

Reply
 
Thread Tools
Old 12-14-2017, 01:50 AM   #46
BEEP
Addon Developer
Default

I tried replacing

Code:
hsmkthgrp = vi:create_thrustergroup({hsmkthr_0,hsmkthr_1},THGROUP.MAIN)
for

Code:
	htgtst = vi:get_thrustergrouphandle(THGROUP.MAIN)
	hsmkthgrp = vi:create_thrustergroup({hsmkthr_0,hsmkthr_1},htgtst)
No use . The result was the same: works with r.73 SVN distribution dlls but crashes on LuaScript 2017-12-07(dlls).zip ones.

So I keep waiting for the statically linked dll's .I have a lot of hope on them.

Last edited by BEEP; 12-14-2017 at 12:57 PM.
BEEP is offline   Reply With Quote
Old 12-14-2017, 08:17 PM   #47
kuddel
Donator
Default

I'm still waiting for someone to give positive/negative test results for my posted test.

Here are the DLLs with statically linked VC2015 C++ runtimes.
Attached Files
File Type: zip LuaScript 2017-12-08(static-dlls).zip (593.1 KB, 2 views)
kuddel is offline   Reply With Quote
Thanked by:
Old 12-14-2017, 08:31 PM   #48
kuddel
Donator
Default

In case the statically-linked ones work, I would still recommend to install the runtimes:

Visual C++ Redistributable for Visual Studio 2015 (x86)

...or even better: Wait until Martin has uploaded a new BETA with the changes included

Last edited by kuddel; 12-14-2017 at 08:41 PM.
kuddel is offline   Reply With Quote
Old 12-15-2017, 11:05 AM   #49
BEEP
Addon Developer
Default

Thanks for all your efforts but...no....the statically linked dll's didn't work.

As I said in an earlier post in this thread I already have the VC++ 2015 redist which was replaced as I installed VC++ 2017 ( so the version I have now is 14.10.25008 over the earlier 14.0.23026)

Maybe if Martin compiles it in his environment.....????

Last edited by BEEP; 12-15-2017 at 05:21 PM.
BEEP is offline   Reply With Quote
Old 12-16-2017, 11:35 PM   #50
kuddel
Donator
Default

Quote:
Originally Posted by BEEP View Post
 Thanks for all your efforts but...no....the statically linked dll's didn't work.
To bad, I still hope that someone else can check if it works for them

Quote:
Originally Posted by BEEP View Post
 As I said in an earlier post in this thread I already have the VC++ 2015 redist which was replaced as I installed VC++ 2017 ( so the version I have now is 14.10.25008 over the earlier 14.0.23026)
I doubt that that happened, usually installing another runtime does not replace any other. They usually get added to your system.
If you check your "Programs and Features", (filter by "Redistributable") you should see several versions. I for example have all these:
2005, 2008, 2010, 2012, 2013 & 2015 (as x86 and x64, though for Orbiter only the x86 versions are needed)

Quote:
Originally Posted by BEEP View Post
 Maybe if Martin compiles it in his environment.....????
That of course would be the best.

But I still think that something with your system is not right, although I can only be sure if someone else tried the Lua DLLs and they do work there.

If you have the time (and disk space) I would still recommend a pristine new clear Orbiter install and check if my Lua DLLs work there.

Installing the Visual C++ Redistributable for Visual Studio 2015 (x86) you did, right?
kuddel is offline   Reply With Quote
Old 12-18-2017, 12:10 AM   #51
BEEP
Addon Developer
Default

Quote:
Originally Posted by kuddel View Post
 To bad, I still hope that someone else can check if it works for them

But I still think that something with your system is not right, although I can only be sure if someone else tried the Lua DLLs and they do work there.
Well, If you check the number of related uploads in OH and who is doing them you'll see that it's better to count on me regarding Lua test issues.


Quote:
Originally Posted by kuddel View Post
  I doubt that happened, They usually get added to your system.
If you check your "Programs and Features", (filter by "Redistributable") you should see
Installing the Visual C++ Redistributable for Visual Studio 2015 (x86) you did, right?
I'm just describing the sequence of facts the way I experience them.
I do not know where to find "Programs and Features" in Windows XP I took a photo of my control panel software install/uninstall section so you can see for yourself. It seems that in some cases the program installs several versions but this didn't happen with VC 2015 which was replaced as I described earlier by the 2017 version.




One thing that confirms that 2017 is treated as a newer version of 2015 is that when I tried to install 2015 again after 2017 it was refused as installing old over new as you can see by the installation log below:

Code:
[0C58:0EE4][2017-12-17T20:07:11]i001: Burn v3.7.3813.0, Windows v5.1 (Build 2600: Service Pack 3), path: C:\Documents and Settings\Precious\Meus documentos\Downloads\Obiter Beta Textures\vc_redist.x86_2015_B.exe, cmdline: ''
[0C58:0EE4][2017-12-17T20:07:11]i000: Setting string variable 'WixBundleLog' to value 'C:\DOCUME~1\Precious\CONFIG~1\Temp\dd_vcredist_x86_20171217200711.log'
[0C58:0EE4][2017-12-17T20:07:11]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Documents and Settings\Precious\Meus documentos\Downloads\Obiter Beta Textures\vc_redist.x86_2015_B.exe'
[0C58:0EE4][2017-12-17T20:07:11]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Documents and Settings\Precious\Meus documentos\Downloads\Obiter Beta Textures\'
[0C58:0EE4][2017-12-17T20:07:12]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23026'
[0C58:0EE4][2017-12-17T20:07:12]i100: Detect begin, 10 packages
[0C58:0EE4][2017-12-17T20:07:12]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.10586.15'
[0C58:0EE4][2017-12-17T20:07:12]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[0C58:0EE4][2017-12-17T20:07:12]i102: Detected related bundle: {c239cea1-d49e-4e16-8e87-8c055765f7ec}, type: Upgrade, scope: PerMachine, version: 14.10.25008.0, operation: Downgrade
[0C58:0EE4][2017-12-17T20:07:12]i108: Detected compatible package: vcRuntimeMinimum_x86, provider: Microsoft.VS.VC_RuntimeMinimumVSU_x86,v14, installed: {C6CDA568-CD91-3CA0-9EDE-DAD98A13D6E1}, version: 14.10.25008, chained: {A2563E55-3BEC-3828-8D67-E5E8B9E8B675}
[0C58:0EE4][2017-12-17T20:07:12]i103: Detected related package: {C6CDA568-CD91-3CA0-9EDE-DAD98A13D6E1}, scope: PerMachine, version: 14.10.25008.0, language: 0 operation: Downgrade
[0C58:0EE4][2017-12-17T20:07:12]i108: Detected compatible package: vcRuntimeAdditional_x86, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_x86,v14, installed: {E6222D59-608C-3018-B86B-69BD241ACDE5}, version: 14.10.25008, chained: {BE960C1C-7BAD-3DE6-8B1A-2616FE532845}
[0C58:0EE4][2017-12-17T20:07:12]i103: Detected related package: {E6222D59-608C-3018-B86B-69BD241ACDE5}, scope: PerMachine, version: 14.10.25008.0, language: 0 operation: Downgrade
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: vcRuntimeMinimum_x86, state: Obsolete, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: vcRuntimeAdditional_x86, state: Obsolete, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows81_x86, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows81_x64, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows8_x86, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows8_x64, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows7_MSU_x86, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: Windows7_MSU_x64, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: WindowsVista_MSU_x86, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i101: Detected package: WindowsVista_MSU_x64, state: Present, cached: None
[0C58:0EE4][2017-12-17T20:07:12]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[0C58:0EE4][2017-12-17T20:07:12]i199: Detect complete, result: 0x0
[0C58:0460][2017-12-17T20:07:18]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
What I can do is uninstall every VC Redist and install them all again. I'm afraid for what may happen regarding SW that is working fine so far.


Quote:
Originally Posted by kuddel View Post
 If you have the time (and disk space) I would still recommend a pristine new clear Orbiter install and check if my Lua DLLs work there.
As I told you in an earlier post I already did it before (and I still have this basic Orbiter install) with the earlier dlls you provided but not with the new statically linked dll's which I tested only in my main Orbiter install but I'll try ASAP.

However my hopes and the better testing strategy now IMHO is to have Martin compilating your sources in his environment. Remember that his versions have been ( and still are) working for me so far which should stand on the behalf of my OS installation.

Thanks for your attention and please be patient with me. I have long hours and many thousands of Lua code lines invested in this hobby.
BEEP is offline   Reply With Quote
Old 12-18-2017, 10:53 PM   #52
kuddel
Donator
Default

Quote:
Originally Posted by BEEP View Post
 Well, If you check the number of related uploads in OH and who is doing them you'll see that it's better to count on me regarding Lua test issues.
Yeah, sad but true.

Quote:
Originally Posted by BEEP View Post
 I'm just describing the sequence of facts the way I experience them.
I do not know where to find "Programs and Features" in Windows XP I took a photo of my control panel software install/uninstall section so you can see for yourself. It seems that in some cases the program installs several versions but this didn't happen with VC 2015 which was replaced as I described earlier by the 2017 version.

One thing that confirms that 2017 is treated as a newer version of 2015 is that when I tried to install 2015 again after 2017 it was refused as installing old over new as you can see by the installation log below:

Code:
...
[0C58:0EE4][2017-12-17T20:07:12]i199: Detect complete, result: 0x0
[0C58:0460][2017-12-17T20:07:18]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
That is strange, but that's something that happens sometimes.



Quote:
Originally Posted by BEEP View Post
 What I can do is uninstall every VC Redist and install them all again. I'm afraid for what may happen regarding SW that is working fine so far.
I'm 100% with you here. I would resit on doing so, too!

What you might try is AIO runtimes which helped me once I had similar issues.
On the page the download is kind of "hidden", but this link should get you there

That tool worked fine with me, but I am not sure how well it behaves on XP.


Quote:
Originally Posted by BEEP View Post
 As I told you in an earlier post I already did it before (and I still have this basic Orbiter install) with the earlier dlls you provided but not with the new statically linked dll's which I tested only in my main Orbiter install but I'll try ASAP.

However my hopes and the better testing strategy now IMHO is to have Martin compilating your sources in his environment. Remember that his versions have been ( and still are) working for me so far which should stand on the behalf of my OS installation.

Thanks for your attention and please be patient with me. I have long hours and many thousands of Lua code lines invested in this hobby.
I am still hoping that this issue can be solved by tweaking the build-setup.

By the way: Did you say, you have Visual Studio 2017 installed? In that case you can build the DLLs yourself on your machine. Any exception during a debug run in Visual Studio might shed some light into this issue.
kuddel is offline   Reply With Quote
Old 12-20-2017, 06:47 PM   #53
BEEP
Addon Developer
Default

This was quite expected but I had to do it anyway.

Procedure: Testing v:create_thrustergroup(...) for statically linked Lua dll package within a "pristine" Obiter installation . Lua vessel .cfg used in test.

1. With r.73 distribution dlls : Works fine.
2. With new statically linked dlls : CRASHES. :-(
BEEP is offline   Reply With Quote
Old 12-21-2017, 11:42 PM   #54
BEEP
Addon Developer
Default

Kuddel,

I'm thinking that maybe we'd better change the structure of this Lua section to work more like what's done in 'Site Support', keeping your Lua updates in this thread as sticky and specific for this purpose and having issues like v:create_thrustergroup(....) in their own separate threads under the categories 'Bugs','Tasks', 'Features', 'Discussions', 'Questions', 'Feedback'.

What do you think?
BEEP is offline   Reply With Quote
Old 12-22-2017, 12:26 AM   #55
kuddel
Donator
Default

I don't mind.

As it seems that we two are the only ones that reads this, we can also handle it here

But do whatever feels right to you. We can always change if that new scheme doesn't work.

BTW: I'm 4 weeks off on holidays, so my responses might be less frequent during that time.
kuddel is offline   Reply With Quote
Old 12-22-2017, 01:00 AM   #56
llarian
Orbinaut
 
llarian's Avatar
Default

kuddel, you two are most definitely not the only two reading this thread. I suppose there are several like myself who are presently lurking, just soaking the education in.

Please keep up the excellent work.
llarian is offline   Reply With Quote
Thanked by:
Old 12-22-2017, 04:40 PM   #57
JMW
Aspiring Addon Developer
 
JMW's Avatar
Default

Seconded !!!!!
Mk2
JMW is offline   Reply With Quote
Thanked by:
Old 12-22-2017, 05:01 PM   #58
Face
Beta Tester
 
Face's Avatar

Default

Can you guys give a minimal test for your beta DLL problem? I could try out some things on my end and perhaps give a confirmation one or the other way. As I've observed in the TransX development thread, the new beta seems to break binary compatibility a bit, so some addons need a recompile.
Face is offline   Reply With Quote
Old 12-23-2017, 05:54 PM   #59
kuddel
Donator
Default

Quote:
Originally Posted by Face View Post
 Can you guys give a minimal test for your beta DLL problem? I could try out some things on my end and perhaps give a confirmation one or the other way. As I've observed in the TransX development thread, the new beta seems to break binary compatibility a bit, so some addons need a recompile.
The pack of Post 45 should be self-contained. So all should be set up to run a simple test.

The sources (in case you really have to / want to debug) are in the first post.

Thanks in advance,
Kuddel

Last edited by kuddel; 02-08-2018 at 02:52 PM.
kuddel is offline   Reply With Quote
Old 02-08-2018, 11:08 AM   #60
BEEP
Addon Developer
Default

Friends,

Some serious personal problems will have me away fom simulation dreams for the time being so I'll not be around frequently and, unfortunately, won't be capable of following and cooperating with this development as I'd like.

I'm much concerned with and fond of this project and as soon as I'm able to interact again I'll post here.

Beep
BEEP is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 01:50 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.