Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

crash in moveDroidToNoFormation() - svn/2.3 + dydo_ai.wz #1758

Closed
wzdev-ci opened this issue Apr 9, 2010 · 10 comments
Closed

crash in moveDroidToNoFormation() - svn/2.3 + dydo_ai.wz #1758

wzdev-ci opened this issue Apr 9, 2010 · 10 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Apr 9, 2010

keyword_dydo resolution_fixed type_bug | by stiv


info |08:40:04: [main] mod_mp (dydo-ai.wz) is enabled

error |08:51:23: [moveDroidToNoFormation] Bad movement position

error |08:51:23: [moveDroidToNoFormation] Assert in Warzone: ../../2.3/src/move.c:443 (x > 0 && y > 0), last script event: 'N/A'
warzone2100: ../../2.3/src/move.c:443: moveDroidToNoFormation: Assertion `x > 0 && y > 0' failed.


Issue migrated from trac:1758 at 2022-04-15 21:19:04 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 9, 2010

stiv uploaded file warzone2100.gdmp-2N4f2p (11.2 KiB)

[moveDroidToNoFormation] Bad movement position

@wzdev-ci
Copy link
Contributor Author

stiv uploaded file warzone2100.gdmp-tQF1ir (11.2 KiB)

revision 10604 - error [moveDroidToNoFormation] Bad movement position

@wzdev-ci
Copy link
Contributor Author

stiv changed owner from `` to DylanDog

@wzdev-ci
Copy link
Contributor Author

stiv changed status from new to assigned

@wzdev-ci
Copy link
Contributor Author

DylanDog commented


I am not sure this is an issue related to the AI script, I see this message error appearing on events which has nothing to do with droid movements at all. I will update this ticket with more information soon.

@wzdev-ci
Copy link
Contributor Author

DylanDog changed owner from DylanDog to stiv

@wzdev-ci
Copy link
Contributor Author

DylanDog commented


Recently I got the following message too:

error   |02:20:30: [moveDroidToNoFormation] Bad movement position
error   |02:20:30: [moveDroidToNoFormation] Assert in Warzone: ../../../src/move.c:443 (x > 0 && y > 0), last script event: 'showPlayerInfo'
error   |02:20:30: [SendDroidMove] SendDroidMove: Invalid move order
error   |02:20:30: [SendDroidMove] Assert in Warzone: ../../../src/multibot.c:447 (x > 0 && y > 0), last script event: 'showPlayerInfo'

now the event showPlayerInfo is an "empty" event (I use sometimes to fill it with some debug report):

// ============================ Debug messages====================
event showPlayerInfo (inactive)
{
  ASSERT(player >= 0 and player < 8,      "player out of bounds: showPlayerInfo " & player, player);
  boolResult = true;
}

Therefore the error message is strange as I do not see the reason of having a crash in moveDroidToNoFormation()

Even worse the following:

error   |02:29:32: [moveDroidToNoFormation] Bad movement position
error   |02:29:32: [moveDroidToNoFormation] Assert in Warzone: ../../../src/move.c:443 (x > 0 && y > 0), last script event: 'weatherStop'
error   |02:29:32: [SendDroidMove] SendDroidMove: Invalid move order
error   |02:29:32: [SendDroidMove] Assert in Warzone: ../../../src/multibot.c:447 (x > 0 && y > 0), last script event: 'weatherStop'

DyDo has no event called weatherStop

stiv can you maybe have a look?

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2010

DylanDog changed status from assigned to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2010

DylanDog set resolution to fixed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2010

DylanDog commented


Fixed this on DyDo 2.1.3. I still do not think it is an AI script issue. I think the problem is created by the following line

orderDroid(droid, DORDER_RUN);

I have now removed this from the AI script and the issue does not appear anymore.

@wzdev-ci wzdev-ci closed this as completed May 5, 2010
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant