Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
33 user(s) are online (23 user(s) are browsing Forum)

Members: 0
Guests: 33

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: -60€
(last updated 10/2020)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 101 users playing Freelancer on 41 servers.
October. 24, 2020

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2)


Re: How to get player affiliation?
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1958
Offline
Of course, you're running the server, not the client. The function in FLServer.exe is at 4176B0. Same parameters, but RSRC is just 0/NULL. BTW, it returns the length of the string (0 if doesn't exist; length of buffer minus one if too long). Buffer may be NULL, in which case it just finds the length.

Posted on: 2010/8/6 8:55
Top
Re: How to get player affiliation?
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1764
Offline
Brrrr, problem is to found player affilation of player who destroyed dockable base, i mean...:

[player]
...
house = 0, fc_maquis_grp
house = -0.3, fc_corse_grp
house = -0.3, fc_brigands_grp
...
rep_group = fc_freelancer ; <-- this string
...

for example to show in event mode:

basedestroy basename=Li01_08_Base basehash=3197728322 solarhash=2810150415 by=Poupkine with affilation=fc_freelancer

So at server side function to get affilation gives always 0?

Posted on: 2010/8/6 10:06
Open Sirius Mod
Top
Re: How to get player affiliation?
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1787
Offline
Players never have an affiliation, only npcs do AFAIR.

Posted on: 2010/8/6 16:12
aka chaosgrid
http://www.freelancerserver.de
https://www.moddb.com/mods/fwtow
Top
Re: How to get player affiliation?
Home away from home
Joined:
2010/3/14 18:10
From Germany
Group:
Registered Users
Senior Members
Posts: 1526
Offline
via flak flhook you can though make a faction's name appear in front of your nick as if you were affiliated with the faction.

Posted on: 2010/8/6 16:29
Top
Re: How to get player affiliation?
Just can't stay away
Joined:
2008/5/9 17:27
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 242
Offline
Quote:

w0dk4 wrote:
Players never have an affiliation, only npcs do AFAIR.


A player has an affiliation if he has a rep_group assigned.
That's a FL feature, not a FLHook one.

Posted on: 2010/8/6 17:23
Top
Re: How to get player affiliation?
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1787
Offline
I mean that from how FL works internally, players never have an affiliation. Of course they can have a rep-group, but they wont have an affiliation as regards the reputation methods and so on (-> get-affiliation always returning 0). Correct me if Im wrong.

Posted on: 2010/8/6 22:29
aka chaosgrid
http://www.freelancerserver.de
https://www.moddb.com/mods/fwtow
Top
Re: How to get player affiliation?
Just can't stay away
Joined:
2008/5/9 17:27
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 242
Offline
It's true that it doesn't seem to work with pub::Reputation::GetAffiliation.

Code:

Reputation::Vibe::GetAffiliation(iPlayerRep, iAff, false);


will work for players too. iAff contains the id of the player's rep_group.

Posted on: 2010/8/6 23:38
Top
Re: How to get player affiliation?
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1787
Offline
Ah, good to know!

Posted on: 2010/8/7 0:21
aka chaosgrid
http://www.freelancerserver.de
https://www.moddb.com/mods/fwtow
Top
Re: How to get player affiliation?
Home away from home
Joined:
2008/12/26 16:55
From Xarania
Group:
Registered Users
Senior Members
Posts: 806
Offline
Quote:

w0dk4 wrote:
Ah, good to know!


yes very.. i always thought it was set via the NewCharacter.ini & linked into "co_ic_grp" & its reputations in empathy.ini

so.. that's SP only im reading here? For MP its set differently.. especially when hook is involved. im very intrigued..

Posted on: 2010/8/7 18:48
Open in new window
http://freexlr.forumotion.net - FL-XLR MOD http://www.smfweb.com/forums/MERCHQ - [MERC]
Top
Re: How to get player affiliation?
Just can't stay away
Joined:
2008/5/9 17:27
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 242
Offline
Nope, the code I've posted is working fine server side.

Posted on: 2010/8/7 21:10
Top
Re: How to get player affiliation?
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1764
Offline
And how to get tsNick to be printed?

Code:
TString<16> tsNick;
Reputation::get_nickname(tsNick, iAff);

Posted on: 2012/12/12 22:35
Open Sirius Mod
Top
« 1 (2)