Jump to content




[MC 1.8.9-1.11.2] CC Tweaks


283 replies to this topic

#1 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 15 February 2015 - 02:58 PM

CC Tweaks is a collection of modifications to Computer Craft. Some ideas are from posts in the suggestions forums, others are just things I thought would be cool at the time.
Important!
CCTweaks is a core mod and makes modifications to the internals of ComputerCraft. Whilst the mod is thoroughly tested there may be issues. If you encounter any bugs report them here and not on the ComputerCraft issue tracker. This will ensure a faster response time and will ensure you do not frustrate DanTwoHundred.
Thanks :)!

Minecraft 1.10.2/1.11.2?
If you're wondering how CCTweaks runs under Minecraft 1.10.2/1.11.2 when there isn't a stable version of ComputerCraft, then look no further. I develop a mod called "Unborked" which allows ComputerCraft 1.80pr0 to run bug-free. You can download Unborked for 1.10.2 and 1.11.2.

Features
Spoiler

Downloads
You can download from Curse.
The source is under the MIT license, and is on GitHub.

Bugs, issues, feature requests
Feedback is always welcome, however I would love it if this could go on the issues section of the GitHub repo instead. It just is easier for me to track progress on things.

Edited by SquidDev, 26 April 2017 - 07:36 AM.


#2 Lignum

  • Members
  • 549 posts

Posted 15 February 2015 - 04:25 PM

Ah very nice. I tried out LuaJC on a raycaster I wrote a while back, where you can really notice the difference. It feels a lot smoother and there's no flickering when turning. Well done!

#3 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 18 February 2015 - 02:49 AM

I am speechless
These all sound uber cool. Can't wait to try to the jc compiler
edit: I have no idea how to install this, and the instructions have confused me more. Can you elaborate?

Edited by Geforce Fan, 18 February 2015 - 02:59 AM.


#4 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 18 February 2015 - 08:59 AM

View PostGeforce Fan, on 18 February 2015 - 02:49 AM, said:

edit: I have no idea how to install this, and the instructions have confused me more. Can you elaborate?

This is just a normal Forge mod, so you should just drop it into the mods folder. You will need to edit the config settings to enable the LuaJC compiler. You can edit the file or do it in Minecraft:
  • On the main menu, click mods
  • Scroll down until you find CC-Tweaks (you don't want the one which is called CCTweaks ASM Transformer)
  • Select it and click config
  • Click 'Computers'
  • Set LuaJC to true.
Really glad that someone likes it though :)

Edited by SquidDev, 18 February 2015 - 09:02 AM.


#5 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 18 February 2015 - 11:39 PM

derp it's for 1.7
I'll check it out later. I develop using a modpack currently.

#6 Nokiyen

  • Members
  • 49 posts
  • LocationJapan

Posted 27 February 2015 - 10:34 AM

Hello! I'm very interested in your mod, especially LuaJC!

But, I might have found a bug, so I report it here.
I'm sorry if it is already known for you...


Explanation: Crashed when calling turtle.refuel().
Version: CC Tweaks 0.1.1, ComputerCraft 1.73, Forge 1.7.10-10.13.2.1230
Reproduction Step: Just calling turtle.refuel() command.

#7 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 27 February 2015 - 05:55 PM

View PostNokiyen, on 27 February 2015 - 10:34 AM, said:

Hello! I'm very interested in your mod, especially LuaJC!

But, I might have found a bug, so I report it here.
I'm sorry if it is already known for you...


Explanation: Crashed when calling turtle.refuel().
Version: CC Tweaks 0.1.1, ComputerCraft 1.73, Forge 1.7.10-10.13.2.1230
Reproduction Step: Just calling turtle.refuel() command.

Hmmm. Can I see your crash log. I'm pretty sure I know where it crashed, I just don't know why. I'll try to fix this now.

Fixed in CC-Tweaks 0.1.2. That was a really bad mistake on my part.

Thanks for taking an interest though! :)

Edited by SquidDev, 27 February 2015 - 07:12 PM.


#8 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 16 March 2015 - 05:15 PM

There have been a couple of updates since I've last posted, most of them are minor fixes but there are some larger changes:

Debug Wand
This enables you to inject the debug API into any computer whilst it is still running. You can simply shift-right click on a computer to activate use it. This is not enabled by default so you will have to pop into config to change it.

Computer Upgrade
Nothing much new here, just that recipes using it now show up in NEI.

LuaJC
This is the big one. The main change is that string.dump is now implemented so you can have lots of fun with bytecode! I would really like some feedback from people about this, bugs or optimisations I could use, there is still room for improvement I'm sure.

#9 exayden

  • New Members
  • 1 posts

Posted 31 March 2015 - 09:15 AM

