Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Killing Floor Modifications > Coding

Reply
 
Thread Tools Display Modes
  #821  
Old 07-07-2012, 08:35 AM
StuKKa's Avatar
StuKKa StuKKa is offline
Member
 
Join Date: Mar 2010
Posts: 61
Default

Hi and thanks for the new release.
I got only one question:
Is it possible to send the data stored in the ini file to a webserver, so it could be displayed on a website? I know it could send the data to the Stats server, but I'm not sure how to handle it to a webservice running php for example. In most cases it must be send to port 80 and as a POST or GET request, but in this case a POST would be better (large number of data may exceed the length of 255 signs of a GET request).
Because I would love to see them on our community website, so I could draw my own graphes and see who needs more training .... And NO, I don't want to sell something with this data, I only want stats displayed!

EDIT: Better to say: Is it possible to use a webserver (http protocol) with php and mysql for storing the database information? This would be the greatest thing . So you could display your stats, or even generate a stats image with the information. I'm asking because I don't have access on a rented webserver to use you remote database. Thanks for helping.

EDIT 2: I found this on the web: http://forums.epicgames.com/archive/.../t-738121.html Maybe it could help. If you need someone for the server script, you could contact me, I'm a certified PHP developer .....
__________________
There's only one way to win a campaign: shout, shout and shout again!

Last edited by StuKKa; 07-07-2012 at 09:22 AM.
Reply With Quote
  #822  
Old 07-07-2012, 08:46 AM
Dosi Dosi is offline
Junior Member
 
Join Date: Jun 2011
Posts: 8
Default

so, i've tried 15-20 min to add correctly to trader, but i cant imagine whats the name of FnFal, tried so many (BattleRifle/FNFAL((A)COG)/FnFal((A)cog)/(FN)LAR/L1A1), neither works :S

these are working, without discount. just add these lines to the weapon section in 'ServerPerks.ini'

TraderInventory=1:KFMod.MK23Pickup
TraderInventory=1:KFMod.DualMK23Pickup
TraderInventory=2:KFMod.KSGPickup
TraderInventory=3:KFMod.M99Pickup
TraderInventory=4:KFMod.M7A3MPickup
TraderInventory=5:KFMod.M4203Pickup

Last edited by Dosi; 07-07-2012 at 08:48 AM.
Reply With Quote
  #823  
Old 07-07-2012, 09:08 AM
StuKKa's Avatar
StuKKa StuKKa is offline
Member
 
Join Date: Mar 2010
Posts: 61
Default

The name you was searching for is: FNFAL_ACOG_Pickup
I recently updated the scripts for modding and found it...
__________________
There's only one way to win a campaign: shout, shout and shout again!
Reply With Quote
  #824  
Old 07-07-2012, 09:29 AM
Wycked's Avatar
Wycked Wycked is offline
Member
 
Join Date: Oct 2011
Posts: 68
Default

Wondering if one of you guys can help me, I'm updating the perks on my custom server, but since the KF update, I can't compile them.

This is what my CMDPrompt tells me when I hit Compile:


Code:
C:\Users\Peanuts\Killing Floor Server\Compile>del "C:\Program Files (x86)\Steam\
steamapps\common\killingfloor\System\Noogumsguns.u"
Could Not Find C:\Program Files (x86)\Steam\steamapps\common\killingfloor\System
\Noogumsguns.u

C:\Users\Peanuts\Killing Floor Server\Compile>del "C:\Program Files (x86)\Steam\
steamapps\common\killingfloor\System\Noogumsguns.ucl"
Could Not Find C:\Program Files (x86)\Steam\steamapps\common\killingfloor\System
\Noogumsguns.ucl

C:\Users\Peanuts\Killing Floor Server\Compile>"C:\Program Files (x86)\Steam\stea
mapps\common\killingfloor\System\UCC.exe" make
'"C:\Program Files (x86)\Steam\steamapps\common\killingfloor\System\UCC.exe"' is
 not recognized as an internal or external command,
operable program or batch file.

C:\Users\Peanuts\Killing Floor Server\Compile>del "C:\Program Files (x86)\Steam\
steamapps\common\killingfloor\System\steam_appid.txt"
Could Not Find C:\Program Files (x86)\Steam\steamapps\common\killingfloor\System
\steam_appid.txt

C:\Users\Peanuts\Killing Floor Server\Compile>pause
Press any key to continue . . .
Did the method of compiling change when I wasn't looking? This is the same .bat I was using before the update, and it used to work perfectly.
__________________
Reply With Quote
  #825  
Old 07-07-2012, 10:26 AM
King Sumo's Avatar
King Sumo King Sumo is offline
Senior Member
 
Join Date: Jan 2011
Location: Brazil
Posts: 301
Default

@Marco
GetHeadShotDamMulti() was changed, so ServerPerksP must be updated accordingly...

Code:
old:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, DamageType);
new:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, KFPawn(instigatedBy), DamageType);
thanks
__________________
Bonus Stage/Boss Time Mutator
Pickup class for the Holy Hand Grenade
Door messages Mutator
My KF Public Server: Sexta Bruta Hardcore Server
Reply With Quote
  #826  
Old 07-07-2012, 10:47 AM
Dosi Dosi is offline
Junior Member
 
Join Date: Jun 2011
Posts: 8
Default

Quote:
Originally Posted by StuKKa View Post
The name you was searching for is: FNFAL_ACOG_Pickup
I recently updated the scripts for modding and found it...
so why i am couldn't find DD thx
Reply With Quote
  #827  
Old 07-08-2012, 11:51 AM
tehmadcap tehmadcap is offline
Senior Member
 
Join Date: Nov 2010
Posts: 369
Default

Quote:
Originally Posted by King Sumo View Post
@Marco
GetHeadShotDamMulti() was changed, so ServerPerksP must be updated accordingly...

Code:
old:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, DamageType);
new:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, KFPawn(instigatedBy), DamageType);
thanks

Is this why I'm not getting headshot bonuses with serverperks? I've been trying to work that one out for the last half hour..

Edit: Yep, that's fixed it. Thanks!

Last edited by tehmadcap; 07-08-2012 at 12:11 PM.
Reply With Quote
  #828  
Old 07-08-2012, 07:55 PM
ASSAYARO's Avatar
ASSAYARO ASSAYARO is offline
Senior Member
 
Join Date: Sep 2010
Location: Behind you...
Posts: 137
Default hmmm

Quote:
Originally Posted by King Sumo View Post
@Marco
GetHeadShotDamMulti() was changed, so ServerPerksP must be updated accordingly...

Code:
old:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, DamageType);
new:
            Damage = float(Damage) * KFPRI.ClientVeteranSkill.Static.GetHeadShotDamMulti(KFPRI, KFPawn(instigatedBy), DamageType);
thanks
How to fix? point out...
Spoiler!



and on questions...
If i want... can i change such SRVeterancyTypes and SRHUDKillingFloor and etc in serverperks folder?
Reply With Quote
  #829  
Old 07-08-2012, 08:11 PM
EpharGy EpharGy is offline
Senior Member
 
Join Date: Jan 2011
Location: Australia
Posts: 1,350
Default

Quote:
Originally Posted by ASSAYARO View Post
How to fix? point out...
Spoiler!



and on questions...
If i want... can i change such SRVeterancyTypes and SRHUDKillingFloor and etc in serverperks folder?
Change that line to
Code:
static function float GetHeadShotDamMulti(KFPlayerReplicationInfo KFPRI, KFPawn P, class<DamageType> DmgType)
As for changing those two files, extend off them with new mutators, or you'll add to the possible missmatch's for clients who switch servers
Reply With Quote
  #830  
Old 07-10-2012, 10:26 AM
malis2007 malis2007 is offline
Member
 
Join Date: Jun 2012
Posts: 60
Default

NEED HELP PLEASE SERVERPERKSV5 MUT ISN"T WORKING IN PATCH 1036!?!
Look here for more details:
http://forums.tripwireinteractive.co...ad.php?t=81477
PLEASE I NEED HELP!
I AM ALREADY PISSED OF THESE PATCHES!
__________________
Reply With Quote
  #831  
Old 07-10-2012, 12:01 PM
FluX FluX is offline
Senior Member
 
Join Date: Oct 2010
Posts: 3,728
Default

Quote:
Originally Posted by malis2007 View Post
NEED HELP PLEASE SERVERPERKSV5 MUT ISN"T WORKING IN PATCH 1036!?!
Look here for more details:
http://forums.tripwireinteractive.co...ad.php?t=81477
PLEASE I NEED HELP!
I AM ALREADY PISSED OF THESE PATCHES!
Use the latest ServerPerks.
__________________

Reply With Quote
  #832  
Old 07-16-2012, 09:18 AM
Z-MAN Z-MAN is offline
Senior Member
 
Join Date: Jun 2009
Posts: 200
Default

http://forums.tripwireinteractive.co...ad.php?t=81420

1035, 1036
You seem to get stuck in the load of the skin.
Execute after removing the skin.

Code:
ServerPerksMut: Adding 34 additional serverpackages
ServerPerksMut: Using remote database: *.*.*.*:6000
Load appears to have completed successfully.
failed to initialize?
How do you know the location fix?

Please help if you know.
Reply With Quote
  #833  
Old 07-20-2012, 01:40 AM
EpharGy EpharGy is offline
Senior Member
 
