Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Does the version need to be registered for this to show up

Does it need to be in a folder in FSUIPC...Folder name "Scripts" or "Lua Files" or what do you suggest?

This is in the ini file

[LuaFiles]
1=pmdg_startup

 

Greets and happy July 4th,

Greets,

BobM.

Posted
Just now, unc1rlm said:

Does the version need to be registered for this to show up

You need a registered version of FSUIPC7 to use lua.

1 minute ago, unc1rlm said:

Does it need to be in a folder in FSUIPC...Folder name "Scripts" or "Lua Files" or what do you suggest?

Lua scripts are recognized (and added to the [LuaFiles] section of the FSUIPC7.ini file) when placed in the FSUIPC7 installation folder. However, you can use/set the LuaPath ini parameter (which goes under [LuaFiles] section) if you want to use a different location (you can specify a relative or full path to a folder).

Note also that lua scripts never appear under the add-ons menu. You activate/start lua scripts in one of two ways:
  1. via assignments, such as on a key or button press
  2. by having them auto-started, either via the ipcReady.lua or the [Auto] (or a profile-specific [Auto.xxx] section).

Please see the provided documentation.

John

 

Posted

I am sticking my neck out here. I have chatgp and I am trying to write a lua that will start the pmdg 737-600.. (if possible.lol) I am sending the ini/log and i changed the lua for you to a text cause i wasn't sure its kewl to send a .lua. If and when could you peruse this and give me any idea where we are missing it. needless to say the lua is not being started. 

 

Thanks John alot and I do have a key somewhere for the fsuipc7.

pmdg_startup.txt FSUIPC7.ini FSUIPC7.log

Posted

The lua is not being started as you are using an unregistered version of FSUIPC7. As I said, you need a licensed version of FSUIPC7 to run a lua script.

All FSUIPC-specific lua sciri[ts generated by chatgpt are useless and full of errors, and this one is no exception. You can use ChapGPT for non-fsuipc specific lua scripts (e.g. string manipulation, etc), but not for using the FSUIPC-specific library. There are many things wrong with that script. Just a few:

- you cannot write to pmdg-specific offsets (0x64F0 & 0x64F4). And those offsets are for the wiper states - why would you even want to set them every time you send a control?
- ipc_display does not work in FSUIPC7. You need to use the Wnd library for display in a window
- there is no such control number as 0x11223344
 - all the parameter values are incorrect. I haven't checked to the control numbers, but I doubt they are correct.

Please don't use chatGPT for liua scripts. If you do, please dopn't send them to me for correction. If you want to use Lua, you should learn how to use it. There are many examples available to get you started.

John

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.