Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Mining Minigame (https://forums.graalonline.com/forums/showthread.php?t=134260778)

DrakilorP2P 10-10-2010 01:56 PM

Mining Minigame
 
3 Attachment(s)
I made a mining system where you try to dig as deep as possible. Hopefully, this video explains it:


You use a pickaxe to dig, and every few blocks you get a mineral. If you dig on a specific spot, you will find a ladder to a new and often better mining level. To help you, this thing beeps when you get close to a new ladder: Attachment 51819
The place is dark, so sometimes you need lanterns to reach the next ladder.
If you stay too long in a mine, it will collapse and you will lose your minerals. That's why you should always wear a helmet.

If you dig deep enough you might find one of the special levels.

The minerals and pickaxe graphics where made by some cool people and then posted in the Free Images thread.

You can try the script out without installing it. If you have access to Testbed, you can warp to mine_surface.nw. Otherwise, you can log on Maloria, which has a modified version of this script not too far away from the starting location (at the time of writing).

Attachment 51820

xXziroXx 10-10-2010 01:57 PM

Credits to me for ensuring that the levels weren't made of the same tile flood filled! Good job though, really recommend people to check out both the Testbed and Maloria version as they differ quite a bit. :D

Soala 10-10-2010 02:08 PM

That's VERY nice. :)

ff7chocoboknight 10-10-2010 03:21 PM

Hot stuff.

Cloven 10-10-2010 04:27 PM

Nice job. :)

12171217 10-10-2010 04:33 PM

Good idea, I like it.

Crono 10-10-2010 06:15 PM

neat

fowlplay4 10-10-2010 06:48 PM

There better be a Chilean Miner easter egg in this game.

kia345 10-10-2010 07:19 PM

That's pretty nifty bro

Tigairius 10-10-2010 07:58 PM

It reminds me of an old flash game I played for a while, don't remember the name. Nice idea. I will definitely be using this concept in some of my future projects. Thanks for this.

Seeya 10-10-2010 08:12 PM

Very neat, i wish it didn't have a time limit though. Ruins the fun for me being stressed like that. I'd rather just have a set amount of lantern fuel, or something, so if i run out it's not even worth still being in there.

smirt362 10-11-2010 12:54 AM

One thing that bothered me about this system was, it has to get REALLY dark in the mine before you place down another lantern. Can you set the threshold a little higher?

Seeya 10-11-2010 06:37 AM

make hitting "f" drop a lantern.

and what do the warning birds do? urma ha ha!

DrakilorP2P 10-11-2010 05:35 PM

Quote:

Originally Posted by smirt362 (Post 1605476)
One thing that bothered me about this system was, it has to get REALLY dark in the mine before you place down another lantern. Can you set the threshold a little higher?

That never bothered me. It would bother me if lanterns were placed too early.

Quote:

Originally Posted by Seeya (Post 1605521)
and what do the warning birds do? urma ha ha!

It's a joke item that doesn't do anything.

Australia 12-18-2010 06:13 PM

I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.

xXziroXx 12-18-2010 06:56 PM

Quote:

Originally Posted by Australia (Post 1616643)
I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.

I believe the author forgot to mention in the installations that you have to give write rights for levels to the NPC Server. Here's how you do that:


1) /openrights (npcserver)
2) Add the following line to it's Folder rights:
PHP Code:

