EXAPUNKS

EXAPUNKS

View Stats:
[BUG] Kill command not killing direct child of EXA
Hi there,

I suspect there is some kind of bug related to the KILL command. I have the following code on level "Tec Exa-Blaster Modem":

GRAB 300 LINK 800 MARK START @REP 11 COPY F #DIAL @END REPL TEST_CONNECTION NOTE CONNECTION EXISTS? COPY M T FJMP NEXT_RECORD WIPE MAKE MARK STORE_NEW_RECORD @REP 12 COPY M F @END COPY M T NOTE EOF? FJMP STORE_NEW_RECORD COPY -1 #DIAL SEEK -9999 MARK NEXT_RECORD SEEK 1 JUMP START MARK TEST_CONNECTION REPL CONNECTION_FAILED LINK 800 REPL NUMBER_EXTRACTOR LINK -1 KILL COPY 1 M HALT MARK NUMBER_EXTRACTOR GRAB 200 NOOP MARK READ_NEW_RECORD @REP 12 COPY F M @END TEST EOF COPY T M FJMP READ_NEW_RECORD HALT MARK CONNECTION_FAILED @REP 5 NOOP @END COPY 0 M HALT

However, this code on the 2nd run of the main loop, TEST_CONNECTION (XA:1) doesn't kill the direct child CONNECTION_FAILED (XA:1:0) of TEST_CONNECTION (XA:1), (as it should, according to the 1st 'zine), but instead kills the Godfather of all EXAs (XA).

Quote from the 1st 'zine:
"Kill:
Terminate another EXA in the same host as this EXA prioritizing EXAs created by
the same user.
If there is more than one possible target, the target will be chosen in an unpredictable manner."

This is the method I found SHOULD work for checking whether a link exists or not. Until it is fixed, (or even if it gets fixed), what method should I use to detect whether a link exists or not?

Thanks for your time.
Looking forward to your answers :)
< >
Showing 1-8 of 8 comments
What I think is the misunderstanding is that "user" doesn't mean "EXA". So, it's not about child EXA's, but about EXA's generated by your code vs. not-your-code.

Basically, this is a prioritisation for if you have EXA's present owned by multiple users. For example, when you're having an EXA battle, or if there are "guard EXA's" present.

As for a possible solution, since you're a manual reader (Kudos!): TEST MRD.

(alternatively, you could have your Godfather hide in your own host to avoid him sniffing the oranges)
Yeah for me "same user" meant the exa as a parent.. :D
And I thought, oh, neat, after all the naming convention of XA:child:grandchild:great-grandchild actually does something... but, no... :(

I tried the test mrd as well, but that also only returns 1 if message is being sent on M at that exact moment.
Which makes it really hard to implement properly, since the link tester could be dead, and I don't see a way of messaging XA whether link was successful or not. Because reading from M cannot be interrupted, and XA would get stuck on that line of code.
TEST MRD. If there is a message, read the message (and discard for all you care). If there is no message, spawn the next.

Make sure to wait a few moments (to give the linktester the chance to have done something). The blocking nature of sending over M is the point.
Okay, now I implemented TEST MRD, test 1 succeeds, however, now I face an issue on test 2, where I read a contact list that has only 1 record, but when I dial that record, no connection is made, and there is nothing I can call anymore, and it's game over, I lost.

Any ideas? What am I supposed to do in that case? Objective says that this exact scenario cannot happen, yet it does.

My code:
GRAB 300 LINK 800 MARK START TEST X = 8 TJMP HALT @REP 11 COPY F #DIAL @END REPL TEST_CONNECTION NOTE CONNECTION EXISTS? NOOP NOOP NOOP TEST MRD FJMP NEXT_RECORD ADDI X 1 X WIPE MAKE MARK STORE_NEW_RECORD @REP 12 COPY M F @END COPY M T NOTE EOF? FJMP STORE_NEW_RECORD COPY -1 #DIAL SEEK -9999 MARK NEXT_RECORD SEEK 1 JUMP START MARK TEST_CONNECTION LINK 800 REPL NUMBER_EXTRACTOR COPY 1 M MARK NUMBER_EXTRACTOR GRAB 200 KILL MARK READ_NEW_RECORD @REP 12 COPY F M @END TEST EOF COPY T M FJMP READ_NEW_RECORD MARK HALT WIPE
Which TEC EXA BLASTER™ level are we talking about here? The one where you must manage to call all 8 pagers but one pager got 2 valid numbers and another got none instead of one?
If it's this one my approach was maintain a sequential buffer of phone numbers, with each number i dialed it and deleted it(VOID F) then REPL'd an exa to append to the buffer the numbers on that pager if it exists.(using -1 as terminator)
I'm sure there is a faster fixed solution where you overwrite an array of maximum 4 numbers and alternate calling orders but i have not tried it.
Yes test 2 of 100, the level comes right after Wormhole.

On test 2, 4th host, there is this Ellis' number on the contact list (File 200), and when I call that, she denies access, and there is no more records on that file 200.

Yeah that's what I thought about doing too, but I already use 70 lines, and I cannot fit it in the 100 commands maximum criteria with all the seeks you need to do in order to achieve the FIFO pipeline.
I did it in 49 lines, the way i did it was to avoid REP like the plague for this one.(T SUBI TJMP loops)
This happens because there is no valid record on that pager. this is why you need a buffer that deletes used entries and appends new entries or some other way to not keep dialing the same empty pager nonstop.
Shadowoner, you'll likely find the answer here: https://steamcommunity.com/app/716490/discussions/0/2263564582077231302/

ed.
As for linecount: that only affects it being counted for the statistics, right? Even then: First make it work, then make it good.
< >
Showing 1-8 of 8 comments
Per page: 1530 50