Jump to content


Emma's Content

There have been 15 items by Emma (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#276640 Online ComputerCraft coding?

Posted by Emma on 04 April 2018 - 03:34 AM in Suggestions

View PostCRUGG, on 25 March 2018 - 08:13 PM, said:

Use CCEmuRedux. It's not a website but a program.

The whole point of this thread is to have a version of computercraft that people do not have to download anything to use, so no. In any case, CCEmuX is much better than CCEmuRedux as it is actively being developed and has better support for the newer methods and such.



#276634 [Relaunched] [1.12.2] SwitchCraft [Survival] [Krist] [CC:Tweaked1.80p...

Posted by Emma on 04 April 2018 - 01:01 AM in Servers

View PostAle32bit, on 03 April 2018 - 09:46 PM, said:

View PostCLNinja, on 03 April 2018 - 07:55 PM, said:

Wow! There are a LOT of people on today. Posted Image
Nah, it's just Lemmmy taking the server over with his alts

Posted Image
There were a lot of Lem alts, but a lot more legit players too!



#276596 [Relaunched] [1.12.2] SwitchCraft [Survival] [Krist] [CC:Tweaked1.80p...

Posted by Emma on 01 April 2018 - 04:14 PM in Servers

View PostCLNinja, on 29 March 2018 - 08:38 PM, said:

View PostSascha_T, on 24 March 2018 - 06:51 PM, said:

View PostCLNinja, on 24 March 2018 - 12:48 AM, said:

Who's making this camp/station whatever it is? It's super cool looking and the land it's on is actually really nice looking. I kinda wanna buy it.

Posted Image
Thats Google's [HydroNitrogen's] "Faraday Space Labs"
Oh cool, what's he planning on for it? I actually really want that land!

You could always come online and ask him, he's online a lot. Although I doubt that he is willing to sell it.



#276146 Checkpoint - A work around for persistence

Posted by Emma on 21 March 2018 - 01:35 AM in APIs and Utilities

Seeing this:
-- Not to bothered that this doesn't work
-- setmetatable(checkpoint, {__call = checkpoint.reach}) -- allow checkpoints to be reached via checkpoint(label) as well as checkpoint.reach(label)

The reason that doesn't work is because the __call metamethod does not directly pass the arguments it was called with, it passes the table too, the identity looks like this:
__call = function(self, ...) end

So if you want it to work change it to something like:
setmetatable(checkpoint, {__call = function(_, ...) checkpoint.reach(...) end})



#275328 CraftOS 2.0 - Dan's Secret Project

Posted by Emma on 17 February 2018 - 05:36 PM in General

View PostInDieTasten, on 17 February 2018 - 12:13 AM, said:

I guess still nothingness?

Unfortunately yes. However, if you are looking for some alternatives, there are various programs which have a similar feel. Some examples include LIKO-12, PICO-8, or my personal favorite: TIC-80.



#275074 We need to stop competing.

Posted by Emma on 07 February 2018 - 08:29 PM in General

View PostJummit, on 07 February 2018 - 07:49 PM, said:

View PostTerra1, on 07 February 2018 - 04:26 PM, said:

View Postapemanzilla, on 07 February 2018 - 04:13 PM, said:

That won't work for a lot of reasons:
  • People will want different mods
  • People will want different game settings (e.g. creative/survival, pvp/pve, etc)
  • Larger servers aren't automatically better
    • It takes a lot more work to run and maintain a larger server
    • A lot of players (myself included) prefer smaller servers (you get a more tight-knit community and better experience IMO)
    • Modded servers take far more resources to run than vanilla and have problems with lag with more players
    • CC specifically doesn't scale well at all, running all computers on a single thread means they become almost unusable very quickly
Do you count 20-2No. 5 players as large? I would count that as quite small.
I never saw a CC server with 20 players online at the same time. But I am quite new so...

Switchcraft has 20 players atm
Posted Image

Edit: 21 ;)
Posted Image



#268834 CCJam 2017 is here!

Posted by Emma on 06 August 2017 - 05:31 PM in General

Count me in!
Repo: https://github.com/i...rate/CCJam-2017
Will also be using Urn ;)



#267447 HTTPS

Posted by Emma on 06 June 2017 - 01:31 AM in Forum Discussion

The basic reason is because https isn't officially supported by the forums and is only offered because of the cloudflare DNS which automagically sets one up. The more detailed reason is because the pages have links to the stylesheets and scripts (css and js) for all the pages, however, these links are to non-secure pages and your browser detects this and forbids it as part of the same origin policy which states that:

Quote

Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin. An origin is defined as a combination of URI scheme, hostname, and port number.

In this case the URI scheme is the portion that is being violated where the stylesheet has protocol http and the request was made from a page obtained over https.



#267232 [POLL] A 3D Renderer [Accepts Wavefront objs]

Posted by Emma on 26 May 2017 - 05:00 PM in Media

By the way, I forgot I did this but I did release the code for someone else who asked me directly and forgot to post it here, the repo is currently setup to run in Love2D but all the CC code is still there, would just take some fiddling to get it to run. But I can't be bothered so. Here you go: https://github.com/i...tware-Rendering

PS: The code runs like super mega slow now because of the stuff I added while porting it to love2d but eh



#267206 Several Monitors in one program

Posted by Emma on 24 May 2017 - 01:52 AM in Ask a Pro

The concept that a dot will appear after every third character starting from the right is enough to figure out how to add the dots. It's easier to treat the number as a string implementation wise and conceptually at this point because it eventually needs to be a string anyways to be drawn to the screen.

So essentially what needs to happen is that you loop from the end of the string to the front, adding a dot after each third character. You can do this with a special for loop like so:
local x = 123456789


local xs = tostring(x)

local exs = ""

for i = #xs - 2, 1, -3 do
exs = "." .. xs:sub(i, i + 2) .. exs
end

local pre = #xs % 3

exs = xs:sub(1, pre) .. exs:sub(pre > 0 and 1 or 2)

-- This part ^^ gets what we missed    /\
-- ....................................||......................
-- The second part decides if we need the seperating dot, if we
-- didn't miss anything (ie pre == 0) we don't need another dot

print(exs)
When executed this prints the following:
123.456.789

And you can easily wrap this in a function. Hope this helps :D



#267005 sigle time execution in a loop. HELP!

Posted by Emma on 13 May 2017 - 03:09 PM in Ask a Pro

Just put the statement outside of the loop



#266988 "unexpected symbol" error

Posted by Emma on 13 May 2017 - 03:49 AM in Ask a Pro

Glad you got it working! My suspicion is that there was a weird unwanted invisible character on the very first line that you couldn't tell was there or something. Very strange though.



#266987 Solve for X function

Posted by Emma on 13 May 2017 - 03:22 AM in APIs and Utilities

View Postapemanzilla, on 11 May 2017 - 01:32 PM, said:

Hmm....
Posted Image

@EldidiStroyrr also this happens bc the loadstring turns into -2^2=-4 which lua sees as -(2^2)=-4



#266977 "unexpected symbol" error

Posted by Emma on 12 May 2017 - 06:29 PM in Ask a Pro

Also in Lua strings, you can escape characters using the \ character. In your fs calls, you write something like this
userFile = fs.open("authIDs\".. pcID, "r")
So in this case you escape the " character with the backslash meaning that it doesn't actually close the string and instead becomes part of it, so all your code gets messed up, either replace all of the \ characters with a forward slash (/) as it has the same meaning in the context of the filesystem, or replace them with a double backslash \\ so that it escapes itself and the backslash is actually part of the string as a backslash.
Like this:
userFile = fs.open("authIDs/".. pcID, "r") -- this one is better imo
-- or like this
userFile = fs.open("authIDs\\".. pcID, "r")



#266960 Solve for X function

Posted by Emma on 12 May 2017 - 03:35 AM in APIs and Utilities

I broke it :)
Spoiler

Edit; very nice work tho, for not crafted functions specially designed to thwart your algorithm it works pretty well :)
Basically it doesn't like inflection points very much, at all