Jump to content


Xakorik's Content

There have been 4 items by Xakorik (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#132935 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by Xakorik on 11 July 2013 - 07:45 PM in Peripherals and Turtle Upgrades

View PostAshton, on 03 July 2013 - 07:18 PM, said:

Not sure wheather to post this here or in general/ask since it's mostly code, but...

I'm building a SMP-adventure-map with multiple "dungeons" and am thinking a good way to keep track of these (and the locations they open) is using the mag-cards/RFID cards. My plan is to fill the data-block of the card with 0s and when a specific dungeon is completed and new area unlocked change it's corresponding 0 to a 1.

i.e.:
000000000000000

Dungeon 3 is unlocked:
001000000000000

Dungon 3 and 5 are unlocked:
001010000000000

How could I easily setup the reader/writers to change ONLY the bit that's related wo their dungeon (so that all other progress is not erased)? My only thought is to use complex strings of IF statements (i.e. "if data = 000000000000000 or  000000000000001 or 000000000000010 or 000000000000011 or 000000000000010.... (etc) then data == data + 100000000000000" which would take a LOT of time to code into all 16 (or however many) locations...

I believe you should simply add the dungeon value by converting the string to a number first then converting back afterwords.



#126706 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by Xakorik on 16 June 2013 - 11:04 AM in Peripherals and Turtle Upgrades

Would encrypting a hash be too much?



#133659 [Cc 1.55/cc1.53][Mc 1.6.2/mc 1.5.2] Cctags

Posted by Xakorik on 15 July 2013 - 10:10 AM in Peripherals and Turtle Upgrades

View PostKaoS, on 14 July 2013 - 07:51 AM, said:

Yeah but having multiple separate instances of MC is great

You can have separate instances of MC, just done manually



#127617 Swarm API

Posted by Xakorik on 19 June 2013 - 08:07 PM in APIs and Utilities

The master version of the test script isn't working for me:

string:7: attempt to index ? (a nil value)