|
Post by MonstaWolf on Jun 26, 2015 17:25:41 GMT
So, I have a working pedestrian vehicle in my game, powered by a modified script. A traffic system is surely going to take a long time to make, so I have a few questions:
1.) So, I know you can't activate all the vehicles at the same time, as that would cause the worst of lag, so, which would be more efficient: Having the certain vehicles activate when at a certain radius, or moving like 10 vehicles around the map as you drive around it? The second one would surely be harder.
2.) So, down to writing the scripts. I have a system that makes the cars go to waypoints. It looks like this:
// Waypoints:
Waypoints[0] = Vector3( 7.48158,0.12,15.1639 );
Waypoints[1] = Vector3( 7.55747,0.12,51.5908 );
Waypoints[2] = Vector3( 7.3249,0.12,91.6773 );
Waypoints[3] = Vector3( 7.62137,0.12,123.769 );
Waypoints[4] = Vector3( 7.72733,0.12,154.556 );
Waypoints[5] = Vector3( 8.0463,0.12,183.852 );
Waypoints[6] = Vector3( 7.01582,0.12,206.221 );
Waypoints[7] = Vector3( -25.708,0.12,206.534 );
Waypoints[8] = Vector3( -49.183,0.12,207.243 );
Waypoints[9] = Vector3( -83.7517,0.12,207.078 );
and so on...
But, I usually have like 60 coords at a time, and it takes forever to copy and paste them in one at a time. Is there a way to paste them in corresponding with the script?
Thanks for your help.
|
|
|
Post by F1Andre on Jun 26, 2015 17:33:05 GMT
I'm not sure what you ask at the second question, but in the first question I would deactivate all cars at a certain radius and re enable them when close enough.
I think I know what you are asking o second question but explain in more depth want you want
|
|
|
Post by MonstaWolf on Jun 26, 2015 17:44:47 GMT
I'm finding it hard to explain it, sorry.
I want to be able to copy the coords I need, and paste them over the existing coords all at once without removing the other text. The fastest I've ever been able to make a path and transfer the coords was about 45 minutes to an hour. That's the whole reason why I've been at the same development stage for a few weeks.
|
|
|
Post by F1Andre on Jun 26, 2015 17:49:08 GMT
I understand, what programming language did you use before 3DRAD
|
|
|
Post by F1Andre on Jun 26, 2015 18:01:59 GMT
If you know Java, C++ or some other language you can write a simple piece of code that will take the node insert the rest of the stuff for you (like waypoint and the braces) and save the output to a txt file. it will take about a hour to write the code and 2 minutes to paste the nodes and get the result.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 27, 2015 7:35:56 GMT
actualy have you tried recording the path of a vehicle ai, its not that har you can add event on location which triggers when you are in the location and turns back to normal when you are of it, and when you are in the certain location the cars drive, you can record the path of every vehicle in the game using one parent vehicle just like in racing games
|
|
|
Post by MonstaWolf on Jun 27, 2015 12:25:50 GMT
Sorry for the late reply. F1Andre: I never really took the time to learn another programming language, as I never found the need to. 3D RAD was actually kind-of what taught me computers. @gamedeveloper0: I'm a little confused at what you're trying to say, sorry.
|
|
|
Post by MonstaWolf on Jun 27, 2015 12:33:13 GMT
I forgot to mention that I create paths with shadmar's path editor, so that's not a problem
|
|
|
Post by F1Andre on Jun 27, 2015 13:01:34 GMT
Unfortunetly you have to take the long way on this one...Sorry. I will try and wip up a program that will make it easier but don't get excited just yet, I haven't programmed in JAVA for nearly 8 months now.
|
|
|
Post by MonstaWolf on Jun 27, 2015 13:14:58 GMT
That's okay. I've come up with a second idea for the setting of the game (and have had it in my head for awhile) which will require much less traffic.
|
|
|
Post by F1Andre on Jun 27, 2015 13:35:20 GMT
Oh okay
|
|
|
Post by MonstaWolf on Jun 27, 2015 13:59:01 GMT
It's probably gonna use normal cars, as my current system don't go well with bumpy surfaces
|
|