Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: getent used with more than one entity #74

Open
TheFrenchGhosty opened this issue Apr 28, 2021 · 2 comments
Open

Crash: getent used with more than one entity #74

TheFrenchGhosty opened this issue Apr 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@TheFrenchGhosty
Copy link
Member

******* script runtime error *******
getent used with more than one entity: (file 'maps/mp/_helicopter.gsc', line 106)
  startnode = getent( loop_start[i].target, "targetname" );
              *
called from:
(file 'maps/mp/_helicopter.gsc', line 158)
 heli_path_graph();
 *
called from:
(file 'maps/mp/gametypes/_helipath.gsc', line 213)
    maps\mp\_helicopter::init();
    *
called from:
(file 'maps/mp/gametypes/_general.gsc', line 54)
 thread maps\mp\gametypes\_helipath::init();
        *
called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 4127)
 thread maps\mp\gametypes\_general::main();
        *
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 15)
  [[level.callbackStartGameType]]();
          *
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
CodeCallback_StartGameType()
*
************************************

Map was mp_anchorage

@TheFrenchGhosty TheFrenchGhosty added the bug Something isn't working label Apr 28, 2021
@TheFrenchGhosty TheFrenchGhosty changed the title Crash: script runtime error Crash: getent used with more than one entity Apr 28, 2021
@TheFrenchGhosty
Copy link
Member Author

TheFrenchGhosty commented Apr 29, 2021

******* script runtime error *******
getent used with more than one entity: (file 'maps/mp/_helicopter.gsc', line 106)
  startnode = getent( loop_start[i].target, "targetname" );
              *
called from:
(file 'maps/mp/_helicopter.gsc', line 158)
 heli_path_graph();
 *
called from:
(file 'maps/mp/gametypes/_helipath.gsc', line 213)
    maps\mp\_helicopter::init();
    *
called from:
(file 'maps/mp/gametypes/_general.gsc', line 54)
 thread maps\mp\gametypes\_helipath::init();
        *
called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 4127)
 thread maps\mp\gametypes\_general::main();
        *
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 15)
  [[level.callbackStartGameType]]();
          *
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
CodeCallback_StartGameType()
*
************************************

Map was mp_toujane_beta, it then continued for a while:

******* script runtime error *******
getent used with more than one entity: (file 'maps/mp/gametypes/_misc.gsx', line 2025)
   heli_nodes[i] = getent(heli_nodes[i-1].target, "targetname");
                   *
called from:
(file 'maps/mp/gametypes/_carepackage.gsc', line 205)
 height = GetSkyHeight();
          *
called from:
(file 'maps/mp/gametypes/_carepackage.gsc', line 189)
     self thread SpawnSupplyHeli(grenade.origin);
                 *
started from:
(file 'maps/mp/gametypes/_misc.gsx', line 1946)
  wait .05;
  *
************************************

After that it crashed.

Last message mention mp_burg

@VikingKampfsau
Copy link
Collaborator

I am still not able to reproduce the crash, but from your posted logs i see where it comes from.
I will update a plugin to allow printing debug messages to the same log file.

Correct is sth like this:
heli debug - start size: 1 heli debug - start target: heli_path_circle8

When it crashs you should have for X a value bigger 1:
heli debug - start size: X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants