• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Mut: Per Server Stats

Compiling Error

Compiling Error

!- Sorry for the double post -!

I have ran into a problem when compiling your version into mine.

ServerStStats.uc(85) : Error, Call to 'SetSelectedPerk': type mismatch in parameter 1

it doesn't make sense as it's the same as your code Marco:
Code:
MyStatsObject.SetSelectedPerk(Mid(MyStatsObject.SelectedVeterancy,InStr(MyStatsObject.SelectedVeterancy,".")));

I have checked the files StatsObject.uc, SRVeterancyTypes.uc and ServerStStats.uc. None of them have different to what you have.

Any ideas?

EDIT: I have recompiled your work Marco and got same error. Is this really the right source you given me?

EDIT 2: The source link has different source to the one you gave me.
 
Last edited:
Upvote 0
5.01: - Removed custom character selection as per request.

With all due respect, unless someone has PM'd you, no one asked you to remove it, we just wanted some clarity on how it came to be that two people ended up going for the same goal, one of which came out of nowhere with the finished product, whilst the other is publicly struggling to make his work.
 
Last edited:
Upvote 0
With all due respect, unless someone has PM'd you, no one asked you to remove it, we just wanted some clarity on how it came to be that two people ended up going for the same goal, one of which came out of nowhere with the finished product, whilst the other is publicly struggling to make his work.
Actually I have a working version that I have been testing for now and has worked. I have been testing a few things like portrait dds types etc so people will know once released and making their own.

Here is what was said in a PM I got from Marco as I asked to see if he could have a look at my current version at the time:
Marco said:
It's just terrible, you are on a wrong path with implementing that.
A lot of that code makes no sense at all, so keep on trying (and for the record, I'm talking about CCLastChar, FsGameType, CCPlayerController, ServerStats). If you do it the right way you won't need to override any of those.

I might implement an own system in next ServerPerks version however.
 
Upvote 0
Marco with all due respect, please put v5 back up. I think everyone is clear that there is room for Flux's and your version of server selectable skins.

Your work is incredible and I appreciate all of your mods. Please put the selectable skin back up for the benefit of the community.

For all server operators, if you modify this mod, please rename it when you recompile it so no more mismatch errors! :D
 
Upvote 0
It's just terrible, you are on a wrong path with implementing that.
A lot of that code makes no sense at all, so keep on trying (and for the record, I'm talking about CCLastChar, FsGameType, CCPlayerController, ServerStats). If you do it the right way you won't need to override any of those.

I might implement an own system in next ServerPerks version however.

I'm not quite sure what to make of that actually, I can read two stories,

A. Is he saying yours is no good I'll make my own

B. Is he asking you for your blessing to make his own

Too much being said behind closed doors here, we aint getting the full story.
 
Upvote 0
I'm not quite sure what to make of that actually, I can read two stories,

A. Is he saying yours is no good I'll make my own

B. Is he asking you for your blessing to make his own

Too much being said behind closed doors here, we aint getting the full story.
I took it as A. which is why I wasn't so pleased.
 
  • Like
Reactions: krispyk
Upvote 0
Hi:)

Thank you for many program.

The problem occurred by the ServerPerksHost v1.10.
Many players are not recorded.

V1.00 no problem.
I am doing the rollback to V1.00 now.

Initialization error of a new player ???:confused:

Host.ini
Code:
[General]
KeepAliveTime=60.0
Port=6000
Password="Pass"
bMergeMatchingNames=False

Data.ini
Code:
[00000000000000000]
Player1=
[11111111111111111]
Player2=
[22222222222222222]
Player3=

Code:
Database handler v1.1 created by Marco.
Password for login is: pass
Listening for connections on port 6000...
Loaded config, 0 entries.
New connection: 192.168.0.110
192.168.0.110 - logged in with correct password.
Saving config, 1 entries.
UDP recvfrom error: 10054
192.168.0.110 timed out after 60 seconds.

ah...

Host 1.30 and Host 1.10

same error
not move ServerPerksV5 ....:(

It is saved if a Host is not used.
 
Upvote 0
there is something, i just notice but it is not that serious though.

quick perk selection in trader menu, there is one blank perk icon there. i mean there is really a perk there, you can select it, but it doesn't show the icon. i use only the 7 original icon for each perk...

ps. is it just me having a problem ? no just find some pic from ro_source in previous page

Open SRKFQuickPerkSelect.uc and remove strings:
Code:
 for( i=j; i<ArrayCount(PerkSelectIcons); ++i )
 {
     PerkSelectIcons[i].Image = None;
     PerkSelectIcons[i].Index = -1;
 }

we find:
Code:
 if ( Sender.IsA('KFIndexedGUIImage') && KFIndexedGUIImage(Sender).Index>=0 )
and replace:
Code:
 if ( Sender.IsA('KFIndexedGUIImage') )

Next we find:
Code:
  MaxPerks = Min(S.CachePerks.Length,ArrayCount(PerkSelectIcons));
and replace:
Code:
  MaxPerks = Min(S.CachePerks.Length,8);

Original posted prototype22
 
Upvote 0