Like Nokiyen, i've got the same bug :

Version : ComputerCraft1.65, CCTweaks-1.7.10-0.1.4.1
Log : java.lang.NoSuchMethodError: net.minecraft.inventory.IInventory.getStackInSlot(I)Lnet/minecraft/item/ItemStack;
at dan200.computercraft.shared.turtle.core.TurtleRefuelCommand.execute(TurtleRefuelCommand.java)
at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:786)
at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:99)
at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_145845_h(TileTurtle.java:274)
at net.minecraft.world.World.func_72939_s(World.java:1939)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

Keep up the good work ;)

#10 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 31 March 2015 - 04:44 PM

View Postexayden, on 31 March 2015 - 09:15 AM, said:

-snip-

Sorry, I've only just seen this. I'll try to get a fix out within the next couple of hours. It shouldn't take too long. Thanks!

Fixed as of 0.1.4.2. This versioning is getting silly now.

Edited by SquidDev, 31 March 2015 - 06:18 PM.


#11 ElvishJerricco

  • Members
  • 803 posts

Posted 31 March 2015 - 07:13 PM

Can't believe I haven't seen this yet. This is great, Squid.

Is it possible for you to fix the string bug that disables binary downloads? I shed some light on the subject a while back, but didn't get any response.

#12 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 31 March 2015 - 09:00 PM

View PostElvishJerricco, on 31 March 2015 - 07:13 PM, said:

Can't believe I haven't seen this yet. This is great, Squid.

Is it possible for you to fix the string bug that disables binary downloads? I shed some light on the subject a while back, but didn't get any response.

Thanks! There are still some bugs with LuaJC but for the most part it works. I've got a pretty good interface for overwriting classes so this shouldn't be too hard. I'll have a go tomorrow.

#13 zurbo

  • Members
  • 14 posts

Posted 04 April 2015 - 02:55 AM

Hello,
I'm really interested in this mod and I would like to know if I could share it in my (public) modpack ? and if yes what should i do for it ?

#14 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 04 April 2015 - 07:37 AM

View Postzurbo, on 04 April 2015 - 02:55 AM, said:

Hello,
I'm really interested in this mod and I would like to know if I could share it in my (public) modpack ? and if yes what should I do for it ?

You can. I'd love people to use this! I'm not really sure how much it would work but it should be fine. Most things are disabled by default so you will probably want to enable some things. However I would say the only things that are worth putting in a modpack are flux-refuel and Computer Upgrade, most of the features are 'dev tools'.

#15 TheOddByte

    Lazy Coder

  • Members
  • 1,601 posts
  • LocationSweden

Posted 04 April 2015 - 08:30 PM

I really like this mod, as it speeds up the computers a lot.
Was about to write alot instead of a lot


#16 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 25 April 2015 - 08:41 AM

I thought I'd post a little spoiler about an upcoming feature. ElvishJerricco and I have been working on this for about 2 weeks now and there are some more features we would like to add, but I'm pretty excited about this one:

Posted Image

CC-Tweaks 0.2 rewrites a large portion of the networking API to provide some pretty nifty features like this. It isn't really ready for use yet, though most of it seems pretty stable.

Edited by SquidDev, 25 April 2015 - 08:41 AM.


#17 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 6,706 posts
  • LocationTasmania (AU)

Posted 25 April 2015 - 09:58 AM

Well, I see what I'm assuming are facades, and two modems within the one "block". Anything I'm missing?

#18 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 25 April 2015 - 10:21 AM

View PostBomb Bloke, on 25 April 2015 - 09:58 AM, said:

Well, I see what I'm assuming are facades, and two modems within the one "block". Anything I'm missing?

We've got full multipart support for vanilla ComputerCraft cables. I know it doesn't look like much but it required a rewrite of almost all of CC's networking.

#19 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 6,706 posts
  • LocationTasmania (AU)

Posted 25 April 2015 - 10:42 AM

I notice you've got those two cables divided by a panel; reckon it'd be feasible to make cables disconnectable with a wrench?

#20 SquidDev

  • Members
  • 1,081 posts
  • LocationDoes anyone put something serious here?

Posted 26 April 2015 - 03:23 PM

View PostBomb Bloke, on 25 April 2015 - 10:42 AM, said:

I notice you've got those two cables divided by a panel; reckon it'd be feasible to make cables disconnectable with a wrench?

It would be possible with multipart cables - but not normal ones which could be confusing. I'm considering adding an 'advanced cable' which adds functionality like that as we don't have to hack as much of CC's original cable. This could also have extended message reach or something. I'll add it, I'm just trying to find the best way to. The todo list, whilst not massive, has some pretty big features on it which could take some time.

Edited by SquidDev, 26 April 2015 - 03:23 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users