Jump to content




MiniatureCraft [New Version, 1.2]

game

39 replies to this topic

#1 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 03:51 PM

Well, not sure if many of you remember that old post I made about this game, but I thought its about time to release it. I left it alone for awhile to work on my upcoming OS, however, I bring you what some of you may have been waiting for!

MiniatureCraft!
Posted Image

Current Version: 1.2

As of now, there's a buffer in the game to reduce flickering. However, it will be needing some improvements, so expect to see them as the game updates. Here's some basic info:

Key Features:
* Loading / Saving your worlds.
* Survival / Creative Modes.
* A (Unused) Time System.
* Crafting / Smelting.
* A Variety of Blocks and Items.
* Options menu for tweaking your character, or the game in general.
* The ability to add and name servers to join. (Server script is not completed).
* Inventory Management.
* (Finite) Randomly generated worlds, which can be made from 64x64 to 256x256 when creating your world.
* Pick up and play controls.
* Modding.


Controls: (Default, only changeable via editing code)
W or Arrow Key Up: Up
A or Arrow Key Left: Left
S or Arrow Key Down: Down
D or Arrow Key Right: Right

E: Interacts with the block your facing. If there isn't a block, then it opens your inventory.
Shift: Keeps character from switching direction when moving.
Space: Uses the currently equipped item on the block / tile directly in front of you.
Backspace: Enters the Pause menu.

F2: Changes gamemode. (Temp)
F3: Shows / Hides Debug info.
F4: Changes your dimension. (For now, you can only switch between overworld and caves, also temp)
F5: Saves world.

Controls in menus: (Default, only changeable via editing code)
W or Arrow Key Up: Move to upper selection.
A or Arrow Key Left: Move to left selection.
S or Arrow Key Down: Move to lower selection.
D or Arrow Key Right: Move to right selection.

Enter: Chooses the currently selected item.
Backspace: Goes back to the menu you were last in.

There are clickable buttons, usually found at the bottom of the menu, shown in its own border.
Gray boxes are for text input. Click them to enter text as you normally would.

Creative Info:
When in creative, your inventory wont change when using items / blocks. You can also craft for free this way.
Also, left clicking on the mouse anywhere in the world places a block. Right clicking removes blocks. Scroll to change blocks. To see the different blocks, look at the debug info (F3).

Install:
To install MiniatureCraft, go into shell and run: pastebin run g2ijEJ3S

Known bugs:
* When using a item, the durability bar doesn't change / both numbers decrease.
* When placing items in a "hole" tile, sometimes you need to place it at a specific direction.
* Sometimes, when making a new world, it will error with "Too long without yielding". This is because the generation code does alot, going over the world multiple times. Its recommended you use 64x64 worlds - Fixed, Thanks to TheOddByte.

Version List:
Current version: 1.2 (The Menu Update)
* Added in a multiplayer menu where you can add and name servers. This will be used for when the server script is ready.
* Added in a options menu. Here, you can change the player name and color, aswell as change the type ingame drawing.
* Added in a Exit option for quitting the game.
* Single player worlds can now be loaded from a menu, and created from the same one.
* A pause menu ingame (Backspace to get into)
* Better stability.

Old Versions:
Spoiler

