Jump to content


Xenthera's Content

There have been 10 items by Xenthera (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#278783 ComputerCraft + LuaJIT = CCLuaJIT = WINNING

Posted by Xenthera on 03 February 2019 - 07:57 PM in Media

View Postsci4me, on 21 January 2019 - 04:41 AM, said:

What do you get when you take ComputerCraft and LuaJIT and mash them together? High-performance Lua programs running in your Minecraft world! On my machine, using a (probably poorly written) SHA-256 benchmark program, I observed a ~10-13x speedup.

This is best expressed visually: https://www.youtube....h?v=RlpAn6MHLC8

This mod currently works on Minecraft 1.7.10 with ComputerCraft 1.7-1.75. In the future, I intend to support other versions.
I hope to release the mod in the coming weeks, if possible. Worst case scenario, in the next month.

This is awesome... will it work on multiplayer?

I'm almost done debugging my Zilog Z80 emulator for lua and LuaJIT would definitely help it out quite a bit.



#278785 ComputerCraft + LuaJIT = CCLuaJIT = WINNING

Posted by Xenthera on 03 February 2019 - 10:14 PM in Media

View PostBomb Bloke, on 03 February 2019 - 10:08 PM, said:

Since MC 1.3 the game's always been "multiplayer". SP transparently starts a server for you to play on, so you'd practically have to go out of your way to make a non-MP mod.

lol... i'm mad at myself because I knew that.



#278782 Convert bitwise operators to bit api calls

Posted by Xenthera on 03 February 2019 - 07:26 PM in Ask a Pro

Thanks for your help it was exactly what I needed. Would've taken me days otherwise.
Currently working on a Z80 emulator written in lua...

Posted Image



#278780 Convert bitwise operators to bit api calls

Posted by Xenthera on 03 February 2019 - 04:27 PM in Ask a Pro

View PostSquidDev, on 03 February 2019 - 02:35 PM, said:

View PostXenthera, on 03 February 2019 - 07:50 AM, said:

So i'm not terribly familiar with github patches, especially when applying them to node projects. Can you help me out applying it?
If you cloned the repo using git, you should be able to do git apply printer.ts.patch (assuming you've saved it as that). Otherwise, it's probably going to be easier to apply it manually. Open the src/printer.ts file and look around for the printNodeNoParens function (should be line 104). You then just want to copy the two blocks of changes to roughly where they look like they belong in the original file.

So I was able to get it to work, however is there a reason & isn't included? I'm about to add it and see what happens.. I was just curious as to its omission.



#278778 Convert bitwise operators to bit api calls

Posted by Xenthera on 03 February 2019 - 07:50 AM in Ask a Pro

So i'm not terribly familiar with github patches, especially when applying them to node projects. Can you help me out applying it?



#278777 Convert bitwise operators to bit api calls

Posted by Xenthera on 03 February 2019 - 12:11 AM in Ask a Pro

Thanks, i'll give it a try!



#278775 Convert bitwise operators to bit api calls

Posted by Xenthera on 02 February 2019 - 11:01 PM in Ask a Pro

Hello Lua aficionados. Does anyone know of a way/program to convert lua 5.3 bitwise operators to a lua <= 5.2 corresponding bit api call?

Example:

self.pc = self.core.mem_read(self, ((self.pc + 1) & 65535)) | (self.core.mem_read(self, ((self.pc + 2) & 65535)) << 8)

- to -

self.pc = self.core.mem_read(self, bit32.bor(bit32.band((self.pc + 1), 65535)), (self.core.mem_read(self, bit32.rshift(bit32.band((self.pc + 2), 65535), 8))))

Not asking anyone to write a program to do this, just inquiring whether one exists.
I'd just do it manually but I have about 3000 lines of code i'm working with and need to make it compatible with computercraft.

Thanks for any help.

-X



#278731 "Classic" Infinity Evolved 1.7.10 Whitelist - Techtion Server

Posted by Xenthera on 13 January 2019 - 06:51 PM in Servers

Posted Image

Hello everyone, my friend and I wanted to start a community-based server built on an older, but in my opinion absolutely fantastic, modpack. Please visit this link to see the original thread on minecraftforum.net.

https://www.minecraf...10-smp-techtion

It is whitelisted and I ask that you be 18 or older.

Hope to see you there!

IP: techtion.net

Website: https://techtion.net

Quote

Application: (PLEASE SUBMIT TO #APPLICATION SECTION OF OUR DISCORD SERVER)
https://discord.gg/JYrGJPS


Age:
Location(State or Country):
Years of experience in modded mc:
Why you should be whitelisted:
In game name:




#278734 "Classic" Infinity Evolved 1.7.10 Whitelist - Techtion Server

Posted by Xenthera on 14 January 2019 - 11:22 PM in Servers

I'm waiving the 18+ rule for this community. As long as you're mature you can put in an app.

Thanks.



#278797 Z80 Emulator Core Written In Lua

Posted by Xenthera on 08 February 2019 - 08:03 PM in Programs

I wrote this emulator in lua so I could work on my next project that requires it. As far as I know there isn't any other (at least usable) Z80 Emulator written in lua.
This is meant to be a base for other emulator projects that use a Z80 processor.

With little tweaking, it IS compatible with computercraft.

Please visit it's github page here
https://github.com/Xenthera/LuaZ80


For those of you wondering, here it is passing all ZEXDOC tests.

Posted Image