View unanswered posts | View active topics It is currently Wed Dec 25, 2024 5:31 pm



Reply to topic  [ 4 posts ] 
 EDV problem 
Author Message

Joined: Tue Oct 30, 2012 12:31 pm
Posts: 69
Reply with quote
Post EDV problem
EDV was a great mod, but now it seems the lua is broken, the APC does not shoot any of its weapons.

console output is

with the second line repeating.

The variable "Barrel" should be assigned the APC gun, but instead becomes nil.

Attached is the mod and lua, script is under the filepath EDV.rte/ArmoredCar/ArmoredCar.lua

Any help would be greatly appreciated.


Attachments:
EDV_R12.zip [708.03 KiB]
Downloaded 769 times
ArmoredCar.lua [11.38 KiB]
Downloaded 800 times
Sun Sep 30, 2018 4:13 pm
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 666
Location: Halifax, Canada
Reply with quote
Post Re: EDV problem
A quick inspection suggests there's a name conflict with the script and newer versions of CC because there's now a property of ACrab's called Turret.
Try opening the script, searching for self.Turret, and renaming it to self.myTurret everywhere (or some other name, as long as it's the same throughout). Hopefully this'll fix it, or at least reveal whatever else doesn't work.


Sun Sep 30, 2018 5:55 pm
Profile

Joined: Tue Oct 30, 2012 12:31 pm
Posts: 69
Reply with quote
Post Re: EDV problem
Works flawlessly, thank you!

Also, is there any place on the forums or elsewhere that contains a complete list of lua documentation for cortex command? The wiki is kinda lame and incomplete.


Sun Sep 30, 2018 6:04 pm
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 666
Location: Halifax, Canada
Reply with quote
Post Re: EDV problem
Cheers, glad it works. And no, the wiki's basically it for documentation. The index page with all the game's datatypes is helpful if you know what you're looking for already.
If you're looking to learn lua instead of looking for docs, weegee's stickied mission making ones are good even if mission making isn't your goal, and there are plenty of general lua tutorials around the internet - pil (programming in lua) has a bunch of info.


Tue Oct 02, 2018 3:30 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.041s | 15 Queries | GZIP : Off ]