Upcoming Features: (In random order)
* The ability to load saves. (The function to load worlds is already made and working, but I just need to make it save Inventory's as well) Done in 1.2.
* A buffer to make the game run smoother. A faster and more efficient buffer.
* Better game mechanics (Farming, lighting, etc)
* Multiplayer! :D
* Better Pocket Computer support.

Modding: (Yes, modding.)
For all of you interested in making mods for MiniatureCraft, here's a quick tutorial.

First, we make a file. In this case, I'll name my file "SapphireMod".
We need to add our own assets in the game, so we create a table. Now, lets make out first block.

The index of the table should be the ID of your item. So, for example, a block that has a ID of 30 should look like this:
Spoiler

Now, we cant have a empty table as a block. This is what each block / tile has to have in its asset.
Spoiler

Now, after putting the necessary values, we should have something like this:
Spoiler

After we are done with our table, for the game to use it, we simply put:
LoadAPI.addMod(string (name of type of stuff your adding), string (type), table (The stuff you plan to add in), string (info, nice to have, but not necessary) )

So, after we have put all the values needed, the function should look similar to this:
LoadAPI.addMod("SapphireBlocksAndItems", "asset", moddedAssets, "Sets the data for sapphire stuff.")

And the final code:
Spoiler

I'll get more into modding the game later, but for now, this should serve as a template for modding. Its basically a follow up to the whole "SapphireMod" things.

And one last thing about modding! To use the mods in-game, drop your mods into the folder (Your MiniatureCraft Directory)/MiniMods. For example, if the game installed to a folder named "game", you would put your mods in the folder "game/MiniMods". More on modding will be added later.

After your done with your mods, pm them to me with some basic info on it, and I'll add it to the post for others to use. Your mods must be compatible with vanilla MiniatureCraft, not your own modified version.

Notice about asset IDs: MiniatureCraft reserves the IDs 1 - 500. Please keep your asset IDs from 501 - 1000 as that's the limit. I have not stopped mod files from overwriting the vanilla assets, but please don't do so unless your mod changes the asset to be compatible with your mod.

License:
This game is under the Creative Commons Attribution-NonCommercial 4.0 International Public License. Click on the link for more info on the license.

Note: Lots of the game is not optimized, however, you can expect slight speed ups throughout updates.

Latest News: The game's buffer has been improved, causing drastic speed-ups, especially for Pocket Computers. The game is even more playable now! The server script is being worked on, but the next update will most likely include the ability to load worlds, chatting, and a multiplayer option for when the server script is ready. -7/17/14 Em working on better Pocket computer support, and will be looking into a better buffer to make the game more enjoyable. -7/2314

Edited by Detective_Smith, 25 July 2014 - 12:28 AM.


#2 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 02 July 2014 - 04:48 PM

Very laggy and jittery, though this is the first release, so we can't expect it to be fully optimized. I'll try this later on an emulator and see if it runs any better.

#3 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 02 July 2014 - 07:56 PM

Haven't really tried this yet( since I'm on my phone right now) but this seems awesome! As soon as I've started my computer I'll try it and post some feedback for you

#4 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 08:27 PM

View PostJiloacom, on 02 July 2014 - 04:48 PM, said:

Very laggy and jittery, though this is the first release, so we can't expect it to be fully optimized. I'll try this later on an emulator and see if it runs any better.

Yep, it could really use some tweaking.

View PostTheOddByte, on 02 July 2014 - 07:56 PM, said:

Haven't really tried this yet( since I'm on my phone right now) but this seems awesome! As soon as I've started my computer I'll try it and post some feedback for you

Sounds good! Hopefully this game gets popular. Though, I'm most excited to see people make mods for it.

#5 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 02 July 2014 - 08:31 PM

View PostDetective_Smith, on 02 July 2014 - 08:27 PM, said:

Sounds good! Hopefully this game gets popular. Though, I'm most excited to see people make mods for it.
Yeah I'm interested in the modding part, it's very unusual for ComputerCraft games :P
Are you planning on creating online multiplayer for this sometime in the future?
Edit: I just tried it out, And to be honest it's very slow at the moment and is very flickery, but I can't complain since this is the first release.
I have a bug to report though or what you want to call it
FileAPI:89: Too long without yielding
this occured when I tried starting a new world

Edited by TheOddByte, 02 July 2014 - 08:48 PM.


#6 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 08:48 PM

I'm not sure, but I do plan on creating a server script so at least people can play in-game together. In the mean time, Ill be working on game mechanics and speeding it up and general. A script for online gaming is a bit far, but its doable :) If anyone plans to make mods, ill gladly add it to the thread for others to use.

#7 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 02 July 2014 - 08:55 PM

View PostDetective_Smith, on 02 July 2014 - 08:48 PM, said:

I'm not sure, but I do plan on creating a server script so at least people can play in-game together. In the mean time, Ill be working on game mechanics and speeding it up and general. A script for online gaming is a bit far, but its doable :) If anyone plans to make mods, ill gladly add it to the thread for others to use.
Well I might create some mod when this gets a buffer and is faster than it currently is :P

#8 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 09:01 PM

View PostTheOddByte, on 02 July 2014 - 08:31 PM, said:

I have a bug to report though or what you want to call it
FileAPI:89: Too long without yielding
this occured when I tried starting a new world

Yea, the world generator can be very stressful sometimes. The game deals with alot of tables, so for now, its recommended you make 64x64 worlds. I'll add this to the bug list.

View PostTheOddByte, on 02 July 2014 - 08:55 PM, said:

Well I might create some mod when this gets a buffer and is faster than it currently is :P

Sounds good! When I create a server script, I plan to make the client automatically download any mods. Now, if you get bored of the game, you can make your own content :P

