bWolfie
I'm the man
Hi,
I have two servers - one ubuntu, one centos.
They run exactly the same files, yet CentOS has issues starting sometimes.
When loading scripts on CentOS, this can sometimes happen if there is something odd in a script:
[Info]: Done loading '10146' NPCs:
-'3306' Warps
-'72' Shops
-'6754' Scripts
-'3614' Spawn sets
-'40842' Mobs Cached
-'14' Mobs Not Cached
(notice no OnInit events executed)
While on ubuntu, the exact same files loads perfect.
[Info]: Done loading '10631' NPCs:
-'3306' Warps
-'72' Shops
-'7239' Scripts
-'3614' Spawn sets
-'40842' Mobs Cached
-'14' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1346' NPCs.
Does anybody know why this may be happening?
Thanks, really appreciate anybody who can help.
edit: Also I know which script causes issue: it is one which uses setnpcdisplay.
- script ::the_wall FAKE_NPC,{
end;
OnInit:
setnpcdisplay "" + strnpcinfo(NPC_NAME_UNIQUE) + "",1905;
end;
}
Again, works fine on Ubuntu but CentOS explodes when using it. When using unique name, no good (Centos, but fine on Ubuntu); when using visible name, works fine.
I have two servers - one ubuntu, one centos.
They run exactly the same files, yet CentOS has issues starting sometimes.
When loading scripts on CentOS, this can sometimes happen if there is something odd in a script:
[Info]: Done loading '10146' NPCs:
-'3306' Warps
-'72' Shops
-'6754' Scripts
-'3614' Spawn sets
-'40842' Mobs Cached
-'14' Mobs Not Cached
(notice no OnInit events executed)
While on ubuntu, the exact same files loads perfect.
[Info]: Done loading '10631' NPCs:
-'3306' Warps
-'72' Shops
-'7239' Scripts
-'3614' Spawn sets
-'40842' Mobs Cached
-'14' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1346' NPCs.
Does anybody know why this may be happening?
Thanks, really appreciate anybody who can help.
edit: Also I know which script causes issue: it is one which uses setnpcdisplay.
- script ::the_wall FAKE_NPC,{
end;
OnInit:
setnpcdisplay "" + strnpcinfo(NPC_NAME_UNIQUE) + "",1905;
end;
}
Again, works fine on Ubuntu but CentOS explodes when using it. When using unique name, no good (Centos, but fine on Ubuntu); when using visible name, works fine.
Last edited by a moderator: