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

[Closed until 1.0, will be in porgrams] Sapphari - -snip-

Started by Geforce Fan, 27 April 2014 - 04:42 AM
Geforce Fan #1
Posted 27 April 2014 - 06:42 AM
–This is in general because it is in bad shape right now and needs to be cleaned up. I'm releasing this so people can start developing sites and finding bugs only.–
PLEASE tell me if there are any bugs!
Known bugs:
Go button doesn't work(considering removing or repurposing)
URL box uses read() temporarily, so ignore bugs with it
I need to do a small bit of cleaning. V2 does clean some stuff. It's actually slightly less messy than this topic!

API
sapphUtils.pullEvent - basically like the normal pullEvent, but you have to use it in your site.
sapphUtils.read() - broken atm
How to get a human-readable URL:
Just Forum PM me!


Sorry for everything, including this posts, being messy. I really have ran out of time but wanted to get this out there!
Here's the pasteID. Run it anywhere.
-snip-

For some reason, after about ~120 sites switched it crashes. I'd assume it's from stackoverflow, but there's no way to fix that that I've thought of so far.

Should be getting to V1.0 soon and moving over to programs. But there's quite a few apis to add, and adding support for scrolling is a must. The API needs to be finalized and I might add bookmarks. I won't get around to tabs, I'll need to do minor rewriting of the site handler function, tab recovery, and restructor the way Sapphari "keeps itself alive" function-to-function. I might need to add "life support" to ensure Sapphari keeps running. If it stops running, like if events quit getting pulled currently, Sapphari stops like a finished program.
Another issue with the current system is that if the website crashes, lots of times Sapphari crashes.
Edited on 18 May 2014 - 03:33 PM
oeed #2
Posted 27 April 2014 - 07:32 AM
Looks pretty good.

Rule one of using the OneOS API (pun not intend, use an if statement):

if OneOS then
OneOS.ToolBarColour = colours.lightGrey
end

Adding it to the App Store wouldn't be a bad idea either if it's designed for OneOS.
TheOddByte #3
Posted 27 April 2014 - 09:58 AM
Will test it out right now! :D/>
And I'll give you feedback as soons as I've tested it ;)/>
Geforce Fan #4
Posted 27 April 2014 - 03:08 PM
Looks pretty good.

Rule one of using the OneOS API (pun not intend, use an if statement):

if OneOS then
OneOS.ToolBarColour = colours.lightGrey
end

Adding it to the App Store wouldn't be a bad idea either if it's designed for OneOS.
I am unable to connect to the App Store–it's a bug only I seem to experience, nobody else–I'll try using the FTB server I play on to upload it. But as I have said, I don't want this there yet, because of how messy and buggy it is.
By the way, like the homepage :3?
Edited on 27 April 2014 - 01:09 PM
TheOddByte #5
Posted 27 April 2014 - 10:11 PM
Looks pretty good.

Rule one of using the OneOS API (pun not intend, use an if statement):

if OneOS then
OneOS.ToolBarColour = colours.lightGrey
end

Adding it to the App Store wouldn't be a bad idea either if it's designed for OneOS.
I am unable to connect to the App Store–it's a bug only I seem to experience, nobody else–I'll try using the FTB server I play on to upload it. But as I have said, I don't want this there yet, because of how messy and buggy it is.
By the way, like the homepage :3?
Why not upload it on the webpage? O_o
http://www.ccappstore.com/
Geforce Fan #6
Posted 28 April 2014 - 02:45 AM
Looks pretty good.

Rule one of using the OneOS API (pun not intend, use an if statement):

if OneOS then
OneOS.ToolBarColour = colours.lightGrey
end

Adding it to the App Store wouldn't be a bad idea either if it's designed for OneOS.
I am unable to connect to the App Store–it's a bug only I seem to experience, nobody else–I'll try using the FTB server I play on to upload it. But as I have said, I don't want this there yet, because of how messy and buggy it is.
By the way, like the homepage :3?
Why not upload it on the webpage? O_o
http://www.ccappstore.com/
as I have said, I cannot connect to it. It is a problem with my IPS most likely.
Geforce Fan #7
Posted 30 April 2014 - 01:45 AM
Looks pretty good.

Rule one of using the OneOS API (pun not intend, use an if statement):

