EXAPUNKS

EXAPUNKS

View Stats:
Sawayama Wonderdisc
When reading/duplicating a track's content, how do you know what to replace? e.g. how do you know that the thing you just read is a region keyword or a number?

As far as I can tell from what the game and zines taught me, it is not possible to compare a keyword as a string, and I do not see any reference to the other region codes in the level.

The game is not hinting anything and I have no other mission to do and therefore, I'm stuck.

Any tip is appreciated, thanks!
Originally posted by andrewas:
You can also use the fact that a comparison between a number and keyword always fails, so F > -9999 will be true for all numbers and false for all keywords
< >
Showing 1-15 of 15 comments
Check the zine again. There is comparison table which is significant help.
Do you mean the table for the TEST instruction? I figured this would be a way to compare/differentiate keywords and numbers, but if that is it, I don't see it. Can you elaborate?
TEST F > X where X = SSEA will be true if F equals SSEC iirc
Oh... I see. So this only works because our Wonderdisc region code comes first alphabetically then? That is really an unintuitive solution.

Going to try it, thanks!

EDIT: it works. But I think it's a little lame that SSEA is hard-coded because it's the only region code that is going to work (because alphabet). My brain was searching for a solution that would have worked for any code given in file 300 and honestly, I would have never figured it out.
The author of this thread has indicated that this post answers the original topic.
You can also use the fact that a comparison between a number and keyword always fails, so F > -9999 will be true for all numbers and false for all keywords
That is a good idea, now I guess a solution using that would work for any region code given in file 300. I wonder if that is the intended solution then.

Also "alphabetical order" when comparing text (keywords) and numbers is not very clear until you try it out - I feel that the TEST section in the zine really could use an example table like the SWIZ one.
You can also add anything to the string and crash the exa with a not-a-number error... I just stick the value in X, mode to local, repl an exa that does nothing but ADDI X 0 M and then TEST MRD to see if the replicant succeeded. If MRD, write (the unchanged) M to the file, if not, write the code.
Besides the topic - how do you guys let EXA who writes a file copy to know that source file is ended? Reader can TEST EOF, but writer can't.

I send a value which "seems to be never present in files in this level" - for this level it's "whatever < 1000". Is it the way? It looks a bit... hacky (the game is about hacking, I know, but still =) ).
Originally posted by jeron:
Besides the topic - how do you guys let EXA who writes a file copy to know that source file is ended? Reader can TEST EOF, but writer can't.

I send a value which "seems to be never present in files in this level" - for this level it's "whatever < 1000". Is it the way? It looks a bit... hacky (the game is about hacking, I know, but still =) ).

Sending e.g. -9999 and having the EXA interpret that value as EOF is not really any different to having null-terminated strings in "real-world" computers, so that method doesn't feel outrageously hacky to me.

Regardless, an alternative method is to use TEST MRD, which may require you to artificially ensure your EXAs are in sync with some NOOP instructions. Another idea which won't always be suitable is to go and KILL the writing EXA, possibly by REPLing one after you TEST EOF
You could also count the size of the data first, then start by sending the size. Obviously, it's not very optimized compared to the other options
I solved it by doing three tests against the target code, making use of the fact that number vs string always returns false. If all three returned false, we've hit a number and don't need to do anything more. If any return true, overwrite it.
Three tests? You just need TEST F > 0 right? (Or make it TEST F > -1, if you wanna not be exclusive ;-) )


And I prefer doing a TEST MRD on the receiving end, over an explicit check. Even with the timing requirement, tends to be more efficient.
Originally posted by thewifiwhisperer:
Three tests? You just need TEST F > 0 right? (Or make it TEST F > -1, if you wanna not be exclusive ;-) )

That didn't occur to me. I was testing F against the string in X, hence three tests. I'm sure I'll come up with something more efficient next time.
Lol, I solved it by replicating exa, which tried to add 0 to value. it either dies and lets original exa (that was nooping meanwhile) continue as it is keyword or kills original exa and continiues as it is value. Cycles were ♥♥♥♥, that is why I am here.
Although definitely not efficient, I would say that you get points for thinking out-of-the-box.
< >
Showing 1-15 of 15 comments
Per page: 1530 50