Invader: arcade strategy game

Show off your games, demos and other (playable) creations.
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Invader: arcade strategy game

Post by Larsii30 »

the newer version work 100% for me. And this version is much better.
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Re: Invader: arcade strategy game

Post by cattail »

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
                end
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
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Invader: arcade strategy game

Post by Robin »

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
Skasi
Prole
Posts: 27
Joined: Thu Feb 12, 2009 2:25 pm

Re: Invader: arcade strategy game

Post by Skasi »

Reminds me of Lords of Space. :P
Woah, that's been more than three years.
Attachments
lordsofspace.png
lordsofspace.png (82.59 KiB) Viewed 2564 times
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 0 guests