Jump to content

QuarryCount v0.1beta


tysje

Recommended Posts

QuarryCount

by trysje

UPPDATED to v1.0

i've added some really useful stuff sinse last time.

* now all the numbers is stored in files so if the server/client restarts the count can continue from where it left off.

* Now there is many moore usefull tips and hints in the sourcecode

* added some new ores

* placed all gemstones in one common count "gemstones"

* fixed some typos (tho i've probably made som new ones to x) )

INPORTANT

first time use you need to run the function "rsdatabase()" to create all the files and write 0 in them. if you do not do this there will be an error.

2zJPB.jpg

Downloads:

the code for QuarryCount: http://pastebin.com/Y885mK3X

the map i have made it in: http://www.4shared.com/rar/ij6MqzsS/Survival_inc.html?

The map is outdated!

i've added the map beacause i'm gonna let you awesome ppl se how i count the difrent ores.

What is this?

This is a program for tekkit with cc.

it counts all the important ores and valuebals that comes from a quarry and display it on a monitor.

Remember that i'am really new to lua and there is probably a lot of improvments to be done :)

pleace come with feedback, both possetive and negative i like that you care :)

Link to comment
Share on other sites

Try "there are more" instead of "there is moore" in the bottom text ;)

I also note you're counting rubys and sapphires individually, but sort emeralds under "others". Why not instead make a group "gemstones" that includes rubys, emeralds and sapphires? After all they're completely equivalent in value. It will even save you one line of display space, meaning you then have two free lines and could add redstone and lapis lazuli, which are very useful to have in Tekkit (particularly if you do a lot with IC2).

Link to comment
Share on other sites

Try "there are more" instead of "there is moore" in the bottom text ;)

I also note you're counting rubys and sapphires individually, but sort emeralds under "others". Why not instead make a group "gemstones" that includes rubys, emeralds and sapphires? After all they're completely equivalent in value. It will even save you one line of display space, meaning you then have two free lines and could add redstone and lapis lazuli, which are very useful to have in Tekkit (particularly if you do a lot with IC2).

That was a genius ideea, i will use that in v0.2 :D

thx

Link to comment
Share on other sites

  • 2 weeks later...

Cool, what kind of transport system is it? Tubes or pipes, Im a real fan of tubes, I tend to avoid pipes as much as possible (dont use them at all). I like the monitor idea, its cool good job on the programmingI could never hope to make something on CC

i use ic2 pipes, diamond pipes and redstone pipes, but as long as you get a redstone pulse at the right color of the bundled cable annything will work :)

I havent used tubes mutch and don't really know how to make them work, but i'm shure you could use them too :)

Link to comment
Share on other sites

I like the idea behind this a lot, nice script

I felt it could have been coded to be easier to expand or modify

Svlgr.png

The monitor on the bottom is running the original script

The monitor on the right is running my modified script (dynamically finds monitor, fixes crash if save files don't exist, as well as makes it much easier to add, remove, or edit items and the colors/emc values they are attributed to)

My code: http://pastebin.com/gQyQQxUS

You are free to use or modify any part of my code as you wish =)

Link to comment
Share on other sites

I like the idea behind this a lot, nice script

I felt it could have been coded to be easier to expand or modify

Svlgr.png

The monitor on the bottom is running the original script

The monitor on the right is running my modified script (dynamically finds monitor, fixes crash if save files don't exist, as well as makes it much easier to add, remove, or edit items and the colors/emc values they are attributed to)

My code: http://pastebin.com/gQyQQxUS

You are free to use or modify any part of my code as you wish =)

i think (no homo) i love you :D

Link to comment
Share on other sites

This was really good work Linear_Spoon this is wayy more advanced than i could ever imagine to create myself at the stage i'm at in lua.

If it is ok for you i can uppdate the thread with this code, and ofc give you the credit for it.

and thanks alot for all the extremly useful comments in the code :)

This i will lern alot from :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...