Jump to content




XenoCube - ComputerCraft Gaming Console


  • You cannot reply to this topic
19 replies to this topic

#1 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 08 March 2013 - 05:22 PM

Welcome to the world of XenoCube

v0.1 Alpha [Pre3]

Last updated: March 7th at 11:01pm EST


VIDEO SHOWCASE




The XenoCube will turn your boring Minecraft day into a fun-filled one. Games built off of its custom XenoAPIs.
Updates available via Rednet if on a Multiplayer server.

BASIC INFO:
Name: XenoCube
Alpha Code Release Date: Somewhere late April, early May [PreRelease code always available]
Features:
-Custom XenoAPIs
-Game Development for anyone!
-Rednet updates (only if on MY personal server... which you arent. It is a feature though.)
-Games build off floppies
-More features decided by anything we come up with, or your suggestions

CREDIT TO PROJECT:
ViextraProgramming
Bubba
[No forum file] Kilo_75
The Community

#2 Azhf

  • Members
  • 180 posts
  • LocationMurrika

Posted 08 March 2013 - 05:29 PM

SOunds cool :D

#3 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 08 March 2013 - 06:07 PM

Instead of rednet updates, why not http updates?

#4 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 08 March 2013 - 06:13 PM

View PostDlcruz129, on 08 March 2013 - 06:07 PM, said:

Instead of rednet updates, why not http updates?
y'Know... I never really thought of that... but I really dont know how to do that yet...
That is a good idea. Thanks!
If you know how to code that, could you send a snippet in?
Is it like pastebin?

#5 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 09 March 2013 - 04:06 AM

View PostViextraProgramming, on 08 March 2013 - 06:13 PM, said:

View PostDlcruz129, on 08 March 2013 - 06:07 PM, said:

Instead of rednet updates, why not http updates?
y'Know... I never really thought of that... but I really dont know how to do that yet...
That is a good idea. Thanks!
If you know how to code that, could you send a snippet in?
Is it like pastebin?

You would have to know PHP. Write a script that just prints out Lua script with no special formatting or whatnot, then you could do http.get("http://yourcoolwebsite.com/update?gameid="..id)

I'm no http or PHP expert, so don't quote me on this, but there definitely is a way.

#6 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 09 March 2013 - 07:21 AM

Simple autoupdater(not super powerful or customized):
local updateSite = http.get("http://<whatever your site is here>").readAll()
local currentFile = fs.open("<current file to update here>", "r").readAll()
if updateSite ~= currentFile then
	local file = fs.open("<current file to update here>", "w")
	file.write(updateSite)
	file.close()
end


#7 Azhf

  • Members
  • 180 posts
  • LocationMurrika

Posted 09 March 2013 - 07:35 PM

Errr... download?

#8 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 10 March 2013 - 04:57 AM

View PostAzhf, on 09 March 2013 - 07:35 PM, said:

Errr... download?

Obviously this isn't released, or it would be in Programs.

#9 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 10 March 2013 - 05:09 PM

View PostAzhf, on 09 March 2013 - 07:35 PM, said:

Errr... download?
This will be fully released to the public on May 5th.
Prereleases will be here soon.

#10 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 11 March 2013 - 05:20 AM

Like the idea, if you want help with anything give me a shout (PM!)

#11 Smiley43210

  • Members
  • 204 posts

Posted 11 March 2013 - 04:06 PM

View PostDlcruz129, on 09 March 2013 - 04:06 AM, said:

You would have to know PHP. Write a script that just prints out Lua script with no special formatting or whatnot, then you could do http.get("http://yourcoolwebsite.com/update?gameid="..id)

I'm no http or PHP expert, so don't quote me on this, but there definitely is a way.
Or you could just use plain text files and retrieve updates with http.get("http://yourcoolwebsite.com/cc-games/"..gameName) if in case you don't want to use php files.

Otherwise, you could still use that method, but use http.get("http://yourcoolwebsite.com/cc-games/update.php?id="..gameID) and in your update.php have
<?php

$gameID = $_GET['id'];

# Paths to game files
$game1 = "mygame1";
$game2 = "mygame2";
$game3 = "mygame3";

if ($gameID == 1){
displayGame($game1);
}elseif ($gameID == 2){
displayGame($game2);
}elseif ($gameID == 3){
displayGame($game3);
}else{
echo("Error: Invalid game ID!")
}

function displayGame($file){
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
echo($contents);
}
?>
The game files would need to be in the same directory as the updater.php.

So going to http://yourcoolwebsi...update.php?id=1 would display whatever is in http://yourcoolwebsi...c-games/mygame1
http://yourcoolwebsi...update.php?id=4 would display "Error: Invalid game ID!"

#12 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 13 March 2013 - 08:37 AM

View PostSmiley43210, on 11 March 2013 - 04:06 PM, said:

View PostDlcruz129, on 09 March 2013 - 04:06 AM, said:

You would have to know PHP. Write a script that just prints out Lua script with no special formatting or whatnot, then you could do http.get("http://yourcoolwebsite.com/update?gameid="..id)

I'm no http or PHP expert, so don't quote me on this, but there definitely is a way.
Or you could just use plain text files and retrieve updates with http.get("http://yourcoolwebsite.com/cc-games/"..gameName) if in case you don't want to use php files.

Otherwise, you could still use that method, but use http.get("http://yourcoolwebsite.com/cc-games/update.php?id="..gameID) and in your update.php have
<?php

$gameID = $_GET['id'];

# Paths to game files
$game1 = "mygame1";
$game2 = "mygame2";
$game3 = "mygame3";

if ($gameID == 1){
displayGame($game1);
}elseif ($gameID == 2){
displayGame($game2);
}elseif ($gameID == 3){
displayGame($game3);
}else{
echo("Error: Invalid game ID!")
}

function displayGame($file){
$handle = fopen($file, "r");
$contents = fread($handle, filesize($file));
fclose($handle);
echo($contents);
}
?>
The game files would need to be in the same directory as the updater.php.

So going to http://yourcoolwebsi...update.php?id=1 would display whatever is in http://yourcoolwebsi...c-games/mygame1
http://yourcoolwebsi...update.php?id=4 would display "Error: Invalid game ID!"

Yeah... that is really out of my grasp at the moment. I will have a pastebin thing. can I use this:
fs.delete("startup")
shell.run("pastebin get pastebinthing startup")
that would be easier.
Anyways, thanks so much for your input!

-V
Also it wouldnt matter if you didnt have an update,

#13 Azhf

  • Members
  • 180 posts
  • LocationMurrika

Posted 28 March 2013 - 10:01 AM

I am a necromancer, revivng this topic.

Anyways, when are the prereleases? :P

#14 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 09 April 2013 - 09:51 AM

View PostAzhf, on 28 March 2013 - 10:01 AM, said:

I am a necromancer, revivng this topic.

Anyways, when are the prereleases? :P
...Hmmm I'm wondering that too..

#15 Smiley43210

  • Members
  • 204 posts

Posted 09 April 2013 - 05:12 PM

Yea, I just remembered this and was wondering the same thing. March isn't far away, and that's the public release.

#16 Azhf

  • Members
  • 180 posts
  • LocationMurrika

Posted 20 April 2013 - 08:30 PM

Can't wait for May 5th, it seems V forgot about this website, and no prereleases? Unacceptable. UNACCEPTABLE! XD

#17 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 02 August 2013 - 05:01 AM

View PostAzhf, on 20 April 2013 - 08:30 PM, said:

Can't wait for May 5th, it seems V forgot about this website, and no prereleases? Unacceptable. UNACCEPTABLE! XD

People acutally wanted this?

Oh
Ill go to work.

Btw.
My name isnt V.

its DEADMAU5!
BEST MUSIC OF ALL TIME!!
Unless you dont like it.
Then have a good day.

#18 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 02 August 2013 - 05:35 AM

View Postdeadmau5, on 02 August 2013 - 05:01 AM, said:

View PostAzhf, on 20 April 2013 - 08:30 PM, said:

Can't wait for May 5th, it seems V forgot about this website, and no prereleases? Unacceptable. UNACCEPTABLE! XD

People acutally wanted this?

Oh
Ill go to work.

Btw.
My name isnt V.

its DEADMAU5!
BEST MUSIC OF ALL TIME!!
Unless you dont like it.
Then have a good day.
So by that I guess you stopped working on it before? :P

#19 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 02 August 2013 - 06:46 AM

View PostHellkid98, on 02 August 2013 - 05:35 AM, said:

View Postdeadmau5, on 02 August 2013 - 05:01 AM, said:

View PostAzhf, on 20 April 2013 - 08:30 PM, said:

Can't wait for May 5th, it seems V forgot about this website, and no prereleases? Unacceptable. UNACCEPTABLE! XD

People acutally wanted this?

Oh
Ill go to work.

Btw.
My name isnt V.

its DEADMAU5!
BEST MUSIC OF ALL TIME!!
Unless you dont like it.
Then have a good day.
So by that I guess you stopped working on it before? :P
Yep. But I overhauled it. Pastebin updating, full color, new logo, and working on a new "Graphix" graphic util thing.

#20 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 02 August 2013 - 07:08 AM

New post! http://www.computerc...a-of-cc-gaming/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users