Proto-RTS

Show off your games, demos and other (playable) creations.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Proto-RTS

Post by qubodup »

Geti wrote:REPACKAGED AS A .RAR
it's a zip.

I get

Code: Select all

boot	[string "Scripts/Vegetation/growth.lua"]:41: bad argument #1 to 'random' (interval is empty)	stack traceback:
	[string "boot.lua"]:833: in function 'error_printer'
	[string "boot.lua"]:768: in function <[string "boot.lua"]:766>
	[C]: in function 'random'
	[string "Scripts/Vegetation/growth.lua"]:41: in function 'woodGrowth'
	[string "Scripts/Create.lua"]:391: in function 'update'
	[string "main.lua"]:245: in function 'update'
	[string "boot.lua"]:307: in function <[string "boot.lua"]:295>
	[C]: in function 'xpcall'
	[string "boot.lua"]:840: in main chunk
0.6.2 not supported? :)
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Proto-RTS

Post by Jasoco »

This is the kind of project that could benefit from image distortion. Imagine instead of having raised squares, you could stretch the ground textures to the contour of your landscape and avoid the stepped pattern.

Shame I can't try it since I have 0.5.0 and 0.6.2 but this one seems to require 0.6.1.
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

Uh, what? I'm running 0.6.2 on linux, it's working fine :| Just tried it in windows too, open happily.. Maybe it's a one off error, I'll see if there's anything more sinister is going on.. Oh it's also possible the conf file still says 0.6.1, it's been a while :P
Jasoco wrote:This is the kind of project that could benefit from image distortion. Imagine instead of having raised squares, you could stretch the ground textures to the contour of your landscape and avoid the stepped pattern.
Shame I can't try it since I have 0.5.0 and 0.6.2 but this one seems to require 0.6.1.
Indeed.. Though I do kind of like the stepped feel sometimes..
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Proto-RTS

Post by Jasoco »

I get the same error as qubodup. Something with the Vegetation LUA file. Or something.
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

Really? :huh: have you tried redownloading? I just grabbed it off the drop and tried it on windows and linux again to see if there had been an issue with the upload, but it worked fine :|
ProtoRTS.love
here's just the .love straight off my HDD
(98.73 KiB) Downloaded 255 times
See if that one works .. This is worrying :crazy:
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Proto-RTS

Post by Robin »

Great to see finally some use of those smilies!

It seems to take a loooong time to load, by the way.

No error, though.
Help us help you: attach a .love.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Proto-RTS

Post by nevon »

I just tried it in 0.6.2 in Linux, and it worked just fine. It did take a long time to load, but once it did, everything seemed to run smoothly.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Proto-RTS

Post by qubodup »

Code: Select all

$ love ProtoRTS.love
[...]
unit_13_4 dead
boot	[string "Scripts/Vegetation/growth.lua"]:41: bad argument #1 to 'random' (interval is empty)	stack traceback:
	[string "boot.lua"]:833: in function 'error_printer'
	[string "boot.lua"]:768: in function <[string "boot.lua"]:766>
	[C]: in function 'random'
	[string "Scripts/Vegetation/growth.lua"]:41: in function 'woodGrowth'
	[string "Scripts/Create.lua"]:391: in function 'update'
	[string "main.lua"]:245: in function 'update'
	[string "boot.lua"]:307: in function <[string "boot.lua"]:295>
	[C]: in function 'xpcall'
	[string "boot.lua"]:840: in main chunk
[qubodup@qbox ~$ pacman -Q lua
lua 5.1.4-4
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Proto-RTS

Post by Robin »

Code: Select all

bad argument #1 to 'random' (interval is empty)
Let me make a guess here, just a stab in the dark.

Are you calling math.ramdom() with results coming from math.random()?
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Proto-RTS

Post by Jasoco »

The error I was getting was on line 41 of Vegetation.lua. Which is part two of an IF statement:

Code: Select all

and math.random(self.lifetime / 10) == 1 then
But after a few launches, once in a while it works. You might need to look into that. Maybe I'm wrong. But it is random when it will crash and when it will work.

"Interval is empty" is the problem. Occasionally "self.lifetime" is being passed as empty.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests