Page 1 of 3

Nano Space

Posted: Fri Jun 09, 2017 5:55 am
by Luke100000
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.

Here is one download page:
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
S+Pow_.jpg (19.48 KiB) Viewed 8002 times
O7LXm5.jpg
O7LXm5.jpg (23.86 KiB) Viewed 8002 times
6r1nIq.jpg
6r1nIq.jpg (19.57 KiB) Viewed 8002 times

Re: Nano Space

Posted: Fri Jun 09, 2017 12:58 pm
by Luke100000
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?

Re: Nano Space

Posted: Fri Jun 09, 2017 2:18 pm
by raidho36
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.

Re: Nano Space

Posted: Fri Jun 09, 2017 4:32 pm
by Luke100000
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.

Re: Nano Space

Posted: Fri Jun 09, 2017 4:47 pm
by Sir_Silver
I downloaded the love2d version and got this error.
error.PNG
error.PNG (36.79 KiB) Viewed 7930 times
Perhaps people are trying to launch it but it crashes.

Re: Nano Space

Posted: Fri Jun 09, 2017 5:41 pm
by Luke100000
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.

Re: Nano Space

Posted: Fri Jun 09, 2017 5:58 pm
by Sir_Silver
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?

Re: Nano Space

Posted: Fri Jun 09, 2017 7:18 pm
by Luke100000
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
	C = ffi.load('libcurl/bin/mingw64/curl')
else
	C = ffi.load('libcurl/bin/mingw32/curl')
end

Re: Nano Space

Posted: Fri Jun 09, 2017 11:08 pm
by Jeeper
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!

Re: Nano Space

Posted: Sat Jun 10, 2017 8:37 am
by Luke100000
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()
	downloader_channel:push("done")
	love.filesystem.write("lovum_update.raw", table.concat(t))