So I have this item
And I need to check if it is on. I am trying to use objIsDeviceEnabled on line 83, but I can't get it to work :/
What do I need for the last argument in objIsDeviceEnabled?
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
objGetItems returns a list of items (even if there is only one item in the list).
You probably need to do something like:
... (item (objGetItems gPlayerShip "*I +RPCAutopilot;") 0) ...
You probably need to do something like:
... (item (objGetItems gPlayerShip "*I +RPCAutopilot;") 0) ...
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Ok, I used (item (objGetItems gPlayerShip "*I +RPCAutopilot;") 0), but the dockscreen is saying I have insufficient arguments. Can I use ObjGetItems in a dockscreen?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
I changed line 83 to:
and it seemed to work. No errors. Are you sure you have your parens in the right place? What line gives the error?
Code: Select all
(not (objIsDeviceEnabled gPlayership (item (objGetItems gPlayerShip "*I +RPCAutopilot;") 0)))
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Yeah, I had that as well.
I double checked, and it only works if the Autolooter is on.
If I turn it off, if gives me this for some reason:
I double checked, and it only works if the Autolooter is on.
If I turn it off, if gives me this for some reason:
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
when i found the post my first question was " why not go for "Is Installed"?
the act of enabled is simply a device installed, which means it is enabled, and if it were disabled the ship would tell you as soon as that event is obvious ( such as after or during an attack, or ionization or reactor output can not handle it.).
the act of enabled is simply a device installed, which means it is enabled, and if it were disabled the ship would tell you as soon as that event is obvious ( such as after or during an attack, or ionization or reactor output can not handle it.).
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Very strange! Can you post your mod--I can put the debugger on it.RPC wrote:Yeah, I had that as well.
I double checked, and it only works if the Autolooter is on.
If I turn it off, if gives me this for some reason:
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Here is the full mod:

Hopefully the debugger will figure this out 
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Line 406:
(not (objIsDeviceEnabled gPlayership ))
Looks like you're missing some arguments.
(not (objIsDeviceEnabled gPlayership ))
Looks like you're missing some arguments.
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
D:
Ok, that was my bad. Thanks for the help George. (It works now )
Ok, that was my bad. Thanks for the help George. (It works now )
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
No problem! It looks like a very cool mod!RPC wrote:D:
Ok, that was my bad. Thanks for the help George. (It works now )