Jump to content




[Official] CCLite - Lightweight CC Emulator

utility

138 replies to this topic

#101 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 04 September 2013 - 11:04 AM

View PostSorroko, on 04 September 2013 - 10:59 AM, said:

Ah Thanks! Didn't even notice that, I'll merge it it now.

Unfortunately, love2d has a sandbox around the filesystem, they only allow reading/writing inside the love directory :/. There are ways around the sandbox such as using io, however I'd rather stick to the supported filesystem library.

On another note, I haven't forgotten about that update, I'm working on it ;)
you can actually extract their executable and add stuff like lfs, i havent tried it though but i know its possible

#102 ElvishJerricco

  • Members
  • 803 posts

Posted 04 September 2013 - 11:47 AM

View PostSorroko, on 04 September 2013 - 10:59 AM, said:

Unfortunately, love2d has a sandbox around the filesystem, they only allow reading/writing inside the love directory :/. There are ways around the sandbox such as using io, however I'd rather stick to the supported filesystem library.

Yea I started researching how to do the working directory thing and it just isn't possible from love2d. Real shame...

EDIT: Didn't read PixelToast's thing. Didn't know you could do that though! What would he have to distribute and how would users run it?

#103 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 04 September 2013 - 12:43 PM

Posted Image
require "lfs"
local dirs=""
for f in lfs.dir(love.filesystem.getWorkingDirectory()) do
dirs=dirs..f.."\n"
end
function love.draw()
love.graphics.setColor(255,255,255)
love.graphics.print(dirs,10,10)
end
drop a compiled lfs into the love dir and require it :)
https://github.com/k...t/luafilesystem

#104 ElvishJerricco

  • Members
  • 803 posts

Posted 10 September 2013 - 04:30 PM

Probably should have commented here a while ago but a week ago I submitted another pull request that fixed a problem where any changes to _G persisted across reboot.

#105 miyoyo

  • Members
  • 16 posts

Posted 06 December 2013 - 10:09 AM

I don't want to see this die :( :(

#106 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 06 December 2013 - 08:17 PM

View Postmiyoyo, on 06 December 2013 - 10:09 AM, said:

I don't want to see this die :( :(
its not dead, there are still people working on it
https://github.com/gamax92/cclite

#107 Micheal Pearce

  • Members
  • 87 posts
  • LocationUSA

Posted 09 December 2013 - 02:26 AM

I really like this emulator the colors seem to be more saturated than the normal CC and i like this

#108 Creeper32605

  • Members
  • 6 posts

Posted 19 December 2013 - 11:30 AM

It doesn't work with LOVE 0.9.0... It just spits out this error:
Error:
main.lua:106: attempt to call field 'setMode' (a nil value)

Traceback
main.lua:106: in function 'load'
[C]: in function 'xpcall'

#109 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 19 December 2013 - 03:19 PM

That's because of differences in the 0.9.0 and 0.8.0 API. Just need to change any "love.graphics.setMode" calls to "love.window.setMode". Same goes for getMode.

Edited by Kingdaro, 19 December 2013 - 03:20 PM.


#110 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 20 December 2013 - 09:18 AM

View PostCreeper32605, on 19 December 2013 - 11:30 AM, said:

It doesn't work with LOVE 0.9.0... It just spits out this error:
Error:
main.lua:106: attempt to call field 'setMode' (a nil value)

Traceback
main.lua:106: in function 'load'
[C]: in function 'xpcall'

I already reported this on GitHub: https://github.com/S...cclite/issues/7

#111 Sorroko

  • Members
  • 87 posts

Posted 21 December 2013 - 07:56 AM

Major restructure, and updated to 0.9.0. Downloads are now on github at https://github.com/S...cclite/releases

#112 Creeper32605

  • Members
  • 6 posts

Posted 23 December 2013 - 08:41 AM

Tried to run it on LoveAndroid - after adding some output I got this:
Posted Image
What's wrong? Please fix it =/
Edit: tried 1.0 - main.lua:30: attempt to index ? (a nil value)
EditEdit: maybe someone else work on an android specific version <3

Edited by Creeper32605, 23 December 2013 - 09:38 AM.


#113 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 23 December 2013 - 02:15 PM

IIRC, the android port still runs on 0.7.2, so it won't work.

#114 UC101

  • New Members
  • 1 posts

Posted 24 December 2013 - 06:37 PM

I compiled it to run on my mac, if anyone wants it I can get the download out.

#115 InputUsername

  • Members
  • 231 posts
  • LocationThe Netherlands

Posted 26 December 2013 - 01:53 PM

Really useful.

There's one thing though: it crashes on empty while (true) loops. Is this a CC, Lua or LÖVE specific error?

EDIT:
It also crashes when running the Pastebin program.
Spoiler

Edited by InputUsername, 05 January 2014 - 07:19 AM.


#116 axel.codeFail()

  • Members
  • 47 posts
  • LocationA bit lost

Posted 26 January 2014 - 02:43 AM

I'd suggest possibly making the files save to whatever directory you have the CCLite in.

#117 gamax92

  • Members
  • 157 posts

Posted 26 January 2014 - 11:49 AM

That's impossible (It might be possible with fused mode) in Love2D, Love2D forces all of the files to be in its "save directory"

Also, the while loop crash is due to the fact that, Sorroko is using the jit compiler always, and jit code cannot properly trigger sethook's, which is what gives us the "Too long without yielding"
Its also due to the fact that Sorroko doesn't even have a sethook running.

The HTTP crash has been fixed but he hasn't made a recent build in a while.

Just go to https://github.com/Sorroko/cclite and put all of the files inside the src folder into a zip, and rename the .zip to .love, or use his build scripts which may or may not work.
READ: the files INSIDE the src folder, not the src folder itself.

Edited by gamax92, 27 January 2014 - 04:34 PM.


#118 axel.codeFail()

  • Members
  • 47 posts
  • LocationA bit lost

Posted 27 January 2014 - 01:34 PM

Quote

That's impossible (it might be possible with fused mode) in Love2D, Love2D forces all of the files to be in its "save directory"

Would it be possible to make a program to extract files from the directory? Because I mainly use CCLite for at school, and as you could imagine, I don't have permission to access the data under the directory that the files are saved to(Windows 7), and i would like to be able to continue here, what I have started at home.

#119 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 27 January 2014 - 03:31 PM

Are you sure that you're actually not able to access it, and that you just can't see it? Any Windows user should be able to access their own appdata directory, it's just marked as hidden.

Edited by Kingdaro, 27 January 2014 - 03:32 PM.


#120 gamax92

  • Members
  • 157 posts

Posted 27 January 2014 - 04:30 PM

As what Kingdaro said, You should be able to access your own appdata directory. Try going to Explorer's (Not Internet Explorer) address bar and type in %APPDATA%
Also, if you want to change the appdata directory (at least in the love2D session), you can create a batch file like this:
set APPDATA=C:\Your\Path\Goes\Here
love.exe --fused cclite-master\src
Just tested this, and love2D no longer writes to the normal AppData directory but where you specified.

EDIT: Oh and fused mode won't help with this. Fused mode makes it so games can save in %AppData%\(game name) instead of %AppData%\LOVE\(game name)

Edited by gamax92, 27 January 2014 - 04:35 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users