Darkwind - Viewing Topic: Scripts v.193
Welcome Guest! » Darkwind » Announcements » Patch Notes » Scripts v.193

Pages: << prev 1, 2 next >> Reply to Topic Create New Topic Create New Poll
Scripts v.193, combat AI
*sam*
The Salthill Sluggerz
Darkwind Guru

Renegade

Avatar

Member Level

Group: Lead Developer
Posts: 16,782
Joined: Jan 19, 2006

Send an email to *sam* Send a personal messsage to *sam* Reply with a quote from this post Go to the top of the page

Quote:
Was the bizarre part the you were playing?


Heh, no even more bizarre would you believe? A bunch of data that's totally unrelated to the pathing code got zeroed, and the event ended because the server thought we had no cars. Plus it thought the NPCs were human playerrs and started the looting process. Seriously.

It all makes sense now I have (I think) found the bug. I wasn't resizing the block of memory used to store pathing data when new path points were added, and then elsewhere I was setting NPC path data to zero... which was overrunning the end of the allocated memory and screwing with other data in the game. It explains all the random crash points.

I hope.

C++ is an evil language.
.........................
marshal vet deathrce1 paintladder combat1 wv ped1 cont slay2013

Posted Jun 5, 2008, 12:31 am Last edited Jun 5, 2008, 12:32 am by *sam*
madmax
MainForcePatrol
Darkwind Guru

Renegade

Member Level

Group: Members
Posts: 560
Joined: Dec 6, 2007

Send an email to madmax Send a personal messsage to madmax Reply with a quote from this post Go to the top of the page

Ok what I got out of that is that the pathing data stuff started using memory that was needed for other things, and confused the hell out of the server. Is that basically it, or am I a very confused person?
.........................
vet wv

Posted Jun 5, 2008, 1:17 am
Marrkos
88 MPH
Darkwind Guru

Renegade

Avatar

Member Level

Group: Members
Posts: 3,711
Joined: Mar 28, 2006

Send an email to Marrkos Visit Marrkos's web site Send a personal messsage to Marrkos Reply with a quote from this post Go to the top of the page

madmax said:
Is that basically it, or am I a very confused person?


Are these really mutually exclusive? ;)
.........................
vet wv community

Posted Jun 5, 2008, 1:30 am
*Zothen*
Knights Templar
Darkwind Guru

Renegade

Member Level

Group: Marshals
Posts: 841
Joined: Jun 11, 2007

Send an email to *Zothen* Send a personal messsage to *Zothen* Reply with a quote from this post Go to the top of the page

Sounds like messed up pointers to me... Yes, C++ is straight outta hell!

Sam, the AIs still do a lot of "Bumblebee dances" at the start of an event! They circle alot around themselves... Quiete aesthetic but... :rolleyes:
.........................
vet marshal wv

Posted Jun 5, 2008, 2:33 am Last edited Jun 5, 2008, 2:34 am by Zothen
Parduz
BroadRausters
Darkwind Guru

Renegade

Member Level

Group: Members
Posts: 523
Joined: Feb 5, 2008

Send an email to Parduz Send a personal messsage to Parduz Reply with a quote from this post Go to the top of the page

*sam* said:
...Plus it thought the NPCs were human playerrs and started the looting process. Seriously.

You see? give to the AI enough of the "I" and it will start to pretend to be human! :D

Glad you've found the bug. :)

Quote:
Ok what I got out of that is that the pathing data stuff started using memory that was needed for other things

Yeah, there was no enough space to write all that data, but the only one that check it is Sam when write code. The CPU just write till the end :)
.........................
vet wv

Posted Jun 5, 2008, 6:03 am
Parduz
BroadRausters
Darkwind Guru

Renegade

Member Level

Group: Members
Posts: 523
Joined: Feb 5, 2008

Send an email to Parduz Send a personal messsage to Parduz Reply with a quote from this post Go to the top of the page

About the "Bumblebee dance"... do they have a sort of priority betweem them?
Says, the most courage goes first and do not care at all about who'is in front of him.... the second one just tries to avoid the first, and then choose his path, and so on?...
.........................
vet wv

Posted Jun 5, 2008, 6:58 am
*viKKing*
Skulls And Bones
Darkwind Guru

Renegade

Member Level

Group: Marshals + Contributors
Posts: 4,249
Joined: Oct 12, 2006

Send an email to *viKKing* Send a personal messsage to *viKKing* Reply with a quote from this post Go to the top of the page

Parduz said:
About the "Bumblebee dance"... do they have a sort of priority betweem them?
Says, the most courage goes first and do not care at all about who'is in front of him.... the second one just tries to avoid the first, and then choose his path, and so on?...

I don't think so Parduz, that could be needed, yes.
.........................
vet cont zom slay2013 marshal wv

Posted Jun 5, 2008, 10:52 am
madmax
MainForcePatrol
Darkwind Guru

Renegade

Member Level

Group: Members
Posts: 560
Joined: Dec 6, 2007

Send an email to madmax Send a personal messsage to madmax Reply with a quote from this post Go to the top of the page

Marrkos said:
madmax said:
Is that basically it, or am I a very confused person?


Are these really mutually exclusive? ;)

Good point, make it "a person who is very confused about this."  :D
.........................
vet wv

Posted Jun 5, 2008, 11:47 am
Jansan
Vigilante Knights
Darkwind Guru

Renegade

Member Level

Group: Members
Posts: 1,070
Joined: May 7, 2007

Send an email to Jansan Send a personal messsage to Jansan Reply with a quote from this post Go to the top of the page

*sam* said:
Quote:
Was there any tweaks to NPC accuracy vs Pedestrians? With this change, they are going to be more likely to shoot at them, and they're pretty hyper-accurate as it is right now.


You probably mean vehicle weapon accuracy vs. peds, not NPC accuracy vs. peds? No changes.. I haven't played much lately so I can make this tweak if you think it should be done? Possibly make a reduced accuracy based on the activity level of the target, to simulate rolling/diving etc..?


This change really needs to happen sooner rather than later with these AI changes. All they're doing is picking off my peds now regardless of their cover instead of taking cars as priority targets as they used to (which is why the extreme over-accuracy of cars vs humans was acceptable in fighting NPCs).

I'm going to cross-post this because I've brought this up a number of times before and it's kinda critical now due to this AI change for ped combat.
.........................
vet

Posted Jun 6, 2008, 7:59 am
Acierocolotl
Equipe Jagwire
Autodueller

Renegade

Member Level

Group: Contributors
Posts: 277
Joined: Mar 28, 2007

Send an email to Acierocolotl Send a personal messsage to Acierocolotl Reply with a quote from this post Go to the top of the page

Quick commentary:

Event S49582: my dune buggy was crippled with a blown engine. Spying a chance to leg it, my driver jumped out and started running. One car came back and spent a LOT of time shooting up the crippled, driverless car, ignoring the driver who was right out in the open for a bit.

I'm not sure at all if that was by design or an oversight.
.........................
vet

Posted Jun 7, 2008, 5:01 am
Reply to Topic Create New Topic Create New Poll E-mail me when replies are made to this topic View Printable
» Darkwind » Announcements » Patch Notes » Scripts v.193

0.1341 seconds - 20 queries - 0.20 load