Further tests done - all to no avail.
Downloaded and re-installed LFS, then ran lapper with yellowflag5.lpr add-on, but still no yellow flag, although country flag ok.
Added some additional code;
------------------------------------------------------------------------------------------------------
CatchEvent OnSplit1( $userName ) # Player event
SetCurrentPlayerVar("IsInSplitSector",2 );
privMsg("(DEBUG) ^7You are now in Sector: ^2".getCurrentPlayerVar("IsInSplitSector"));
$CurrPly = GetPlayerInfo( $userName );
WriteLine( $CurrPly["userName"] );
WriteLine( $CurrPly["nickName"] );
WriteLine( $CurrPly["IsInSplitSector"] );
privMsg ( $CurrPly["userName"] );
privMsg ( $CurrPly["nickName"] );
privMsg ( $CurrPly["IsInSplitSector"] );
EndCatchEvent
------------------------------------------------------------------------------------------------------
(ditto for other splits) and
------------------------------------------------------------------------------------------------------
CatchEvent OnAngleVelocity( $userName ) # Player event
######CRASH IN SECTOR 1 ( STARTLINE - 1ST SPLIT)#########
$CurrPly = GetPlayerInfo( $userName );
IF(GetCurrentPlayerVar("IsInSplitSector") == 1)THEN
### First part is test to make sure a flag and message appears for person who crashed ###
openprivButton("flaga",75,9,40,90,8,3,64,"^1-%nl%^7-%nl%^4-");
openprivButton("flagb",85,9,40,90,8,3,64,"^1-%nl%^7-%nl%^4-");
privMsg ( "(DEBUG_TEST) ^3YELLOW FLAG IN SECTOR: ^61");
privMsg ( $CurrPly["userName"] );
privMsg ( $CurrPly["nickName"] );
privMsg ( $CurrPly["IsInSplitSector"] );
### Second part polls round every player to see if they are in right sector, and if so, different flag and message will apppear ###
$ListOfPlayers = GetListOfPlayers("U");
FOREACH( $CurrUname IN $ListOfPlayers)
IF((GetPlayerVar( $CurrUname["value"], "IsInSplitSector" ) == 4)||(GetPlayerVar( $CurrUname["value"], "IsInSplitSector" ) == 1))THEN
writeLine( "Key = " . $CurrUname["key" ] . " Value = " . $CurrUname["value" ] );
dumpVar( $CurrUname );
GlobalMsg ( $CurrUname["value"] , "(DEBUG) ^3YELLOWFLAG SECTOR: ^61");
openprivButton( "flag1",152,56,40,90,8,3,64,"^3-%nl%^3-%nl%^3-%nl%^3-");
openprivButton( "flag2",162,56,40,90,8,3,64,"^3-%nl%^3-%nl%^3-%nl%^3-");
ENDIF
ENDFOREACH
ENDIF
EndCatchEvent
------------------------------------------------------------------------------------------------------
Although the Sector debug messages work ("(DEBUG) You are now in Sector
n"), none of the FOREACH, WriteLine, dumpVar or the $CurrPly messages appear in console or on screen.
When I do a !who request, my name doesn't appear in Krayy's CIF module (don't think I've looked at this offline before, so not sure if that's normal). Nor does it appear in the Membership module, which I've never enabled before and only used in this test as it was included and set up in the new lapper V6 I installed.
For these reasons, I think the problem may be something to do with my Win7 or network settings, although lapper is allowed full access to my network, so not sure what network problem could be.
My next step (much later on today), will be to put a yellowflag.lpr file onto one of my online servers, and test it online. That way it doesn't rely on my Win7 or network settings being correct.