#9 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 02 July 2014 - 09:01 PM

View PostDetective_Smith, on 02 July 2014 - 08:57 PM, said:

View PostTheOddByte, on 02 July 2014 - 08:31 PM, said:

I have a bug to report though or what you want to call it
FileAPI:89: Too long without yielding
this occured when I tried starting a new world

Yea, the world generator can be very stressful sometimes. The game deals with alot of tables, so for now, its recommended you make 64x64 worlds. I'll add this to the bug list.
Well here's a way to fix it :P
local function yield()
    os.queueEvent("sleep")
    os.pullEvent("sleep")
end
I guess this error occurs in a loop, so all you would have todo would be to let it yield for a small amount of time. This is much faster than sleep

#10 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 09:02 PM

View PostTheOddByte, on 02 July 2014 - 09:01 PM, said:

Well here's a way to fix it :P
local function yield()
	os.queueEvent("sleep")
	os.pullEvent("sleep")
end
I guess this error occurs in a loop, so all you would have todo would be to let it yield for a small amount of time. This is much faster than sleep

Thanks. Ill try that.

#11 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 09:18 PM

Just posted a fix for world creation (Thanks TheOddByte). Now, you should be able to do any world type (64x64 - 256x256). Though, the worlds do take slightly longer to be created. (Especially the 256x256 ones)

#12 cptdeath58

  • Members
  • 139 posts
  • LocationError 404: Could not find.

Posted 02 July 2014 - 09:27 PM

This... Is... Awesome...

#13 Geforce Fan

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

Posted 02 July 2014 - 09:39 PM

I'd recommend you write the entire world to a buffer then just make changes to it. Don't write the character to a buffer though; instead just have him stay in one place while the entire world moves.

#14 cptdeath58

  • Members
  • 139 posts
  • LocationError 404: Could not find.

Posted 02 July 2014 - 09:48 PM

View PostGeforce Fan, on 02 July 2014 - 09:39 PM, said:

I'd recommend you write the entire world to a buffer then just make changes to it. Don't write the character to a buffer though; instead just have him stay in one place while the entire world moves.
But what about him moving in a different direction....

#15 cptdeath58

  • Members
  • 139 posts
  • LocationError 404: Could not find.

Posted 02 July 2014 - 10:08 PM

Glitch Found: After saving, your character does not change direction during movement.
Only after saving twice does it get fixed.
Also happens when you try to go over the edge of the screen. (I "lagged")
Also when changing dimensions.

Edited by cptdeath58, 02 July 2014 - 10:19 PM.


#16 cptdeath58

  • Members
  • 139 posts
  • LocationError 404: Could not find.

Posted 02 July 2014 - 10:18 PM

Is there a way to exit the game without Ctrl + T?

#17 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 10:55 PM

View Postcptdeath58, on 02 July 2014 - 10:08 PM, said:

Glitch Found: After saving, your character does not change direction during movement.
Only after saving twice does it get fixed.
Also happens when you try to go over the edge of the screen. (I "lagged")
Also when changing dimensions.

I'll look into these.

View Postcptdeath58, on 02 July 2014 - 10:18 PM, said:

Is there a way to exit the game without Ctrl + T?

No, not at the moment. I actually recommend you restart the whole system when exiting the game, because I get some weird errors if I do stuff after doing a Cntrl + T. Once I make better menus and such, you'll be able to though.

Edited by Detective_Smith, 02 July 2014 - 10:55 PM.


#18 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 11:35 PM

For now on, if anyone has bugs to report, please make sure the bug is repeatable, and perhaps state the process in which you made it happen.

Edited by Detective_Smith, 02 July 2014 - 11:35 PM.


#19 Antelux

  • Members
  • 295 posts
  • LocationSomewhere in the middle of nowhere.

Posted 02 July 2014 - 11:40 PM

View Postcptdeath58, on 02 July 2014 - 10:08 PM, said:

Glitch Found: After saving, your character does not change direction during movement.
Only after saving twice does it get fixed.
Also happens when you try to go over the edge of the screen. (I "lagged")
Also when changing dimensions.

I couldn't reproduce this glitch. Make sure you didn't press Shift anytime there. Shift keeps your direction the same regardless of movement.

#20 cptdeath58

  • Members
  • 139 posts
  • LocationError 404: Could not find.

Posted 03 July 2014 - 12:43 AM

Maybe the problem. I may had held shift on accident.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users