Invader: arcade strategy game

Showcase your games and demos, and discuss ongoing projects.

Re: Invader: arcade strategy game

Postby Larsii30 on Sat Feb 25, 2012 4:00 pm

the newer version work 100% for me. And this version is much better.
User avatar
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Invader: arcade strategy game

Postby cattail on Mon Apr 02, 2012 3:54 pm

I had played invader p2 | p3 for a while , it often kick me out in my slow PC.
I add print to view what's happend:
Code: Select all
      local newamount = math.max(sel.pop-dt * ARROW_SPEED, 0.01)  --line152

                if arr==nil then print("arr=nil") end
                if sel.pop==nil then print("sel.pop=nil") end
                if newamount ==nil then print("newamount") end

And I found arr==nil is a bug, But I have no iead about how and when arr means and became nil.
So I hard code (cheat code ?) like this :

Code: Select all
                if arr ~=nil then
              arr[3] = arr[3] + sel.pop - newamount   --zdx add if then , found arr==nil error  --line 153

And now I can play to success, once in console I have seen 12 times nil (fast large)
How can I fix the right place?
User avatar
Posts: 53
Joined: Mon Feb 13, 2012 4:11 pm

Re: Invader: arcade strategy game

Postby Robin on Mon Apr 02, 2012 8:26 pm

Interesting. I have no idea, and frankly no time to fix this. Thanks for the effort, the results will probably be very useful when I get around to fixing it.
Help us help you: attach a .love.
User avatar
The Omniscient
Posts: 6455
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands

Re: Invader: arcade strategy game

Postby Skasi on Tue Apr 03, 2012 8:52 pm

Reminds me of Lords of Space. :P
Woah, that's been more than three years.
lordsofspace.png (82.59 KiB) Viewed 256 times
User avatar
Posts: 27
Joined: Thu Feb 12, 2009 2:25 pm


Return to Projects and Demos

Who is online

Users browsing this forum: Bing [Bot] and 6 guests