Sven Co-op

Sven Co-op

Trying to add a custom coded npc in my map.
Hello i need help. can you please help me how to register the custom coded npc in my map? the angelscript text is saying errors.
< >
Showing 1-7 of 7 comments
Knee 15 Jan @ 9:12am 
What errors?
this one: ERROR: Failed to add include file 'monster_barney357'!
ERROR: Could not load map script 'barneytest/barneytest'
Failed to include 1 script; compilation may fail!
ERROR: c:/program files (x86)/steam/steamapps/common/sven co-op/svencoop/scripts/maps/barneytest/barneytest.as (12, 9) : No matching symbol 'barney_357::Register'
ERROR: Map script compilation failed
Knee 16 Jan @ 11:01am 
It appears the first failure causes the second. The first failure is the barneytest file could not be included, either due to invalid file name or file path. The second error, “no matching symbol” should fix itself when the first error is resolved.

Double check the file names that they match what file you are trying to #include
Last edited by Knee; 16 Jan @ 11:01am
sorry its been like months but still showing errors. Angelscript log opened
Server started logging Angelscript on map 'barneytest' at: 2025-02-05 09:46:32
ERROR: Failed to add include file 'monster_barney357'!
ERROR: Could not load map script 'barneytest/barneytest'
Failed to include 1 script; compilation may fail!
ERROR: c:/program files (x86)/steam/steamapps/common/sven co-op/svencoop/scripts/maps/barneytest/barneytest.as (9, 5) : No matching symbol 'RegisterBarney357'
ERROR: Map script compilation failed
Server stopped logging Angelscript at: 2025-02-05 09:47:12
can you please fix it or youre not a coder?
Knee 16 Feb @ 12:22pm 
The error is telling you it cannot find the "monster_barney357.as" script.
Then it has a domino effect causing other errors. First try figuring out why it cannot find the script.

Does the "monster_barney357.as" file exist? Is it in the correct directory?
momontaru1 16 Feb @ 12:52pm 
yes
momontaru1 16 Feb @ 12:52pm 
it does exist
< >
Showing 1-7 of 7 comments
Per page: 1530 50