Hello,
(1) I would like some advice regarding the design of GLOs, in particular the sort of scale that one GLO should occupy (in terms of object size/responsibilities). i.e.:
If I want to represent AI players in, say a local world of 50 players (Human and AI), should I just have one GLO to represent all the AI players, or an individual GLO for each one? Should I avoid using GLOs at all for AI players?
I am aware that this all depends on the type of application/load/users/world size etc., but just some ideas or tips more than anything would be useful.
(2) I believe I have found a ‘bug’ in the SwordWorld java code, though it might be deliberate or already have been fixed in newer versions: For ages I could not figure out why my simple server program (which is very similar to SwordWorld.java) was never ‘remembering’ players (by this I mean it never seemed to find existing GLOs for players logging on repeated time). Looking at SwordWorldBoot.java, the problem (if it is considered one) lies in the fact that when a GLO is not found (the initial lookup gives == null), the ensuing operation to create it does not include the player name just used:
i.e. the line:
playerRef = simTask.createGLO(playerTemplate);
should be
[b]playerRef = simTask.createGLO(playerTemplate, playerName)[/b]
Without that, the GLO created in the absence of a searched-for GLO is ‘nameless’, ‘never’ to be found again. ;D
Best wishes
Greg