Proto-RTS

Show off your games, demos and other (playable) creations.
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 »

Jasoco wrote:Occasionally "self.lifetime" is being passed as empty.
Nope, it means self.lifetime < 5.002445.*

Depending on context, it could probably be replaced with

Code: Select all

and (self.lifetime < 5.002445 or math.random(self.lifetime / 10) == 1) then
or something

*Value found by experimentation: math.random(5.002445 / 10) is the highest value that errors
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 »

Hmm, yeah. I noticed that the only time the game ran, the number being printed (Via my added print() line) was always 6 or higher.
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

Huh, cool, that's easy to fix. it just means that math.random() is getting a number that it "perceives" as 1, and when you only feed math.random() one number it treats the other index as 1, therefore there is no interval. Will do it tonight I hope.

The game takes so long to load because of the map generation process. You get a nice readout in the console if you run it from a CLI, and in windows.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Proto-RTS

Post by bartbes »

Title of this bug report: "math.random randomly crashes" :wink:
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

added a version with embedded windows binaries for the lazy ones out there ;)
same drop : http://drop.io/tr0fk4d
also fixed that bug :)
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: Proto-RTS

Post by Lap »

I think the main love page should have a screenshot from this and Ten-Second War to showcase what can be made with love. This is a great project.
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

Lap wrote:I think the main love page should have a screenshot from this and Ten-Second War to showcase what can be made with love. This is a great project.
Wow, that means a lot man! ^^ cheers!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Proto-RTS

Post by bartbes »

Lap wrote:I think the main love page should have a screenshot from this and Ten-Second War to showcase what can be made with love. This is a great project.
I've been telling rude and thelinx we need newer screenshots, I completely agree with you.
User avatar
Virox
Citizen
Posts: 64
Joined: Thu Jan 07, 2010 6:24 pm

Re: Proto-RTS

Post by Virox »

I'm glad to see this project is still active. Looking forward to further developments!
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Proto-RTS

Post by Geti »

Virox wrote:I'm glad to see this project is still active. Looking forward to further developments!
I'm working on it on and off (mostly off at the moment, I have a lot of other stuff to do) but the next thing planned is some form of GUI for more casual players, and then likely some optimisation. Glad you're enjoying it.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests