This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ebernerd's profile picture

XenoCube - ComputerCraft Gaming Console

Started by ebernerd, 08 March 2013 - 04:22 PM
ebernerd #1
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
Azhf #2
Posted 08 March 2013 - 05:29 PM
SOunds cool :D/>
Dlcruz129 #3
Posted 08 March 2013 - 06:07 PM
Instead of rednet updates, why not http updates?
ebernerd #4
Posted 08 March 2013 - 06:13 PM
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?
Dlcruz129 #5
Posted 09 March 2013 - 04:06 AM
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.
Cranium #6
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
Azhf #7
Posted 09 March 2013 - 07:35 PM
Errr… download?
Dlcruz129 #8
Posted 10 March 2013 - 04:57 AM
Errr… download?

Obviously this isn't released, or it would be in Programs.
ebernerd #9
Posted 10 March 2013 - 05:09 PM
Errr… download?
This will be fully released to the public on May 5th.
Prereleases will be here soon.
Zudo #10
Posted 11 March 2013 - 05:20 AM
Like the idea, if you want help with anything give me a shout (PM!)
Smiley43210 #11
Posted 11 March 2013 - 04:06 PM
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://yourcoolwebsite.com/cc-games/update.php?id=1 would display whatever is in http://yourcoolwebsite.com/cc-games/mygame1
http://yourcoolwebsite.com/cc-games/update.php?id=4 would display "Error: Invalid game ID!"
ebernerd #12
Posted 13 March 2013 - 08:37 AM
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,
Azhf #13
Posted 28 March 2013 - 10:01 AM
I am a necromancer, revivng this topic.

Anyways, when are the prereleases? :P/>
TheOddByte #14
Posted 09 April 2013 - 10:51 AM
I am a necromancer, revivng this topic.

Anyways, when are the prereleases? :P/>
…Hmmm I'm wondering that too..
Smiley43210 #15
Posted 09 April 2013 - 06:12 PM
Yea, I just remembered this and was wondering the same thing. March isn't far away, and that's the public release.
Azhf #16
Posted 20 April 2013 - 09:30 PM
Can't wait for May 5th, it seems V forgot about this website, and no prereleases? Unacceptable. UNACCEPTABLE! XD
ebernerd #17
Posted 02 August 2013 - 06:01 AM
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.
TheOddByte #18
Posted 02 August 2013 - 06:35 AM
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/>
ebernerd #19
Posted 02 August 2013 - 07:46 AM
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.
ebernerd #20
Posted 02 August 2013 - 08:08 AM
New post! http://www.computercraft.info/forums2/index.php?/topic/14508-alpha-xenocube-jolt-new-era-of-cc-gaming/