Raised This Month: $32 Target: $400
 8% 

[ANY] Contracts


Post New Thread Reply   
 
Thread Tools Display Modes
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-22-2019 , 09:06   Re: [ANY] Contracts
Reply With Quote #261

Quote:
Originally Posted by Arkarr View Post
Should it ? I mean, there is a contract for that ?
Welp. I means the DEAL DAMAGE contract and it doesn't count damage when you goomba stomp someone.
Also using medigun to assist teammate in attacking enemy will not count as DEAL DAMAGE too. Can you make it for medic to do the DEAL DAMAGE contract.
I would like to donate you if you keep making cool codes!

EDITED: NONE OF THE tf_weapon_*** AND THE WEAPON (shown as *** killed *** with demokatana) NAME SHOWN IN THE CONSOLE WORK! pls fix it ;-;

Last edited by Hoto Cocoa; 01-22-2019 at 10:49.
Hoto Cocoa is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-22-2019 , 11:35   Re: [ANY] Contracts
Reply With Quote #262

Game: Team Fortress 2
WTF? I got a KILL contract and when I kill one it doesn't make any progress.
Then I move the smx file to the disabled, change map, then move it back to plugins, change map. And I killed someone and it make progress ! After finishing the contract I got a another KILL one and it doesn't make any progress again, so I did the the file movement again, change the map, and it makes progress again! WTF?
I can see that only DEAL_DAMAGE and WALK work well... In TF2.

EDIT: It drives me mad...I have been testing this plugin in the server for a night...
EDIT2: Here's a thing

Last edited by Hoto Cocoa; 01-22-2019 at 11:58. Reason: mad
Hoto Cocoa is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-22-2019 , 13:20   Re: [ANY] Contracts
Reply With Quote #263

Quote:
Originally Posted by Hoto Cocoa View Post
Game: Team Fortress 2
WTF? I got a KILL contract and when I kill one it doesn't make any progress.
Then I move the smx file to the disabled, change map, then move it back to plugins, change map. And I killed someone and it make progress ! After finishing the contract I got a another KILL one and it doesn't make any progress again, so I did the the file movement again, change the map, and it makes progress again! WTF?
I can see that only DEAL_DAMAGE and WALK work well... In TF2.

EDIT: It drives me mad...I have been testing this plugin in the server for a night...
EDIT2: Here's a thing
Thanks for the ear-rape.

Anyway, you should probably test it on a normal server. If there is no bugs, then Freak Fortress 2 is the bug.
__________________
Want to check my plugins ?
Arkarr is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-22-2019 , 13:30   Re: [ANY] Contracts
Reply With Quote #264

Quote:
Originally Posted by Arkarr View Post
Thanks for the ear-rape.

Anyway, you should probably test it on a normal server. If there is no bugs, then Freak Fortress 2 is the bug.
The report above is when I tested it on my Trade server which has not modified any single weapon.
I would like to see the error log but there's nothing in the error log.

KILL doesn't work for everyone... A player told me that he cannot make any progress on his contract which using Contract Weapon tf_weapon_grenadelauncher to KILL 15 enemies.

Last edited by Hoto Cocoa; 01-22-2019 at 13:35.
Hoto Cocoa is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-22-2019 , 14:44   Re: [ANY] Contracts
Reply With Quote #265

Quote:
Originally Posted by Hoto Cocoa View Post
The report above is when I tested it on my Trade server which has not modified any single weapon.
I would like to see the error log but there's nothing in the error log.

KILL doesn't work for everyone... A player told me that he cannot make any progress on his contract which using Contract Weapon tf_weapon_grenadelauncher to KILL 15 enemies.
I pushed an update, with a new command :

sm_contract_weapon_class - Display the weapon class in chat.

So you can check wich weapon you are using actually !
__________________
Want to check my plugins ?
Arkarr is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-22-2019 , 22:15   Re: [ANY] Contracts
Reply With Quote #266

Quote:
Originally Posted by Arkarr View Post
I pushed an update, with a new command :

sm_contract_weapon_class - Display the weapon class in chat.

So you can check wich weapon you are using actually !
OK, so when I accept a KILL contract it didn't make any progress. But if I use retry on the console and back to the server to kill someone, it makes progress again... once. Once the contract is finished, you have to reconnect to the server to make the KILL contract progresses again.
DEAL_DAMAGE, TAKE_DAMAGE and WALK work greatly. But KILL, DIE which relate to OnPlayerDeath have horrible bug. ;-;

EDIT: I don't see anything wrong according to the Event callback in the .sp file. However it only counts once when you reconnect to the server.

EDIT2: 2019.1.23 Well it cannot make progress on WALK contract too now... Only DEAL_DAMAGE and TAKE_DAMAGE work well.

Last edited by Hoto Cocoa; 01-23-2019 at 07:35.
Hoto Cocoa is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-23-2019 , 10:22   Re: [ANY] Contracts
Reply With Quote #267

Quote:
Originally Posted by Hoto Cocoa View Post
OK, so when I accept a KILL contract it didn't make any progress. But if I use retry on the console and back to the server to kill someone, it makes progress again... once. Once the contract is finished, you have to reconnect to the server to make the KILL contract progresses again.
DEAL_DAMAGE, TAKE_DAMAGE and WALK work greatly. But KILL, DIE which relate to OnPlayerDeath have horrible bug. ;-;

EDIT: I don't see anything wrong according to the Event callback in the .sp file. However it only counts once when you reconnect to the server.

EDIT2: 2019.1.23 Well it cannot make progress on WALK contract too now... Only DEAL_DAMAGE and TAKE_DAMAGE work well.
What server ?
__________________
Want to check my plugins ?
Arkarr is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-23-2019 , 11:25   Re: [ANY] Contracts
Reply With Quote #268

Quote:
Originally Posted by Arkarr View Post
What server ?
My Trade server. KILL, DIE don't work at the beginning.
EDIT: About the self damage bug. I think you can try this (I know nothing about coding so I can only say what I will)
Code:
public DAMAGETAKENblabla
new attacker_c=GetAttacker
new victim_c=GetVictim
if attacker_c = victim_c
{
do nothing. print to chat(hello?)
}
else
make progress
That should work in someway.
Also sharing my private translation of Simplified Chinese (chi)

EDIT2: Test on my pub server. And yet I have check that "Contract Weapon" is "tf_weapon_scattergun" on a DEAL_DAMAGE (using this contract because DEAL_DAMAGE works) contract. However I can still make progress when using the tf_weapon_rocketlauncher (I also checked it with sm_contract_weapon_class).
WALK contract works sometime, magic.
I don't think that TF2's OnPlayerDeath is different with CSS...

EDIT3: KILL contract has bug even if the Contract Weapon is blank. (But if I do the plugin movement again it would like to make progress once.)
Attached Files
File Type: txt contract.phrases.txt (13.9 KB, 76 views)

Last edited by Hoto Cocoa; 01-23-2019 at 12:30.
Hoto Cocoa is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-23-2019 , 13:12   Re: [ANY] Contracts
Reply With Quote #269

Okay, well, thank you for the error report. Sadly I can't invest much time now, since I need to work for my exams. I'll take special care of it in about 2 weeks.
__________________
Want to check my plugins ?
Arkarr is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 01-28-2019 , 07:23   Re: [ANY] Contracts
Reply With Quote #270

Can you add a command to allow people to cancel their acticed contract?
Hoto Cocoa is offline
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 15:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode