## Nano Space

Show off your games, demos and other (playable) creations.
Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Nano Space

Hey,
I can proudly present my new game: Nano Space!
Actually I wanted to make a small, endless game. After 50 hours of work the game is still unfinished, because we HAD to implement a story. But now we were able to upload the first, stable version.

https://luke100000.itch.io/nano-space

Also, I need some help: Can someone test the Mac OS X and the universal Linux version? This would nice!

Screenshots:
S+Pow_.jpg (19.48 KiB) Viewed 4406 times
O7LXm5.jpg (23.86 KiB) Viewed 4406 times
6r1nIq.jpg (19.57 KiB) Viewed 4406 times

Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Re: Nano Space

Three people of the forum downloaded the game and no one started it. Did the launcher crashed, are you afraid of inputing the email or what did not work?

raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

### Re: Nano Space

You assume it's from forum, but that may not be the case. Either way, most of the time people cannot be bothered to leave any feedback. You should expect less than 5% downloads to feedbacks ratio.

Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Re: Nano Space

raidho36 wrote:
Fri Jun 09, 2017 2:18 pm
You assume it's from forum, but that may not be the case. Either way, most of the time people cannot be bothered to leave any feedback. You should expect less than 5% downloads to feedbacks ratio.
I see who's coming from the forum, but you are right. I'm still nervous, because my Launcher I use made so many problems so far I do not know if it works now. It is strange that people downloads an application, but don't launch it.

Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

### Re: Nano Space

I downloaded the love2d version and got this error.
error.PNG (36.79 KiB) Viewed 4334 times
Perhaps people are trying to launch it but it crashes.

Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Re: Nano Space

Sir_Silver wrote:
Fri Jun 09, 2017 4:47 pm
I downloaded the love2d version and got this error.
error.PNG

Perhaps people are trying to launch it but it crashes.
That's what I suspected
Do you have a 64 bit version of love? It requires 32 bit.
In the moment I do not know how to check if it's either a 32 or a 64 bit version. Windows and Mac version contains the correct love so there it doesn't matter, but in the case of the .love file it is important to load the correct curl file.

Code: Select all

local OS = love.system.getOS()
if OS == "Windows" then
C = ffi.load(path .. 'bin/mingw32/curl')
elseif OS == "Linux" then
C = ffi.load(path .. 'bin/linux32/curl')
elseif OS == "OS X" then
C = ffi.load(path .. 'bin/osx32/curl')
Here is what I'm doing. I just need to expand this so it recognize a 64 bit version. Any ideas? Using pcall and guessing seems strange to me.

Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

### Re: Nano Space

I'm pretty sure I have the 64 bit version. I'm not sure how to check if a person's version is 32 or 64 bit. Is there a good reason why your game requires a 32 bit version?

Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Re: Nano Space

Sir_Silver wrote:
Fri Jun 09, 2017 5:58 pm
I'm pretty sure I have the 64 bit version. I'm not sure how to check if a person's version is 32 or 64 bit. Is there a good reason why your game requires a 32 bit version?
I thought that 64 bit could launch 32 too so I chose 32. Yes I was wrong
I will try out the pcall solution, this should do it.

EDIT:
Tried my best and came to the conclusion: libcurl does not work on 64 bit. Love2d 64 bit (Windows) can not load the 32 nor the 64 bit version of libcurl, while love2d 32 bit can load 32 bit without problems. It's always the same error message ("%1 is not a valid Win32 application")
Here is the code:

Code: Select all

if ffi.abi'64bit' then
else
end

Jeeper
Party member
Posts: 587
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

### Re: Nano Space

Had this error when trying it with the launcher (https://i.gyazo.com/a99fb18664f5ebdf0c3 ... b10954.png)

I will leave more feedback on the actual game tomorrow or so, but overall I am impressed, well done!

Luke100000
Party member
Posts: 231
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

### Re: Nano Space

Jeeper wrote:
Fri Jun 09, 2017 11:08 pm
Had this error when trying it with the launcher (https://i.gyazo.com/a99fb18664f5ebdf0c3 ... b10954.png)

I will leave more feedback on the actual game tomorrow or so, but overall I am impressed, well done!
Thank you!
The error would say "Failed to install lovum, please make sure you have an internet connection." I'm going to fix the error message, but I do not know why the download failed. EDIT: launcher crashed by a friend of mine too, but just restarting helps.

That's how my launcher gathers the update:

Code: Select all

	local downloader_channel = love.thread.getChannel("downloader_channel")
local curl = require("libcurl/libcurl")
local ffi = require("ffi")
local t = { }
curl.easy{
url = "https://pastebin.com/raw/CTbn9WT8",
timeout = 16,
writefunction = function(data, size, n)
local size = tonumber(size * n)
if size == 0 then return end
table.insert(t, ffi.string(data, size))
return size
end,
}:perform()
love.filesystem.write("lovum_update.raw", table.concat(t))