I just encountered this problem, I might have an item on an AI ship that has onUpdate event on it. The event is running.
I'm happy with that but isn't onAIUpdate supposed to run on AI ships and onUpdate running on gPlayership only ?
or is that onUpdate runs on every spaceObject and onAIUpdate runs only on AI ships ?
item onUpdate running on an AI ship ??
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
I can confirm that OnUpdate on an item does indeed run when an item is on a station.
We might have to file a bug report on bug reports about onAIUpdate? :S
We might have to file a bug report on bug reports about onAIUpdate? :S
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.
OnUpdate is OnAIUpdate except that it includes the playership. OnAIUpdate is OnUpdate except that it excludes the playership.
If this is considered a bug and gets "fixed", apiVersion will need to change to avoid breaking mods that rely on current behavior.
If this is considered a bug and gets "fixed", apiVersion will need to change to avoid breaking mods that rely on current behavior.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
thanks for clearing this up guys, I don't consider it a bug, I was just confused. (I was 99% sure that OnUpdate was running only on the playership, silly me)
OnPlayerUpdate ? Eventually, but it's not needed. Just run a OnUpdate with a check like
to make the onUpdate code run only on the playership
OnPlayerUpdate ? Eventually, but it's not needed. Just run a OnUpdate with a check like
Code: Select all
(if (eq gSource gPlayership) (run code))