View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:55 pm



Reply to topic  [ 5 posts ] 
 Vehicle control problems 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Vehicle control problems
OK, so I was trying to make my own copy of the bullet train from the vanilla skirmish map user controlled, and I couldn't get it to do anything other than mash into the terrain. I was certain that the problem is located in the code I entered, but I couldn't find where.

EDIT : Went through the code cleaning it out. Finally stopped it mashing terrain, and tried to set up keypress detection.

EDIT TWO:

Code:
Resolved all issues using a much more reliable source of information than the one I had been previously.


I cleared out some A LOT of the AI bits and pieces, but I did't think that was what was affecting it. Thanks TLB for your help.

RESOLVED


Last edited by Roast Veg on Wed Sep 01, 2010 10:06 am, edited 2 times in total.



Tue Aug 31, 2010 5:07 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Vehicle control problems
You haven't defined Ctrl. Make sure to check the console for errors.


Tue Aug 31, 2010 9:24 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Vehicle control problems
^Cleared out that bit, and tried to use a different key-detection system.

Also changed the hovering system so it doesn't mash terrain, now it just falls on top of it and does nothing.


Tue Aug 31, 2010 11:59 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Vehicle control problems
I'm not sure what you mean by "mashing terrain". I'm assuming the issue is that it always stays hovering at the same level. The reason is that the script is designed to keep the train hovering in a straight line, and not conform to the terrain's curves. You'll have to write your own piece of code to handle that.


Wed Sep 01, 2010 12:22 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Vehicle control problems
You were right. The level it was trying to remain constant to was a long way below terrain, so it just tore its way through it. I finally found a way to keep it hovering and the KeyPresses work just fine.

All is well.

Might release end product into minor mod dump.


Wed Sep 01, 2010 10:03 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.416s | 13 Queries | GZIP : Off ]