rw levels/mines/*.nw 

3) Hit the Apply button. You're done!

Australia 12-19-2010 02:28 AM

See doesnt work, here is what RC says: Error: Pickaxe: useLadder error - Couldn't climb to 0

DrakilorP2P 12-19-2010 02:39 AM

Quote:

Originally Posted by Australia (Post 1616739)
See doesnt work, here is what RC says: Error: Pickaxe: useLadder error - Couldn't climb to 0

That mostly likely means that the level isn't created. Can you confirm if it is?

Australia 12-19-2010 02:45 AM

What do you mean, I uploaded all the levels. I wasnt sure where to upload GANI to so I uploaded it to levels.

DrakilorP2P 12-19-2010 02:46 AM

Quote:

Originally Posted by Australia (Post 1616749)
What do you mean, I uploaded all the levels. I wasnt sure where to upload GANI to so I uploaded it to levels.

When you hit the TNT the script creates a fresh new level you can climb down to and dig in.

Australia 12-19-2010 02:54 AM

Come on a server called Australia, ill show.

DemonSpawnn 12-19-2010 03:42 AM

This... This is amazing, thank you for making a mining system that is actually fun! :D

DrakilorP2P 12-19-2010 04:06 AM

Quote:

Originally Posted by xXziroXx (Post 1616647)
I believe the author forgot to mention in the installations that you have to give write rights for levels to the NPC Server. Here's how you do that:


1) /openrights (npcserver)
2) Add the following line to it's Folder rights:
PHP Code:

rw levels/mines/*.nw 

3) Hit the Apply button. You're done!

The above, and you also need to:

1) Add "level mines/*.nw" to folderconfig.
2) Give yourself "rw levels/mines/*.nw"
3) Upload a dummy level (any level) into levels/mines and then delete it.

Not sure about the dummy level but it doesn't hurt to try if you're having trouble.

Demisis_P2P 12-19-2010 08:34 AM

Quote:

Originally Posted by Seeya (Post 1605410)
Very neat, i wish it didn't have a time limit though. Ruins the fun for me being stressed like that. I'd rather just have a set amount of lantern fuel, or something, so if i run out it's not even worth still being in there.

Would be neat if every level you gained another 10-15 seconds. That should take some of the stress away and make it possible to get much deeper into the mine.
And then to balance it out every 5 or 10 levels make it so the rocks become harder and take an extra hit to break.

So that instead of always getting to levels 5-7 you might only make it to level 6 sometimes, but occasionally you'll make it as far as level 12. Which would create a better distribution of minerals.

And then you could expand it further by making a new pick that takes 500 of a mineral only found above level 10 to make that breaks rocks in level 5-10 in one hit. etc.

I love this mining system though, there is so much that could be done with it.

Heck I'd even consider making it so that you could see where the minerals are in each level, so that people might waste more time in the higher levels trying to get those minerals instead of rushing down into the lower levels.

xXziroXx 12-19-2010 12:45 PM

Quote:

Originally Posted by DrakilorP2P (Post 1616770)
Not sure about the dummy level but it doesn't hurt to try if you're having trouble.

Dummy level is required to physically create the folder before the NPC Server can do anything with it by the use of script.

cbk1994 12-19-2010 10:43 PM

Quote:

Originally Posted by xXziroXx (Post 1616825)
Dummy level is required to physically create the folder before the NPC Server can do anything with it by the use of script.

Are you sure? I've definitely never had to do this (and neither has anyone who used folders like mudaccounts/c/b/cbk1994.txt).

fowlplay4 12-19-2010 11:06 PM

I've used dummy files just so they show up in File Browser for cases where your folder rights consist of mostly wild cards.

xXziroXx 12-20-2010 01:27 AM

Quote:

Originally Posted by cbk1994 (Post 1616892)
Are you sure?

For folders descendant to levels/ at least, yes.

Fanty 07-03-2012 02:31 PM

I added everything but at the level mine_surface.nw when i hit TNT with sword it opens that door then you see the leder but it says failed like Australia said -.- xD Please reply

Fanty 07-03-2012 02:33 PM

Quote:

Originally Posted by Australia (Post 1616643)
I did all the the instructions. I hit TNT, I then walk to ladder and it says 'Failed'? help please.

same to me

cbk1994 07-03-2012 07:35 PM

Quote:

Originally Posted by xXziroXx (Post 1616965)
For folders descendant to levels/ at least, yes.

I can confirm this is not true, at least on Era's npcserver-- I tested it just yesterday.

xXziroXx 07-03-2012 08:08 PM

Quote:

Originally Posted by cbk1994 (Post 1698881)
I can confirm this is not true, at least on Era's npcserver-- I tested it just yesterday.

Must've changed in the past few years then. I remember messing with .arc files (lol i know right) for Mythic Legends ~4-5 years ago, and it didn't work then.

DrakilorP2P 07-04-2012 03:34 AM

Quote:

Originally Posted by Fanty (Post 1698868)
I added everything but at the level mine_surface.nw when i hit TNT with sword it opens that door then you see the leder but it says failed like Australia said -.- xD Please reply

If the rest of the thread didn't help then I'm not sure what the problem is.

Stowen 01-13-2013 09:25 PM

This is pretty awesome. I've incorporated into my server! The only issue I have found, is that the cave collapse gani keeps dropping the whole sprites.png image. and not just the rock part. I took a peak at the script...it looks fine. Any ideas?

DrakilorP2P 01-21-2013 07:36 PM

Quote:

Originally Posted by Stowen (Post 1712101)
This is pretty awesome. I've incorporated into my server! The only issue I have found, is that the cave collapse gani keeps dropping the whole sprites.png image. and not just the rock part. I took a peak at the script...it looks fine. Any ideas?

I've seen this happen and couldn't figure out how to fix it. It'll probably be easier to make a new image with just the rock in it and skip the whole partx/y/w/h.


All times are GMT +2. The time now is 07:28 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.