Board index FlightGear Support Multiplayer

MP chat not receiving

Trouble getting online, setting up a server?
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- copy&paste your commandline.

Please, also see Requesting Technical Help.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

MP chat not receiving

Postby polly » Sun Mar 20, 2011 8:53 pm

I seem to have lost my hearing. I can see other players and my model appears on mpmap
but anything I enter on the chat dialog or on the chat line doesn't appear on my own screen.
I can't tell if my messages are reaching others. can anyone advise if this console message is
significant, and what it means, please ? ( I've tried variations on a callsign, all appear
OK on mpmap )
Tks
Code: Select all
creating 3D noise texture... DONE
OBJECT_SIGN: unsupported glyph `@'
OBJECT_SIGN: unsupported glyph `,'
OBJECT_SIGN: unsupported glyph `@'
OBJECT_SIGN: unsupported glyph `l'
OBJECT_SIGN: unsupported glyph `u'
OBJECT_SIGN: unexpected } in sign contents
OBJECT_SIGN: unexpected } in sign contents
Nasal runtime error: props.setAttribute() with invalid attribute
  at /usr/share/FlightGear/Nasal/props.nas, line 25
  called from: /usr/share/FlightGear/Nasal/view.nas, line 662
Electrical System ... ok
AFDS System ... check
Nasal runtime error: No such member: callsign
  at /usr/share/FlightGear/Nasal/multiplayer.nas, line 19
  called from: /usr/share/FlightGear/Nasal/multiplayer.nas, line 73
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby polly » Tue Mar 22, 2011 3:28 pm

I've added some print statements to multiplayer.nas :
Code: Select all
var model = {
    init: func {
        print( "model.init entry" );
        me.L = [];
        print( "model.init 2" );
        me.warned = {};
        print( "model.init 3" );
        print( "model.init 3 fg_root:", getprop("/sim/fg-root") );
        me.fg_root = string.normpath(getprop("/sim/fg-root")) ~ '/';
        print( "model.init 4" );
        append(me.L, setlistener("ai/models/model-added", func(n) {
            # Defer update() to the next convenient time to allow the
            # new MP entry to become fully initialized.
            settimer(func me.update(n.getValue()), 0);
        }));
        print( "model.init 5" );
        append(me.L, setlistener("ai/models/model-removed", func(n) {
            # Defer update() to the next convenient time to allow the
            # old MP entry to become fully deactivated.
            settimer(func me.update(n.getValue()), 0);
        }));
        print( "model.init call me.update" );
        me.update();
    },


Here's the console output:
Code: Select all
Processing command line arguments
Unable to load the protocol configuration file
Httpd server started on port 1234
Nasal runtime error: props.setAttribute() with invalid attribute
  at /usr/share/FlightGear/Nasal/props.nas, line 25
  called from: /usr/share/FlightGear/Nasal/gui.nas, line 154
Nasal runtime error: bad/missing argument to subvec()
  at /usr/share/FlightGear/Nasal/string.nas, line 225
  called from: /usr/share/FlightGear/Nasal/string.nas, line 235
  called from: /usr/share/FlightGear/Nasal/string.nas, line 202
  called from: /usr/share/FlightGear/Nasal/io.nas, line 210
Loading local weather routines...
model.init entry
model.init 2
model.init 3
model.init 3 fg_root:/usr/share/FlightGear
Nasal runtime error: bad/missing argument to subvec()
  at /usr/share/FlightGear/Nasal/string.nas, line 225
  called from: /usr/share/FlightGear/Nasal/string.nas, line 235
  called from: /usr/share/FlightGear/Nasal/string.nas, line 202
  called from: /usr/share/FlightGear/Nasal/multiplayer.nas, line 400
  called from: /usr/share/FlightGear/Nasal/multiplayer.nas, line 466
Compatibility layer: testing for hard coded support
* can set light saturation:        yes
* hard coded terrain presampling:  yes
* can disable global weather:      yes
Compatibility layer: tests done.
Submodels: Unable to read AI submodel list
creating 3D noise texture... DONE
Electrical System ... ok
Flight Director ...Check
Chronometer ... Check
Primus 1000 systems ... check
Nasal runtime error: non-objects have no members
  at /usr/share/FlightGear/Nasal/fuel.nas, line 46
  called from: /usr/share/FlightGear/Nasal/fuel.nas, line 63
check_messages foreach model.callsign
Nasal runtime error: No such member: callsign
  at /usr/share/FlightGear/Nasal/multiplayer.nas, line 20
  called from: /usr/share/FlightGear/Nasal/multiplayer.nas, line 74



So it looks as if stage '4' of multiplayer.nas model.init() never gets executed although the $FG_ROOT string appears
well formed. Can anyone offer suggestions, please ?

Edit I guess the " non-objects have no members" is to do with the fuel problem HHS mentioned .. should I switch off threading somehow ??
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby AndersG » Tue Mar 22, 2011 4:56 pm

There are earlier errors from strings.nas in your logs, so the problem may well be there.
I have not seen any other reports of this particular problem. Can you please post what FlightGear version you are using and double check that your data directory is matching your FlightGear binary (very important if you are using a snapshot build or own build) and preferably unmodified.

/Anders
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2454
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: MP chat not receiving

Postby polly » Tue Mar 22, 2011 5:19 pm

Thanks for your reply; I git cloned fgdata, simgear, flightgear last night and re-compiled simgear and flightgear. I've been seeing the callsign error since my previous git clone at Jan 26, since then I'd not tried MP chat. Last time it worked for sure was with a 26 Nov, 2010 git clone. Usually I symlink to fgdata but I've just tried with FG_ROOT set explicitly to my fgdata
directory with no change, I've also tried adding the fgdata directory to IORules which, again, made no difference.
I've run with only MP ports set up in .fgfsrc at SFO, I don't see any chat content either on screen or in MP chat dialog box but the potted response strings 4 & 5 are correctly showing my callsign if I select Chat Menu.
If you care to, look at a post nearby regarding Concorde's key bindings, the console log had similar entries regarding
fuelXML.nas but then the problem was with key bindings rather than with callsigns.

viewtopic.php?f=25&t=11418

Could you tell me where subvec is implemented ? Thanks again.

Edit I don't quite understand your comment about preceding string errors. Since multiplayer.check_messages was reporting 'no callsign' and model.init is supposed to set up the callsign I put print statements in model.init and model.update, which indicate model.init never finishes, with an error somewhere down in 'subvec'
The only error preceding that I can see is:
Code: Select all
Nasal runtime error: props.setAttribute() with invalid attribute
  at /usr/share/FlightGear/Nasal/props.nas, line 25
  called from: /usr/share/FlightGear/Nasal/gui.nas, line 154
normpath entry path:/usr/share/FlightGear


Should I follow that ?
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby AndersG » Tue Mar 22, 2011 6:13 pm

The errors you get are strange. Can you try restoring IORules to the default configuration, avoid using symlinks and make sure your fgdata is uptodate since your binary should be now?

git diff origin/master is a useful test in fgdata and git diff origin/next in SimGear and FlightGear. Just to be sure everything is up to date (according to your latest git pull if you use that - to just fetch the very latest from origin use git fetch).

The command line you use to start fgfs could be useful too.

/Anders
Last edited by AndersG on Tue Mar 22, 2011 9:32 pm, edited 1 time in total.
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2454
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: MP chat not receiving

Postby polly » Tue Mar 22, 2011 6:26 pm

OK, I believe I've done all of those but I will repeat them on different PC's. Thanks for the git diff tip, I'm running it now.

Results:
Code: Select all
<xxxx=abby>/opt<=>echo $FG_ROOT
/sda2-15G/fgit-Mr21/fgdata/
<xxxx=abby>/opt<=>cd /sda2-15G/fgit-Mr21/simgear/
<xxxx=abby>/sda2-15G/fgit-Mr21/simgear<=>git diff origin/next
<xxxx=abby>/sda2-15G/fgit-Mr21/simgear<=>cd ../flightgear/
<xxxx=abby>/sda2-15G/fgit-Mr21/flightgear<=>git diff origin/next
<xxxx=abby>/sda2-15G/fgit-Mr21/flightgear<=>cd ../fgdata/
<xxxx=abby>/sda2-15G/fgit-Mr21/fgdata<=>git diff origin/master
<xxxx=abby>/sda2-15G/fgit-Mr21/fgdata<=>echo $FG_ROOT
/sda2-15G/fgit-Mr21/fgdata/
<xxxx=abby>/sda2-15G/fgit-Mr21/fgdata<=>fgfs --multiplay=out,10,mpserver01.flightgear.org,5000 --callsign=normal
Processing command line arguments
Warning: TangentSpaceGenerator: unknown primitive mode 9
..
..
Warning: TangentSpaceGenerator: unknown primitive mode 9
Nasal runtime error: props.setAttribute() with invalid attribute
  at /sda2-15G/fgit-Mr21/fgdata//Nasal/props.nas, line 25
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/gui.nas, line 154
Nasal runtime error: bad/missing argument to subvec()
  at /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 225
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 235
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 202
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/io.nas, line 210
Loading local weather routines...
Nasal runtime error: bad/missing argument to subvec()
  at /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 225
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 235
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/string.nas, line 202
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/multiplayer.nas, line 395
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/multiplayer.nas, line 452
Compatibility layer: testing for hard coded support
* can set light saturation:        yes
* hard coded terrain presampling:  yes
* can disable global weather:      yes
Compatibility layer: tests done.
KI266 dme indicator #0 initialized
loading scenario 'nimitz_demo'
creating 3D noise texture... DONE
Use of <global> in material animation is no longer supported
..
..
Initializing Nasal Electrical System
Warning: TangentSpaceGenerator: unknown primitive mode 9
..
..
Warning: TangentSpaceGenerator: unknown primitive mode 9
Nasal runtime error: No such member: callsign
  at /sda2-15G/fgit-Mr21/fgdata//Nasal/multiplayer.nas, line 19
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/multiplayer.nas, line 73
Warning: TangentSpaceGenerator: unknown primitive mode 9
..
..

LOAD f-14b /ai/models/multiplayer[3]
power up
Could not find at least one of the following objects for animation:

terminal_2

osgDB ac3d reader: detected surface with less than 3 vertices!
osgDB ac3d reader: detected surface with less than 3 vertices!
osgDB ac3d reader: detected surface with less than 3 vertices!
osgDB ac3d reader: detected surface with less than 3 vertices!
Nasal runtime error: vector index 0 out of bounds (size: 0)
  at /sda2-15G/fgit-Mr21/fgdata//Aircraft/bo105/Models/bo105.ac, line 12
Warning: TangentSpaceGenerator: unknown primitive mode 9
..
..
Warning: TangentSpaceGenerator: unknown primitive mode 9
Could not find at least one of the following objects for animation:

Pilot_int

Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Could not find at least one of the following objects for animation:

Pilot_int

Warning: TangentSpaceGenerator: unknown primitive mode 9
Warning: TangentSpaceGenerator: unknown primitive mode 9
Could not find at least one of the following objects for animation:

Pilot_int

Warning: TangentSpaceGenerator: unknown primitive mode 9
..
..
Warning: TangentSpaceGenerator: unknown primitive mode 9
Nasal runtime error: string index 0 out of bounds (size: 0)
  at /sda2-15G/fgit-Mr21/fgdata//Nasal/aircraft.nas, line 383
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/aircraft.nas, line 355
  called from: /sda2-15G/fgit-Mr21/fgdata//Nasal/globals.nas, line 100
UNLOAD f-14b /ai/models/multiplayer[3]
Nasal runtime error: undefined symbol: livery_update
  at __model2, line 3
<xxxx=bby>/sda2-15G/fgit-Mr21/fgdata<=>

<otto=abby>/sda2-15G/fgit-Mr21/fgdata<=>fgfs --version
Processing command line arguments
FlightGear version: 2.2.0
Revision: b6d70d2c719d2f62c161a4d8d2445bdba2b21a33
Build-Id: none
FG_ROOT=/sda2-15G/fgit-Mr21/fgdata/
FG_HOME=/home/xxxx/.fgfs
FG_SCENERY=/sda2-15G/fgit-Mr21/fgdata//Scenery:/sda2-15G/fgit-Mr21/fgdata//Scenery/Terrain:/sda2-15G/fgit-Mr21/fgdata//Scenery/Objects:
SimGear version: 2.2.0
PLIB version: 185
<otto=abby>/sda2-15G/fgit-Mr21/fgdata<=>



the ellipses ..
indicate repeated messages and I've only edited the userID in the prompt. Hiding ~/.fgfs makes no difference
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby polly » Tue Mar 22, 2011 8:11 pm

Bump .. the results are above. I've just rebooted after renaming all the directories without hyphens, no difference.
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby AndersG » Tue Mar 22, 2011 8:47 pm

polly wrote in Tue Mar 22, 2011 8:11 pm:Bump .. the results are above. I've just rebooted after renaming all the directories without hyphens, no difference.


Strange indeed. I kind of doubt that the problems are in the Nasal files - there hasn't been any significant looking changes recently.


Is anyone else seeing these problems? (Specifically the props.setAttribute() and subvec() error messages.)

/Anders
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2454
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: MP chat not receiving

Postby polly » Wed Mar 23, 2011 2:33 pm

I suspect fuel.nas is the precursor to this problem. On past performance it will take me a few weeks to get a useful fgdata from git.
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby polly » Wed Mar 23, 2011 8:51 pm

I'm trying to see why the first nasal error, in set attribute is failing, so I added to the error message
to show what the compare target contains, which reults in a blank. But why would a character pointer be
set to "" before the compare ?

flightgear/src/Scripting/nasalprops.cxx :

Code: Select all
static naRef f_setAttribute(naContext c, naRef me, int argc, naRef* args)
{
    NODEARG();
    naRef val = naVec_get(argv, 0);
    if(naVec_size(argv) == 1 && naIsNum(val)) {
        naRef ret = naNum((*node)->getAttributes());
        (*node)->setAttributes((int)val.num);
        return ret;
    }
    SGPropertyNode::Attribute attr;
    const char *a = naStr_data(val);
    if(!a) a = "";
    if(!strcmp(a, "readable"))         attr = SGPropertyNode::READ;
    else if(!strcmp(a, "writable"))    attr = SGPropertyNode::WRITE;
    else if(!strcmp(a, "archive"))     attr = SGPropertyNode::ARCHIVE;
    else if(!strcmp(a, "trace-read"))  attr = SGPropertyNode::TRACE_READ;
    else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE;
    else if(!strcmp(a, "userarchive")) attr = SGPropertyNode::USERARCHIVE;
    else {
        naRuntimeError(c, "props.setAttribute() with invalid attribute: ", *a);
        return naNil();
    }
    naRef ret = naNum((*node)->getAttribute(attr));
    (*node)->setAttribute(attr, naTrue(naVec_get(argv, 1)) ? true : false);
    return ret;
}

User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby polly » Thu Mar 24, 2011 4:46 pm

How are arguments passed between nasal modules ?
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby polly » Fri Mar 25, 2011 5:56 pm

The same error was reported here:
viewtopic.php?f=30&t=10776

Edit, googling on the error messages shows Syd, Donn Washburn have also seen the same errors. Is there a way to stop local weather completely from loading, just to test, please ?
User avatar
polly
 
Posts: 455
Joined: Thu Nov 04, 2010 2:45 pm

Re: MP chat not receiving

Postby bishb25 » Sun May 01, 2011 9:03 pm

I'm having the same problem on my system using GIT pulled on April 30, 2011. Running PCLinuxOS 2010.
I can see other multi-player Aircraft, but I can't receive chat messages and I have no way of knowing if my messages are being sent.

The livery system is broken too.
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: MP chat not receiving

Postby bishb25 » Thu May 05, 2011 1:47 am

This is the error message I get....

Nasal runtime error: bad/missing argument to subvec()
at /usr/share/games/FlightGear/fgdata/Nasal/string.nas, line 225
called from: /usr/share/games/FlightGear/fgdata/Nasal/string.nas, line 235
called from: /usr/share/games/FlightGear/fgdata/Nasal/multiplayer.nas, line 34
called from: /usr/share/games/FlightGear/fgdata/Nasal/multiplayer.nas, line 26
called from: /usr/share/games/FlightGear/fgdata/Nasal/multiplayer.nas, line 99
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 1 guest