Join Date: Jan 2011
Location: Australia
Posts: 1,350
Default

Quote:
Originally Posted by Z-MAN View Post

Code:
ServerPerksMut: Adding 34 additional serverpackages
ServerPerksMut: Using remote database: *.*.*.*:6000
Load appears to have completed successfully.
failed to initialize?
How do you know the location fix?

Please help if you know.
Are you even using a remote database to store your stats, if so, put the IP/port there, if not, you shouldn't have the useremotedatabase flagged as true
Reply With Quote
  #834  
Old 07-20-2012, 02:12 AM
shibata shibata is offline
Junior Member
 
Join Date: Dec 2010
Posts: 4
Default

hi, how to make a discount on weapons?
Reply With Quote
  #835  
Old 07-20-2012, 01:38 PM
FluX FluX is offline
Senior Member
 
Join Date: Oct 2010
Posts: 3,728
Default

Quote:
Originally Posted by shibata View Post
hi, how to make a discount on weapons?
Look into the perks as they are perk related.
__________________

Reply With Quote
  #836  
Old 07-21-2012, 08:07 PM
slavek's Avatar
slavek slavek is offline
_〆(・∀・)_旦~ The Late Night Moderator
 
Join Date: May 2006
Location: UnrealEd: Viewport #1
Posts: 2,987
Default

Look for a section like this in your perk class. (This one is from beserker)

Code:
// Change the cost of particular items
static function float GetCostScaling(KFPlayerReplicationInfo KFPRI, class<Pickup> Item)
{
    if ( Item == class'ChainsawPickup' || Item == class'KatanaPickup' || Item == class'ClaymoreSwordPickup' )
        return FMax(0.9 - (0.10 * float(KFPRI.ClientVeteranSkillLevel)),0.1); // Up to 70% discount on Melee Weapons
    return 1.0;
}
__________________

Greater Good Games
KillingFloorServer: 204.145.81.18:7707
Reply With Quote
  #837  
Old 07-25-2012, 01:58 PM
Massacrer Massacrer is offline
Senior Member
 
Join Date: Mar 2012
Posts: 613
Default

The thing with the source codes is that the variables are named based on their purpose and a lot of the other parts of the codes are labelled with comments so that any person who is new to modding can understand what to do and how to do it.
__________________

Reply With Quote
  #838  
Old 07-27-2012, 08:42 AM
Z-MAN Z-MAN is offline
Senior Member
 
Join Date: Jun 2009
Posts: 200
Default

Quote:
Originally Posted by EpharGy View Post
Are you even using a remote database to store your stats, if so, put the IP/port there, if not, you shouldn't have the useremotedatabase flagged as true

HOST is running.
No problem.

Deadlock when use the skin.
The end of the event, the deadlock has been reduced.
However, the deadlock.
1035,1036,1037 server is buggy.
Reply With Quote
  #839  
Old 07-28-2012, 10:12 AM
BartBear's Avatar
BartBear BartBear is offline
Senior Member
 
Join Date: May 2007
Location: Poland
Posts: 657
Default

After last update I have a problem (v551): some of my maps (even standards) load to server, but clients hang on black connection screen (and in logs they don't connect). I don't know what is wrong because it happens only on some maps, like Mappers forgot to put some values, or did it case-sensitive "wrong way" or smth. I'm not a mapper just made a few times with SDK so I'm in trouble.

My mutators on server:

Spoiler!

my serverperk.ini:

Spoiler!



and examples for standard maps:

working - KF-Wyre, KF-Westlondon, KF-Waterworks

not working - KF-Aperture, KF-Bedlam, KF-Farm, KF-Foundry ...and many customs but rest work ok with those mutators on...
__________________

Last edited by BartBear; 07-28-2012 at 02:55 PM.
Reply With Quote
  #840  
Old 07-29-2012, 05:59 PM
forrestmark9's Avatar
forrestmark9 forrestmark9 is offline
Senior Member
 
Join Date: Nov 2011
Posts: 513
Default

Quote:
Originally Posted by BartBear View Post
After last update I have a problem (v551): some of my maps (even standards) load to server, but clients hang on black connection screen (and in logs they don't connect). I don't know what is wrong because it happens only on some maps, like Mappers forgot to put some values, or did it case-sensitive "wrong way" or smth. I'm not a mapper just made a few times with SDK so I'm in trouble.

My mutators on server:

Spoiler!

my serverperk.ini:

Spoiler!



and examples for standard maps:

working - KF-Wyre, KF-Westlondon, KF-Waterworks

not working - KF-Aperture, KF-Bedlam, KF-Farm, KF-Foundry ...and many customs but rest work ok with those mutators on...
You have waaaay too much stuff loaded at once, you will need to remove some stuff like weapons, mutators, or other things
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC