Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Their solution is similar. They used the same technique I was thinking for removing the game from the unreleased files, assuming it wasn't just at the end:
GRAB 199
MARK UN
TEST F = 300
FJMP UN
SEEK -1
VOID F
However, their solution assumes that they can insert 300 at the end of the released products file, and that would work. (same thing I did) Assuming that doesn't, I think this is how to go about it:
GRAB 199
NOTE Save 300 to x so we start writing it in seekandwrite
COPY 300 X
MARK SEEKSPOT
TEST EOF
TJMP JUSTAPPEND
TEST F > 300
TJMP SEEKANDWRITE
JUMP SEEKSPOT
NOTE this writes whatever is in x to the previous spot,
NOTE and saves what was there to x
MARK SEEKANDWRITE
SEEK -1
COPY F T
SEEK -1
COPY X F
COPY T X
TEST EOF
TJMP JUSTAPPEND
JUMP SEEKANDWRITE
NOTE write the last item without overriding anything
MARK JUSTAPPEND
COPY X F
MARK CONTINUE
NOTE were going to need the date later so send a zine to transmit it
REPL SENDDATE
NOTE take 300 into the products folder
GRAB 300
LINK 800
LINK 802
NOTE seek to the date and override it to today
SEEK 3
COPY M F
DROP
NOTE insert 300 into the released products
GRAB 199
NOTE Save 300 to x so we start writing it in seekandwrite
COPY 300 X
MARK SEEKSPOT
TEST EOF
TJMP JUSTAPPEND
TEST F > 300
TJMP SEEKANDWRITE
JUMP SEEKSPOT
NOTE this writes whatever is in x to the previous spot,
NOTE and saves what was there to x
MARK SEEKANDWRITE
SEEK -1
COPY F T
SEEK -1
COPY X F
COPY T X
TEST EOF
FJMP SEEKANDWRITE
NOTE write the last item without overriding anything
MARK JUSTAPPEND
COPY X F
NOTE go and remove it from unreleased
LINK 800
GRAB 199
MARK UN
TEST F = 300
FJMP UN
SEEK -1
VOID F
DROP
HALT
MARK SENDDATE
LINK 800
LINK 801
COPY #DATE M
HALT
Mine's mostly trying to keep operation count down. Something that would fit in a Shenzhen or TIS controller.
The manual says that writing to the end of a file will append, but those locks may indicate otherwise.
I also kind of hope this doesn't unlock too early. I don't want to choose between monster hunter and trying to get one of the early badges for this.
createLockedFile(Host hostHandle, Integer id, Integer icon, Array contents) => File
Similar to createNormalFile, except that the created file cannot be moved out of its initial host. A file ID can only be used more than once in a network if all files with that ID are lock
Also, the lock icon on the side of the file is just for show. What icon to use is selected when the file is created, and is unrelated to whether or not the file is movable.