Page 4 of 4

Re: Freeciv-tao-client

Posted: Mon Nov 14, 2016 6:54 am
by mir3x
Have u wrote load_gfxfile ? Have u loaded it ?

Use magic combination:
- find what u need in working client
- mark code, press ctrl+c
- press ctrl+v in tao-client

Re: Freeciv-tao-client

Posted: Sun Nov 20, 2016 10:30 am
by Lachu
I have now segfault in viewing player's information code:

Code: Select all

Thread 1 "freeciv-tao" received signal SIGSEGV, Segmentation fault.
nation_adjective_for_player (pplayer=0x4686f60) at nation.c:170
170       return nation_adjective_translation(nation_of_player(pplayer));
nation_of_player(pplayer) returns 0(NULL).

Re: Freeciv-tao-client

Posted: Sun Nov 20, 2016 6:02 pm
by mir3x
>> nation_of_player(pplayer) returns 0(NULL).

Because player is observer maybe or detached.
There is something like client_has_player() I think.