Freeciv-tao-client

Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
User avatar
mir3x
Veteran
Posts: 110
Joined: Sat Jan 30, 2016 6:17 pm

Re: Freeciv-tao-client

Post 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
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

Re: Freeciv-tao-client

Post 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).
User avatar
mir3x
Veteran
Posts: 110
Joined: Sat Jan 30, 2016 6:17 pm

Re: Freeciv-tao-client

Post 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.
Post Reply