Page 1 of 1

Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 10:56 am
by Wildeblood
I'm looking for an OXP that keeps a log of every transaction that occurs on the F3 page? Call it maintenance log, service history, something like that. Does such a thing already exist? Could any kind soul offer me a pointer to such a thing?

Re: Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 11:01 am
by phkb
The Email system sends you an email whenever you purchase something, equipment or maintenance.

Re: Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 7:36 pm
by Cholmondely
And it is one of the handful of things which the Commander's Log OXP records. But only sometimes, if I recall (perhaps not at OXP stations?)

And the maintenance e-mail is a good one. Well worth reading.

Re: Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 7:52 pm
by Wildeblood
phkb wrote: Tue Feb 13, 2024 11:01 am
The Email system sends you an email whenever you purchase something, equipment or maintenance.
Speaking of communication, I just said to Cholly earlier, that if this BB goes down permanently one day I expected we'd catch up in the comments of your youtube video. Then I went to check on it, and somewhere along the way you've turned off comments. cjbvbkcbdxjfjg <--- If you have the secret Thargoid decoder, you'll know this spells muppet in Thargoidese. Who turns off comments?

Re: Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 7:57 pm
by Wildeblood
Cholmondely wrote: Tue Feb 13, 2024 7:36 pm
And it is one of the handful of things which the Commander's Log OXP records. But only sometimes, if I recall (perhaps not at OXP stations?)
Good suggestion, ta, but I've already looked at that one. I was hoping there might be something like that in look and feel, but that logs everything happening on F3. It's not really important, so thank you both for replying.

Re: Is there an OXP which keeps a maintenance record?

Posted: Tue Feb 13, 2024 8:33 pm
by phkb
Wildeblood wrote: Tue Feb 13, 2024 7:52 pm
Speaking of communication, I just said to Cholly earlier, that if this BB goes down permanently one day I expected we'd catch up in the comments of your youtube video. Then I went to check on it, and somewhere along the way you've turned off comments. cjbvbkcbdxjfjg <--- If you have the secret Thargoid decoder, you'll know this spells muppet in Thargoidese. Who turns off comments?
Not intentionally. I hit the “Made for kids” option, which apparently also turns off comments. Who knew?

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 7:10 am
by Wildeblood
phkb wrote: Tue Feb 13, 2024 11:01 am
The Email system sends you an email whenever you purchase something, equipment or maintenance.
That's excellent, isn't it. Could you point me to an optimum example of an OXP wherein someone has used that exactly as you intended? I too, would like to join in the fun, and send emails to players, but I'll need a good example to copy from.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 7:33 am
by Cholmondely
Wildeblood wrote: Fri Feb 16, 2024 7:10 am
phkb wrote: Tue Feb 13, 2024 11:01 am
The Email system sends you an email whenever you purchase something, equipment or maintenance.
That's excellent, isn't it. Could you point me to an optimum example of an OXP wherein someone has used that exactly as you intended? I too, would like to join in the fun, and send emails to players, but I'll need a good example to copy from.
GalCop Missions offers the occasional mission using the more complex two-way e-mails (most of the missions come through the F4 Screen Bulletin Board).

Since you suffer from a sense of humour (shock! horror!!), you might well enjoy The Galactic Almanac's use of the e-mail system (not quite as sophisticated, if I recall correctly, but a lot of fun). You will want to read your GNN messages too. There might be a two-way e-mail right at the end of the mission. I forget, alas.

But dear old Phkb has been rejigging some of the old missions: Love Cats and more importantly, Cataclysm. He can tell you about those.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 7:58 am
by phkb
Wildeblood wrote: Fri Feb 16, 2024 7:10 am
That's excellent, isn't it. Could you point me to an optimum example of an OXP wherein someone has used that exactly as you intended? I too, would like to join in the fun, and send emails to players, but I'll need a good example to copy from.
In the Email System package itself is another world script, "galcopadmin.js", which does a lot or emailing for a variety of different game events. You could also check out "Home System", which send a couple of emails. For complex examples, yes, you can try GalCop Missions, but that beast got quite complex and deciphering it might not be straight forward.

I guess it comes down to how complex do you want to make it. Sending an email, with no other triggers required, so the player gets a message in their inbox is pretty easy. But you can have multiple "reply" options set up, which trigger function calls, and so on. If you've got something specific in mind, I can give you a rough guide on what to do.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 8:44 am
by Wildeblood
phkb wrote: Fri Feb 16, 2024 7:58 am
I guess it comes down to how complex do you want to make it. Sending an email, with no other triggers required, so the player gets a message in their inbox is pretty easy. But you can have multiple "reply" options set up, which trigger function calls, and so on. If you've got something specific in mind, I can give you a rough guide on what to do.
Just your basic, one-off, "Congratulations you are now the proud owner of..."
Or maybe, two of. With a traceroute back to Vetitice. Nothing interactive.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 8:52 am
by phkb
Something like this then:

Code: Select all

    let e = worldScripts.EmailSystem;
    if (e) {
        e.$createEmail({
            sender:"Sender's name",
            subject:"Email subject",
            date:clock.adjustedSeconds,
            sentFrom:100, // system id for Vetitice
            message:"Message body of the email"
        });
    }
That should do it. You could change the time it was sent to be in the past a bit, or, if you send it with a future date, the email system will hold it and only deliver it to the player after the time expires.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 10:14 am
by Wildeblood
phkb wrote: Fri Feb 16, 2024 8:52 am
Something like this then:
...
That should do it.
Smooth. Ta. Sorry for calling you a muppet.

Re: Is there an OXP which keeps a maintenance record?

Posted: Fri Feb 16, 2024 10:18 am
by phkb
No worries. Glad I could help.