if OneOS then
OneOS.ToolBarColour = colours.lightGrey
end

Adding it to the App Store wouldn't be a bad idea either if it's designed for OneOS.
Sapphari does a few things that, if sapphire were closable, would render the shell unusable.
I just assumed everyone would run it in OneOS.
Let me patch stuff up today and put it on the app store once the FTB server I use is back up.
Edited on 29 April 2014 - 11:46 PM
Geforce Fan #8
Posted 11 May 2014 - 05:11 AM
Okay, the FTB server I play on is down so I'll be working on this
Hopefully I can get running smoothly enough to be put in programs.
Lua.is.the.best #9
Posted 11 May 2014 - 08:39 PM
Cool!
Does this mean I can browse my email using Minecraft?!?!
And sign up for sites?!?!?
If so, then *explode*
Geforce Fan #10
Posted 15 May 2014 - 11:47 PM
No. This cannot visit sites coded in HTML(not to be confused with the HTML API ;)/>)
It uses Lua and I have an API I will expand later…
I like to call Sapphari sites LuTML sites

Getting a lot of work done. Mostly I'm trying to get more structure for variable passing– it has to happen a lot as Sapphari is really structured more like an API
I'm also thinking about implementing some anti-tracking features. Though, I'd probably need to see real-world LuTML tracking first to counter it. Hopefully I won't encounter any, as tracking will be something sites aren't allowed to do. Anonymous web FTW!

I'm actually quite ironically glad this has not really been "found" much yet. I should be able to make my first impression with something WAY better than what Sapphari is now!
Edited on 15 May 2014 - 09:54 PM
Geforce Fan #11
Posted 16 May 2014 - 01:36 AM
Uploaded the next beta! This one fixes the startup crash. There are quite a few debug prints, a(currently) useless function, I removed a different useless function, code cleanup, and a new way of getting to sites… yes, this time it works. But the new way is buggy and needs testing. I can't quite figure out the crashes.

The home page looks WAY better now.
:D/>it also breaks Sapphari visually a bit. Fixed in my version, but I don't feel like re-uploading right now.
Edited on 16 May 2014 - 01:00 AM
Geforce Fan #12
Posted 16 May 2014 - 10:19 PM
since OneOS breaks LaserBlast(big surprise, it's old) I found a different game to port: Lights.
Go try it!

I finally got to testing what I uploaded… and it didn't work. At all.
Reuploading Sapphari, it contains a few patches anyhow

Interesting. It's still not working!

Hmmm, I guess it will not work in the shell for OneOS… You know what, I think it's because the

if OneOS then
  OneOS.ToolBarColour = colours.lightGrey
end
Shell still has OneOS = true

I think I can get this into "programs" today. Just a few more things to do to clean it up!
(let's just pretend I didn't say that last time this time, okay? :D/>)
Edited on 16 May 2014 - 10:08 PM
oeed #13
Posted 17 May 2014 - 07:52 AM
If you need any help or your finding programs that don't work on OneOS let me know.
InputUsername #14
Posted 17 May 2014 - 04:57 PM
Seems cool. When running this, however, I only see 'connecting to pastebin.com' and then nothing. ????
Geforce Fan #15
Posted 18 May 2014 - 03:11 AM
Hmmm… Interesting. Is HTTP enabled? Does CC have perms to get to pastebin? Can you get to pastebin? Are you running this in OneOS? If so, are you running it in OneOS's shell emulator?
You know what, it also could be the homepage being weird.
Have you tried turning the CC computer off and on again? Could be a weird global variable floating around confusing Sapphari. Sapphari uses about 3 or so global variables. (and ALL of them are ABSOLUTELY necessary, although I try my hardest to phase them out)


Yet another day have I failed to meet the deadline for releasing Sapphari.
that's 2 times.
But I'll get it released tomorrow ;)/>
(I probably won')
I'm not going to be releasing any more betas. Firewolf has been making me nervous with the updates and I want to make sure Sapphari gets out as soon as possible.
-snip- is the future, RedNet is dragging us behind!
Also I am going to redo the way sites work– they won't be much of normal Lua, but rather made up mostly of a giant library that will be called LuTML

Sapphari Beta is no longer supported, please wait until 1.0. Beta testing closed.
Please do not post here, let this thread die :)/>
Edited on 24 May 2014 - 02:37 AM