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

[CS:GO] looking FAKE opencase in server


Post New Thread Reply   
 
Thread Tools Display Modes
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-23-2015 , 03:31   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #41

Quote:
Originally Posted by Ownkruid View Post
Works for me, but somehow the knives are always displayed in {red}.
Looked at images around the internet and the knives are red in the chat message.
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-23-2015 , 04:18   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #42

anyone can add translation? i tried but failed
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-23-2015 , 06:46   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #43

I will add translation possibilities in public release, along with the remaining skins added.
Will be released later today or tomorrow, be patient though as I'm quite busy
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-23-2015 , 10:38   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #44

Now includes translation possibilities and contains all skins!
Decided to post it here before public release so you can test it out.

Menu shows the translations based on server language.
Print message shows the translation based on the game language of the client that receives the message.

ps. Only English translations included!
Attached Files
File Type: zip fakecase.zip (27.4 KB, 88 views)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.

Last edited by tommie113; 11-23-2015 at 10:39.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-23-2015 , 10:51   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #45

Quote:
Originally Posted by tommie113 View Post
Now includes translation possibilities and contains all skins!
Decided to post it here before public release so you can test it out.

Menu shows the translations based on server language.
Print message shows the translation based on the game language of the client that receives the message.

ps. Only English translations included!
thanks for update

Code:
L 11/23/2015 - 16:50:10: [SM] Native "Menu.Display" reported: Menu handle 0 is invalid (error 4)
L 11/23/2015 - 16:50:10: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 16:50:10: [SM]   [0]  Line 49, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::FakeCaseCMD()
L 11/23/2015 - 16:50:13: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/23/2015 - 16:50:13: [SM] Native "Format" reported: Language phrase "Butterfly knife" not found
L 11/23/2015 - 16:50:13: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 16:50:13: [SM]   [0]  Line 56, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::BuildKnifeMenu()
L 11/23/2015 - 16:50:13: [SM]   [1]  Line 26, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::OnMapStart()
sm_fakecase = Unknown Command

edit: fixed by moving this

Code:
LoadTranslations("phrases.fakecase.txt")
to

Code:
public void OnPluginStart()
{
    LoadTranslations("phrases.fakecase.txt");

    RegAdminCmd("sm_fakecase", FakeCaseCMD, ADMFLAG_GENERIC);
    
    SelectedKnife = CreateArray(32);
}
so menu works but now i have the same issue with the menu. it disappear after selecting a knife.

errors:

Code:
L 11/23/2015 - 19:14:41: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/23/2015 - 19:14:41: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 19:14:41: [SM]   [0]  Line 86, fakecase.sp::Menu_Knife

Last edited by asdfxD; 11-23-2015 at 14:13.
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-23-2015 , 18:04   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #46

Quote:
Originally Posted by asdfxD View Post
thanks for update

Code:
L 11/23/2015 - 16:50:10: [SM] Native "Menu.Display" reported: Menu handle 0 is invalid (error 4)
L 11/23/2015 - 16:50:10: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 16:50:10: [SM]   [0]  Line 49, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::FakeCaseCMD()
L 11/23/2015 - 16:50:13: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/23/2015 - 16:50:13: [SM] Native "Format" reported: Language phrase "Butterfly knife" not found
L 11/23/2015 - 16:50:13: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 16:50:13: [SM]   [0]  Line 56, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::BuildKnifeMenu()
L 11/23/2015 - 16:50:13: [SM]   [1]  Line 26, C:\Users\PC_Tom\Downloads\csgo\scripting\fakecase.sp::OnMapStart()
sm_fakecase = Unknown Command

edit: fixed by moving this

Code:
LoadTranslations("phrases.fakecase.txt")
to

Code:
public void OnPluginStart()
{
    LoadTranslations("phrases.fakecase.txt");

    RegAdminCmd("sm_fakecase", FakeCaseCMD, ADMFLAG_GENERIC);
    
    SelectedKnife = CreateArray(32);
}
so menu works but now i have the same issue with the menu. it disappear after selecting a knife.

errors:

Code:
L 11/23/2015 - 19:14:41: [SM] Native "SetArrayString" reported: Invalid index 1 (count: 0)
L 11/23/2015 - 19:14:41: [SM] Displaying call stack trace for plugin "fakecase.smx":
L 11/23/2015 - 19:14:41: [SM]   [0]  Line 86, fakecase.sp::Menu_Knife
First time I worked with translations so that's why it was misplaced.
The api said something about the translations only loading on map change not on plugin reload so I thought the appropriate place to put it was onmapstart.
Fixed that.

Also found out that I had been using a wrong version while updating with translations, so the error of the array came back.
Fixed it again.

I hope everything is fine now, let me know!

ps. How is my scripting map's path shown in your log oO ?
Attached Files
File Type: zip fakecase.zip (27.4 KB, 63 views)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.

Last edited by tommie113; 11-23-2015 at 18:05.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-23-2015 , 18:15   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #47

Quote:
Originally Posted by tommie113 View Post

ps. How is my scripting map's path shown in your log oO ?
i dunno lol .

the new version works now but it prints the whole message in one color.

ct team blue message
t team yellow message
spectator grey message

edit: not possible to edit fade, slaughter, etc. translations? i tried, but does not work. it works for knife names. nvm it works.

Last edited by asdfxD; 11-23-2015 at 18:37.
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-23-2015 , 18:32   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #48

I probably forgot to put the colors default and red back in after I changed the prints many times due to the translation feature.
I'm on mobile now but when I'm back on pc tomorrow I'll fix it.
Probably it's then also ready for plugin release.
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.

Last edited by tommie113; 11-23-2015 at 18:34.
tommie113 is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 11-23-2015 , 18:50   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #49

Quote:
Originally Posted by tommie113 View Post
I probably forgot to put the colors default and red back in after I changed the prints many times due to the translation feature.
yep you did.

i added colors and it works, i think you can release this plugin.

edit: instead of adding the ★ in plugin, you should add it in translation.txt, cause it looks weird.

Code:
Format(buffer, sizeof(buffer), "★ %s | %s", buffer1, buffer2);
Code:
Format(buffer, sizeof(buffer), "%s | %s", buffer1, buffer2);
edit: please use this:

Code:
public void OnPluginStart()
{
    LoadTranslations("phrases.fakecase.txt");
    
    RegAdminCmd("sm_fakecase", FakeCaseCMD, ADMFLAG_GENERIC);
LoadTranslations above RegAdminCmd or the plugin will not work.

edit 2: i don't know why but the plugin prints a different team color which is wrong.


Last edited by asdfxD; 11-24-2015 at 06:49.
asdfxD is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-24-2015 , 13:17   Re: [CS:GO] looking FAKE opencase in server
Reply With Quote #50

Quote:
Originally Posted by asdfxD View Post
yep you did.

i added colors and it works, i think you can release this plugin.

edit: instead of adding the ★ in plugin, you should add it in translation.txt, cause it looks weird.

Code:
Format(buffer, sizeof(buffer), "★ %s | %s", buffer1, buffer2);
Code:
Format(buffer, sizeof(buffer), "%s | %s", buffer1, buffer2);
edit: please use this:

Code:
public void OnPluginStart()
{
    LoadTranslations("phrases.fakecase.txt");
    
    RegAdminCmd("sm_fakecase", FakeCaseCMD, ADMFLAG_GENERIC);
LoadTranslations above RegAdminCmd or the plugin will not work.

edit 2: i don't know why but the plugin prints a different team color which is wrong.

- Loadtranslations moved.
- Colors back in there.
- About that star I think it's better to put it inside the plugin for 1 time and make it look "weird" there, instead of adding it to every translation. Also this formatting does not need to be translated/changed as it's meant to look realistic so it can just as well be hardcoded.
- Changed the teamcolor for T's inside the include file.

Note: This is using an altered colorvariables.inc now, please replace this one with your old one!!
Attached Files
File Type: zip fakecase.zip (27.4 KB, 86 views)
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
Reply



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 10:24.


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