aspace-sim / aspace

ASpace space simulator for the PennMUSH MU* Server
11 stars 6 forks source link

Console notifications #5

Closed DieterKoblenz closed 8 years ago

DieterKoblenz commented 8 years ago

Console notifications are not working properly. The function "consolenotify" and "consolenotifyall" are present in the compiled functions and respond when not given the right arguments however the commands themselves don't work.

mike347 commented 8 years ago

Sounds like you didn't update your console list and run @space/consoles. See the main wiki page:https://github.com/ray73864/aspace/wiki

DieterKoblenz commented 8 years ago

Hi,

Actually I did this! Consoles do work (for example I can activate systems, and I get an error while activating sensors when my ship isn't equiped with them). So all the "sdb" things work.

mike347 commented 8 years ago

Those will work because they work off by grabbing your dbref directly off of the console and sending it to you directly, if notifications aren't working then usually it's due to the consoles not being setup properly. Try setting one manually by doing this: [sdb(var,console,fighter,dbref)] where dbref is the dbref of your fighter console, make sure your console is in fighter mode and do an sdb(r,dbref#) on it to force it to refresh sensor contacts. See if it works then.

DieterKoblenz commented 8 years ago

Not sure if I got it completely but:

First I did: th [sdb(var,console,fighter,#35)](where #35 is console 1, which I man and is in fighter mode) Second I did: th sdb(r,#33) (where #33 is my ship) it returns "1"

mike347 commented 8 years ago

Now test whatever notification wasn't working previously and see if it works?

DieterKoblenz commented 8 years ago

Checked this: For example "main 100" I would expect [Wiz]--[M/A reactor set at 100%], but it doesn't.

Neither does "th consolenotifyall(3, hi)"

mike347 commented 8 years ago

Is tiny math @config option turned on?

On Tuesday, October 6, 2015, DieterKoblenz notifications@github.com wrote:

Checked this: For example "main 100" I would expect [Wiz]--[M/A reactor set at 100%], but it doesn't.

Neither does "th consolenotifyall(3, hi)"

— Reply to this email directly or view it on GitHub https://github.com/ray73864/aspace/issues/5#issuecomment-145836980.

DieterKoblenz commented 8 years ago

tiny_math Yes

mike347 commented 8 years ago

Ultimate issue was &CONSOLES not being properly set on the space object. All fixed :)